1 2014-09-08 Joseph Myers <joseph@codesourcery.com>
3 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
7 * doc/tm.texi: Regenerate.
8 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
10 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
11 * config/cris/cris.h (__make_dp): Remove.
13 2014-09-08 Richard Biener <rguenther@suse.de>
16 * cfgloop.c (mark_loop_for_removal): Track former header
18 * cfgloop.h (struct loop): Add former_header member unconditionally.
19 * loop-init.c (fix_loop_structure): Enable bogus loop removal
20 diagnostic unconditionally.
22 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
25 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
26 constraint for operand0 and remove write only modifier from operand3.
28 2014-09-07 Richard Sandiford <rdsandiford@googlemail.com>
30 PR rtl-optimization/62208
31 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
32 rather than const0_rtx in eq/ne-xor simplifications.
34 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
36 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
37 (arc_output_mi_thunk): Likewise.
39 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
40 arguments to silence bogus warning.
42 2014-09-06 Richard Sandiford <rdsandiford@googlemail.com>
45 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
47 2014-09-06 Tom de Vries <tom@codesourcery.com>
49 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
50 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
51 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
53 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
56 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
57 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
59 2014-09-05 Easwaran Raman <eraman@google.com>
61 PR rtl-optimization/62146
62 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
63 hoisted instruction unconditional.
65 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
68 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
69 Do not allow any_mask_operand for operands[2].
70 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
72 2014-09-05 David Malcolm <dmalcolm@redhat.com>
74 * config/arc/arc.c (arc_print_operand): Use insn method of
75 final_sequence for type-safety.
76 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
77 "insn" from rtx to rtx_insn *.
78 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
79 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
80 Likewise for locals "branch", "label".
81 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
82 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
83 (same_cmp_following_p): Likewise for locals "i2", "i3".
84 * config/sh/sh_optimize_sett_clrt.cc
85 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
87 * function.c (convert_jumps_to_returns): Likewis for local "jump".
88 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
89 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
91 (condjump_p): Likewise.
92 (condjump_in_parallel_p): Likewise.
94 (any_uncondjump_p): Likewise.
95 (any_condjump_p): Likewise.
96 (condjump_label): Likewise.
97 (returnjump_p): Strengthen param "insn" from rtx to
99 (onlyjump_p): Strengthen param "insn" from const_rtx to
101 (jump_to_label_p): Likewise.
102 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
103 (invert_jump): Likewise.
104 * reorg.c (simplejump_or_return_p): Add checked cast when calling
106 (get_jump_flags): Strengthen param "insn" from rtx to
108 (get_branch_condition): Likewise.
109 (condition_dominates_p): Likewise.
110 (make_return_insns): Move declaration of local "pat" earlier, to
111 after we've handled NONJUMP_INSN_P and non-sequences, using its
112 methods to simplify the code and for type-safety.
113 * rtl.h (find_constant_src): Strengthen param from const_rtx to
115 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
116 (condjump_p): Strengthen param from const_rtx to
118 (any_condjump_p): Likewise.
119 (any_uncondjump_p): Likewise.
121 (condjump_label): Likewise.
122 (simplejump_p): Likewise.
123 (returnjump_p): Likewise.
124 (onlyjump_p): Likewise.
125 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
126 (invert_jump): Likewise.
127 (condjump_in_parallel_p): Strengthen param from const_rtx to
129 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
131 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
133 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
135 2014-09-05 David Malcolm <dmalcolm@redhat.com>
137 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
138 above the conditional, and convert the check on GET_CODE to a
139 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
140 the conditional. Simplify the conditional by using methods of
143 2014-09-05 David Malcolm <dmalcolm@redhat.com>
145 * haifa-sched.c (check_clobbered_conditions): Strengthen local
146 "link" from rtx to rtx_insn_list *, and use its methods for
147 clarity and type-safety.
148 (toggle_cancelled_flags): Likewise.
149 (restore_last_backtrack_point): Likewise.
150 (queue_to_ready): Use insn method of "link" in one place.
151 (schedule_block): Strengthen local "link" from rtx to
152 rtx_insn_list *, and use its methods for clarity and type-safety.
154 2014-09-05 David Malcolm <dmalcolm@redhat.com>
156 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
157 param "insn" from const_rtx to const rtx_insn *.
158 (sched_get_reverse_condition_uncached): Likewise.
159 (sched_get_condition_with_rev): Likewise.
160 (sched_has_condition_p): Likewise.
161 (sched_insns_conditions_mutex_p): Likewise for both params.
162 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
163 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
164 (setup_insn_reg_uses): Move local "list" to be more tightly
165 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
166 its methods for clarity and type-safety.
167 (sched_analyze_1): Strengthen local "pending" from rtx to
168 rtx_insn_list *, and local "pending_mem" from rtx to
169 rtx_expr_list *. Use methods of each for clarity and type-safety.
170 (sched_analyze_2): Likewise.
171 (sched_analyze_insn): Likewise.
173 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
174 param from const_rtx to const rtx_insn *.
175 (sched_insns_conditions_mutex_p): Likewise for both params.
176 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
179 * system.h (CONST_CAST_RTX_INSN): New macro.
181 2014-09-05 David Malcolm <dmalcolm@redhat.com>
183 * recog.c (peep2_attempt): Strengthen return type from rtx to
185 (peep2_update_life): Likewise for params "last", "prev", removing
186 a checked cast made redundant by this.
187 (peephole2_optimize): Likewise for local "last".
189 2014-09-05 David Malcolm <dmalcolm@redhat.com>
191 * basic-block.h (set_block_for_insn): Eliminate this macro in
193 * rtl.h (set_block_for_insn): New inline function, imposing the
194 requirement that the "insn" param is an rtx_insn *.
196 2014-09-05 David Malcolm <dmalcolm@redhat.com>
198 * caller-save.c (setup_save_areas): Strengthen local "insn" from
200 * final.c (get_call_reg_set_usage): Likewise for first param,
201 eliminating a checked cast.
202 * regs.h (get_call_reg_set_usage): Likewise for first param.
203 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
204 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
205 cast, replacing references to "x" with "call_insn" where
207 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
208 rtx_insn *, adding a checked cast.
210 2014-09-05 David Malcolm <dmalcolm@redhat.com>
212 * output.h (final_scan_insn): Strengthen first param from rtx to
215 * final.c (final_scan_insn): Likewise, renaming it back from
216 "uncast_insn" to "insn", eliminating the checked cast.
218 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
219 "vec" with an rtx_sequence * "seq", taking a copy of
220 "final_sequence", and using methods of "seq" for clarity, and for
221 type-safety in the calls to final_scan_insn.
222 * config/mips/mips.c (mips_output_conditional_branch): Use methods
223 of "final_sequence" for clarity, and for type-safety in the call to
225 * config/sh/sh.c (print_slot): Strengthen param from rtx to
226 rtx_sequence * and rename from "insn" to "seq".
228 2014-09-05 David Malcolm <dmalcolm@redhat.com>
230 * jump.c (delete_related_insns): Introduce a new local "table" by
231 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
232 get_labels method of "table" to simplify access to the labels in
235 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
237 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
238 f_minmaxs, f_minmaxd types.
240 2014-09-05 Richard Biener <rguenther@suse.de>
242 * cfgloop.c (mark_loop_for_removal): Record former header
243 when ENABLE_CHECKING.
244 * cfgloop.h (strut loop): Add former_header member when
246 * loop-init.c (fix_loop_structure): Sanity check loops
247 marked for removal if they re-appeared.
249 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
251 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
252 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
254 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
255 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
256 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
257 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
258 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
259 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
260 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
261 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
262 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
263 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
264 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
265 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
266 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
267 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
268 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
269 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
270 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
271 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
272 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
273 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
276 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
278 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
279 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
280 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
281 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
282 Remove temporary __asm__ and reimplement.
284 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
286 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
287 handling cmge, cmgt, cmeq, cmtst.
289 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
290 cmlt, cmgeu, cmgtu, cmtst): Remove.
292 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
293 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
294 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
295 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
297 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
299 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
301 (aarch64_fold_builtin): Update pattern for cmtst.
303 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
306 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
308 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
309 Switch operands, separate out more cases, refactor.
311 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
313 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
314 argument; rename old version to...
315 (aarch64_const_vec_all_same_in_range_p): ...this.
316 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
318 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
320 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
322 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
323 Remove qualifier_const_pointer, update comment.
325 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
327 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
329 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
331 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
332 varargs with pointer parameter.
333 (aarch64_simd_expand_builtin): pass pointer into previous.
335 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
337 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
340 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
342 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
343 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
344 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
345 Replace temporary asm with call to builtin.
346 (vrbit_p8, vrbitq_p8): New functions.
348 2014-09-05 Richard Biener <rguenther@suse.de>
350 * cfgloop.c (mark_loop_for_removal): New function.
351 * cfgloop.h (mark_loop_for_removal): Declare.
352 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
353 (merge_blocks): Likewise.
354 (duplicate_block): Likewise.
355 * except.c (sjlj_emit_dispatch_table): Likewise.
356 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
357 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
358 (thread_through_loop_header): Likewise.
360 2014-09-05 Richard Biener <rguenther@suse.de>
363 * fold-const.c (try_move_mult_to_index): Remove.
364 (fold_binary_loc): Do not call it.
365 * tree-data-ref.c (dr_analyze_indices): Strip conversions
366 from the base object again.
368 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
370 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
373 2014-09-05 Bin Cheng <bin.cheng@arm.com>
376 * config/arm/arm.md (setmem): New pattern.
377 * config/arm/arm-protos.h (struct tune_params): New fields.
378 (arm_gen_setmem): New prototype.
379 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
380 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
381 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
382 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
383 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
384 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
385 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
386 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
387 (arm_const_inline_cost): New function.
388 (arm_block_set_max_insns): New function.
389 (arm_block_set_non_vect_profit_p): New function.
390 (arm_block_set_vect_profit_p): New function.
391 (arm_block_set_unaligned_vect): New function.
392 (arm_block_set_aligned_vect): New function.
393 (arm_block_set_unaligned_non_vect): New function.
394 (arm_block_set_aligned_non_vect): New function.
395 (arm_block_set_vect, arm_gen_setmem): New functions.
397 2014-09-05 Bin Cheng <bin.cheng@arm.com>
399 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
401 2014-09-05 Bin Cheng <bin.cheng@arm.com>
403 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
405 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
407 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
409 * valtrack.h: Adjust.
411 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
413 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
415 (emit_jump_insn_before_noloc): Likewise.
416 (emit_call_insn_before_noloc): Likewise.
417 (emit_label_before): Likewise.
418 (emit_label_after): Likewise.
419 (emit_insn_before_setloc): Likewise.
420 (emit_jump_insn_before_setloc): Likewise.
421 (emit_call_insn_before_setloc): Likewise.
422 (emit_call_insn_before): Likewise.
425 2014-09-05 David Malcolm <dmalcolm@redhat.com>
427 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
428 rtx_insn *, eliminating a checked cast.
430 2014-09-05 David Malcolm <dmalcolm@redhat.com>
432 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
433 const_rtx to const rtx_insn *.
434 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
437 2014-09-05 David Malcolm <dmalcolm@redhat.com>
439 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
440 fixup_args_size_notes.
441 * expr.c (fixup_args_size_notes): Strengthen first two params from
442 rtx to rtx_insn *, eliminating a checked cast.
443 * rtl.h (fixup_args_size_notes): Strengthen first two params from
446 2014-09-05 David Malcolm <dmalcolm@redhat.com>
448 * haifa-sched.c (get_ready_element): Strengthen return type from
450 * sched-int.h (get_ready_element): Likewise.
452 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
455 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
456 indexed_or_indirect_operand instead of memory_operand.
457 (floatsi<mode>2_lfiwzx_mem): Ditto.
459 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
461 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
462 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
463 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
465 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
467 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
469 (get_last_nonnote_insn): Likewise.
470 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
471 * resource.c (find_basic_block): Likewise.
473 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
476 2014-09-04 David Malcolm <dmalcolm@redhat.com>
478 * genattr.c (main): Within the prototype of insn_latency written
479 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
480 * genautomata.c (output_internal_maximal_insn_latency_func):
481 Within the implementation of insn_latency written out to
482 insn-automata.c, strengthen both params from rtx to rtx_insn *,
483 eliminating a pair of checked casts.
485 2014-09-04 David Malcolm <dmalcolm@redhat.com>
487 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
490 * rtl.h (eh_returnjump_p): Likewise.
492 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
494 * Makefile.in (TAGS): Handle constructs in timevar.def.
496 2014-09-04 Guozhi Wei <carrot@google.com>
499 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
500 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
501 it into two patterns.
502 (move_lo_quad_internal_be_<mode>): Likewise.
504 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
506 * doc/options.texi: Document that Var and Init are required if CPP
508 * optc-gen.awk: Require Var and Init if CPP is given.
509 * common.opt (Wpedantic): Use Init.
511 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
513 * config/rs6000/rs6000.c (special_handling_values): Add
515 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
516 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
517 as swappable with special handling SH_EXTRACT. Remove
518 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
520 (adjust_extract): New function.
521 (handle_special_swappables): Add default to case statement; add
522 case for SH_EXTRACT that calls adjust_extract.
523 (dump_swap_insn_table): Handle SH_EXTRACT.
525 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
527 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
528 selection of 0th memory doubleword, regardless of endianness.
530 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
532 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
534 2014-09-04 Alan Modra <amodra@gmail.com>
537 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
540 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
542 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
543 * targhooks.c (default_dwarf_frame_reg_mode): New function.
544 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
545 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
546 * doc/tm.texi: Regenerate.
547 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
548 selection logic to default_dwarf_frame_reg_mode.
550 2014-09-03 Marek Polacek <polacek@redhat.com>
552 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
555 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
557 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
558 the automodified register.
560 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
562 * output.h (get_some_local_dynamic_name): Declare.
563 * final.c (some_local_dynamic_name): New variable.
564 (get_some_local_dynamic_name): New function.
565 (final_end_function): Clear some_local_dynamic_name.
566 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
567 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
568 (print_operand): Report an error if '%&' is used inappropriately.
569 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
570 (get_some_local_dynamic_name_1): Delete.
571 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
572 (rs6000_get_some_local_dynamic_name): Delete.
573 (rs6000_get_some_local_dynamic_name_1): Delete.
574 (print_operand): Report an error if '%&' is used inappropriately.
575 * config/s390/s390.c (machine_function): Remove some_ld_name.
576 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
577 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
578 * config/sparc/sparc.c: Include rtl-iter.h.
579 (machine_function): Remove some_ld_name.
580 (sparc_print_operand): Report an error if '%&' is used inappropriately.
581 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
583 2014-09-03 Richard Henderson <rth@redhat.com>
585 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
586 (aarch64_popwb_pair_reg): Remove.
587 (aarch64_set_frame_expr): Remove.
588 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
589 the restore ops performed by the insns generated.
590 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
591 insn. Perform the calls_eh_return addition later; do not attempt to
592 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
593 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
594 special markup at all. Load cfun->machine->frame.hard_fp_offset
595 into a local variable.
596 (aarch64_frame_pointer_required): Don't check calls_alloca.
598 2014-09-03 Richard Biener <rguenther@suse.de>
600 * opts.c (default_options_optimization): Adjust
601 max-combine-insns to 2 for -Og.
603 2014-09-03 Martin Jambor <mjambor@suse.cz>
606 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
607 pass-trough jump functions correctly.
609 2014-09-03 Martin Jambor <mjambor@suse.cz>
612 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
613 created replacements in ascending order of offsets.
614 (known_aggs_to_agg_replacement_list): Likewise.
616 2014-09-03 Martin Liska <mliska@suse.cz>
618 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
619 is set to set uninitialized value for vnresult.
621 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
623 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
624 for TARGET_MUST_PASS_IN_STACK.
626 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
628 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
629 for TARGET_ARG_PARTIAL_BYTES.
631 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
633 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
634 instructions for varargs implementation.
635 (nds32_expand_epilogue): Emit stack adjustment instructions for
636 varargs implementation.
638 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
640 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
641 optimization detection.
643 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
645 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
647 (nds32_function_arg_advance): Deal with nameless arguments.
648 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
649 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
650 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
652 2014-09-03 Richard Biener <rguenther@suse.de>
654 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
655 (struct bb_bitmap_sets): Remove deferred member.
656 (BB_DEFERRED): Remove.
657 (defer_or_phi_translate_block): Remove.
658 (compute_antic_aux): Remove deferring of blocks, assert
659 proper iteration order.
660 (compute_antic): Do not set BB_DEFERRED.
661 (eliminate): Allocate el_avail of proper size initially.
663 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
665 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
666 according to the value of crtl->args.pretend_args_size.
668 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
670 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
673 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
675 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
676 implementation for TARGET_SETUP_INCOMING_VARARGS.
677 (nds32_strict_argument_naming): Refine comment.
678 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
679 Define for future implementation.
681 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
683 * config/i386/adxintrin.h (_subborrow_u32): New.
684 (_addcarry_u32): Ditto.
685 (_subborrow_u64): Ditto.
686 (_addcarry_u64): Ditto.
687 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
689 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
690 __builtin_ia32_sbb_u64
692 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
694 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
696 (nds32_function_arg_advance): Likewise.
697 (nds32_init_cumulative_args): Likewise.
698 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
699 (NDS32_FIRST_GPR_REGNUM): Define.
700 (NDS32_LAST_GPR_REGNUM): Define.
701 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
702 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
703 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
704 (machine_function): Use GRP-specific stuff.
706 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
708 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
709 (nds32_expand_epilogue): Likewise.
710 (nds32_expand_prologue_v3push): Likewise.
711 (nds32_expand_epilogue_v3pop): Likewise.
713 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
715 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
716 v3push/v3pop for variadic function.
717 * config/nds32/nds32.md (prologue, epilogue): Likewise.
719 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
721 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
722 Check rtx for varargs implementation.
723 (nds32_output_stack_pop): Likewise.
724 * config/nds32/nds32-protos.h: Have a rtx argument for
725 nds32_output_stack_push and nds32_output_stack_pop.
726 * config/nds32/nds32.md: Likewise.
728 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
730 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
731 to check if FUNC is an interrupt service routine.
732 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
734 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
736 * config/nds32/nds32.h (machine_function): Add some fields for variadic
737 arguments implementation.
739 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
741 * config/nds32/nds32-predicates.c
742 (nds32_valid_stack_push_pop): Rename to ...
743 (nds32_valid_stack_push_pop_p): ... this.
744 * config/nds32/nds32-protos.h: Likewise.
745 * config/nds32/predicates.md: Likewise.
747 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
749 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
750 (nds32_emit_stack_v3push): ... this.
751 (nds32_gen_stack_v3pop): Rename to ...
752 (nds32_emit_stack_v3pop): ... this and consider CFA restore
755 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
757 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
758 (nds32_emit_stack_push_multiple): ... this.
759 (nds32_gen_stack_pop_multiple): Rename to ...
760 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
763 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
766 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
767 and add a second splitter to handle the remaining cases.
769 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
771 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
773 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
775 * cfgexpand.c (label_rtx_for_bb): Change type to
776 hash_map<basic_block, rtx_code_label *> *.
777 (expand_gimple_basic_block): Adjust.
778 (pass_expand::execute): Likewise.
780 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
782 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
783 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
784 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
785 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
786 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
787 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
788 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
791 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
793 * alloc-pool.c: Include coretypes.h.
794 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
795 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
796 hash_set instead of htab.
797 * ggc-page.c (in_gc): New variable.
798 (ggc_free): Do nothing if a collection is taking place.
799 (ggc_collect): Set in_gc appropriately.
800 * ggc.h (gt_ggc_mx(const char *)): New function.
801 (gt_pch_nx(const char *)): Likewise.
802 (gt_ggc_mx(int)): Likewise.
803 (gt_pch_nx(int)): Likewise.
804 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
805 (hash_map::hash_entry::pch_nx): Likewise.
806 (hash_map::hash_entry::pch_nx_helper): Likewise.
807 (hash_map::hash_map): Adjust.
808 (hash_map::create_ggc): New function.
809 (gt_ggc_mx): Likewise.
810 (gt_pch_nx): Likewise.
811 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
812 (default_hashset_traits::pch_nx): Likewise.
813 (hash_set::hash_entry::ggc_mx): Likewise.
814 (hash_set::hash_entry::pch_nx): Likewise.
815 (hash_set::hash_entry::pch_nx_helper): Likewise.
816 (hash_set::hash_set): Adjust.
817 (hash_set::create_ggc): New function.
818 (hash_set::elements): Likewise.
819 (gt_ggc_mx): Likewise.
820 (gt_pch_nx): Likewise.
821 * hash-table.h (hash_table::hash_table): Adjust.
822 (hash_table::m_ggc): New member.
823 (hash_table::~hash_table): Adjust.
824 (hash_table::expand): Likewise.
825 (hash_table::empty): Likewise.
826 (gt_ggc_mx): New function.
827 (hashtab_entry_note_pointers): Likewise.
828 (gt_pch_nx): Likewise.
830 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
832 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
834 (XVCVUXDDP_SCALE): Likewise.
835 (XVCVDPSXDS_SCALE): Likewise.
836 (XVCVDPUXDS_SCALE): Likewise.
837 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
838 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
839 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
840 VSX_BUILTIN_XVCVDPUXDS_SCALE.
841 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
843 * config/rs6000/rs6000.c (real.h): New include.
844 (rs6000_scale_v2df): New function.
845 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
846 (UNSPEC_VSX_XVCVUXDDP): Likewise.
847 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
848 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
849 (vsx_xvcvsxddp_scale): New define_expand.
850 (vsx_xvcvsxddp): New define_insn.
851 (vsx_xvcvuxddp_scale): New define_expand.
852 (vsx_xvcvuxddp): New define_insn.
853 (vsx_xvcvdpsxds_scale): New define_expand.
854 (vsx_xvcvdpsxds): New define_insn.
855 (vsx_xvcvdpuxds_scale): New define_expand.
856 (vsx_xvcvdpuxds): New define_insn.
857 * doc/extend.texi (vec_ctf): Add new prototypes.
860 (vec_splat): Likewise.
864 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
868 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
869 <v_cmp_result>): New pattern.
870 * config/arm/iterators.md (NEON_VCVT): New int iterator.
871 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
872 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
873 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
874 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
875 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
877 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
880 * config/arm/iterators.md (FIXUORS): New code iterator.
881 (VCVT): New int iterator.
882 (su_optab): New code attribute.
884 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
886 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
888 * config/aarch64/predicates.md (aarch64_comparison_operation):
889 New special predicate.
890 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
891 aarch64_comparison_operation instead of matching an operator.
892 Update operand numbers.
893 (csinc3<mode>_insn): Likewise.
894 (*csinv3<mode>_insn): Likewise.
895 (*csneg3<mode>_insn): Likewise.
896 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
897 * config/aarch64/aarch64.c (aarch64_get_condition_code):
898 Return -1 instead of aborting on invalid condition codes.
899 (aarch64_print_operand): Update aarch64_get_condition_code callsites
900 to assert that the returned condition code is valid.
901 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
903 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
905 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
906 tree.def, and gimple.def
908 2014-09-02 Jakub Jelinek <jakub@redhat.com>
909 Balaji V. Iyer <balaji.v.iyer@intel.com>
910 Igor Zamyatin <igor.zamyatin@intel.com>
912 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
913 (__cilkrts_cilk_for_64): Likewise.
914 * cilk-common.c (declare_cilk_for_builtin): New function.
915 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
916 __cilkrts_cilk_for_64 bultins.
917 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
919 (cilk_for_32_fndecl): New define.
920 (cilk_for_64_fndecl): Likewise.
921 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
922 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
923 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
924 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
925 GF_OMP_FOR_COMBINED_INTO.
926 * gimplify.c (gimplify_scan_omp_clauses): Added
927 OMP_CLAUSE__CILK_FOR_COUNT_ case.
928 (gimplify_adjust_omp_clauses): Ditto.
929 (gimplify_omp_for): Added CILK_FOR case.
930 (gimplify_expr): Ditto.
931 * omp-low.c: Include cilk.h.
932 (extract_omp_for_data): Set appropriate kind for
933 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
934 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
935 (create_omp_child_function_name): Added second argument to handle
937 (cilk_for_check_loop_diff_type): New function.
938 (expand_cilk_for_call): Likewise.
939 (expand_cilk_for): Likewise.
940 (create_omp_child_function): Set cilk_for_count; handle the cases when
941 it is true; call create_omp_child_function_name with second argument.
942 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
943 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
944 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
945 * tree-nested.c (convert_nonlocal_omp_clauses): Added
946 OMP_CLAUSE__CILK_FOR_COUNT_ case.
947 (convert_local_omp_clauses): Ditto.
948 * tree-pretty-print.c (dump_omp_clause): Added
949 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
950 (dump_generic_node): Added CILK_FOR case.
951 * tree.c (omp_clause_num_ops): New element
952 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
953 (omp_clause_code_name): New element _Cilk_for_count_.
954 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
955 * tree.def: Add tree code for CILK_FOR.
957 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
959 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
960 (ppc403-compare): Add "exts with dot" case.
961 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
962 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
963 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
964 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
965 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
966 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
967 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
968 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
969 cell-cmp-microcoded): Similarly.
970 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
971 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
972 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
973 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
974 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
975 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
976 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
977 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
978 (power6-compare): Add "exts with dot" case.
979 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
980 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
981 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
983 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
984 if avoiding Cell microcode.
985 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
986 (is_cracked_insn): Ditto.
987 (insn_must_be_first_in_group): Ditto.
988 * config/rs6000/rs6000.md (dot): Adjust comment.
989 (cell_micro): Handle exts+dot.
990 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
991 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
992 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
993 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
994 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
995 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
996 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
998 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1000 * config/rs6000/rs6000.md (QHSI): Delete.
1001 (EXTQI, EXTHI, EXTSI): New mode iterators.
1002 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1003 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1004 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1005 9 anonymous instructions, and 8 splitters): Delete.
1006 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1007 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1008 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1009 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1010 *zero_extendsi<mode>2_dot2): New.
1012 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1014 * config/rs6000/rs6000.md (any_extend): New code iterator.
1015 (u, su): New code attributes.
1016 (dmode, DMODE): New mode attributes.
1017 (<su>mul<mode>3_highpart): New.
1018 (*<su>mul<mode>3_highpart): New.
1019 (<su>mulsi3_highpart_le): New.
1020 (<su>muldi3_highpart_le): New.
1021 (<su>mulsi3_highpart_64): New.
1022 (<u>mul<mode><dmode>3): New.
1023 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1025 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1028 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1030 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1031 *mulsi3_internal2, and two splitters): Delete.
1032 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1034 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1036 2014-09-02 Richard Biener <rguenther@suse.de>
1038 PR tree-optimization/62695
1039 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1042 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1045 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1047 2014-09-01 Andi Kleen <ak@linux.intel.com>
1049 * file-find.c (add_prefix_begin): Add.
1050 (do_add_prefix): Rename from add_prefix with first argument.
1051 (add_prefix): Add new wrapper.
1052 * file-find.h (add_prefix_begin): Add.
1053 * gcc-ar.c (main): Support -B option.
1055 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1057 * genemit.c: Include dumpfile.h.
1058 (gen_split): Print name of splitter function to dump file.
1060 2014-09-01 Richard Biener <rguenther@suse.de>
1062 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1063 Use stack auto_vecs for constraint expressions.
1064 (find_func_aliases_for_call): Likewise.
1065 (find_func_aliases): Likewise.
1066 (find_func_clobbers): Likewise.
1068 2014-09-01 Richard Biener <rguenther@suse.de>
1070 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1071 operands vector in most cases. Remove redundant code.
1073 2014-09-01 Olivier Hainque <hainque@adacore.com>
1075 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1076 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1077 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1079 2014-09-01 Richard Biener <rguenther@suse.de>
1081 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1082 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1083 vn_reference_compute_hash, vn_reference_insert): Remove.
1084 (vn_reference_lookup_call): New function.
1085 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1086 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1087 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1088 (create_reference_ops_from_call): Remove.
1089 (vn_reference_lookup_3): Properly update shared_lookup_references.
1090 (vn_reference_lookup_pieces): Assert that we updated
1091 shared_lookup_references properly.
1092 (vn_reference_lookup): Likewise.
1093 (vn_reference_lookup_call): New function.
1094 (visit_reference_op_call): Use it. Avoid re-building the
1096 (visit_reference_op_load): Remove redundant lookup.
1097 (visit_reference_op_store): Perform special tail-merging work
1098 only when possibly doing tail-merging.
1099 (visit_use): Likewise.
1100 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1102 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1105 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1106 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1107 (find_inc): Revert 2014-08-13 change.
1109 2014-09-01 Marek Polacek <polacek@redhat.com>
1112 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1113 Change the type of V to unsigned HOST_WIDE_INT.
1115 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1117 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1118 the size of byte markers.
1119 (do_shift_rotate): Fix confusion between host, target and marker byte
1121 (verify_symbolic_number_p): Likewise.
1122 (find_bswap_or_nop_1): Likewise.
1123 (find_bswap_or_nop): Likewise.
1125 2014-09-01 Olivier Hainque <hainque@adacore.com>
1127 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1128 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1130 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1132 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1133 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1134 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1136 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1140 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1141 (build_check_stmt): Likewise.
1142 (instrument_strlen_call): Likewise.
1143 (asan_expand_check_ifn): Likewise and fix types.
1144 (maybe_cast_to_ptrmode): New function.
1146 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1148 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1150 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1152 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1154 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1156 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1157 prefix to function labels when generating fast indirect calls.
1159 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1163 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1164 param back from rtx_insn * to rtx. Rename param from "label" to
1165 "label_or_return", reintroducing "label" as an rtx_insn * after
1166 we've ensured it's not a RETURN.
1167 (first_active_target_insn): Likewise for return type and param;
1168 add a checked cast to rtx_insn * once we've ensured "insn" is not
1170 (steal_delay_list_from_target): Convert param "pnew_thread" back
1171 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1173 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1174 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1175 cast once we've established we're not dealing with a RETURN,
1176 renaming subsequent uses of "thread" to "thread_insn".
1177 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1179 (follow_jumps): Convert return type and param "label" from
1180 rtx_insn * back to rtx. Move initialization of "value" to after
1181 the handling for ANY_RETURN_P, adding a checked cast there to
1182 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1183 rename to "this_label_or_return", reintroducing "this_label" as
1184 an rtx_insn * once we've handled the case where it could be an
1186 (fill_slots_from_thread): Rename param "thread" to
1187 "thread_or_return", converting from an rtx_insn * back to an rtx.
1188 Reintroduce name "thread" as an rtx_insn * local with a checked
1189 cast once we've handled the case of it being an ANY_RETURN_P.
1190 Convert local "new_thread" from an rtx_insn * back to an rtx.
1191 Add a checked cast when assigning to "trial" from "new_thread".
1192 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1193 checked cast to rtx_insn * from "new_thread" when invoking
1195 (fill_eager_delay_slots): Convert locals "target_label",
1196 "insn_at_target" from rtx_insn * back to rtx.
1197 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1198 (relax_delay_slots): Convert locals "trial", "target_label" from
1199 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1200 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1201 invoking update_block.
1202 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1203 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1205 * resource.h (mark_target_live_regs): Undo erroneous conversion
1206 of second param of r214693, converting it back from rtx_insn * to
1207 rtx, since it could be a RETURN.
1209 * resource.c (find_dead_or_set_registers): Similarly, convert
1210 param "jump_target" back from an rtx_insn ** to an rtx *, as we
1211 could be writing back a RETURN. Rename local rtx_insn * "next" to
1212 "next_insn", and introduce "lab_or_return" as a local rtx,
1213 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
1214 (mark_target_live_regs): Undo erroneous conversion
1215 of second param of r214693, converting it back from rtx_insn * to
1216 rtx, since it could be a RETURN. Rename it from "target" to
1217 "target_maybe_return", reintroducing the name "target" as a local
1218 rtx_insn * with a checked cast, after we've handled the case of
1221 2014-08-29 DJ Delorie <dj@redhat.com>
1223 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
1224 pointer size up to a power of two.
1225 * defaults.h (DWARF2_ADDR_SIZE): Round up.
1226 (POINTER_SIZE_UNITS): New, rounded up value.
1227 * dwarf2asm.c (size_of_encoded_value): Use it.
1228 (dw2_output_indirect_constant_1): Likewise.
1229 * expmed.c (init_expmed_one_conv): We now know the sizes of
1231 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
1232 * optabs.c (expand_float): Use precision, not size.
1233 (expand_fix): Likewise.
1234 * simplify-rtx (simplify_unary_operation_1): Likewise.
1235 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1236 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
1237 (default_assemble_integer) Likewise.
1238 (dump_tm_clone_pairs): Likewise.
1239 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
1240 * var-tracking.c (adjust_mems): Allow partial-int modes also.
1241 (prepare_call_arguments): Likewise.
1242 * stor-layout.c (finalize_type_size): Preserve precision.
1243 (layout_type): Use precision, not size.
1245 * expr.c (convert_move): If the target has an explicit converter,
1248 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1250 * gdbinit.in: Skip various inline functions in rtl.h when
1253 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
1256 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
1258 2014-08-29 Richard Biener <rguenther@suse.de>
1260 PR tree-optimization/62291
1261 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
1262 exactly the vector size needed and use quick_push.
1263 (phi_translate_1): Adjust comment.
1264 (valid_in_sets): Remove block argument and remove pointless
1266 (dependent_clean): Adjust for removal of block argument.
1268 (compute_antic_aux): Likewise.
1269 (compute_partial_antic_aux): Likewise.
1271 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1272 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1273 Anna Tikhonova <anna.tikhonova@intel.com>
1274 Ilya Tocar <ilya.tocar@intel.com>
1275 Andrey Turetskiy <andrey.turetskiy@intel.com>
1276 Ilya Verbin <ilya.verbin@intel.com>
1277 Kirill Yukhin <kirill.yukhin@intel.com>
1278 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1280 * config/i386/sse.md
1281 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
1282 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
1283 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
1284 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
1286 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1288 Anna Tikhonova <anna.tikhonova@intel.com>
1289 Ilya Tocar <ilya.tocar@intel.com>
1290 Andrey Turetskiy <andrey.turetskiy@intel.com>
1291 Ilya Verbin <ilya.verbin@intel.com>
1292 Kirill Yukhin <kirill.yukhin@intel.com>
1293 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1295 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
1296 * config/i386/sse.md
1297 (define_mode_iterator VI4_128_8_256): New.
1298 (define_mode_iterator VI2_128_4_256): Ditto.
1299 (define_mode_iterator PMOV_DST_MODE): Rename into
1300 (define_mode_iterator PMOV_DST_MODE_1): this.
1301 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
1302 Use PMOV_DST_MODE_1 mode iterator.
1303 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1305 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1307 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
1308 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
1309 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
1310 (define_mode_iterator PMOV_DST_MODE_2): New.
1311 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
1312 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
1313 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
1315 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
1316 (define_mode_attr pmov_dst_3): Ditto.
1317 (define_mode_attr pmov_dst_zeroed_3): Ditto.
1318 (define_mode_attr pmov_suff_3): Ditto.
1319 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
1320 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
1321 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
1322 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
1323 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
1324 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
1325 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
1326 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
1327 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
1328 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
1329 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
1330 (define_mode_attr pmov_dst_4): Ditto.
1331 (define_mode_attr pmov_dst_zeroed_4): Ditto.
1332 (define_mode_attr pmov_suff_4): Ditto.
1333 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
1334 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
1335 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
1336 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
1337 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
1338 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
1339 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
1340 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
1341 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
1342 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
1343 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
1345 2014-08-29 Richard Biener <rguenther@suse.de>
1347 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
1348 NON_LVALUE_EXPR in gimple.
1350 2014-08-29 Richard Biener <rguenther@suse.de>
1353 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
1354 from previous refactoring.
1355 (gimple_fold_builtin_strncpy): Likewise.
1357 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1360 * function.c (assign_parm_setup_reg): Remove erroneous checked
1361 cast to rtx_insn * on result of gen_extend_insn in favor of
1362 introducing a new local rtx "pat".
1364 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1366 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
1368 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
1370 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1372 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
1373 (next_insn): Likewise.
1374 * emit-rtl.c (next_insn): Likewise.
1375 (previous_insn): Likewise.
1376 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
1377 "insn" and "next" from rtx to rtx_insn *.
1378 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
1379 "insn", "insn1", "vliw_start", "prologue_end_note",
1380 "last_insn_in_packet".
1382 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1384 * shrink-wrap.h (active_insn_between): Strengthen both params from
1386 * function.c (active_insn_between): Likewise.
1388 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1390 * genattr.c (main): When writing out insn-attr.h, strengthen param
1391 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
1392 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
1393 writing out the definition of dfa_clear_single_insn_cache to the
1394 generated insn-automata.c
1396 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1398 * resource.h (clear_hashed_info_for_insn): Strengthen param from
1400 (incr_ticks_for_insn): Likewise.
1401 (init_resource_info): Likewise.
1403 * resource.c (init_resource_info): Likewise.
1404 (clear_hashed_info_for_insn): Likewise.
1405 (incr_ticks_for_insn): Likewise.
1407 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
1409 (steal_delay_list_from_target): Use methods of "seq".
1410 (try_merge_delay_insns): Use methods of "merged_insns".
1411 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
1412 (reorg_redirect_jump): Likewise for param "jump".
1414 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1416 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
1418 * config/s390/s390.c (s390_split_branches): Eliminate top-level
1419 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
1421 (s390_mainpool_finish): In three places, split out a local rtx
1422 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
1423 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
1424 and split another local rtx "insn" out into rtx "pat" and
1426 * config/sh/sh.c (output_branchy_insn): Rather than working
1427 directly on operands[9], introduce local rtx_code_label *
1428 variables named "lab" in two places, working on them, and then
1429 assigning them to operands[9], so that the intervening operations
1430 are known by the type system to be on insns.
1432 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1434 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
1437 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
1438 in invocation of INSN_HAS_LOCATION.
1440 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1442 * config/rs6000/altivec.h (vec_xl): New #define.
1443 (vec_xst): Likewise.
1444 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
1445 (XXSPLTD_V2DI): Likewise.
1446 (DIV_V2DI): Likewise.
1447 (UDIV_V2DI): Likewise.
1448 (MUL_V2DI): Likewise.
1449 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1450 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
1451 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
1452 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
1453 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
1454 (UNSPEC_VSX_DIVSD): Likewise.
1455 (UNSPEC_VSX_DIVUD): Likewise.
1456 (UNSPEC_VSX_MULSD): Likewise.
1457 (vsx_mul_v2di): New insn-and-split.
1458 (vsx_div_v2di): Likewise.
1459 (vsx_udiv_v2di): Likewise.
1460 (vsx_xxspltd_<mode>): New insn.
1462 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1464 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
1466 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
1467 (NEXT_INSN): Likewise.
1468 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
1469 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
1471 (no_labels_between_p): Likewise for both params.
1473 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
1474 cast when using NEXT_INSN on operands[2].
1475 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
1476 "insn" from rtx to rtx_insn *, adding a checked cast.
1477 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
1479 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
1481 (arc_text_label): Likewise for param "insn".
1482 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
1484 (arc_ccfsm_record_condition): Likewise for param "jump".
1485 (arc_text_label): Likewise for local "label".
1486 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1487 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1488 a method for typesafety. Add a checked cast.
1489 * config/arc/constraints.md (Clb): Add a checked cast when getting
1490 the CODE_LABEL from a LABEL_REF.
1491 * config/arm/arm.c (require_pic_register): Strengthen locals
1492 "seq", "insn" from rtx to rtx_insn *.
1493 (create_fix_barrier): Likewise for locals "selected", "next".
1494 (thumb1_reorg): Likewise for locals "prev", "insn".
1495 (arm_expand_prologue): Likewise for local "last".
1496 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1498 (thumb2_output_casesi): Likewise for operands[2].
1499 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1500 strengthen local "insn" from rtx to rtx_insn *.
1501 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1502 type and param "insn".
1503 (find_prev_insn_start): Likewise.
1504 (hwloop_optimize): Likewise for locals "insn", "last_insn",
1506 (gen_one_bundle): Likewise for loal "t".
1507 (find_load): Likewise for param "insn".
1508 (workaround_speculation): Likewise for locals "insn", "next",
1509 "target", "next_tgt".
1510 * config/c6x/c6x.c (assign_reservations): Likewise for both params
1511 and for locals "insn", "within", "last".
1512 (count_unit_reqs): Likewise for params "head", "tail" and local
1514 (try_rename_operands): Likewise for params "head", "tail".
1515 (reshuffle_units): Likewise for locals "head", "tail", "insn".
1516 (struct c6x_sched_context): Likewise for fields
1517 "last_scheduled_insn", "last_scheduled_iter0".
1518 (init_sched_state): Replace NULL_RTX with NULL.
1519 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1521 (undo_split_delayed_nonbranch): Likewise for param and for local
1523 (conditionalize_after_sched): Likewise for local "insn".
1524 (bb_earliest_end_cycle): Likewise.
1525 (filter_insns_above): Likewise for locals "insn", "next".
1526 (hwloop_optimize): Remove redundant checked cast.
1527 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1528 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1530 (cris_simple_epilogue): Likewise.
1531 (cris_expand_prologue): Likewise.
1532 (cris_expand_epilogue): Likewise.
1533 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1534 local "insn" from rtx to rtx_insn *.
1535 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1536 (struct frv_packet_group): Likewise for the elements within array
1537 fields "insns", "sorted", and for field "nop".
1538 (frv_packet): Likewise for the elements within array field
1540 (frv_add_insn_to_packet): Likewise for param "insn".
1541 (frv_insert_nop_in_packet): Likewise for param "insn" and local
1543 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1544 (frv_sort_insn_group_1): Likewise for local "insn".
1545 (frv_optimize_membar_local): Likewise.
1546 (frv_align_label): Likewise for locals "x", "last", "barrier",
1548 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1550 (ia64_sched_init): Likewise for local "insn".
1551 (scheduled_good_insn): Likewise for param "last".
1552 (struct _ia64_sched_context): Likewise for field
1553 "last_scheduled_insn".
1554 (ia64_init_sched_context): Replace NULL_RTX with NULL.
1555 (struct bundle_state): Likewise for field "insn".
1556 (issue_nops_and_insn): Likewise for param "insn".
1557 (get_next_important_insn): Likewise for return type and both
1559 (ia64_add_bundle_selector_before): Likewise for param "insn".
1560 (bundling): Likewise for params "prev_head_insn", "tail" and
1561 locals "insn", "next_insn", "b". Eliminate top-level local rtx
1562 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1563 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1564 Strengthen final param from rtx to rtx_insn *.
1565 (iq2000_move_1word): Likewise for second param.
1566 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1567 param "cur_insn" and local "next_insn".
1568 (iq2000_move_1word): Likewise for param "insn".
1569 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1570 casts when using NEXT_INSN on operands[1].
1571 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1572 "insn" from rtx to rtx_insn *.
1573 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1574 "x", introducing local rtx_insn * "insn" for when working with the
1575 CODE_LABEL of the LABEL_REF.
1576 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1578 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1580 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1582 (conditionalize_block): Likewise for return type and param.
1583 (mcore_is_dead): Likewise for param "first" and local "insn".
1584 (emit_new_cond_insn): Likewise for return type.
1585 (conditionalize_block): Likewise for return type, param, and
1586 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1588 (conditionalize_optimization): Likewise for local "insn".
1589 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1591 * config/microblaze/microblaze.md: Add checked casts when using
1593 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1594 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1595 and rtx_insn * "insn".
1596 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1597 checked cast when using NEXT_INSN on operands[2].
1598 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1599 local "insn" from rtx to rtx_insn *.
1600 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1602 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1603 Add a checked cast when using NEXT_INSN on operands[1].
1604 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1606 (pa_output_cbranch): Likewise for final param.
1607 (pa_output_lbranch): Likewise for second param.
1608 (pa_output_bb): Likewise for third param.
1609 (pa_output_bvb): Likewise.
1610 (pa_output_dbra): Likewise for second param.
1611 (pa_output_movb): Likewise.
1612 (pa_output_parallel_movb): Likewise.
1613 (pa_output_parallel_addb): Likewise.
1614 (pa_output_millicode_call): Likewise for first param.
1615 (pa_output_mul_insn): Likewise for second param.
1616 (pa_output_div_insn): Likewise for third param.
1617 (pa_output_mod_insn): Likewise for second param.
1618 (pa_jump_in_call_delay): Likewise for param.
1619 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1620 (pa_output_div_insn): Likewise.
1621 (pa_output_mod_insn): Likewise.
1622 (pa_output_cbranch): Likewise.
1623 (pa_output_lbranch): Likewise.
1624 (pa_output_bb): Likewise.
1625 (pa_output_bvb): Likewise.
1626 (pa_output_dbra): Likewise.
1627 (pa_output_movb): Likewise.
1628 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1629 to simplify and for typesafety.
1630 (pa_output_call): Use method of rtx_sequence *.
1631 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1632 (pa_jump_in_call_delay): Likewise.
1633 (pa_output_parallel_movb): Likewise.
1634 (pa_output_parallel_addb): Likewise.
1635 (pa_following_call): Likewise.
1636 (pa_combine_instructions): Likewise for locals "anchor",
1638 (pa_can_combine_p): Likewise for params "anchor", "floater" and
1639 locals "start", "end".
1640 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1641 param "insn" and local "local_insn".
1642 (picochip_final_prescan_insn): Likewise for local "local_insn".
1643 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1645 (uses_TOC): Likewise.
1646 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1647 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1648 splitting out to more tightly-scoped locals, 3 as rtx and one as
1650 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1652 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1654 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1656 (fixup_addr_diff_vecs): Likewise.
1657 (reg_unused_after): Likewise for param 2.
1658 (sh_can_redirect_branch): Likewise for both params.
1659 (check_use_sfunc_addr): Likewise for param 1.
1660 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1661 (find_barrier): Likewise for local "last_got".
1662 (gen_block_redirect): Likewise for return type, param "jump" and
1663 locals "prev", "scan", "next", "insn".
1664 (struct far_branch): Likewise for fields "near_label",
1665 "insert_place", "far_label".
1666 (gen_far_branch): Likewise for local "jump".
1667 (fixup_addr_diff_vecs): Likewise for param "first" and locals
1669 (barrier_align): Likewise for param and for locals "prev", "x".
1670 Introduce local rtx_sequence * "prev_seq" and use insn method for
1671 typesafety and clarity.
1672 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1673 (get_dest_uid): Likewise for local "dest".
1674 (split_branches): Likewise for locals "next", "beyond", "label",
1675 "block", "far_label". Add checked casts when assigning to
1676 bp->far_label and "far_label".
1677 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1678 (sequence_insn_p): Likewise.
1679 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
1680 more loop-scoped rtx "insn" when walking LABEL_REFS.
1681 (sh_can_redirect_branch): Strengthen both params from rtx to
1683 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
1684 new local rtx_sequence * "seq" via a dyn_cast, and use a method
1685 for clarity and typesafety.
1686 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1687 "insn" from rtx to rtx_insn *.
1688 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1689 when using NEXT_INSN on the CODE_LABEL in operands[2].
1690 (define_insn "casesi_worker_2"): Likewise.
1691 (define_insn "casesi_shift_media"): Likewise.
1692 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1694 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1695 Strengthen field "insn" from rtx to rtx_insn *.
1696 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1697 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1698 param "start_insn" and local "start_insn".
1699 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1701 (find_set_of_reg_bb): Likewise for param "insn".
1702 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1703 (trace_reg_uses): Likewise for param "start_insn".
1704 (sh_treg_combine::cbranch_trace): Likewise for field
1706 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1708 (sh_treg_combine::record_set_of_reg): Likewise for param
1709 "start_insn" and local "i".
1710 (sh_treg_combine::can_remove_cstore): Likewise for local
1712 (sh_treg_combine::try_optimize_cbranch): Likewise for param
1714 (sh_treg_combine::execute): Likewise for local "i".
1715 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1717 (sparc_check_64): Likewise for second param.
1718 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1719 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
1720 dyn_cast, using its insn method for typesafety and clarity.
1721 (empty_delay_slot): Strengthen param "insn" from rtx to
1723 (set_extends): Likewise.
1724 (sparc_check_64): Likewise.
1725 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1726 for locals "seq", "last_insn".
1727 (combine_bnp): Likewise for param "insn".
1728 (xstormy16_reorg): Likewise for local "insn".
1729 * config/v850/v850.c (substitute_ep_register): Likewise for params
1730 "first_insn", "last_insn" and local "insn".
1731 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1732 elements of "regs" array, and local "insn".
1733 * except.c (emit_note_eh_region_end): Likewise for param "insn".
1734 * final.c (final_sequence): Strengthen this global from rtx to
1736 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1738 (final_scan_insn): Update assignment to "final_sequence" to be
1739 from "seq", the cast version of "body", for type-safety.
1740 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1741 "insns" from rtx to rtx_insn *.
1742 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1743 * genattr.c (main): When writing out generated insn-attr.h,
1744 strengthen params 1 and 3 of eligible_for_delay,
1745 eligible_for_annul_true, eligible_for_annul_false from rtx to
1747 * genattrtab.c (write_eligible_delay): Likewise when writing out
1748 generated insn-attrtab.c; also local "insn" the generated
1750 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1752 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1753 "start_label" from rtx to rtx_insn *.
1754 * ira.c (decrease_live_ranges_number): Likewise for local "p".
1755 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1756 "insns" and local "insn".
1757 (validate_equiv_mem): Likewise for param "start" and local "insn".
1758 (memref_used_between_p): Likewise for params "start", "end" and
1760 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1762 * loop-doloop.c (doloop_optimize): Within region guarded by
1763 INSN_P (doloop_pat), introduce a new local rtx_insn *
1764 "doloop_insn" via a checked cast, and use it for typesafety,
1765 eventually writing the value back into doloop_pat.
1766 * output.h (final_sequence): Strengthen this global from rtx to
1768 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1769 reintroducing "insn" as an rtx_insn * via a checked cast.
1770 Strengthen param "attempt" and local "new_insn"from rtx to
1772 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1774 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1775 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1776 "p" in favor of more tightly-scoped replacements, sometimes rtx
1777 and sometimes rtx_insn *, as appropriate.
1778 (delete_output_reload): Eliminate top-level rtx "i1", splitting
1779 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1780 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
1781 local "trial" from rtx to rtx_insn *.
1782 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1783 rtx to rtx_insn *. Strenghten local "pat" from rtx to
1784 rtx_sequence * and use methods for clarity and typesafety.
1785 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1786 rtx to rtx_insn *. Strenghten local "li" from rtx to
1787 rtx_insn_list * and use its methods for clarity and typesafety.
1788 (steal_delay_list_from_target): Strengthen param "insn" from rtx
1790 (steal_delay_list_from_fallthrough): Likewise.
1791 (try_merge_delay_insns): Likewise for param "thread" and locals
1792 "trial", "next_trial", "delay_insn".
1793 (redundant_insn): Likewise for param "target" and local "trial".
1794 (own_thread_p): Likewise for param "thread" and locals
1795 "active_insn", "insn".
1796 (get_label_before): Likewise for param "insn".
1797 (fill_simple_delay_slots): Likewise for local "new_label"; use
1798 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1799 (label_before_next_insn): Strengthen return type and local "insn"
1800 from rtx to rtx_insn *.
1801 (relax_delay_slots): Likewise for locals "other", "tmp".
1802 (make_return_insns): Likewise for param "first" and locals "insn",
1803 "jump_insn", "prev". Move declaration of "pat" to its assignment
1804 and strengthen from rtx to rtx_sequence *. Use its methods for
1805 clarity and typesafety.
1806 * rtlanal.c (no_labels_between_p): Strengthen params from
1807 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
1809 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1810 from const_rtx to const rtx_insn *.
1811 (reg_set_between_p): Rename param "from_insn" to
1812 "uncast_from_insn", and reintroduce "from_insn" as a
1813 const rtx_insn * via a checked cast.
1814 (modified_between_p): Likewise for param "start" as "uncast_start".
1815 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1816 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1817 "tmp", head" from rtx to rtx_insn *.
1818 (recompute_rev_top_order): Likewise for local "insn".
1819 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1820 * store-motion.c (build_store_vectors): Likewise for local "insn".
1821 Strengthen local "st" from rtx to rtx_insn_list * and use methods
1822 for clarity and typesafety.
1823 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1825 (computation_cost): Likewise for local "seq".
1826 (get_address_cost): Likewise.
1828 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1830 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1832 (label_is_jump_target_p): Likewise for second param.
1834 * rtlanal.c (tablejump_p): Likewise for param "insn".
1835 (label_is_jump_target_p): Likewise for param "jump_insn".
1837 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1839 * rtl.h (find_first_parameter_load): Strengthen return type and
1840 both params from rtx to rtx_insn *.
1841 * rtlanal.c (find_first_parameter_load): Strengthen return type,
1842 both params and locals "before", "first_set" from rtx to
1843 rtx_insn *. Remove now-redundant cast.
1844 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
1846 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1848 * rtl.h (find_last_value): Delete.
1849 * rtlanal.c (find_last_value): Delete.
1851 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1853 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
1854 from rtx to rtx_insn *.
1855 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
1856 rtx "note" with new local rtx_insn * "new_head" when calculating
1857 head insn of new basic block.
1858 * combine.c (combine_split_insns): Strengthen return type and local
1859 "ret" from rtx to rtx_insn *.
1860 (likely_spilled_retval_p): Likewise for locals "use" and "p".
1861 (try_combine): Eliminate local "m_split", splitting into new
1862 locals "m_split_insn" and "m_split_pat".
1863 (find_split_point): Strengthen local "seq" from rtx into
1865 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
1866 locals "label", "branch".
1867 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
1869 (define_expand "umulsi3_highpart"): Likewise for local "insn".
1870 * dse.c (note_add_store_info): Likewise for fields "first",
1872 (note_add_store): Likewise for local "insn".
1873 (emit_inc_dec_insn_before): Likewise for locals "insn",
1875 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
1876 (replace_read): Likewise for locals "insns", "this_insn".
1877 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
1878 (notice_eh_throw): Likewise for param "insn".
1879 (before_next_cfi_note): Likewise for return type, param, and local
1881 (connect_traces): Likewise for local "note".
1882 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
1883 (verify_rtl_sharing): Likewise.
1884 (unshare_all_rtl_in_chain): Likewise for param "insn".
1885 (get_first_nonnote_insn): Likewise for local "insn".
1886 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
1887 "seq" and use its methods to clarify things.
1888 (next_insn): Strengthen return type from rtx to rtx_insn *.
1889 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
1890 local rtx_insn * using a checked cast, dropping a checked cast
1891 made redundant by this change. Use a cast to and method of
1892 rtx_sequence to clarify the code.
1893 (previous_insn): Rename param "insn" to "uncast_insn" and
1894 reintroduce "insn" as a local rtx_insn * using a checked cast,
1895 dropping a checked cast made redundant by this change. Use a cast
1896 to and method of rtx_sequence to clarify the code.
1897 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
1898 reintroduce "insn" as a local rtx_insn * using a checked cast,
1899 dropping a checked cast made redundant by this change.
1900 (next_nonnote_insn_bb): Likewise.
1901 (prev_nonnote_insn): Likewise.
1902 (prev_nonnote_insn_bb): Likewise.
1903 (next_nondebug_insn): Likewise.
1904 (prev_nondebug_insn): Likewise.
1905 (next_nonnote_nondebug_insn): Likewise.
1906 (prev_nonnote_nondebug_insn): Likewise.
1907 (next_real_insn): Likewise.
1908 (prev_real_insn): Likewise.
1909 (next_active_insn): Likewise.
1910 (prev_active_insn): Likewise.
1911 (next_cc0_user): Likewise. Use rtx_sequence and a method for
1913 (prev_cc0_setter): Likewise.
1914 (try_split): Rename param "trial" to "uncast_trial" and
1915 reintroduce "insn" as a local rtx_insn * using a checked cast,
1916 dropping checked casts made redundant by this change.
1917 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
1919 (remove_insn): Rename param "insn" to "uncast_insn" and
1920 reintroduce "insn" as a local rtx_insn * using a checked cast.
1921 (emit_pattern_after_setloc): Likewise for param "after", as
1923 (emit_pattern_after): Likewise. Strengthen local "prev" from
1925 (emit_pattern_before_setloc): Rename param "before" to
1926 "uncast_before" and reintroduce "before" as a local rtx_insn *
1927 using a checked cast. Strengthen locals "first", "last" from
1929 (emit_pattern_before): Likewise rename/cast param "before" to
1930 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
1931 * except.c (copy_reg_eh_region_note_forward): Strengthen param
1932 "first" and local "insn" from rtx to rtx_insn *.
1933 (copy_reg_eh_region_note_backward): Likewise for param "last"
1935 * expr.c (fixup_args_size_notes): Rename param "last" to
1936 "uncast_last" and reintroduce "last" as a local rtx_insn *
1937 using a checked cast. Strengthen local "insn" from rtx to
1939 * function.c (set_insn_locations): Strengthen param "insn" from
1941 (record_insns): Likewise for param "insns" and local "tmp".
1942 (active_insn_between): Rename param "tail" to
1943 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
1944 using a checked cast.
1945 (thread_prologue_and_epilogue_insns): Split out top-level local
1946 rtx "seq" into three different rtx_insn * locals. Strengthen
1947 local "prologue_seq" from rtx to rtx_insn *.
1948 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
1949 from rtx to rtx_insn *.
1950 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1951 (priority): Likewise for locals "prev_first", "twin".
1952 (setup_insn_max_reg_pressure): Likewise for param "after".
1953 (sched_setup_bb_reg_pressure_info): Likewise.
1954 (no_real_insns_p): Strengthen params from const_rtx to
1956 (schedule_block): Strengthen local "next_tail" from rtx to
1958 * ifcvt.c (find_active_insn_before): Strengthen return type and
1959 param "insn" from rtx to rtx_insn *.
1960 (find_active_insn_after): Likewise.
1961 (cond_exec_process_insns): Likewise for param "start" and local "insn".
1962 (cond_exec_process_if_block): Likewise for locals "then_start",
1963 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
1964 (noce_process_if_block): Likewise for local "jump".
1965 (merge_if_block): Likewise for two locals named "end".
1966 (cond_exec_find_if_block): Likewise for local "last_insn".
1967 * jump.c (delete_related_insns): Rename param "insn" to
1968 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
1969 checked cast. Strengthen local "p" from rtx to rtx_insn *.
1970 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
1972 (split_reg): Likewise.
1973 * lra.c (lra_process_new_insns): Likewise.
1974 * modulo-sched.c (permute_partial_schedule): Strengthen param
1975 "last" from rtx to rtx_insn *.
1976 * optabs.c (add_equal_note): Likewise for param "insns" and local
1978 (expand_binop_directly): Add checked casts to rtx_insn * within
1979 NEXT_INSN (pat) uses.
1980 (expand_unop_direct): Likewise.
1981 (maybe_emit_unop_insn): Likewise.
1982 * recog.c (peep2_attempt): Strengthen locals "last",
1983 "before_try", "x" from rtx to rtx_insn *.
1984 * reorg.c (optimize_skip): Strengthen return type and local
1985 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
1986 and locals "trial", "next_trial" from rtx to rtx_insn *.
1987 * resource.c (next_insn_no_annul): Strengthen return type and
1988 param "insn" from rtx to rtx_insn *. Use a cast to and method of
1989 rtx_sequence to clarify the code.
1990 (mark_referenced_resources): Add a checked cast to rtx_insn *
1991 within PREV_INSN (x).
1992 (find_dead_or_set_registers): Strengthen return type, param
1993 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
1994 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
1996 (mark_target_live_regs): Strengthen params "insns" and "target",
1997 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
1998 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2000 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2001 from rtx to rtx_insn *.
2002 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2003 from rtx to rtx_insn *.
2004 (copy_reg_eh_region_note_backward): Likewise.
2005 (unshare_all_rtl_in_chain): Likewise for sole param.
2006 (dump_rtl_slim): Strengthen second and third params from const_rtx
2007 to const rtx_insn *.
2008 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2009 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2010 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2011 "next_tail" from rtx to rtx_insn *.
2012 (begin_move_insn): Likewise for local "next".
2013 * sched-int.h (sched_free_deps): Likewise for first and second
2015 (no_real_insns_p): Strengthen both params from const_rtx to
2017 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2019 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2021 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2022 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2023 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2025 (debug_rtl_slim): Strengthen params "first" and "last" from
2026 const_rtx to const rtx_insn *.
2027 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2028 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2029 (convert_to_simple_return): Likewise for param "returnjump".
2030 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2032 (convert_to_simple_return): Likewise for param "returnjump".
2033 * valtrack.c (propagate_for_debug): Likewise for params
2035 * valtrack.h (propagate_for_debug): Likewise for second param.
2037 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2039 * output.h (insn_current_reference_address): Strengthen param
2040 from rtx to rtx_insn *.
2041 * final.c (insn_current_reference_address): Likewise.
2043 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2045 * basic-block.h (inside_basic_block_p): Strengthen param from
2046 const_rtx to const rtx_insn *.
2047 * cfgbuild.c (inside_basic_block_p): Likewise.
2049 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2051 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2053 (get_trace_info): Likewise for param "insn".
2054 (save_point_p): Likewise.
2055 (maybe_record_trace_start): Likewise for both params.
2056 (maybe_record_trace_start_abnormal): Likewise.
2057 (create_trace_edges): Likewise for sole param and for three of the
2059 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2060 to rtx_insn *, and update a call to pat->element to pat->insn.
2062 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2064 * function.h (struct expr_status): Convert field "x_forced_labels"
2065 from rtx_expr_list * to rtx_insn_list *.
2067 * cfgbuild.c (make_edges): Convert local "x" from an
2068 rtx_expr_list * to an rtx_insn_list *, replacing use of
2069 "element" method with "insn" method.
2070 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2071 * except.c (sjlj_emit_dispatch_table): Replace use of
2072 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2074 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2075 rtx_expr_list * to an rtx_insn_list *, replacing use of
2076 "element" method with "insn" method.
2077 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2078 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2079 rtx_insn *, adding a checked cast. Replace use of
2080 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2082 (expand_label): Likewise for local "label_r".
2084 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2086 * function.h (struct rtl_data): Convert field
2087 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2089 * rtl.h (remove_node_from_insn_list): New prototype.
2091 * builtins.c (expand_builtin): When prepending to
2092 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2094 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2095 to rtx_insn_list *, and use its "insn" method rather than
2097 * cfgrtl.c (delete_insn): Use new function
2098 remove_node_from_insn_list rather than
2099 remove_node_from_expr_list.
2100 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2101 to rtx_insn_list *, and use its "insn" method rather than
2103 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2104 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2105 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2106 from remove_node_from_expr_list.
2107 * stmt.c (expand_label): When prepending to
2108 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2111 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2113 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2114 and "x_naked_return_label" from rtx to rtx_code_label *.
2116 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2118 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2119 (SET_NEXT_INSN): Likewise.
2120 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2122 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2123 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2124 to split out the SEQUENCE from local "bundle", strengthening the
2125 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2126 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2127 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2128 and the type of the elements of the "slot" array from rtx to
2130 (reorg_split_calls): Likewise for locals "insn" and "next", and
2131 the type of the elements of the "slot" array.
2133 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2135 (frv_function_prologue): Likewise for locals "insn", "next",
2137 (frv_register_nop): Introduce a local "nop_insn" to be the
2138 rtx_insn * containing rtx "nop".
2140 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2141 used as an insn and sometimes as a pattern, so rename it to
2142 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2143 using it where dealing with the core insn.
2145 * config/picochip/picochip.c (reorder_var_tracking_notes):
2146 Strengthen locals "insn", "next", "last_insn", "queue",
2147 "next_queue", "prev" from rtx to rtx_insn *.
2149 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2150 the second param is an rtx_insn ** rather than an rtx **.
2151 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2152 from rtx to rtx_sequence *, and introduce local named "sequence",
2153 using methods of rtx_sequence to clarify the code.
2154 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2156 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2157 Rename param "after" to "uncast_after", reintroducing "after" as a
2158 local rtx_insn * with a checked cast.
2159 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2160 reintroducing "after" as a local rtx_insn * with a checked cast.
2161 Strengthen local "last" from rtx to rtx_insn * and remove the
2162 now-redundant checked casts.
2163 (copy_delay_slot_insn): Strengthen return type and param from rtx
2166 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2167 "last" from rtx to rtx_insn *.
2169 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2171 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2172 param from rtx to rtx_insn *.
2174 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2176 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2177 and local "insn" from rtx to rtx_insn *.
2178 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2179 (unfilled_slots_next): Likewise.
2180 (function_return_label): Strengthen from rtx to rtx_code_label *.
2181 (function_simple_return_label): Likewise.
2182 (first_active_target_insn): Strengthen return type and param from
2184 (find_end_label): Strengthen return type from rtx to
2185 rtx_code_label *; strengthen locals as appropriate.
2186 (emit_delay_sequence): Strengthen return type, param "insn" and
2187 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2188 and local "li" from rtx to rtx_insn_list *, using methods of
2189 rtx_insn_list for clarity and typesafety.
2190 (add_to_delay_list): Strengthen return type and param "insn" from
2191 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2192 rtx_insn_list * and use methods of rtx_insn_list.
2193 (delete_from_delay_slot): Strengthen return type, param "insn",
2194 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2195 Strengthen local "seq" from rtx to rtx_sequence *, and local
2196 "delay_list" from rtx to rtx_insn_list *, using methods of
2197 rtx_sequence for clarity and type-safety.
2198 (delete_scheduled_jump): Add checked cast when invoking
2199 delete_from_delay_slot. Strengthen local "trial" from rtx to
2201 (optimize_skip): Strengthen return type and local "delay_list"
2202 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2204 (steal_delay_list_from_target): Strengthen return type, param
2205 "delay_list" and local "new_delay_list" from rtx to
2206 rtx_insn_list *. Strengthen param "seq" from rtx to
2207 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
2209 Split out local "temp" into multiple more-tightly scoped locals:
2210 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
2211 of rtx_insn_list and rtx_sequence for clarity and typesafety.
2212 Strengthen locals named "trial" from rtx to rtx_insn *.
2213 (steal_delay_list_from_fallthrough): Strengthen return type and
2214 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
2215 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
2216 Strengthen local "trial" from rtx to rtx_insn *.
2217 (try_merge_delay_insns): Strength local "merged_insns" from rtx
2218 to rtx_insn_list * and use its methods. Strengthen local "pat"
2219 from rtx to rtx_sequence * and use its methods. Strengthen locals
2220 "dtrial" and "new_rtx" from rtx to rtx_insn *.
2221 (get_label_before): Strengthen return type and local "label" from
2223 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
2224 "next_trial", "next", prev". Strengthen local "delay_list" from
2225 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
2227 (follow_jumps): Strengthen return type, param "label" and locals
2228 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
2229 (fill_slots_from_thread): Strengthen return type, param
2230 "delay_list" from rtx to rtx_insn_list *. Strengthen params
2231 "insn", "thread", "opposite_thread" and locals "new_thread",
2232 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
2233 "sequence" from a checked cast to rtx_sequence so that we can call
2234 steal_delay_list_from_target and steal_delay_list_from_fallthrough
2235 with an rtx_sequence *.
2236 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
2237 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
2238 Strengthen local "delay_list" from rtx to rtx_insn_list *.
2239 (relax_delay_slots): Strengthen param "first" and locals "insn",
2240 "next", "trial", "delay_insn", "target_label" from rtx to
2241 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
2242 Introduce a local "trial_seq" for PATTERN (trial) of type
2243 rtx_sequence *, in both cases using methods of rtx_sequence.
2244 (dbr_schedule): Strengthen param "first" and locals "insn",
2245 "next", "epilogue_insn" from rtx to rtx_insn *.
2247 2014-08-28 Richard Biener <rguenther@suse.de>
2249 PR tree-optimization/62283
2250 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2251 Do not peel loops for alignment where the vector loop likely
2252 doesn't run at least VF times.
2254 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2256 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
2257 important_candidates. Consider all important candidates if
2258 IVS doesn't give any result. Remove check on ivs->upto.
2259 (try_add_cand_for): Call iv_ca_add_use only once.
2261 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2262 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2263 Anna Tikhonova <anna.tikhonova@intel.com>
2264 Ilya Tocar <ilya.tocar@intel.com>
2265 Andrey Turetskiy <andrey.turetskiy@intel.com>
2266 Ilya Verbin <ilya.verbin@intel.com>
2267 Kirill Yukhin <kirill.yukhin@intel.com>
2268 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2270 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
2271 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
2273 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
2274 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2275 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2276 (define_insn "*mul<mode>3"): Add EVEX version.
2278 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2280 Anna Tikhonova <anna.tikhonova@intel.com>
2281 Ilya Tocar <ilya.tocar@intel.com>
2282 Andrey Turetskiy <andrey.turetskiy@intel.com>
2283 Ilya Verbin <ilya.verbin@intel.com>
2284 Kirill Yukhin <kirill.yukhin@intel.com>
2285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2287 * config/i386/sse.md
2288 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
2289 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
2290 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
2291 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
2292 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
2293 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
2294 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
2295 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
2296 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
2297 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
2298 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
2299 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
2300 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
2301 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
2302 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
2303 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
2305 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2306 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2307 Anna Tikhonova <anna.tikhonova@intel.com>
2308 Ilya Tocar <ilya.tocar@intel.com>
2309 Andrey Turetskiy <andrey.turetskiy@intel.com>
2310 Ilya Verbin <ilya.verbin@intel.com>
2311 Kirill Yukhin <kirill.yukhin@intel.com>
2312 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2314 * config/i386/sse.md
2315 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
2316 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
2317 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
2319 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2321 Anna Tikhonova <anna.tikhonova@intel.com>
2322 Ilya Tocar <ilya.tocar@intel.com>
2323 Andrey Turetskiy <andrey.turetskiy@intel.com>
2324 Ilya Verbin <ilya.verbin@intel.com>
2325 Kirill Yukhin <kirill.yukhin@intel.com>
2326 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2328 * config/i386/sse.md
2329 (define_mode_iterator VI128_256): New.
2330 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2332 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2333 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2334 Anna Tikhonova <anna.tikhonova@intel.com>
2335 Ilya Tocar <ilya.tocar@intel.com>
2336 Andrey Turetskiy <andrey.turetskiy@intel.com>
2337 Ilya Verbin <ilya.verbin@intel.com>
2338 Kirill Yukhin <kirill.yukhin@intel.com>
2339 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2341 * config/i386/sse.md
2342 (define_mode_iterator VI8_256_512): New.
2343 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
2345 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2346 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
2348 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
2350 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2352 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
2353 pointer to the cumulative reloc value and return the value for
2355 (compute_reloc_for_rtx): Take a const_rtx. Call
2356 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
2357 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
2358 for_each_rtx for the CONST case.
2360 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2362 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
2363 (mark_constants_in_pattern): ...this new function to iterate over
2365 (mark_constants): Update accordingly.
2367 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2369 * varasm.c: Include rtl-iter.h.
2370 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
2371 Remove the pointer to the cumulative hashval_t and just return
2372 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
2373 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2374 Accumulate the hashval_ts here instead of const_rtx_hash_1.
2376 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2378 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
2379 Give real type of data parameter. Remove return value.
2380 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
2381 to iterate over subrtxes.
2383 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2385 * var-tracking.c (use_narrower_mode_test): Turn from being a
2386 for_each_rtx callback to being a function that examines each
2388 (adjust_mems): Update accordingly.
2390 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2392 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
2393 callback to being a function that examines each subrtx itself.
2394 Remove handling of null rtxes.
2395 (add_uses): Update accordingly.
2397 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2399 * var-tracking.c: Include rtl-iter.h.
2400 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
2401 to being a function that examines each subrtx itself.
2402 (use_type): Update accordingly.
2404 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2406 * store-motion.c: Include rtl-iter.h.
2407 (extract_mentioned_regs_1): Delete.
2408 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
2409 for_each_rtx to iterate over subrtxes.
2411 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2413 * sel-sched.c: Include rtl-iter.h
2414 (count_occurrences_1): Delete.
2415 (count_occurrences_equiv): Turn rtxes into const_rtxes.
2416 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2418 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2420 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
2421 * rtlanal.c (tls_referenced_p_1): Delete.
2422 (tls_referenced_p): Take a const_rtx rather than an rtx.
2423 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2425 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2427 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
2428 (for_each_inc_dec): Take an rtx rather than an rtx *.
2429 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
2430 (cselib_record_sets): Likewise.
2431 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
2432 (check_for_inc_dec): Likewise.
2433 * rtlanal.c (for_each_inc_dec_ops): Delete.
2434 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
2435 rather than a pointer to the memory address. Replace
2436 for_each_inc_dec_ops argument with separate function and data
2437 arguments. Abort on non-autoinc addresses.
2438 (for_each_inc_dec_find_mem): Delete.
2439 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
2440 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
2442 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2444 * rtl.h (find_all_hard_regs): Declare.
2445 * rtlanal.c (find_all_hard_regs): New function.
2446 (record_hard_reg_uses_1): Delete.
2447 (record_hard_reg_uses): Use find_all_hard_regs.
2449 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2451 * rtl.h (replace_label_data): Delete.
2452 (replace_label): Take the old label, new label and update-nuses flag
2453 as direct arguments. Return void.
2454 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
2455 * rtlanal.c (replace_label): Update interface as above. Handle
2456 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
2457 iterator. Use FOR_EACH_SUBRTX_PTR.
2459 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2461 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
2462 with const_rtx parameters.
2463 * varasm.c (get_pool_constant): Likewise.
2464 * rtlanal.c (rtx_referenced_p_1): Delete.
2465 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2466 Assert that the rtx we're looking for is nonnull. Allow searches
2467 for constant pool SYMBOL_REFs.
2469 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2471 * reload1.c: Include rtl-iter.h.
2472 (note_reg_elim_costly): Turn from being a for_each_rtx callback
2473 to being a function that examines each subrtx itself.
2474 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
2476 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2478 * regcprop.c (cprop_find_used_regs_1): Delete.
2479 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2481 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2483 * regcprop.c: Include rtl-iter.h.
2484 (kill_value): Take a const_rtx.
2485 (kill_autoinc_value): Turn from being a for_each_rtx callback
2486 to being a function that examines each subrtx itself.
2487 (copyprop_hardreg_forward_1): Update accordingly.
2489 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2491 * reg-stack.c: Include rtl-iter.h.
2492 (subst_stack_regs_in_debug_insn): Delete.
2493 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2494 instead of for_each_rtx.
2496 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2498 * lower-subreg.c (find_decomposable_subregs): Turn from being
2499 a for_each_rtx callback to being a function that examines each
2500 subrtx itself. Remove handling of null rtxes.
2501 (decompose_multiword_subregs): Update accordingly.
2503 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2505 * lower-subreg.c (adjust_decomposed_uses): Delete.
2506 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2507 Remove handling of null rtxes.
2509 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2511 * lower-subreg.c: Include rtl-iter.h.
2512 (resolve_subreg_use): Turn from being a for_each_rtx callback
2513 to being a function that examines each subrtx itself. Remove
2514 handling of null rtxes.
2515 (resolve_reg_notes, resolve_simple_move): Update accordingly.
2516 (decompose_multiword_subregs): Likewise.
2518 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2520 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2521 to being a function that examines each subrtx itself.
2522 (simplify_using_condition, simplify_using_initial_values): Update
2525 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2527 * loop-iv.c: Include rtl-iter.h.
2528 (find_single_def_src): New function.
2529 (replace_single_def_regs): Turn from being a for_each_rtx callback
2530 to being a function that examines each subrtx itself.
2531 (replace_in_expr, simplify_using_initial_values): Update accordingly.
2533 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2535 * jump.c (eh_returnjump_p_1): Delete.
2536 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2537 Remove handling of null rtxes.
2539 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2541 * jump.c: Include rtl-iter.h.
2542 (returnjump_p_1): Delete.
2543 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2544 Remove handling of null rtxes.
2546 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2548 * ira.c: Include rtl-iter.h.
2549 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2550 to being a function that examines each subrtx itself. Remove
2551 handling of null rtxes.
2552 (update_equiv_regs): Update call accordingly.
2554 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2556 * fwprop.c: Include rtl-iter.h.
2557 (varying_mem_p): Turn from being a for_each_rtx callback to being
2558 a function that examines each subrtx itself.
2559 (propagate_rtx): Update accordingly.
2561 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2563 * function.c: Include rtl-iter.h
2564 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2565 callback to being a function that examines each subrtx itself.
2566 Return the changed flag.
2567 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2568 (instantiate_virtual_regs): Update calls accordingly.
2570 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2572 * final.c: Include rtl-iter.h.
2573 (mark_symbol_ref_as_used): Delete.
2574 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2577 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2579 * emit-rtl.c: Include rtl-iter.h.
2580 (find_auto_inc): Turn from being a for_each_rtx callback to being
2581 a function that examines each subrtx itself. Assume the first operand
2582 to an RTX_AUTOINC is the automodified register.
2583 (try_split): Update call accordingly.
2585 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2587 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2588 Return a bool, inverting the result so that 0/false means "not ok".
2589 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2590 subrtxes of a CONST.
2591 (mem_loc_descriptor, add_const_value_attribute)
2592 (resolve_addr_in_expr): Update calls accordingly.
2594 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2596 * dwarf2out.c: Include rtl-iter.h.
2597 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2598 Remove unused data parameter. Return a bool, inverting the result
2599 so that 0/false means "not ok".
2600 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
2601 instead of for_each_rtx.
2603 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2605 * dse.c: Include rtl-iter.h.
2606 (check_mem_read_rtx): Change void * parameter to real type.
2607 Remove return value.
2608 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
2609 for_each_rtx. Don't handle null rtxes.
2611 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2613 * df-problems.c: Include rtl-iter.h.
2614 (find_memory): Turn from being a for_each_rtx callback to being
2615 a function that examines each subrtx itself. Continue to look for
2616 volatile references even after a nonvolatile one has been found.
2617 (can_move_insns_across): Update calls accordingly.
2619 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2621 * ddg.c (walk_mems_2, walk_mems_1): Delete.
2622 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2623 to iterate over subrtxes. Return a bool rather than an int.
2625 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2627 * ddg.c: Include rtl-iter.h.
2628 (mark_mem_use_1): Rename to...
2629 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
2630 instead of for_each_rtx.
2631 (mem_read_insn_p): Update accordingly.
2633 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2635 * cse.c (change_cc_mode_args): Delete.
2636 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2637 a function that examines each subrtx itself. Take the fields of
2638 change_cc_mode_args as argument and return void.
2639 (cse_change_cc_mode_insn): Update calls accordingly.
2641 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2643 * cse.c (is_dead_reg): Change argument to const_rtx.
2644 (dead_debug_insn_data): Delete.
2645 (is_dead_debug_insn): Expand commentary. Turn from being a
2646 for_each_rtx callback to being a function that examines
2647 each subrtx itself. Take the fields of dead_debug_insn_data
2649 (delete_trivially_dead_insns): Update call accordingly.
2651 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2653 * cse.c (check_for_label_ref): Move earlier in file. Turn from
2654 being a for_each_rtx callback to being a function that examines
2656 (cse_extended_basic_block): Update call accordingly.
2658 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2660 * cse.c (check_dependence_data): Delete.
2661 (check_dependence): Change from being a for_each_rtx callback to being
2662 a function that examines all subrtxes itself. Don't handle null rtxes.
2663 (invalidate): Update call accordingly.
2665 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2667 * cse.c: Include rtl-iter.h.
2668 (approx_reg_cost_1): Delete.
2669 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2670 Don't handle null rtxes.
2672 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2674 * cfgcleanup.c: Include rtl-iter.h.
2675 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2676 to being a function that examines each subrtx itself.
2677 (thread_jump): Update accordingly.
2679 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2681 * combine-stack-adj.c: Include rtl-iter.h.
2682 (record_stack_refs_data): Delete.
2683 (record_stack_refs): Turn from being a for_each_rtx callback
2684 to being a function that examines each subrtx itself.
2685 Take a pointer to the reflist. Invert sense of return value
2686 so that true means success and false means failure. Don't
2688 (combine_stack_adjustments_for_block): Update accordingly.
2690 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2692 * combine.c (record_truncated_value): Turn from being a for_each_rtx
2693 callback to a function that takes an rtx and returns a bool
2694 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2697 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2699 * combine.c: Include rtl-iter.h.
2700 (unmentioned_reg_p_1): Delete.
2701 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2702 Don't handle null rtxes.
2704 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2706 * calls.c: Include rtl-iter.h.
2707 (internal_arg_pointer_based_exp_1): Delete.
2708 (internal_arg_pointer_based_exp): Take a const_rtx.
2709 Use FOR_EACH_SUBRTX to iterate over subrtxes.
2711 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2713 * caller-save.c: Include rtl-iter.h.
2714 (add_used_regs_1): Delete.
2715 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2716 to iterate over subrtxes. Assert that any remaining pseudos
2719 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2721 * bt-load.c: Include rtl-iter.h.
2722 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2723 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
2724 to iterate over subrtxes.
2725 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2726 find_btr_use rather than btr_referenced_p.
2728 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2730 * alias.c: Include rtl-iter.h.
2731 (refs_newer_value_cb): Delete.
2732 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2734 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2736 * rtl-iter.h: New file.
2737 * rtlanal.c: Include it.
2738 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2739 (generic_subrtx_iterator <T>::add_single_to_queue)
2740 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2741 (generic_subrtx_iterator <T>::free_array): New functions.
2742 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2743 (generic_subrtx_iterator <const_rtx_accessor>)
2744 (generic_subrtx_iterator <rtx_var_accessor>
2745 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2746 (setup_reg_subrtx_bounds): New function.
2747 (init_rtlanal): Call it.
2749 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
2752 * config/sh/sh.md (ashlsi3): Handle negative shift count for
2754 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2756 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
2758 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2760 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2762 * rtl.h (JUMP_LABEL_AS_INSN): New.
2764 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2766 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2768 (alloc_EXPR_LIST): Strengthen return type from rtx to
2770 (remove_free_EXPR_LIST_node): Likewise for param.
2771 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2772 from rtx to rtx_expr_list *.
2773 * sched-int.h (struct deps_desc): Strengthen fields
2774 "pending_read_mems" and "pending_write_mems" from rtx to
2777 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2778 rtx to rtx_expr_list *.
2779 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2780 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2782 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
2783 from rtx to rtx_expr_list *.
2784 * loop-iv.c (simplify_using_initial_values): Strengthen local
2785 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2786 "pnote_next" from rtx * to rtx_expr_list **.
2787 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
2788 param "exprp" from rtx * to rtx_expr_list **.
2789 (add_insn_mem_dependence): Strengthen local "mem_list" from
2790 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
2792 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2793 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
2794 param "old_mems_p" from rtx * to rtx_expr_list **.
2795 * var-tracking.c (struct adjust_mem_data): Strengthen field
2796 "side_effects" from rtx to rtx_expr_list *.
2797 (adjust_insn): Replace NULL_RTX with NULL when assigning to
2799 (prepare_call_arguments): Likewise.
2801 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2803 * function.h (struct rtl_data): Strengthen field
2804 "x_stack_slot_list" from rtx to rtx_expr_list *.
2806 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2807 when assigning to stack_slot_list.
2809 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2811 * function.h (struct rtl_data): Strengthen field
2812 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2813 * rtl.h (remove_node_from_expr_list): Strengthen second param from
2814 rtx * to rtx_expr_list **.
2816 * cfgbuild.c (make_edges): In loop over
2817 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2818 rtx_expr_list *, and use methods of the latter class to clarify
2820 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2821 rtx_expr_list *, and use methods of the latter class to clarify
2823 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2824 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2825 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2826 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
2827 to rtx_expr_list *. Use methods of the latter class to clarify
2830 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2832 * function.h (struct expr_status): Strengthen field
2833 "x_forced_labels" from rtx to rtx_expr_list *.
2835 * cfgbuild.c (make_edges): Split local "x" into two locals,
2836 strengthening one from rtx to rtx_expr_list *, and using methods
2838 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
2839 loop over forced_labels, introduce strengthen it from rtx to
2840 rtx_expr_list *, using methods to clarify the code.
2841 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
2842 to rtx_expr_list *, using methods of said class to clarify the
2844 * reload1.c (set_initial_label_offsets): Split local "x" into two
2845 per-loop variables, strengthening the first from rtx to
2846 rtx_expr_list * and using methods.
2848 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2850 * coretypes.h (class rtx_expr_list): Add forward declaration.
2851 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
2852 * gengenrtl.c (special_rtx): Add EXPR_LIST.
2853 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
2854 invariant: GET_CODE (X) == EXPR_LIST.
2855 (is_a_helper <rtx_expr_list *>::test): New.
2856 (rtx_expr_list::next): New.
2857 (rtx_expr_list::element): New.
2858 (gen_rtx_EXPR_LIST): New.
2860 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2862 * varasm.c (mark_constants): Convert a GET_CODE check into a
2863 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2864 Use methods of rtx_sequence to clarify the code.
2866 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2868 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
2869 local "seq" via a checked cast, and use methods of rtx_sequence
2870 to simplify the code.
2872 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2874 * resource.c (mark_referenced_resources): Strengthen local
2875 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
2876 using methods of rtx_sequence to clarify the code.
2877 (find_dead_or_set_registers): Within the switch statement, convert
2878 a GET_CODE check to a dyn_cast, introducing local "seq". Within
2879 the JUMP_P handling, introduce another local "seq", adding a
2880 checked cast to rtx_sequence *. In both cases, use methods of
2881 rtx_sequence to clarify the code.
2882 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
2883 via a checked cast, and use methods of rtx_sequence to simplify
2886 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2888 * reorg.c (redundant_insn): In two places in the function, replace
2889 a check of GET_CODE with a dyn_cast, introducing local "seq", and
2890 usings methods of rtx_sequence to clarify the code.
2892 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2894 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
2895 local "seq" with a checked cast, and use methods of rtx_sequence
2896 to clarify the code.
2898 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2900 * function.c (contains): Introduce local "seq" for PATTERN (insn),
2901 with a checked cast, in the region for where we know it's a
2902 SEQUENCE. Use methods of rtx_sequence.
2904 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2906 * final.c (get_attr_length_1): Replace GET_CODE check with a
2907 dyn_cast, introducing local "seq" and the use of methods of
2909 (shorten_branches): Likewise, introducing local "body_seq".
2910 Strengthen local "inner_insn" from rtx to rtx_insn *.
2911 (reemit_insn_block_notes): Replace GET_CODE check with a
2912 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
2913 Use methods of rtx_sequence.
2914 (final_scan_insn): Likewise, introducing local "seq" for when
2915 "body" is known to be a SEQUENCE, using its methods.
2917 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2919 * except.c (can_throw_external): Strengthen local "seq" from rtx
2920 to rtx_sequence *. Use methods of rtx_sequence.
2921 (insn_nothrow_p): Likewise.
2923 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2925 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
2926 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2927 Use methods of rtx_sequence.
2928 (scan_trace): Likewise for local "pat".
2930 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2932 * coretypes.h (class rtx_sequence): Add forward declaration.
2933 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
2934 invariant: GET_CODE (X) == SEQUENCE.
2935 (is_a_helper <rtx_sequence *>::test): New.
2936 (is_a_helper <const rtx_sequence *>::test): New.
2937 (rtx_sequence::len): New.
2938 (rtx_sequence::element): New.
2939 (rtx_sequence::insn): New.
2941 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2943 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
2945 (alloc_INSN_LIST): Strengthen return type from rtx to
2947 (copy_INSN_LIST): Likewise for return type and param.
2948 (concat_INSN_LIST): Likewise for both params and return type.
2949 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
2950 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
2951 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
2952 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
2954 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
2955 "implicit_sets", "control_uses", "clobbers" from rtx to
2957 (struct deps_desc): Likewise for fields "pending_read_insns",
2958 "pending_write_insns", "pending_jump_insns",
2959 "last_pending_memory_flush", "last_function_call",
2960 "last_function_call_may_noreturn", "sched_before_next_call",
2961 "sched_before_next_jump".
2962 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
2963 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
2965 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
2966 from rtx to rtx_insn_list *.
2967 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
2970 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
2971 to rtx_insn_list **.
2972 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
2974 (queue_insn): Likewise for local "link".
2975 (struct haifa_saved_data): Strengthen field "insn_queue" from
2976 rtx * to rtx_insn_list **.
2977 (save_backtrack_point): Update allocation of save->insn_queue to
2978 reflect the strengthening of elements from rtx to rtx_insn_list *.
2979 (queue_to_ready): Strengthen local "link" from rtx to
2980 rtx_insn_list *; use methods "next" and "insn" when traversing the
2982 (early_queue_to_ready): Likewise for locals "link", "next_link",
2984 (schedule_block): Update allocation of insn_queue to reflect the
2985 strengthening of elements from rtx to rtx_insn_list *. Strengthen
2986 local "link" from rtx to rtx_insn_list *, and use methods when
2988 (add_to_speculative_block): Strengthen locals "twins" and
2989 "next_node" from rtx to rtx_insn_list *, and use methods when
2990 working with them. Strengthen local "twin" from rtx to
2991 rtx_insn *, eliminating a checked cast.
2992 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
2993 from rtx to rtx_insn_list *, and use methods when working with
2996 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
2997 from rtx to rtx_insn_list *, adding a checked cast.
2998 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3000 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3001 "newlink" from rtx to rtx_insn_list *. Strengthen local
3002 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3003 from rtx to rtx_insn *.
3004 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3005 from rtx to rtx_insn_list *. Use methods of the latter class.
3006 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3007 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3008 (remove_free_INSN_LIST_node): Strengthen return type and local
3009 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3010 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3011 rtx_insn_list *, using "insn" method.
3013 * sched-deps.c (add_dependence_list): Strengthen param "list"
3014 from rtx to rtx_insn_list *, and use methods when working with it.
3015 (add_dependence_list_and_free): Strengthen param "listp" from
3016 rtx * to rtx_insn_list **.
3017 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3018 to rtx_insn_list **, and use methods when working with *listp.
3019 (remove_from_both_dependence_lists): Strengthen param "listp" from
3020 rtx * to rtx_insn_list **
3021 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3022 to rtx_insn_list **. Eliminate local "link", in favor of two new
3023 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3025 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3026 by introducing local "cond_deps".
3027 (remove_from_deps): Strengthen param "insn" from rtx to
3030 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3031 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3032 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3033 Use methods of rtx_insn_list.
3035 * store-motion.c (struct st_expr): Strengthen fields
3036 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3037 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3039 (find_moveable_store): Split out "tmp" into multiple more-tightly
3040 scoped locals. Use methods of rtx_insn_list *.
3041 (compute_store_table): Strengthen local "tmp" from rtx to
3042 rtx_insn *. Use methods of rtx_insn_list *.
3044 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3046 * coretypes.h (class rtx_insn_list): Add forward declaration.
3047 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3048 (is_a_helper <rtx_insn_list *>::test): New.
3049 (rtx_insn_list::next): New.
3050 (rtx_insn_list::insn): New.
3051 (gen_rtx_INSN_LIST): Add prototype.
3052 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3053 * gengenrtl.c (special_rtx): Add INSN_LIST.
3055 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3057 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3058 "prev" from rtx to rtx_insn *.
3060 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3062 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3063 functions. Require merely an rtx for now, not an rtx_insn *.
3064 (BLOCK_FOR_INSN): Likewise.
3065 (INSN_LOCATION): Likewise.
3066 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3068 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3070 * rtl.h (PATTERN): Convert this macro into a pair of inline
3071 functions, for now, requiring const_rtx and rtx.
3073 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3075 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3077 (final_postscan_insn): Likewise.
3078 (adjust_cost): Likewise.
3079 (adjust_priority): Likewise.
3080 (variable_issue): Likewise.
3081 (macro_fusion_pair_p): Likewise.
3082 (dfa_post_cycle_insn): Likewise.
3083 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3084 (first_cycle_multipass_issue): Likewise.
3085 (dfa_new_cycle): Likewise.
3086 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3087 (speculate_insn): Likewise for param "insn".
3088 (gen_spec_check): Likewise for params "insn" and "label".
3089 (get_insn_spec_ds): Likewise for param "insn".
3090 (get_insn_checked_ds): Likewise.
3091 (dispatch_do): Likewise.
3092 (dispatch): Likewise.
3093 (cannot_copy_insn_p): Likewise.
3094 (invalid_within_doloop): Likewise.
3095 (legitimate_combined_insn): Likewise.
3099 * doc/tm.texi: Automatically updated to reflect changes to
3102 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3104 (schedule_block): Likewise.
3105 (sched_init): Likewise.
3106 (sched_speculate_insn): Strengthen param "insn" from rtx to
3108 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3110 * hooks.c (hook_bool_rtx_true): Rename to...
3111 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3113 (hook_constcharptr_const_rtx_null): Rename to...
3114 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3115 first param from const_rtx to const rtx_insn *.
3116 (hook_bool_rtx_int_false): Rename to...
3117 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3118 param from rtx to rtx_insn *.
3119 (hook_void_rtx_int): Rename to...
3120 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3123 * hooks.h (hook_bool_rtx_true): Rename to...
3124 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3126 (hook_bool_rtx_int_false): Rename to...
3127 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3128 param from rtx to rtx_insn *.
3129 (hook_void_rtx_int): Rename to...
3130 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3132 (hook_constcharptr_const_rtx_null): Rename to...
3133 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3134 first param from const_rtx to const rtx_insn *.
3136 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3137 and local "prev" from rtx to rtx_insn *.
3139 * sched-int.h (sched_speculate_insn): Strengthen first param from
3142 * sel-sched.c (create_speculation_check): Likewise for local "label".
3143 * targhooks.c (default_invalid_within_doloop): Strengthen param
3144 "insn" from const_rtx to const rtx_insn *.
3145 * targhooks.h (default_invalid_within_doloop): Strengthen param
3146 from const_rtx to const rtx_insn *.
3148 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3149 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3151 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3153 (arc_invalid_within_doloop): Likewise, with const.
3155 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3156 (arm_cannot_copy_insn_p): Likewise for param "insn".
3157 (arm_unwind_emit): Likewise.
3159 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3162 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3163 (c6x_variable_issue): Likewise. Removed now-redundant checked
3165 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3167 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3168 Likewise for param "insn".
3169 (epiphany_mode_after): Likewise.
3170 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3171 params "insn", "dep_insn".
3172 (epiphany_mode_needed): Likewise for param "insn".
3173 (epiphany_mode_after): Likewise.
3175 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3176 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3177 (ix86_avx_u128_mode_needed): Likewise.
3178 (ix86_i387_mode_needed): Likewise.
3179 (ix86_mode_needed): Likewise.
3180 (ix86_avx_u128_mode_after): Likewise.
3181 (ix86_mode_after): Likewise.
3182 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3183 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3184 (ix86_adjust_priority): Likewise for param "insn".
3185 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3186 (do_dispatch): Likewise.
3187 (has_dispatch): Likewise.
3188 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3190 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3191 reflect renaming of default hook implementation from
3192 hook_constcharptr_const_rtx_null to
3193 hook_constcharptr_const_rtx_insn_null.
3194 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3196 (ia64_variable_issue): Likewise for param "insn".
3197 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3198 (ia64_dfa_new_cycle): Likewise.
3199 (ia64_get_insn_spec_ds): Likewise.
3200 (ia64_get_insn_checked_ds): Likewise.
3201 (ia64_speculate_insn): Likewise.
3202 (ia64_gen_spec_check): Likewise for params "insn", "label".
3203 (ia64_asm_unwind_emit): Likewise for param "insn".
3205 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3207 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
3209 (m68k_sched_variable_issue): Likewise for param "insn".
3211 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
3214 * config/microblaze/microblaze.c (microblaze_adjust_cost):
3215 Likewise for params "insn", "dep".
3217 * config/mips/mips.c (mips_adjust_cost): Likewise.
3218 (mips_variable_issue): Likewise for param "insn".
3219 (mips_final_postscan_insn): Likewise.
3221 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
3222 for params "insn", "dep".
3224 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
3226 (pa_adjust_priority): Likewise for param "insn".
3228 * config/picochip/picochip.c (picochip_sched_adjust_cost):
3229 Likewise for params "insn", "dep_insn".
3231 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
3233 (rs6000_variable_issue): Likewise.
3234 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
3235 (rs6000_debug_adjust_cost): Likewise.
3236 (rs6000_adjust_priority): Likewise for param "insn".
3237 (rs6000_use_sched_lookahead_guard): Likewise.
3238 (get_next_active_insn): Likewise for return type and both params.
3239 (redefine_groups): Likewise for params "prev_head_insn", "tail"
3240 and locals "insn", "next_insn".
3241 (pad_groups): Likewise.
3243 * config/s390/s390.c (s390_adjust_priority): Likewise for param
3245 (s390_cannot_copy_insn_p): Likewise.
3246 (s390_sched_variable_issue): Likewise for third param, eliminating
3248 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
3249 default hook implementation from hook_constcharptr_const_rtx_null
3250 to hook_constcharptr_const_rtx_insn_null.
3252 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
3253 from rtx to rtx_insn *.
3254 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
3255 (sh_variable_issue): Likewise for param "insn".
3256 (sh_dfa_new_cycle): Likewise.
3257 (sh_mode_needed): Likewise.
3258 (sh_mode_after): Likewise.
3260 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
3261 params "insn", "dep_insn".
3262 (hypersparc_adjust_cost): Likewise.
3263 (sparc_adjust_cost): Likewise.
3265 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
3266 param, eliminated checked cast.
3267 (spu_sched_adjust_cost): Likewise for first and third params.
3269 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
3270 params "insn" and "dep_insn" from rtx to rtx_insn *.
3272 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
3274 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3276 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
3277 (set_is_load_p): ...this, updating to work on a SET pattern rather
3279 (is_store_insn): Rename to...
3280 (set_is_store_p): ...this, updating to work on a SET pattern
3281 rather than an insn.
3282 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
3283 top of function to where it is needed. Rewrite the bogus
3284 condition that checks for "insn" and "dep" being PARALLEL to
3285 instead use single_set, introducing locals "insn_set" and
3286 "dep_set". Given that we only ever returned "cost" for a non-pair
3287 of SETs, bail out early if we don't have a pair of SET.
3288 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
3289 use the new locals "insn_set" and "dep_set", and update calls to
3290 is_load_insn and is_store_insn to be calls to set_is_load_p and
3293 2014-08-27 Guozhi Wei <carrot@google.com>
3296 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
3297 amount before using it.
3299 2014-08-27 Richard Biener <rguenther@suse.de>
3301 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
3302 get_maxval_strlen inside a more useful API.
3303 (gimple_fold_builtin_with_strlen): Remove and fold into ...
3304 (gimple_fold_builtin): ... caller.
3305 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
3306 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
3307 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
3308 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
3309 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
3310 gimple_fold_builtin_sprintf): Adjust to compute maxval
3313 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
3316 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
3318 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3320 Anna Tikhonova <anna.tikhonova@intel.com>
3321 Ilya Tocar <ilya.tocar@intel.com>
3322 Andrey Turetskiy <andrey.turetskiy@intel.com>
3323 Ilya Verbin <ilya.verbin@intel.com>
3324 Kirill Yukhin <kirill.yukhin@intel.com>
3325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3327 * config/i386/sse.md
3328 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
3329 Use `concat_tg_mode' attribute to determine asm register size.
3331 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3332 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3333 Anna Tikhonova <anna.tikhonova@intel.com>
3334 Ilya Tocar <ilya.tocar@intel.com>
3335 Andrey Turetskiy <andrey.turetskiy@intel.com>
3336 Ilya Verbin <ilya.verbin@intel.com>
3337 Kirill Yukhin <kirill.yukhin@intel.com>
3338 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3340 * config/i386/sse.md
3341 (define_mode_iterator VI48_AVX512VL): New.
3342 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
3343 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
3344 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
3345 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3346 with VI1): Change mode iterator.
3347 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3348 with VI_ULOADSTORE_BW_AVX512VL): New.
3349 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3350 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3351 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3352 with VI1): Change mode iterator.
3353 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3354 with VI_ULOADSTORE_BW_AVX512VL): New.
3355 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3356 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3357 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3358 with VI1): Change mode iterator.
3359 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3360 with VI_ULOADSTORE_BW_AVX512VL): New.
3361 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3362 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
3363 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
3364 (define_insn "<avx512>_storedqu<mode>_mask" with
3365 VI48_AVX512VL): New.
3366 (define_insn "<avx512>_storedqu<mode>_mask" with
3367 VI12_AVX512VL): Ditto.
3369 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3371 Anna Tikhonova <anna.tikhonova@intel.com>
3372 Ilya Tocar <ilya.tocar@intel.com>
3373 Andrey Turetskiy <andrey.turetskiy@intel.com>
3374 Ilya Verbin <ilya.verbin@intel.com>
3375 Kirill Yukhin <kirill.yukhin@intel.com>
3376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3378 * config/i386/sse.md
3379 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
3380 (define_mode_iterator VI48_AVX512BW): New.
3381 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
3382 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3383 with VI48_AVX2_48_AVX512F): New.
3384 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3385 with VI2_AVX512VL): Ditto.
3387 2014-08-27 Richard Biener <rguenther@suse.de>
3390 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
3391 (fold_builtin_3): Do not fold strcat_chk here.
3392 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
3394 (gimple_fold_builtin): Fold strcat_chk here.
3396 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
3398 * dwarf2out.h (dwarf2out_decl): Remove prototype.
3399 * dwarf2out.c (dwarf2out_decl): Make static.
3401 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
3403 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
3405 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3407 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
3408 from rtx to rtx_insn *.
3409 (cselib_lookup_from_insn): Likewise for final param.
3410 (cselib_subst_to_values_from_insn): Likewise.
3411 (cselib_add_permanent_equiv): Likewise.
3413 * cselib.c (cselib_current_insn): Likewise for this variable.
3414 (cselib_subst_to_values_from_insn): Likewise for param "insn".
3415 (cselib_lookup_from_insn): Likewise.
3416 (cselib_add_permanent_equiv): Likewise for param "insn" and local
3417 "save_cselib_current_insn".
3418 (cselib_process_insn): Replace use of NULL_RTX with NULL.
3420 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
3421 from rtx to rtx_insn *.
3423 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3425 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
3428 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3430 * df.h (df_dump_insn_problem_function): Strengthen first param of
3431 this callback from const_rtx to const rtx_insn *.
3432 (struct df_insn_info): Strengthen field "insn" from rtx to
3434 (DF_REF_INSN): Eliminate this function, reinstating the older
3436 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
3437 (df_reg_defined): Likewise.
3438 (df_find_use): Likewise.
3439 (df_reg_used): Likewise.
3440 (df_dump_insn_top): Strengthen param 1 from const_rtx to
3442 (df_dump_insn_bottom): Likewise.
3443 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
3444 (df_insn_debug_regno): Likewise.
3445 (debug_df_insn): Likewise.
3446 (df_rd_simulate_one_insn): Likewise for param 2.
3447 (df_word_lr_simulate_defs): Likewise for param 1.
3448 (df_word_lr_simulate_uses): Likewise.
3449 (df_md_simulate_one_insn): Likewise for param 2.
3450 (df_simulate_find_noclobber_defs): Likewise for param 1.
3451 (df_simulate_find_defs): Likewise.
3452 (df_simulate_defs): Likewise.
3453 (df_simulate_uses): Likewise.
3454 (df_simulate_one_insn_backwards): Likewise for param 2.
3455 (df_simulate_one_insn_forwards): Likewise.
3456 (df_uses_create): Likewise for param 2.
3457 (df_insn_create_insn_record): Likewise for param 1.
3458 (df_insn_delete): Likewise.
3459 (df_insn_rescan): Likewise.
3460 (df_insn_rescan_debug_internal): Likewise.
3461 (df_insn_change_bb): Likewise.
3462 (df_notes_rescan): Likewise.
3463 * rtl.h (remove_death): Likewise for param 2.
3464 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
3466 * sched-int.h (reemit_notes): Strengthen param from rtx to
3468 * valtrack.h (propagate_for_debug): Likewise for param 1.
3470 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
3471 local "tmp_rtx" from const_rtx to const rtx_insn *.
3472 * combine.c (remove_death): Strengthen param "insn" from rtx to
3474 (move_deaths): Likewise for local "where_dead".
3475 * cse.c (delete_trivially_dead_insns): Introduce local
3476 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
3477 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
3479 (df_reg_defined): Likewise.
3480 (df_find_use): Likewise.
3481 (df_reg_used): Likewise.
3482 (df_dump_insn_problem_data): Strengthen param "insn" from
3483 const_rtx to const rtx_insn *.
3484 (df_dump_insn_top): Likewise.
3485 (df_dump_insn_bottom): Likewise.
3486 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3487 (df_insn_debug_regno): Likewise.
3488 (debug_df_insn): Likewise.
3489 (DF_REF_INSN): Delete.
3490 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3491 from rtx to rtx_insn *.
3492 (df_chain_insn_top_dump): Strengthen param "insn" from
3493 const_rtx to const rtx_insn *.
3494 (df_chain_insn_bottom_dump): Likewise.
3495 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3497 (df_word_lr_simulate_uses): Likewise.
3498 (df_print_note): Likewise.
3499 (df_remove_dead_and_unused_notes): Likewise.
3500 (df_set_unused_notes_for_mw): Likewise.
3501 (df_set_dead_notes_for_mw): Likewise.
3502 (df_create_unused_note): Likewise.
3503 (df_simulate_find_defs): Likewise.
3504 (df_simulate_find_uses): Likewise.
3505 (df_simulate_find_noclobber_defs): Likewise.
3506 (df_simulate_defs): Likewise.
3507 (df_simulate_uses): Likewise.
3508 (df_simulate_one_insn_backwards): Likewise.
3509 (df_simulate_one_insn_forwards): Likewise.
3510 (df_md_simulate_one_insn): Likewise.
3511 * df-scan.c (df_uses_create): Likewise.
3512 (df_insn_create_insn_record): Likewise.
3513 (df_insn_delete): Likewise.
3514 (df_insn_rescan): Likewise.
3515 (df_insn_rescan_debug_internal): Likewise.
3516 (df_insn_change_bb): Likewise.
3517 (df_notes_rescan): Likewise.
3518 (df_refs_add_to_chains): Likewise.
3519 (df_insn_refs_verify): Likewise.
3520 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3521 when invoking df_insn_delete.
3522 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3523 (set_unique_reg_note): Add checked cast.
3524 * final.c (cleanup_subreg_operands): Likewise.
3525 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3526 "insn" from rtx to rtx_insn *.
3527 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3528 "last" from rtx to rtx_insn *.
3529 * ira-emit.c (change_regs_in_insn): New function.
3530 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3531 Invoke change_regs_in_insn rather than change_regs.
3532 * ira.c (update_equiv_regs): Strengthen locals "insn",
3533 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
3534 for_each_rtx_in_insn rather than for_each_rtx.
3535 * recog.c (confirm_change_group): Add checked casts.
3536 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3538 (peep2_fill_buffer): Add checked cast.
3539 * rtlanal.c (remove_note): Likewise.
3540 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3541 locals "next" "end" from rtx to rtx_insn *.
3543 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3545 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3547 (struct reg_use_data): Likewise for field "insn".
3548 (insn_cost): Likewise for param.
3549 (real_insn_for_shadow): Likewise for return type and param.
3550 (increase_insn_priority): Likewise for param 1.
3551 (debug_dependencies): Likewise for both params.
3553 * haifa-sched.c (insn_delay): Likewise for param "insn".
3554 (real_insn_for_shadow): Likewise for return type and param "insn".
3555 (update_insn_after_change): Likewise for param "insn".
3556 (recompute_todo_spec): Likewise for param "next" and locals "pro",
3558 (insn_cost): Likewise for param "insn".
3559 (increase_insn_priority): Likewise.
3560 (calculate_reg_deaths): Likewise.
3561 (setup_insn_reg_pressure_info): Likewise.
3562 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3563 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3564 (model_recompute): Likewise.
3565 (must_restore_pattern_p): Likewise for param "next".
3566 (model_excess_cost): Likewise for param "insn".
3567 (queue_remove): Likewise.
3568 (adjust_priority): Likewise for param "prev".
3569 (update_register_pressure): Likewise for param "insn".
3570 (setup_insn_max_reg_pressure): Likewise for local "insn".
3571 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3572 (model_add_to_schedule): Likewise.
3573 (model_reset_queue_indices): Likewise for local "insn".
3574 (unschedule_insns_until): Strengthen local "recompute_vec" from
3575 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
3576 "con" from rtx to rtx_insn *.
3577 (restore_last_backtrack_point): Likewise for both locals "x". Add
3579 (estimate_insn_tick): Likewise for param "insn".
3580 (commit_schedule): Likewise for params "prev_head", "tail" and
3582 (verify_shadows): Likewise for locals "i1", "i2".
3583 (dump_insn_stream): Likewise for params "head", "tail" and locals
3584 "next_tail", "insn".
3585 (schedule_block): Likewise for locals "insn", "x". Add a checked
3587 (fix_inter_tick): Likewise for params "head", "tail".
3588 (create_check_block_twin): Likewise for local "jump".
3589 (haifa_change_pattern): Likewise for param "insn".
3590 (haifa_speculate_insn): Likewise.
3591 (dump_new_block_header): Likewise for params "head", "tail".
3592 (fix_jump_move): Likewise for param "jump".
3593 (move_block_after_check): Likewise.
3594 (sched_init_insn_luid): Likewise for param "insn".
3595 (sched_init_luids): Likewise for local "insn".
3596 (insn_luid): Likewise for param "insn".
3597 (init_h_i_d): Likewise.
3598 (haifa_init_h_i_d): Likewise for local "insn".
3599 (haifa_init_insn): Likewise for param "insn".
3600 * sched-deps.c (add_dependence): Likewise for local "real_pro",
3602 (create_insn_reg_use): Likewise for param "insn".
3603 (setup_insn_reg_uses): Likewise. Add a checked cast.
3604 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3605 "tail" from rtx to rtx_insn *.
3606 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3607 "insn", "next_tail".
3609 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3611 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3612 from rtx to rtx_insn *.
3613 (model_add_to_schedule): Likewise for locals "start", "end",
3616 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3618 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3620 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
3621 "to" and locals "insn", "next", "copy". Remove now-redundant
3624 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3626 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3627 rtx_insn * and param 4 from rtx * to rtx_insn **.
3628 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3629 param 2 from rtx * to rtx_insn **.
3631 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3632 rtx_insn * and final param from rtx * to rtx_insn **.
3634 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3635 from rtx to rtx_insn *.
3636 (try_head_merge_bb): Likewise for both locals named "move_upto".
3637 * df-problems.c (can_move_insns_across): Likewise for params
3638 "from", "to", "across_from", "across_to" and locals "insn",
3639 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
3641 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3642 from rtx to rtx_insn *.
3643 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3644 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3645 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3647 (noce_try_abs): Likewise.
3648 (noce_get_condition): Likewise for param "jump". Strengthen param
3649 "earliest" from rtx * to rtx_insn **.
3650 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3652 (find_cond_trap): Likewise.
3653 (dead_or_predicable): Likewise for local "earliest".
3654 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
3656 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3657 and local "prev". Strengthen param "earliest" from rtx * to
3659 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3660 Strengthen param "earliest" from rtx * to rtx_insn **.
3662 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3664 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3665 "to" and local "insn" from rtx to rtx_insn *.
3667 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3669 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3670 from rtx to rtx_insn *.
3671 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3672 (code_motion_path_driver): Likewise for local "last_insn".
3673 (simplify_changed_insns): Likewise for local "insn".
3675 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3677 * rtl.h (push_to_sequence): Strengthen param from rtx to
3679 (push_to_sequence2): Likewise for both params.
3680 (delete_insns_since): Likewise for param.
3681 (reorder_insns_nobb): Likewise for all three params.
3682 (set_new_first_and_last_insn): Likewise for both params.
3684 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3685 rtx_insn *. Remove now-redundant cast.
3686 (set_last_insn): Likewise.
3688 * builtins.c (expand_builtin_return): Strengthen local
3689 "call_fusage" from rtx to rtx_insn *.
3690 * cfgrtl.c (create_basic_block_structure): Likewise for local
3692 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3693 "first", "last" and local "insn".
3694 (delete_insns_since): Likewise for param "from".
3695 (reorder_insns_nobb): Likewise for params "from", "to", "after"
3697 (push_to_sequence): Likewise for param "first" and local "last".
3698 (push_to_sequence2): Likewise for params "first" and "last".
3699 * lra.c (emit_add3_insn): Likewise for local "last".
3700 (lra_emit_add): Likewise.
3701 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3703 (process_address_1): Likewise for locals "insn", last".
3704 * modulo-sched.c (ps_first_note): Likewise for return type.
3705 * optabs.c (expand_binop_directly): Likewise for param "last".
3707 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3709 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3711 * emit-rtl.c (get_last_insn_anywhere): Likewise.
3713 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3715 * function.h (struct sequence_stack): Strengthen fields "first"
3716 and "last" from rtx to rtx_insn *.
3717 (struct emit_status): Likewise for fields "x_first_insn" and
3720 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3721 (set_first_insn): Add checked cast.
3722 (get_last_insn): Remove now-redundant checked cast.
3723 (set_last_insn): Add checked cast.
3725 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3726 "saved_first" and "saved_last" from rtx to rtx_insn *.
3728 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3730 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3731 (unlink_insn_chain): Strengthen both params from rtx to
3734 * cfgrtl.c (cfg_layout_function_header): Likewise for this
3736 (unlink_insn_chain): Likewise for params "first" and "last".
3737 Remove now-redundant checked cast.
3738 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3739 (fixup_reorder_chain): Strengthen local "insn" from rtx to
3741 * emit-rtl.c (link_insn_into_chain): Likewise for all three
3743 (add_insn): Likewise for param "insn" and local "prev".
3744 (add_insn_after_nobb): Likewise for both params and local "next".
3745 (add_insn_before_nobb): Likewise for both params and local "prev".
3746 (add_insn_after): Rename param "after" to "uncast_after",
3747 introducing local "after" with another checked cast.
3748 (add_insn_before): Rename params "insn" and "before", giving them
3749 "uncast_" prefixes, adding the old names back using checked casts.
3750 (emit_note_after): Likewise for param "after".
3751 (emit_note_before): Likewise for param "before".
3752 (emit_label): Add a checked cast.
3754 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3756 * cselib.h (cselib_record_sets_hook): Strengthen initial param
3757 "insn" from rtx to rtx_insn *.
3759 * cselib.c (cselib_record_sets_hook): Likewise.
3761 * var-tracking.c (add_with_sets): Likewise, renaming back from
3762 "uncast_insn" to "insn" and eliminating the checked cast from rtx
3765 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3767 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3768 and "header_" from rtx to rtx_insn *.
3769 (struct basic_block_d): Likewise for field "head_" within "x"
3770 field of union basic_block_il_dependent.
3771 (BB_HEAD): Drop function...
3772 (SET_BB_HEAD): ...and this function in favor of...
3773 (BB_HEAD): ...reinstate macro.
3774 (BB_END): Drop function...
3775 (SET_BB_END): ...and this function in favor of...
3776 (BB_END): ...reinstate macro.
3777 (BB_HEADER): Drop function...
3778 (SET_BB_HEADER): ...and this function in favor of...
3779 (BB_HEADER): ...reinstate macro.
3781 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3782 (fix_crossing_unconditional_branches): Likewise.
3783 * caller-save.c (save_call_clobbered_regs): Likewise.
3784 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3785 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3786 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3787 (merge_blocks_move_successor_nojumps): Likewise.
3788 (outgoing_edges_match): Update use of for_each_rtx to
3789 for_each_rtx_in_insn.
3790 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3791 (expand_gimple_cond): Likewise.
3792 (expand_gimple_tailcall): Likewise.
3793 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3795 (construct_exit_block): Drop use of SET_BB_END.
3796 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3798 (delete_insn): Rename param "insn" to "uncast_insn", introducing
3799 a new local "insn" with a checked cast to rtx_insn *. Drop use of
3800 SET_BB_HEAD and SET_BB_END.
3801 (create_basic_block_structure): Drop use of SET_BB_HEAD and
3803 (rtl_delete_block): Drop use of SET_BB_HEAD.
3804 (rtl_split_block): Drop use of SET_BB_END.
3805 (emit_nop_for_unique_locus_between): Likewise.
3806 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3807 (block_label): Drop use of SET_BB_HEAD.
3808 (fixup_abnormal_edges): Drop use of SET_BB_END.
3809 (record_effective_endpoints): Drop use of SET_BB_HEADER.
3810 (relink_block_chain): Likewise.
3811 (fixup_reorder_chain): Drop use of SET_BB_END.
3812 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3813 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3814 rtx_insn **. Drop use of SET_BB_HEADER.
3815 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3817 (BB_HEAD): Delete this function.
3818 (SET_BB_HEAD): Likewise.
3820 (SET_BB_END): Likewise.
3821 (BB_HEADER): Likewise.
3822 (SET_BB_HEADER): Likewise.
3823 * emit-rtl.c (add_insn_after): Rename param "insn" to
3824 "uncast_insn", adding a new local "insn" and a checked cast to
3825 rtx_insn *. Drop use of SET_BB_END.
3826 (remove_insn): Strengthen locals "next" and "prev" from rtx to
3827 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
3828 (reorder_insns): Drop use of SET_BB_END.
3829 (emit_insn_after_1): Strengthen param "first" and locals "last",
3830 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
3831 (emit_pattern_after_noloc): Add checked cast.
3832 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3833 (restore_other_notes): Likewise.
3834 (move_insn): Likewise.
3835 (sched_extend_bb): Likewise.
3836 (fix_jump_move): Likewise.
3837 * ifcvt.c (noce_process_if_block): Likewise.
3838 (dead_or_predicable): Likewise.
3839 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
3840 * reg-stack.c (change_stack): Drop use of SET_BB_END.
3841 * sel-sched-ir.c (sel_move_insn): Likewise.
3842 * sel-sched.c (move_nop_to_previous_block): Likewise.
3844 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
3846 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3848 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3850 * basic-block.h (create_basic_block_structure): Strengthen params
3851 1 "head" and 2 "end" from rtx to rtx_insn *.
3852 * cfgrtl.c (create_basic_block_structure): Likewise.
3853 (rtl_create_basic_block): Update casts from void * to rtx to
3854 rtx_insn *, so that we can pass them as rtx_insn * to
3855 create_basic_block_structure.
3856 * sel-sched-ir.c (sel_create_basic_block): Likewise.
3858 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3860 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
3862 (check_for_inc_dec): Strengthen param "insn" from rtx to
3865 * cselib.h (cselib_process_insn): Likewise.
3867 * cselib.c (cselib_record_sets): Likewise.
3868 (cselib_process_insn): Likewise.
3870 * dse.c (struct insn_info): Likewise for field "insn".
3871 (check_for_inc_dec_1): Likewise for local "insn".
3872 (check_for_inc_dec): Likewise for param "insn".
3873 (scan_insn): Likewise.
3874 (dse_step1): Likewise for local "insn".
3876 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
3877 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
3879 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3881 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
3882 from rtx to rtx_insn *.
3883 (DEP_PRO): Delete this function and...
3884 (SET_DEP_PRO): ...this function in favor of...
3885 (DEP_PRO): ...reinstate this macro.
3886 (DEP_CON): Delete this function and...
3887 (SET_DEP_CON): ...this function in favor of...
3888 (DEP_CON): ...reinstate this old macro.
3889 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
3890 (init_dep): Likewise.
3891 (set_priorities): Likewise for both params.
3892 (sd_copy_back_deps): Likewise for params 1 and 2.
3894 * haifa-sched.c (priority): Likewise for param "insn" and local
3896 (set_priorities): Likewise for params "head" and "tail" and local
3898 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
3900 (add_to_speculative_block): Add a checked cast.
3901 (create_check_block_twin): Drop use of SET_DEP_CON.
3902 (add_jump_dependencies): Strengthen params "insn" and "jump" from
3905 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
3906 Drop use of SET_DEP_PRO
3907 (init_dep): Strengthen params "pro" and "con" from rtx to
3909 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
3913 (SET_DEP_PRO): Delete.
3914 (SET_DEP_CON): Delete.
3916 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3918 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
3919 from rtx to rtx_insn *.
3920 (VINSN_INSN_RTX): Eliminate rvalue function and...
3921 (SET_VINSN_INSN): ...lvalue function in favor of...
3922 (VINSN_INSN_RTX): reinstate this old macro.
3924 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
3925 in favor of VINSN_INSN_RTX.
3926 (VINSN_INSN_RTX): Delete this function.
3927 (SET_VINSN_INSN_RTX): Likewise.
3929 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3931 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
3932 (BND_TO): Delete this function and...
3933 (SET_BND_TO): ...this functions in favor of...
3934 (BND_TO): ...reinstating this macro.
3935 (struct _fence): Strengthen field "executing_insns" from
3936 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
3937 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
3938 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
3939 and param "insn" from rtx to insn_t.
3940 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
3943 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
3945 (rtx_vec_t): Likewise.
3946 (struct sched_deps_info_def): Strengthen param of "start_insn"
3947 callback from rtx to rtx_insn *. Likewise for param "insn2" of
3948 "note_mem_dep" callback and first param of "note_dep" callback.
3950 * haifa-sched.c (add_to_speculative_block): Strengthen param
3951 "insn" from rtx to rtx_insn *.
3952 (clear_priorities): Likewise.
3953 (calc_priorities): Likewise for local "insn".
3955 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
3956 Remove redundant checked cast.
3957 (haifa_note_mem_dep): Likewise for param "pending_insn".
3958 (haifa_note_dep): Likewise for param "elem".
3959 (note_mem_dep): Likewise for param "e".
3960 (sched_analyze_1): Add checked casts.
3961 (sched_analyze_2): Likewise.
3963 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
3964 from rtx to rtx_insn *.
3965 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
3966 from vec<rtx> * to vec<rtx_insn *> *.
3968 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
3970 (flist_add): Strengthen param "executing_insns" from
3971 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3972 (advance_deps_context): Remove now-redundant checked cast.
3973 (init_fences): Replace uses of NULL_RTX with NULL.
3974 (merge_fences): Strengthen params "last_scheduled_insn" and
3975 "sched_next" from rtx to rtx_insn * and "executing_insns" from
3976 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3977 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
3978 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
3979 an instruction, rather than doing double-duty as a pattern.
3980 (return_nop_to_pool): Update for change of insn_t.
3981 (deps_init_id): Remove now-redundant checked cast.
3982 (struct sched_scan_info_def): Strengthen param of "init_insn"
3983 callback from rtx to insn_t.
3984 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
3985 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
3987 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
3988 "end" from rtx to rtx_insn *.
3989 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
3990 (rtx insn_rtx, bool force_unique_p)
3991 (BND_TO): Delete function.
3992 (SET_BND_TO): Delete function.
3994 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
3996 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
3997 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
3999 (undo_transformations): Likewise for param "insn".
4000 (update_liveness_on_insn): Likewise.
4001 (compute_live_below_insn): Likewise for param "insn" and local
4003 (update_data_sets): Likewise for param "insn".
4004 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4005 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4006 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4008 (move_cond_jump): Likewise for param "insn".
4009 (move_cond_jump): Drop use of SET_BND_TO.
4010 (compute_av_set_on_boundaries): Likewise.
4011 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4012 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4013 from rtx to rtx_insn *.
4014 (maybe_emit_renaming_copy): Likewise for param "insn".
4015 (maybe_emit_speculative_check): Likewise.
4016 (handle_emitting_transformations): Likewise.
4017 (remove_insn_from_stream): Likewise.
4018 (code_motion_process_successors): Strengthen local "succ" from rtx
4021 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4023 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4024 ilist_t, not _xlist_t;
4025 (ILIST_INSN): Define in terms of new union field "insn".
4026 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4028 (struct _list_node): Add new field "insn" to the union, of type
4030 (ilist_add): Replace macro with an inline function, requiring an
4032 (ilist_remove): Define this macro directly in terms of
4033 _list_remove, rather than indirectly via _xlist_remove.
4034 (ilist_clear): Likewise, in terms of _list_clear rather than
4036 (ilist_is_in_p): Replace macro with an inline function, requiring
4038 (_list_iter_cond_insn): New function.
4039 (ilist_iter_remove): Define this macro directly in terms of
4040 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4041 (ilist_iterator): Define directly in terms of _list_iterator
4042 rather than indirectly through _xlist_iterator.
4043 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4044 than in terms of _FOR_EACH_X.
4045 (FOR_EACH_INSN_1): Likewise.
4047 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4051 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4052 DECL_HARD_REGISTER and return for invalid register specifications.
4053 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4054 DECL_HARD_REGISTER, call expand_one_error_var.
4055 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4056 CC_REGNUM with non-MODE_CC modes.
4057 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4059 2014-08-26 Marek Polacek <polacek@redhat.com>
4062 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4064 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4066 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4067 qi cost; add di cost.
4068 (cortexa57_addrcost_table): Likewise.
4070 2014-08-26 Marek Polacek <polacek@redhat.com>
4073 * expr.c (is_aligning_offset): Remove logical not.
4075 2014-08-26 Marek Polacek <polacek@redhat.com>
4078 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4079 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4081 2014-08-26 Richard Biener <rguenther@suse.de>
4083 PR tree-optimization/62175
4084 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4085 expand possibly trapping operations.
4087 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4089 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4090 "insn" from rtx to rtx_insn *.
4091 (permute_load): Likewise for param "insn".
4092 (permute_store): Likewise.
4093 (handle_special_swappables): Likewise for local "insn".
4094 (replace_swap_with_copy): Likewise for locals "insn" and
4096 (rs6000_analyze_swaps): Likewise for local "insn".
4098 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4100 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4103 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4105 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4106 "note_list" from rtx to rtx_insn *.
4107 (BB_NOTE_LIST): Replace this function and...
4108 (SET_BB_NOTE_LIST): ...this function with...
4109 (BB_NOTE_LIST): ...the former macro implementation.
4111 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4112 local "from_start" from rtx to rtx_insn *. Strengthen param
4113 "to_endp" from rtx * to rtx_insn **.
4115 * haifa-sched.c (concat_note_lists): Likewise.
4116 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4118 (sel_restore_notes): Likewise.
4119 (move_bb_info): Likewise.
4120 (BB_NOTE_LIST): Delete this function.
4121 (SET_BB_NOTE_LIST): Delete this function.
4122 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4123 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4127 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4128 from rtx * to rtx_insn **.
4129 (reorder2): Likewise.
4130 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4131 from rtx to rtx_insn *.
4133 * doc/tm.texi: Update mechanically for above change to target.def.
4135 * sched-int.h (note_list): Strengthen this variable from rtx to
4137 (remove_notes): Likewise for both params.
4138 (restore_other_notes): Likewise for return type and first param.
4139 (struct ready_list): Strengthen field "vec" from rtx * to
4141 (struct dep_replacement): Strenghten field "insn" from rtx to
4143 (struct deps_desc): Likewise for fields "last_debug_insn",
4145 (struct haifa_sched_info): Likewise for callback field
4146 "can_schedule_ready_p"'s param, for first param of "new_ready"
4147 callback field, for both params of "rank" callback field, for
4148 first field of "print_insn" callback field (with a const), for
4149 both params of "contributes_to_priority" callback, for param
4150 of "insn_finishes_block_p" callback, for fields "prev_head",
4151 "next_tail", "head", "tail", for first param of "add_remove_insn"
4152 callback, for first param of "begin_schedule_ready" callback, for
4153 both params of "begin_move_insn" callback, and for second param
4154 of "advance_target_bb" callback.
4155 (add_dependence): Likewise for params 1 and 2.
4156 (sched_analyze): Likewise for params 2 and 3.
4157 (deps_analyze_insn): Likewise for param 2.
4158 (ready_element): Likewise for return type.
4159 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4160 (try_ready): Strenghten param from rtx to rtx_insn *.
4161 (sched_emit_insn): Likewise for return type.
4162 (record_delay_slot_pair): Likewise for params 1 and 2.
4163 (add_delay_dependencies): Likewise for param.
4164 (contributes_to_priority): Likewise for both params.
4165 (find_modifiable_mems): Likewise.
4167 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4168 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4169 "first_older_only_insn" from rtx to rtx_insn *.
4170 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4173 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4174 "last_scheduled_iter0" from rtx to rtx_insn *.
4175 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4176 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4177 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4178 "insn" from rtx to rtx_insn *.
4179 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4181 (c6x_sched_reorder2): Strengthen param "ready" and locals
4182 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4183 "insn" from rtx to rtx_insn *.
4184 (c6x_variable_issue): Add a checked cast when assigning from insn
4185 to ss.last_scheduled_iter0.
4186 (split_delayed_branch): Strengthen param "insn" and local "i1"
4187 from rtx to rtx_insn *.
4188 (split_delayed_nonbranch): Likewise.
4189 (undo_split_delayed_nonbranch): Likewise for local "insn".
4190 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4191 "entry_after", "end_packet", "head_insn", "tail_insn",
4192 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4193 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4194 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4195 but add a checked cast on loop->start_label. Consolidate calls to
4196 avoid assigning result of gen_spkernel to "insn", now an
4199 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4200 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4202 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4203 rtx_insn **. Strengthen locals "top", "next" from rtx to
4205 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4206 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4207 (add_parameter_dependencies): Strengthen params "call", "head" and
4208 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
4209 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
4210 (add_dependee_for_func_arg): Likewise for param "arg" and local
4212 (ix86_dependencies_evaluation_hook): Likewise for params "head",
4213 "tail" and locals "insn", "first_arg".
4215 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
4216 for params "head", "tail" and locals "insn", "next", "next_tail".
4217 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
4218 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
4219 "insn", "lowest", "highest" from rtx to rtx_insn *.
4220 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
4222 (ia64_sched_reorder2): Likewise.
4224 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
4225 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
4226 from rtx * to rtx_insn **.
4227 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
4229 (mep_print_sched_insn): Strengthen param "insn" from rtx to
4231 (mep_sched_reorder): Strengthen param "ready" from rtx * to
4232 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
4235 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
4236 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
4238 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
4239 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
4240 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
4242 (vr4130_reorder): Likewise.
4243 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
4245 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
4247 (mips_sched_reorder): Likewise.
4248 (mips_sched_reorder2): Likewise.
4250 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
4252 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
4253 Strengthen local "tmp" from rtx to rtx_insn *.
4254 (rs6000_sched_reorder2): Likewise.
4256 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
4257 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
4258 (s390_sched_reorder): Strengthen param "ready" from rtx * to
4259 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
4261 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
4262 "tmp2" from rtx to rtx_insn *.
4263 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
4264 Strengthen local "insn" from rtx to rtx_insn *.
4265 (ready_reorder): Strengthen param "ready" from rtx * to
4266 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
4267 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
4268 (sh_reorder2): Likewise.
4270 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
4271 local "insn" from rtx to rtx_insn *.
4273 * haifa-sched.c (note_list): Strengthen this variable from rtx to
4275 (scheduled_insns): Strengthen this variable from vec<rtx> to
4277 (set_modulo_params): Likewise for locals "i1", "i2".
4278 (record_delay_slot_pair): Likewise for params "i1", "i2".
4279 (add_delay_dependencies): Likewise for param "insn".
4280 (cond_clobbered_p): Likewise.
4281 (recompute_todo_spec): Likewise for local "prev".
4282 (last_scheduled_insn): Likewise for this variable.
4283 (nonscheduled_insns_begin): Likewise.
4284 (model_set_excess_costs): Strengthen param "insns" from rtx * to
4286 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
4288 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
4289 Strengthen local "insn" from rtx to rtx_insn *.
4290 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
4291 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4292 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
4293 (ready_remove_first): Likewise for return type and local "t".
4294 (ready_element): Likewise for return type.
4295 (ready_remove): Likewise for return type and local "t".
4296 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
4297 (check_clobbered_conditions): Strengthen local "x" from rtx to
4298 rtx_insn *, adding a checked cast.
4299 (schedule_insn): Likewise for param "insn".
4300 (remove_notes): Likewise for params "head", "tail" and locals
4301 "next_tail", "insn", "next".
4302 (struct haifa_saved_data): Likewise for fields
4303 "last_scheduled_insn", "nonscheduled_insns_begin".
4304 (save_backtrack_point): Update for change to field "vec" of
4306 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
4308 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
4309 from rtx to rtx_insn *
4310 (resolve_dependencies): Strengthen param "insn" from rtx to
4312 (restore_other_notes): Likewise for return type, for param "head"
4313 and local "note_head".
4314 (undo_all_replacements): Likewise for local "insn".
4315 (first_nonscheduled_insn): Likewise for return type and local "insn".
4316 (queue_to_ready): Likewise for local "insn", adding checked casts.
4317 (early_queue_to_ready): Likewise for local "insn".
4318 (debug_ready_list_1): Strengthen local "p" from rtx * to
4320 (move_insn): Strengthen param "insn" and local "note" from rtx to
4322 (insn_finishes_cycle_p): Likewise for param "insn".
4323 (max_issue): Likewise for local "insn".
4324 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
4326 (commit_schedule): Strengthen param "prev_head" and local "insn"
4327 from rtx to rtx_insn *
4328 (prune_ready_list): Likewise for local "insn".
4329 (schedule_block): Likewise for locals "prev_head", "head", "tail",
4330 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
4331 (set_priorities): Likewise for local "prev_head".
4332 (try_ready): Likewise for param "next".
4333 (fix_tick_ready): Likewise.
4334 (change_queue_index): Likewise.
4335 (sched_extend_ready_list): Update for change to field "vec" of
4337 (generate_recovery_code): Strengthen param "insn" from rtx to
4339 (begin_speculative_block): Likewise.
4340 (create_check_block_twin): Likewise for param "insn" and locals
4341 "label", "check", "twin". Introduce local "check_pat" to avoid
4342 "check" being used as a plain rtx before being used as an insn.
4343 (fix_recovery_deps): Add a checked cast to rtx_insn * when
4344 extracting elements from ready_list.
4345 (sched_remove_insn): Strengthen param "insn" from rtx to
4347 (sched_emit_insn): Likewise for return type.
4348 (ready_remove_first_dispatch): Likewise for return type and local
4351 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
4353 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
4356 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
4357 from rtx to rtx_insn *.
4358 (add_dependence_list): Likewise for param "insn". Add a checked
4360 (add_dependence_list_and_free): Strengthen param "insn" from rtx
4361 to rtx_insn *. Strengthen param "list_p" from rtx * to
4363 (chain_to_prev_insn): Strengthen param "insn" and locals
4364 "prec_nonnote", "i" from rtx to rtx_insn *.
4365 (flush_pending_lists): Likewise for param "insn".
4366 (cur_insn): Likewise for this variable.
4367 (haifa_start_insn): Add a checked cast.
4368 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
4369 (sched_analyze_reg): Likewise for param "insn".
4370 (sched_analyze_1): Likewise.
4371 (sched_analyze_2): Likewise. Add checked casts.
4372 (sched_analyze_insn): Likewise. Also for local "prev".
4373 (deps_analyze_insn): Likewise for param "insn".
4374 (sched_analyze): Likewise for params "head", "tail" and local "insn".
4375 (add_dependence_1): Likewise for params "insn", "elem".
4376 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
4377 (parse_add_or_inc): Likewise for param "insn".
4378 (find_inc): Likewise for local "inc_cand".
4379 (find_modifiable_mems): Likewise for params "head", "tail" and
4380 locals "insn", "next_tail".
4382 * sched-ebb.c (init_ready_list): Likewise for local "insn".
4383 (begin_schedule_ready): Likewise for param "insn".
4384 (begin_move_insn): Likewise for params "insn" and "last".
4385 (ebb_print_insn): Strengthen param "insn" from const_rtx to
4387 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
4388 (ebb_contributes_to_priority): Likewise for params "next", "insn".
4389 (ebb_add_remove_insn): Likewise for param "insn".
4390 (advance_target_bb): Likewise.
4392 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
4394 (check_live): Likewise for param "insn".
4395 (init_ready_list): Likewise for local "insn".
4396 (can_schedule_ready_p): Likewise for param "insn".
4397 (begin_schedule_ready): Likewise.
4398 (new_ready): Likewise for param "next".
4399 (rgn_print_insn): Likewise for param "insn".
4400 (rgn_rank): Likewise for params "insn1", "insn2".
4401 (contributes_to_priority): Likewise for params "next", "insn".
4402 (rgn_insn_finishes_block_p): Likewise for param "insn".
4403 (add_branch_dependences): Likewise for params "head", "tail" and
4404 locals "insn", "last".
4405 (rgn_add_remove_insn): Likewise for param "insn".
4406 (advance_target_bb): Likewise.
4408 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
4409 const_rtx to const rtx_insn *.
4411 * sel-sched-dump.h (sel_print_insn): Likewise.
4413 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
4414 (deps_init_id): Likewise.
4416 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
4417 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
4420 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4422 * output.h (final_start_function): Strengthen param 1 from rtx to
4425 * final.c (final_start_function): Likewise, renaming back from
4426 "uncast_first" to "first", and dropping the checked cast from rtx
4429 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4431 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
4432 * final.c (final): Likewise. Rename param back from
4433 "uncast_first" to "first" and eliminate the checked cast from rtx
4436 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4438 * output.h (shorten_branches): Strengthen param from rtx to
4441 * final.c (shorten_branches): Likewise, renaming param back from
4442 "uncast_first" to "first", and dropping the checked cast from rtx
4445 * genattr.c (gen_attr): Likewise when writing out the prototype of
4448 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4450 * sched-int.h (struct haifa_sched_info): Strengthen fields
4451 "prev_head" and "next_tail" from rtx to rtx_insn *.
4453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4455 * rtl.h (rtx_jump_table_data::get_labels): New method.
4456 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
4457 with use of the new rtx_jump_table_data::get_labels method.
4458 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
4459 to rtx_jump_table_data *. Simplify by using get_labels method.
4460 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
4461 a dyn_cast, introducing local "table", using it to replace
4462 label-lookup logic with a get_labels method call.
4463 (patch_jump_insn): Simplify using get_labels method.
4464 * dwarf2cfi.c (create_trace_edges): Likewise.
4465 * rtlanal.c (label_is_jump_target_p): Likewise.
4467 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4469 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
4472 * emit-rtl.c (unshare_all_rtl_1): Likewise.
4473 (unshare_all_rtl_again): Likewise, also for local "p".
4475 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4477 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
4479 * cfgrtl.c (delete_insn_and_edges): Likewise.
4481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4483 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4484 from rtx to rtx_insn *.
4486 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4488 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4490 * function.c (thread_prologue_and_epilogue_insns): Likewise for
4491 locals "returnjump", "epilogue_end", "insn", "next".
4493 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4494 "returnjump" from rtx * to rtx_insn **.
4495 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4497 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4499 * basic-block.h (struct edge_def). Strengthen "r" within
4500 union edge_def_insns from rtx to rtx_insn *.
4502 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4503 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
4505 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4506 from rtx to rtx_insn *.
4507 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4509 * postreload-gcse.c (reg_killed_on_edge): Likewise.
4510 (reg_used_on_edge): Likewise.
4511 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4512 (gt_pch_nx): New overload for rtx_insn *&.
4513 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4514 from rtx to rtx_insn *.
4516 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4518 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4519 from rtx to rtx_insn *.
4520 (BB_FOOTER): Replace function with access macro.
4521 (SET_BB_FOOTER): Delete.
4523 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4525 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4526 (emit_barrier_after_bb): Likewise.
4527 (record_effective_endpoints): Likewise.
4528 (relink_block_chain): Likewise.
4529 (fixup_fallthru_exit_predecessor): Likewise.
4530 (cfg_layout_duplicate_bb): Likewise.
4531 (cfg_layout_split_block): Likewise.
4532 (cfg_layout_delete_block): Likewise.
4533 (cfg_layout_merge_blocks): Likewise.
4534 (BB_FOOTER): Delete function.
4535 (SET_BB_FOOTER): Delete function.
4536 * combine.c (update_cfg_for_uncondjump): Replace uses of
4537 SET_BB_FOOTER with BB_FOOTER.
4539 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4541 * except.h (struct eh_landing_pad_d): Strengthen field
4542 "landing_pad" from rtx to rtx_code_label *.
4544 * except.c (sjlj_emit_dispatch_table): Likewise for param
4546 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4550 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4551 first param from rtx to rtx_insn *.
4552 * config/xtensa/xtensa.c (struct machine_function): Likewise for
4553 field "set_frame_ptr_insn".
4554 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4555 "csend" from rtx to rtx_code_label *.
4556 (xtensa_expand_atomic): Likewise for local "csloop".
4557 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4559 (xtensa_call_tls_desc): Likewise for return type and locals
4560 "call_insn", "insns".
4561 (xtensa_legitimize_tls_address): Likewise for local "insns".
4562 (xtensa_expand_prologue): Likewise for locals "insn", "first".
4564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4566 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4567 first param from rtx to rtx_insn *.
4568 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4571 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4573 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4574 Strengthen param 1 from rtx to rtx_insn *.
4575 (tilepro_output_cbranch): Likewise.
4576 (tilepro_adjust_insn_length): Likewise.
4577 (tilepro_final_prescan_insn): Likewise for sole param.
4579 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4580 Likewise for local "last".
4581 (cbranch_predicted_p): Likewise for param "insn".
4582 (tilepro_output_simple_cbranch_with_opcode): Likewise.
4583 (tilepro_output_cbranch_with_opcode): Likewise.
4584 (tilepro_output_cbranch): Likewise.
4585 (frame_emit_load): Likewise for return type and locals "seq",
4587 (emit_sp_adjust): Likewise for return type and local "insn".
4588 (tilepro_expand_epilogue): Likewise for locals "last_insn",
4590 (tilepro_adjust_insn_length): Likewise for param "insn".
4591 (next_insn_to_bundle): Likewise for return type and params
4593 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4594 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4596 (match_addli_pcrel): Likewise for param "insn".
4597 (replace_addli_pcrel): Likewise.
4598 (match_auli_pcrel): Likewise.
4599 (replace_auli_pcrel): Likewise.
4600 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4602 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4603 "queue", "next_queue", "prev".
4604 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4605 (tilepro_final_prescan_insn): Likewise for param "insn".
4607 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4609 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4610 Strengthen param 1 from rtx to rtx_insn *.
4611 (tilegx_output_cbranch): Likewise.
4612 (tilegx_adjust_insn_length): Likewise.
4613 (tilegx_final_prescan_insn): Likewise for sole param.
4615 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4617 (cbranch_predicted_p): Likewise for param "insn".
4618 (tilegx_output_simple_cbranch_with_opcode): Likewise.
4619 (tilegx_output_cbranch_with_opcode): Likewise.
4620 (tilegx_output_cbranch): Likewise.
4621 (frame_emit_load): Likewise for return type.
4622 (set_frame_related_p): Likewise for locals "seq", "insn".
4623 (emit_sp_adjust): Likewise for return type, and for local "insn".
4624 Introduce local "pat" for use in place of "insn" where the latter
4625 isn't an instruction.
4626 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4627 from rtx to rtx_insn *.
4628 (tilegx_adjust_insn_length): Likewise for param "insn".
4629 (next_insn_to_bundle): Likewise for return type and params "r" and
4631 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4633 (replace_insns): Likewise for params "old_insn", "new_insns".
4634 (replace_mov_pcrel_step1): Likewise for param "insn" and local
4636 (replace_mov_pcrel_step2): Likewise.
4637 (replace_mov_pcrel_step3): Likewise.
4638 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4640 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4641 "queue", "next_queue", "prev".
4642 (tilegx_output_mi_thunk): Likewise for local "insn".
4643 (tilegx_final_prescan_insn): Likewise for param "insn".
4645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4647 * config/spu/spu.c (frame_emit_store): Strengthen return type from
4649 (frame_emit_load): Likewise.
4650 (frame_emit_add_imm): Likewise, also for local "insn".
4651 (spu_expand_prologue): Likewise for local "insn".
4652 (struct spu_bb_info): Likewise for field "prop_jump".
4653 (emit_nop_for_insn): Likewise for param "insn" and local
4655 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4657 (spu_emit_branch_hint): Likewise for params "before", "branch" and
4658 locals "hint", "insn".
4659 (get_branch_target): Likewise for param "branch".
4660 (insn_clobbers_hbr): Likewise for param "insn".
4661 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4662 locals "insn", "before_4", "before_16".
4663 (insert_hbrp): Likewise for local "insn".
4664 (spu_machine_dependent_reorg): Likewise for locals "branch",
4665 "insn", "next", "bbend".
4666 (uses_ls_unit): Likewise for param "insn".
4667 (get_pipe): Likewise.
4668 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4669 introducing a checked cast.
4670 (spu_sched_adjust_cost): Likewise for params "insn" and
4672 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4673 (spu_sms_res_mii): Likewise.
4675 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4677 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4678 from rtx to rtx_insn *.
4679 (output_cbranch): Likewise for param 6.
4680 (output_return): Likewise for param 1.
4681 (output_sibcall): Likewise.
4682 (output_v8plus_shift): Likewise.
4683 (output_v8plus_mult): Likewise.
4684 (output_v9branch): Likewise for param 7.
4685 (output_cbcond): Likewise for param 3.
4687 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4689 (sparc_legitimize_pic_address): Likewise.
4690 (sparc_emit_call_insn): Likewise.
4691 (emit_save_or_restore_regs): Likewise.
4692 (emit_window_save): Likewise for return type and local "insn".
4693 (sparc_expand_prologue): Likewise for local "insn".
4694 (sparc_flat_expand_prologue): Likewise.
4695 (output_return): Likewise for param "insn".
4696 (output_sibcall): Likewise for param "insn" and local "delay".
4697 (output_ubranch): Likewise for param "insn".
4698 (output_cbranch): Likewise.
4699 (output_cbcond): Likewise.
4700 (output_v9branch): Likewise.
4701 (output_v8plus_shift): Likewise.
4702 (sparc_output_mi_thunk): Likewise for local "insn".
4703 (get_some_local_dynamic_name): Likewise.
4704 (output_v8plus_mult): Likewise for param "insn".
4706 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4708 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4709 from rtx to rtx_insn *.
4710 (output_branchy_insn): Likewise for param 3.
4711 (output_far_jump): Likewise for param 1.
4712 (final_prescan_insn): Likewise.
4713 (sh_insn_length_adjustment): Likewise for sole param.
4715 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4716 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4718 (sh_emit_compare_and_set): Likewise for local "lab".
4719 (output_far_jump): Strengthen param "insn" and local "prev" from
4721 (output_branchy_insn): Likewise for param "insn" and local
4723 (output_ieee_ccmpeq): Likewise for param "insn".
4724 (struct label_ref_list_d): Strengthen field "label" from rtx to
4726 (pool_node): Likewise.
4727 (pool_window_label): Likewise for this global.
4728 (add_constant): Likewise for return type and locals "lab", "new_rtx".
4729 (dump_table): Strengthen params "start", "barrier" and local
4730 "scan" from rtx to rtx_insn *.
4731 (broken_move): Likewise for param "insn".
4732 (untangle_mova): Likewise for params "first_mova" and "new_mova".
4733 Strengthen param "first_mova" from rtx * to rtx_insn **.
4734 (mova_p): Likewise for param "insn".
4735 (fixup_mova): Likewise for param "mova".
4736 (find_barrier): Likewise for return type, params "mova" and
4737 "from", and locals "barrier_before_mova", "found_barrier",
4738 "good_barrier", "orig", "last_symoff", "next". Strengthen local
4739 "label" from rtx to rtx_code_label *.
4740 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4742 (sh_reorg): Likewise for locals "link", "scan", "barrier".
4743 (split_branches): Likewise for param "first" and local "insn".
4744 (final_prescan_insn): Likewise for param "insn".
4745 (sequence_insn_p): Likewise for locals "prev", "next".
4746 (sh_insn_length_adjustment): Likewise for param "insn".
4747 (sh_can_redirect_branch): Likewise for local "insn".
4748 (find_r0_life_regions): Likewise for locals "end", "insn".
4749 (sh_output_mi_thunk): Likewise for local "insns".
4751 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4753 * config/score/score.c (score_output_mi_thunk): Strengthen local
4754 "insn" from rtx to rtx_insn *.
4755 (score_prologue): Likewise.
4757 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4759 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4760 1 from rtx to rtx_insn *.
4761 (s390_emit_jump): Likewise for return type.
4762 (s390_emit_call): Likewise.
4763 (s390_load_got): Likewise.
4765 * config/s390/s390.c (last_scheduled_insn): Likewise for this
4767 (s390_match_ccmode): Likewise for param "insn".
4768 (s390_emit_jump): Likewise for return type.
4769 (s390_split_branches): Likewise for local "label".
4770 (struct constant): Strengthen field "label" from rtx to
4772 (struct constant_pool): Likewise for field "label". Strengthen
4773 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4775 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4777 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4778 (s390_end_pool): Likewise.
4779 (s390_dump_pool): Likewise for local "insn".
4780 (s390_mainpool_start): Likewise.
4781 (s390_chunkify_start): Likewise.
4782 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4783 with insns. Strengthen locals "label", "jump", "barrier", "next",
4784 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4785 (s390_chunkify_finish): Strengthen local "insn" from rtx to
4787 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4788 "jump", "label", "next_insn".
4789 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4790 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4792 (s390_load_got): Likewise for return type and local "insns".
4793 (s390_save_gprs_to_fprs): Likewise for local "insn".
4794 (s390_restore_gprs_from_fprs): Likewise.
4795 (pass_s390_early_mach::execute): Likewise.
4796 (s390_emit_prologue): Likewise for local "insns".
4797 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4799 (s390_emit_call): Strengthen return type and local "insn" from
4801 (s390_emit_tpf_eh_return): Likewise for local "insn".
4802 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4803 "next_insn", introducing locals "s_pat", "rpat" to allow this.
4804 (s390_fix_long_loop_prediction): Likewise for param "insn" and
4806 (s390_non_addr_reg_read_p): Likewise for param "insn".
4807 (find_cond_jump): Likewise for return type and param "insn".
4808 (s390_swap_cmp): Likewise for param "insn".
4809 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4810 "prev_insn", "next_insn".
4811 (s390_reorg): Likewise for locals "insn", "target".
4812 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4813 (s390_sched_variable_issue): For now, rename param "insn" to
4814 "uncast_insn", introducing a checked cast.
4815 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4817 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4818 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
4820 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4822 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4823 param from rtx to rtx_insn *.
4824 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4826 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4828 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4829 4 from rtx to rtx_insn *.
4830 (rs6000_final_prescan_insn): Likewise for first param.
4831 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4833 (rs6000_get_some_local_dynamic_name): Likewise.
4834 (output_cbranch): Likewise for param "insn".
4835 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4836 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4837 (rs6000_emit_allocate_stack): Likewise for local "insn".
4838 (load_cr_save): Likewise.
4839 (restore_saved_cr): Likewise.
4840 (restore_saved_lr): Likewise.
4841 (emit_cfa_restores): Likewise.
4842 (rs6000_output_function_epilogue): Likewise for locals "insn" and
4843 "deleted_debug_label".
4844 (rs6000_output_mi_thunk): Likewise for local "insn".
4845 (rs6000_final_prescan_insn): Likewise for param "insn".
4847 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4849 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
4850 Strengthen param "insn" from rtx to rtx_insn *.
4851 * config/picochip/picochip.c (picochip_current_prescan_insn):
4852 Likewise for this variable.
4853 (picochip_final_prescan_insn): Likewise for param "insn".
4855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4857 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
4858 from rtx to rtx_insn *.
4859 (pa_output_indirect_call): Likewise.
4860 (pa_adjust_insn_length): Likewise.
4861 (pa_attr_length_millicode_call): Likewise.
4862 (pa_attr_length_call): Likewise.
4863 (pa_attr_length_indirect_call): Likewise.
4865 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
4867 (pa_attr_length_millicode_call): Likewise.
4868 (pa_attr_length_call): Likewise.
4869 (pa_output_call): Likewise.
4870 (pa_attr_length_indirect_call): Likewise.
4871 (pa_output_indirect_call): Likewise.
4873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4875 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
4876 Strengthen first param from rtx to rtx_insn *.
4877 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
4880 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4882 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
4883 type from rtx to rtx_insn *.
4884 (mips_expand_call): Likewise.
4885 (mips_adjust_insn_length): Likewise for first param.
4886 (mips_output_conditional_branch): Likewise.
4887 (mips_output_order_conditional_branch): Likewise.
4888 (mips_final_prescan_insn): Likewise.
4890 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
4891 rtx_insn * for the SEQUENCE case.
4892 (SEQ_END): Likewise.
4893 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
4894 (mips_emit_call_insn): Likewise, also for local "insn".
4895 (mips16_gp_pseudo_reg): Likewise for local "scan".
4896 (mips16_build_call_stub): Likewise for return type and for local
4897 "insn". Introduce a new local "pattern" so that "insn" can indeed
4899 (mips_expand_call): Strengthen return type and local "insn" from
4901 (mips_block_move_loop): Strengthen local "label" from rtx to
4903 (mips_expand_synci_loop): Likewise for locals "label",
4905 (mips_set_frame_expr): Strengthen local "insn" from rtx to
4907 (mips16e_collect_argument_saves): Likewise for locals "insn",
4909 (mips_find_gp_ref): Likewise for param of callback for "pred"
4910 param, and for local "insn".
4911 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
4912 (mips_insn_has_flexible_gp_ref_p): Likewise.
4913 (mips_epilogue_emit_cfa_restores): Likewise for return type and
4915 (mips_epilogue_set_cfa): Likewise for local "insn".
4916 (mips_expand_epilogue): Likewise.
4917 (mips_adjust_insn_length): Likewise for param "insn".
4918 (mips_output_conditional_branch): Likewise.
4919 (mips_output_order_conditional_branch): Likewise.
4920 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
4921 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
4922 "falu2_turn_enabled_insn".
4923 (mips_builtin_branch_and_move): Strengthen locals "true_label",
4924 "done_label" from rtx to rtx_code_label *.
4925 (struct mips16_constant): Likewise for field "label".
4926 (mips16_add_constant): Likewise for return type.
4927 (mips16_emit_constants_1): Strengthen return type and param "insn"
4928 from rtx to rtx_insn *.
4929 (mips16_emit_constants): Likewise for param "insn".
4930 (mips16_insn_length): Likewise.
4931 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
4932 to rtx_code_label *.
4933 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
4934 from rtx to rtx_insn *.
4935 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
4936 "jump". Strengthen local "label" from rtx to rtx_code_label *.
4937 (r10k_simplify_address): Strengthen param "insn" and local
4938 "def_insn" from rtx to rtx_insn *.
4939 (r10k_safe_address_p): Strengthen param "insn" from rtx to
4941 (r10k_needs_protection_p_1): Update target type of cast of data
4942 from to rtx to rtx_insn *.
4943 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
4944 rtx * to rtx_insn **.
4945 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
4947 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
4948 (mips_call_expr_from_insn): Likewise for param "insn".
4949 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
4950 (mips_find_pic_call_symbol): Likewise for param "insn".
4951 (mips_annotate_pic_calls): Likewise for local "insn".
4952 (mips_sim_insn): Likewise for this variable.
4953 (struct mips_sim): Likewise for field "insn" within elements of
4955 (mips_sim_wait_reg): Likewise for param "insn".
4956 (mips_sim_wait_regs): Likewise.
4957 (mips_sim_wait_units): Likewise.
4958 (mips_sim_wait_insn): Likewise.
4959 (mips_sim_issue_insn): Likewise.
4960 (mips_sim_finish_insn): Likewise.
4961 (mips_seq_time): Likewise for param "seq" and local "insn".
4962 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
4963 locals "first", "second".
4964 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
4965 "last", "last2", "next".
4966 (mips_avoid_hazard): Likewise for params "after", "insn".
4967 (mips_reorg_process_insns): Likewise for locals "insn",
4968 "last_insn", "subinsn", "next_insn".
4969 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
4970 (mips16_split_long_branches): Likewise for locals "insn" "jump",
4972 (mips_output_mi_thunk): Likewise for local "insn".
4973 (mips_final_prescan_insn): Likewise for param "insn".
4975 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4977 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
4978 Strengthen return type and local "insns" from rtx to rtx_insn *.
4979 (microblaze_legitimize_tls_address): Likewise for local "insns".
4980 (microblaze_block_move_loop): Strengthen local "label" from rtx
4981 to rtx_code_label *.
4982 (microblaze_expand_prologue): Strengthen two locals named "insn"
4983 from rtx to rtx_insn *.
4984 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
4985 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
4986 "insn". Strengthen locals "div_label", "div_end_label" from rtx
4987 to rtx_code_label *.
4989 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4991 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
4992 param from rtx to rtx_insn *.
4993 (mep_reuse_lo): Likewise for third param.
4994 (mep_use_post_modify_p): Likewise for first param.
4995 (mep_core_address_length): Likewise.
4996 (mep_cop_address_length): Likewise.
4997 (mep_final_prescan_insn): Likewise.
4998 (mep_store_data_bypass_p): Likewise for both params.
4999 (mep_mul_hilo_bypass_p): Likewise.
5000 (mep_ipipe_ldc_p): Likewise for param.
5002 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5003 (mep_rewrite_mult): Likewise.
5004 (mep_rewrite_mulsi3): Likewise.
5005 (mep_rewrite_maddsi3): Likewise.
5006 (mep_reuse_lo_p_1): Likewise.
5007 (mep_reuse_lo_p): Likewise.
5008 (mep_frame_expr): Likewise.
5009 (mep_make_parallel): Likewise for both params.
5010 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5012 (mep_use_post_modify_p): Likewise for param "insn".
5013 (mep_core_address_length): Likewise.
5014 (mep_cop_address_length): Likewise.
5015 (mep_reg_set_in_function): Likewise for local "insn".
5016 (mep_asm_without_operands_p): Likewise.
5017 (F): Likewise for return type and param "x".
5018 (add_constant): Likewise for local "insn".
5019 (maybe_dead_move): Likewise for return type and local "insn".
5020 (mep_expand_prologue): Likewise for local "insn".
5021 (mep_final_prescan_insn): Likewise for param "insn".
5022 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5023 "next", "follow", "x".
5024 (mep_insert_repeat_label_last): Likewise for return type, param
5025 "last_insn", and locals "next", "prev". Strengthen param "label"
5026 from rtx to rtx_code_label *.
5027 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5029 (struct mep_doloop_end): Likewise for fields "insn" and
5031 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5032 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5033 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5035 (mep_invert_branch): Likewise for params "insn" and "after".
5036 (mep_reorg_erepeat): Likewise for param "insns" and locals
5037 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5038 "l" from rtx to rtx_code_label *.
5039 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5040 from rtx to rtx_insn *.
5041 (mep_reorg_addcombine): Likewise for param "insns" and locals
5043 (add_sp_insn_p): Likewise for param "insn".
5044 (mep_reorg_noframe): Likewise for param "insns" and locals
5045 "start_frame_insn", "end_frame_insn", "next".
5046 (mep_reorg): Likewise for local "insns".
5047 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5049 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5050 (mep_mul_hilo_bypass_p): Likewise.
5051 (mep_ipipe_ldc_p): Likewise for param "insn".
5052 (mep_make_bundle): Likewise for return type, param "cop" and local
5053 "insn", splitting out the latter into a new local "seq" for when it
5054 is a SEQUENCE rather than an insn.
5055 (core_insn_p): Likewise for param "insn".
5056 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5057 "last", "first", "note", "prev", "core_insn".
5059 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5061 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5063 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5064 (m68k_final_prescan_insn): Likewise for first param.
5066 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5067 (m68k_set_frame_related): Likewise for param "insn".
5068 (output_btst): Likewise for param "insn".
5069 (m68k_final_prescan_insn): Likewise.
5070 (m68k_move_to_reg): Likewise for local "insn".
5071 (m68k_call_tls_get_addr): Likewise for local "insns".
5072 (m68k_call_m68k_read_tp): Likewise.
5073 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5074 (m68k_output_mi_thunk): Likewise for local "insn".
5076 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5078 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5079 first param from rtx to rtx_insn *.
5080 (iq2000_adjust_insn_length): Likewise.
5081 (iq2000_output_conditional_branch): Likewise.
5082 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5083 "insn" and local "nop_insn".
5084 (iq2000_annotate_frame_insn): Likewise for param "insn".
5085 (iq2000_expand_prologue): Likewise for both locals "insn".
5086 (iq2000_adjust_insn_length): Likewise for param "insn".
5087 (iq2000_output_conditional_branch): Likewise.
5089 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5091 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5092 "insns" from rtx to rtx_insn *.
5093 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5094 (struct spill_fill_data): Likewise for field "init_after" and for
5095 elements of array field "prev_insn".
5096 (spill_restore_mem): Likewise for locals "insn", "first".
5097 (do_spill): Likewise for local "insn".
5098 (do_restore): Likewise.
5099 (ia64_expand_prologue): Likewise.
5100 (ia64_expand_epilogue): Likewise.
5101 (emit_insn_group_barriers): Likewise for locals "insn",
5103 (emit_all_insn_group_barriers): Likewise for locals "insn",
5105 (dfa_stop_insn): Likewise for this global.
5106 (dfa_pre_cycle_insn): Likewise.
5107 (ia64_nop): Likewise.
5108 (final_emit_insn_group_barriers): Likewise for locals "insn",
5110 (emit_predicate_relation_info): Likewise for locals "head", "n",
5112 (ia64_reorg): Likewise for local "insn".
5113 (ia64_output_mi_thunk): Likewise.
5114 (expand_vec_perm_interleave_2): Likewise for local "seq".
5116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5118 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5119 param 1 "insn" from rtx to rtx_insn *.
5120 (ix86_use_lea_for_mov): Likewise.
5121 (ix86_avoid_lea_for_addr): Likewise.
5122 (ix86_split_lea_for_addr): Likewise.
5123 (ix86_lea_for_add_ok): Likewise.
5124 (ix86_output_call_insn): Likewise.
5126 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5127 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5128 (ix86_output_function_epilogue): Likewise for locals "insn",
5129 "deleted_debug_label".
5130 (legitimize_tls_address): Likewise for local "insn".
5131 (get_some_local_dynamic_name): Likewise.
5132 (increase_distance): Likewise for params "prev", "next".
5133 (distance_non_agu_define_in_bb): Likewise for params "insn",
5134 "start" and locals "prev", "next".
5135 (distance_non_agu_define): Likewise for param "insn".
5136 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5137 locals "next", "prev".
5138 (distance_agu_use): Likewise for param "insn".
5139 (ix86_lea_outperforms): Likewise.
5140 (ix86_ok_to_clobber_flags): Likewise.
5141 (ix86_avoid_lea_for_add): Likewise.
5142 (ix86_use_lea_for_mov): Likewise.
5143 (ix86_avoid_lea_for_addr): Likewise.
5144 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5145 (ix86_split_lea_for_addr): Likewise for param "insn".
5146 (ix86_lea_for_add_ok): Likewise for param "insn".
5147 (ix86_expand_carry_flag_compare): Likewise for local
5149 (ix86_expand_int_movcc): Likewise.
5150 (ix86_output_call_insn): Likewise for param "insn".
5151 (ix86_output_call_insn): Likewise for local "i".
5152 (x86_output_mi_thunk): Introduce local "insn", using it in place
5153 of "tmp" when dealing with insns.
5154 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5156 (ix86_pad_returns): Likewise for locals "ret", "prev".
5157 (ix86_count_insn_bb): Likewise for local "insn".
5158 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5159 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5160 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5161 (expand_vec_perm_interleave2): Likewise for local "seq".
5162 (expand_vec_perm_vperm2f128_vblend): Likewise.
5163 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5164 call to for_each_rtx with for_each_rtx_in_insn.
5166 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5168 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5169 "label" from rtx to rtx_code_label *.
5170 (ix86_expand_prologue): Likewise.
5171 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5173 (ix86_split_idivmod): Likewise for locals "end_label" and
5175 (ix86_expand_branch): Likewise for local "label2".
5176 (ix86_expand_aligntest): Likewise for return type and local "label".
5177 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5179 (expand_movmem_epilogue): Likewise for the various locals named
5181 (expand_setmem_epilogue): Likewise.
5182 (expand_small_movmem_or_setmem): Likewise for local "label".
5183 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5184 Strengthen param "done_label" from rtx * to rtx_code_label **.
5185 Strengthen locals "loop_label" and "label" from rtx to
5187 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5188 Likewise for locals "loop_label", "label".
5189 (ix86_expand_set_or_movmem): Likewise for locals "label",
5190 "jump_around_label", "hot_label".
5191 (ix86_expand_strlensi_unroll_1): Likewise for locals
5192 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5194 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5195 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5196 "label2", "jump_label".
5197 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5199 (ix86_expand_lfloorceil): Likewise for local "label".
5200 (ix86_expand_rint): Likewise.
5201 (ix86_expand_floorceildf_32): Likewise.
5202 (ix86_expand_floorceil): Likewise.
5203 (ix86_expand_rounddf_32): Likewise.
5204 (ix86_expand_trunc): Likewise.
5205 (ix86_expand_truncdf_32): Likewise.
5206 (ix86_expand_round): Likewise.
5208 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5210 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
5211 first param from rtx to rtx_insn *.
5212 (h8300_insn_length_from_table): Likewise.
5213 * config/h8300/h8300.c (F): Likewise for return type and param
5215 (Fpa): Add a checked cast to rtx_insn *.
5216 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
5218 (final_prescan_insn): Likewise for param "insn".
5219 (h8300_binary_length): Likewise.
5220 (h8300_insn_length_from_table): Likewise.
5222 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5224 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
5225 Strengthen first param "insn" from rtx to rtx_insn *.
5227 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
5229 (frame_insn): Likewise for return type. Introduce local "insn"
5230 for use in place of local "x" for use as an rtx_insn *.
5231 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
5232 (epiphany_expand_prologue): Likewise for local "insn".
5233 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
5234 * config/epiphany/resolve-sw-modes.c
5235 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
5238 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5240 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
5241 param from rtx to rtx_insn *.
5242 (c6x_final_prescan_insn): Likewise for first param.
5244 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
5245 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
5246 (c6x_expand_compare): Strengthen local "insns" from rtx to
5248 (c6x_get_unit_specifier): Likewise for param "insn".
5249 (c6x_print_unit_specifier_field): Likewise.
5250 (c6x_final_prescan_insn): Likewise.
5251 (emit_add_sp_const): Likewise for local "insn".
5252 (c6x_expand_prologue): Likewise.
5254 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5256 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
5257 param 1 from rtx to rtx_insn *.
5258 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
5259 the various locals named "insn".
5260 (expand_epilogue_reg_restore): Likewise.
5261 (frame_related_constant_load): Likewise.
5262 (add_to_reg): Likewise.
5263 (emit_link_insn): Likewise.
5264 (do_link): Likewise.
5265 (expand_interrupt_handler_prologue): Likewise.
5266 (branch_dest): Likewise for param "branch".
5267 (asm_conditional_branch): Likewise for param "insn".
5268 (gen_one_bundle): Likewise for elements of param "slot" and local
5270 (bfin_gen_bundles): Likewise for locals "insn", "next" and
5271 elements of local "slot".
5272 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5273 "queue", "next_queue", "prev".
5274 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
5275 (add_sched_insns_for_speculation): Likewise for local "insn".
5277 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5279 * config/avr/avr-protos.h (output_movqi): Strengthen first param
5280 from rtx to rtx_insn *.
5281 (output_movhi): Likewise.
5282 (output_movsisf): Likewise.
5283 (avr_out_tstsi): Likewise.
5284 (avr_out_tsthi): Likewise.
5285 (avr_out_tstpsi): Likewise.
5286 (avr_out_compare): Likewise.
5287 (avr_out_compare64): Likewise.
5288 (avr_out_movpsi): Likewise.
5289 (ashlqi3_out): Likewise.
5290 (ashlhi3_out): Likewise.
5291 (ashlsi3_out): Likewise.
5292 (ashrqi3_out): Likewise.
5293 (ashrhi3_out): Likewise.
5294 (ashrsi3_out): Likewise.
5295 (lshrqi3_out): Likewise.
5296 (lshrhi3_out): Likewise.
5297 (lshrsi3_out): Likewise.
5298 (avr_out_ashlpsi3): Likewise.
5299 (avr_out_ashrpsi3): Likewise.
5300 (avr_out_lshrpsi3): Likewise.
5301 (avr_out_fract): Likewise.
5302 (avr_out_sbxx_branch): Likewise.
5303 (avr_out_round): Likewise.
5304 (avr_out_xload): Likewise.
5305 (avr_out_movmem): Likewise.
5306 (adjust_insn_length): Likewise.
5307 (avr_out_lpm): Likewise.
5308 (reg_unused_after): Likewise.
5309 (_reg_unused_after): Likewise.
5310 (avr_jump_mode): Likewise for second param.
5311 (jump_over_one_insn): Likewise for first param.
5312 (avr_final_prescan_insn): Likewise.
5313 (out_shift_with_cnt): Likewise for second param.
5315 * config/avr/avr.c (get_sequence_length): Likewise for param
5316 "insns" and local "insn".
5317 (emit_push_byte): Likewise for local "insn".
5318 (emit_push_sfr): Likewise.
5319 (avr_prologue_setup_frame): Likewise for locals "insn",
5320 "fp_plus_insns", "sp_plus_insns".
5321 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
5323 (avr_jump_mode): Likewise for param "insn".
5324 (avr_final_prescan_insn): Likewise.
5325 (avr_find_unused_d_reg): Likewise.
5326 (avr_out_lpm_no_lpmx): Likewise.
5327 (avr_out_lpm): Likewise.
5328 (avr_out_xload): Likewise.
5329 (output_movqi): Likewise.
5330 (output_movhi): Likewise.
5331 (out_movqi_r_mr): Likewise.
5332 (out_movhi_r_mr): Likewise.
5333 (out_movsi_r_mr): Likewise.
5334 (out_movsi_mr_r): Likewise.
5335 (output_movsisf): Likewise.
5336 (avr_out_load_psi): Likewise.
5337 (avr_out_store_psi): Likewise.
5338 (avr_out_movpsi): Likewise.
5339 (out_movqi_mr_r): Likewise.
5340 (avr_out_movhi_mr_r_xmega): Likewise.
5341 (out_movhi_mr_r): Likewise.
5342 (compare_condition): Likewise for param "insn" and local "next".
5343 (compare_sign_p): Likewise for param "insn".
5344 (compare_diff_p): Likewise.
5345 (compare_eq_p): Likewise.
5346 (avr_out_compare): Likewise.
5347 (avr_out_compare64): Likewise.
5348 (avr_out_tsthi): Likewise.
5349 (avr_out_tstpsi): Likewise.
5350 (avr_out_tstsi): Likewise.
5351 (out_shift_with_cnt): Likewise.
5352 (ashlqi3_out): Likewise.
5353 (ashlhi3_out): Likewise.
5354 (avr_out_ashlpsi3): Likewise.
5355 (ashlsi3_out): Likewise.
5356 (ashrqi3_out): Likewise.
5357 (ashrhi3_out): Likewise.
5358 (avr_out_ashrpsi3): Likewise.
5359 (ashrsi3_out): Likewise.
5360 (lshrqi3_out): Likewise.
5361 (lshrhi3_out): Likewise.
5362 (avr_out_lshrpsi3): Likewise.
5363 (lshrsi3_out): Likewise.
5364 (avr_out_fract): Likewise.
5365 (avr_out_round): Likewise.
5366 (avr_adjust_insn_length): Likewise.
5367 (reg_unused_after): Likewise.
5368 (_reg_unused_after): Likewise.
5369 (avr_compare_pattern): Likewise.
5370 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
5371 and locals "branch1", "branch2", "insn2", "jump".
5372 (avr_reorg): Likewise for local "insn".
5373 (avr_2word_insn_p): Likewise for param "insn".
5374 (jump_over_one_insn_p): Likewise.
5375 (avr_out_sbxx_branch): Likewise.
5376 (avr_out_movmem): Likewise.
5378 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5380 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
5381 param from rtx to rtx_insn *.
5382 (thumb1_final_prescan_insn): Likewise.
5383 (thumb2_final_prescan_insn): Likewise.
5385 * config/arm/arm.c (emit_set_insn): Strengthen return type from
5387 (struct minipool_node): Likewise for field "insn".
5388 (dump_minipool): Likewise for param "scan".
5389 (create_fix_barrier): Likewise for local "from". Strengthen local
5390 "label" from rtx to rtx_code_label *.
5391 (push_minipool_barrier): Strengthen param "insn" from rtx to
5393 (push_minipool_fix): Likewise.
5394 (note_invalid_constants): Likewise.
5395 (thumb2_reorg): Likewise for local "insn".
5396 (arm_reorg): Likewise.
5397 (thumb2_final_prescan_insn): Likewise for param
5398 "insn" and local "first_insn".
5399 (arm_final_prescan_insn): Likewise for param "insn" and locals
5400 "start_insn", "this_insn".
5401 (arm_debugger_arg_offset): Likewise for param "insn".
5402 (thumb1_emit_multi_reg_push): Likewise for return type and local
5404 (thumb1_final_prescan_insn): Likewise for param "insn".
5405 (thumb_far_jump_used_p): Likewise for local "insn".
5406 (thumb1_expand_prologue): Likewise.
5407 (arm_expand_epilogue_apcs_frame): Likewise.
5408 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
5409 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
5410 from rtx to rtx_code_label *.
5411 (arm_split_atomic_op): Likewise for local "label".
5412 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
5414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5416 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
5417 first param from rtx to rtx_insn *.
5418 (arc_verify_short): Likewise.
5419 (arc_short_long): Likewise.
5420 (arc_need_delay): Likewise.
5422 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
5424 (arc_ccfsm_advance): Likewise for param "insn" and locals
5425 "start_insn", "this_insn".
5426 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
5427 (arc_ccfsm_post_advance): Likewise for param "insn".
5428 (arc_next_active_insn): Likewise for return type and param "insn".
5429 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
5430 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
5431 (output_short_suffix): Likewise for local "insn".
5432 (arc_final_prescan_insn): Likewise for param "insn". Remove
5433 now-redundant checked cast.
5434 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
5435 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
5436 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
5437 for use where lc_set became an insn.
5438 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
5440 (arc_get_insn_variants): Likewise for local "prev".
5441 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
5443 (arc_predicate_delay_insns): Likewise for local "insn".
5444 (arc_pad_return): Likewise for local "prev". For now, add a
5445 checked cast when extracting the insn from "final_sequence".
5446 (arc_short_long): Likewise for param "insn".
5447 (arc_need_delay): Likewise for param "insn" and local "next".
5448 (arc_label_align): Likewise for locals "prev", "next".
5450 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5452 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
5453 "insn" from rtx to rtx_insn *.
5454 (alpha_gp_save_rtx): Likewise for local "seq".
5455 (alpha_instantiate_decls): Likewise for local "top".
5456 (get_some_local_dynamic_name): Likewise for local "insn".
5457 (alpha_does_function_need_gp): Likewise.
5458 (set_frame_related_p): Likewise for return type and for locals
5460 (emit_frame_store_1): Likewise for local "insn".
5461 (alpha_expand_prologue): Likewise for locals "insn", "seq".
5462 (alpha_end_function): Likewise for local "insn".
5463 (alpha_output_mi_thunk_osf): Likewise.
5464 (alphaev4_insn_pipe): Likewise for param "insn".
5465 (alphaev5_insn_pipe): Likewise.
5466 (alphaev4_next_group): Likewise for return type and param 1
5468 (alphaev5_next_group): Likewise.
5469 (alpha_align_insns_1): Likewise for return type and param 1 of
5470 callback param "next_group", and for locals "i", "next", "prev",
5471 "where", "where2", "insn".
5473 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
5475 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
5476 rather than modifying the stmt.
5478 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5480 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
5481 cgraph_state conversion.
5483 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5485 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5486 Strengthen local "insns" from rtx to rtx_insn *.
5487 (aarch64_set_frame_expr): Likewise for local "insn".
5488 (aarch64_save_or_restore_fprs): Likewise.
5489 (aarch64_save_or_restore_callee_save_registers): Likewise.
5490 (aarch64_expand_prologue): Likewise.
5491 (aarch64_expand_epilogue): Likewise.
5492 (aarch64_output_mi_thunk): Likewise.
5493 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5494 "label2" from rtx to rtx_code_label *.
5495 (aarch64_split_atomic_op): Likewise for local "label".
5497 2014-08-25 Martin Liska <mliska@suse.cz>
5499 * cgraph.h (symtab_node):
5500 (bool needed_p (void)): created from decide_is_symbol_needed
5501 (bool referred_to_p (void)): created from referred_to_p
5502 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5503 * cgraph.h (cgraph_node):
5504 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5505 (void expand (void)): created from expand_function
5506 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5507 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5508 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5509 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5510 * cgraph.h (varpool_node):
5511 (static void add (tree decl): created from varpool_add_new_variable
5512 * cgraph.h (cgraph_edge):
5514 (void remove_caller (void)): created from cgraph_edge_remove_caller
5515 (void remove_callee (void)): created from cgraph_edge_remove_callee
5516 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5517 created from cgraph_set_call_stmt
5518 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5519 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5520 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5521 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5522 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5523 created from cgraph_speculative_call_info
5524 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5525 int freq_scale, bool update_original)): created from cgraph_clone_edge
5526 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5527 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5528 (bool recursive_p (void)): created from cgraph_edge_recursive_p
5529 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5530 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5531 (static void rebuild_references (void)): created from cgraph_rebuild_references
5532 * cgraph.h (symbol_table):
5533 (create_reference): renamed from add_reference
5534 (maybe_create_reference): renamed from maybe_add_reference
5535 (void register_symbol (symtab_node *node)): new function
5536 (void clear_asm_symbols (void)): new function
5537 (void unregister (symtab_node *node)): new function
5538 (void release_symbol (cgraph_node *node, int uid)): new function
5539 (cgraph_node * allocate_cgraph_symbol (void)): new function
5540 (void initialize (void)): created from cgraph_init
5541 (symtab_node *first_symbol (void)):new function
5542 (asm_node *first_asm_symbol (void)):new function
5543 (symtab_node *first_defined_symbol (void)):new function
5544 (varpool_node *first_variable (void)):new function
5545 (varpool_node *next_variable (varpool_node *node)):new function
5546 (varpool_node *first_static_initializer (void)):new function
5547 (varpool_node *next_static_initializer (varpool_node *node)):new function
5548 (varpool_node *first_defined_variable (void)):new function
5549 (varpool_node *next_defined_variable (varpool_node *node)):new function
5550 (cgraph_node *first_defined_function (void)):new function
5551 (cgraph_node *next_defined_function (cgraph_node *node)):new function
5552 (cgraph_node *first_function (void)):new function
5553 (cgraph_node *next_function (cgraph_node *node)):new function
5554 (cgraph_node *first_function_with_gimple_body (void)):new function
5555 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5556 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5557 created from symtab_remove_unreachable_nodes
5558 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5559 (void process_new_functions (void)): created from cgraph_process_new_functions
5560 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5561 (bool output_variables (void)): created from varpool_node::output_variables
5562 (void output_asm_statements (void)): created from output_asm_statements
5563 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5564 (void compile (void)): created from compile
5565 (void output_weakrefs (void)): created from output_weakrefs
5566 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5567 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5568 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5569 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5570 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5571 created from cgraph_next_function_with_gimple_body
5572 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5573 created from cgraph_remove_edge_removal_hook
5574 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5575 created from cgraph_add_node_removal_hook
5576 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5577 created from cgraph_remove_node_removal_hook
5578 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5579 created from varpool_add_node_removal_hook
5580 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5581 created from varpool_remove_node_removal_hook
5582 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5583 created from cgraph_add_function_insertion_hook
5584 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5585 created from cgraph_remove_function_insertion_hook
5586 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5587 created from varpool_add_variable_insertion_hook
5588 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5589 created from varpool_remove_variable_insertion_hook
5590 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5591 created from cgraph_add_edge_duplication_hook
5592 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5593 created from cgraph_remove_edge_duplication_hook
5594 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5595 created from cgraph_add_node_duplication_hook
5596 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5597 created from cgraph_remove_node_duplication_hook
5598 (void call_edge_removal_hooks (cgraph_edge *e)):
5599 created from cgraph_call_edge_removal_hooks
5600 (void call_cgraph_insertion_hooks (cgraph_node *node)):
5601 created from call_function_insertion_hooks
5602 (void call_cgraph_removal_hooks (cgraph_node *node)):
5603 created from cgraph_call_node_removal_hooks
5604 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5605 created from cgraph_node::call_duplication_hooks
5606 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5607 created from cgraph_call_edge_duplication_hooks
5608 (void call_varpool_removal_hooks (varpool_node *node)):
5609 created from varpool_call_node_removal_hooks
5610 (void call_varpool_insertion_hooks (varpool_node *node)):
5611 created from varpool_call_variable_insertion_hooks
5612 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5613 created from insert_to_assembler_name_hash
5614 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5615 created from unlink_from_assembler_name_hash
5616 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5617 created from symtab_prevail_in_asm_name_hash
5618 (void symtab_initialize_asm_name_hash (void)):
5619 created from symtab_initialize_asm_name_hash
5620 (void change_decl_assembler_name (tree decl, tree name)):
5621 created from change_decl_assembler_name
5622 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5623 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5624 created from decl_assembler_name_hash
5625 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5626 created from decl_assembler_name_equal
5627 (static hashval_t hash_node_by_assembler_name (const void *p)):
5628 created from hash_node_by_assembler_name
5629 (static int eq_assembler_name (const void *p1, const void *p2)):
5630 created from eq_assembler_name
5632 2014-08-25 Marek Polacek <polacek@redhat.com>
5634 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5636 2014-08-25 Petr Murzin <petr.murzin@intel.com>
5638 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5639 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5640 SWI1248_AVX512BW mode iterator.
5642 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
5645 * config/sh/predicates.md (general_extend_operand): Disable
5646 TRUNCATE before reload completes.
5648 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
5650 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5652 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
5655 * config/sh/sh.opt (musermode): Allow negative form.
5656 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5657 targets that don't support it.
5658 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5659 Document -mno-usermode option.
5661 2014-08-24 Kito Cheng <kito@0xlab.org>
5663 * system.h (CALLER_SAVE_PROFITABLE): Poison.
5664 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5665 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5666 * doc/tm.texi: Regenerate.
5668 2014-08-24 Kito Cheng <kito@0xlab.org>
5670 * ira.c: Fix typo in comment.
5672 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5674 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5675 Deprecate c++1y. Change language to reflect greater confidence in C++14.
5677 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
5680 * config/pa/pa.c (pa_output_function_epilogue): Don't set
5681 last_address when the current function is a thunk.
5682 (pa_asm_output_mi_thunk): When we don't have named sections or they
5683 are not being used, check that thunk can reach the stub table with a
5686 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5688 * web.c (union_match_dups): Strengthen param "insn" from rtx to
5690 (pass_web::execute): Likewise for local "insn".
5692 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5694 * var-tracking.c (struct micro_operation_def): Strengthen field
5695 "insn" from rtx to rtx_insn *.
5696 (struct emit_note_data_def): Likewise.
5697 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5698 (vt_stack_adjustments): Likewise for local "insn".
5699 (adjust_insn): Likewise for param "insn".
5700 (val_store): Likewise.
5701 (val_resolve): Likewise.
5702 (struct count_use_info): Likewise for field "insn".
5703 (log_op_type): Likewise for param "insn".
5704 (reverse_op): Likewise.
5705 (prepare_call_arguments): Likewise.
5706 (add_with_sets): The initial param takes an insn, but we can't
5707 yet strengthen it from rtx to rtx_insn * since it's used as a
5708 cselib_record_sets_hook callback. For now rename initial param
5709 from "insn" to "uncast_insn", and introduce a local "insn" of
5710 the stronger rtx_insn * type, with a checked cast.
5711 (compute_bb_dataflow): Strengthen local "insn" from rtx to
5713 (emit_note_insn_var_location): Likewise.
5714 (emit_notes_for_changes): Likewise.
5715 (emit_notes_for_differences): Likewise.
5716 (next_non_note_insn_var_location): Likewise for return type and
5718 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5719 (vt_initialize): Likewise for local "insn".
5720 (delete_debug_insns): Likewise for locals "insn" and "next".
5722 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5724 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5726 (mark_constant_pool): Likewise for local "insn".
5728 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5730 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5732 (dead_debug_promote_uses): Likewise.
5733 (dead_debug_insert_temp): Likewise.
5735 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5737 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5738 from const_rtx to const rtx_insn *.
5739 (store_killed_after): Likewise. Strengthen locals "last", "act"
5740 from rtx to rtx_insn *.
5741 (store_killed_before): Strengthen param "insn" from const_rtx to
5742 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
5743 (find_moveable_store): Strengthen param "insn" from rtx to
5745 (compute_store_table): Likewise for local "insn".
5746 (insert_insn_start_basic_block): Likewise for param "insn" and
5747 locals "prev", "before", "insn".
5748 (insert_store): For now, add a checked cast to rtx_insn * on the
5749 result of gen_move_insn.
5750 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5752 (replace_store_insn): Likewise. For now, add a checked cast to
5753 rtx_insn * on the result of gen_move_insn.
5755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5757 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5759 (expand_sjlj_dispatch_table): Likewise.
5761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5763 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5764 "insn" from rtx to rtx_insn *.
5766 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5768 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5769 "insn" from rtx to rtx_insn *.
5770 (dup_block_and_redirect): Likewise for param 3 "before".
5772 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5773 from rtx to rtx_insn *.
5774 (move_insn_for_shrink_wrap): Likewise.
5775 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5776 (dup_block_and_redirect): Likewise for param "before" and local
5778 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5780 (convert_to_simple_return): Likewise for local "start".
5782 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5783 Strengthen local "insn" from rtx to rtx_insn *, for use when
5784 invoking requires_stack_frame_p.
5786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5788 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5790 (speculate_expr): Likewise for locals "orig_insn_rtx",
5792 (eq_transformed_insns): Likewise for locals "i1", "i2".
5793 (check_for_new_jump): Likewise for return type and local "end".
5794 (find_new_jump): Likewise for return type and local "jump".
5795 (sel_split_edge): Likewise for local "jump".
5796 (sel_create_recovery_block): Likewise.
5797 (sel_redirect_edge_and_branch_force): Likewise.
5798 (sel_redirect_edge_and_branch): Likewise.
5800 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5802 * sel-sched.c (substitute_reg_in_expr): Strengthen local
5803 "new_insn" from rtx to rtx_insn *.
5804 (create_insn_rtx_with_rhs): Likewise for return type and for local
5806 (create_insn_rtx_with_lhs): Likewise.
5807 (create_speculation_check): Likewise for local "insn_rtx".
5808 (implicit_clobber_conflict_p): Likewise for local "insn".
5809 (get_expr_cost): Likewise.
5810 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5811 (move_cond_jump): Likewise for locals "next", "prev", "link",
5812 "head", "from", "to".
5814 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5816 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5817 "next" from rtx to rtx_insn *.
5818 (find_conditional_protection): Likewise for local "next".
5819 (is_conditionally_protected): Likewise for local "insn1".
5820 (is_pfree): Likewise for locals "insn1", "insn2".
5822 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5824 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5825 from rtx to rtx_insn *.
5827 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5828 locals "insn1", "insn2" from rtx to rtx_insn *.
5829 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5830 locals "insn", "prev", "last_jump", "next_tail".
5831 (schedule_ebb): Likewise for params "head", "tail".
5832 (schedule_ebbs): Likewise for locals "tail", "head".
5834 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5835 to rtx_insn on "last_insn" in one of the invocations of
5838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5840 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
5841 "elem", "insn" from rtx to rtx_insn *.
5842 (change_spec_dep_to_hard): Likewise.
5843 (get_back_and_forw_lists): Likewise for local "con".
5844 (sd_add_dep): Likewise for locals "elem", "insn".
5845 (sd_resolve_dep): Likewise for locals "pro", "con".
5846 (sd_unresolve_dep): Likewise.
5847 (sd_delete_dep): Likewise.
5848 (chain_to_prev_insn): Likewise for local "pro".
5849 (find_inc): Likewise for locals "pro", "con".
5851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5853 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
5855 (reg_set_between_p): Strengthen local "insn" from const_rtx to
5857 (modified_between_p): Strengthen local "insn" from rtx to
5859 (remove_reg_equal_equiv_notes_for_regno): Likewise.
5860 (keep_with_call_p): Strengthen local "i2" from const_rtx to
5863 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5865 * resource.c (next_insn_no_annul): Strengthen local "next" from
5867 (mark_referenced_resources): Likewise for local "insn".
5869 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5871 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
5873 (find_reloads): Likewise for param 1.
5874 (subst_reloads): Likewise for sole param.
5875 (find_equiv_reg): Likwise for param 2.
5876 (regno_clobbered_p): Likwise for param 2.
5877 (reload): Likewise for param 1.
5879 * caller-save.c (save_call_clobbered_regs): Strengthen local
5880 "insn" from rtx to rtx_insn *.
5881 (insert_one_insn): Likewise for local "insn".
5883 * reload.c (this_insn): Likewise for this global.
5884 (find_reloads): Likewise for param "insn".
5885 (find_reloads_toplev): Likewise.
5886 (find_reloads_address): Likewise.
5887 (subst_reg_equivs): Likewise.
5888 (update_auto_inc_notes): Likewise.
5889 (find_reloads_address_1): Likewise.
5890 (find_reloads_subreg_address): Likewise.
5891 (subst_reloads): Likewise.
5892 (find_equiv_reg): Likewise, also for local "p".
5893 (regno_clobbered_p): Likewise for param "insn".
5895 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
5897 (spill_reg_store): Likewise for the elements of this array.
5898 (remove_init_insns): Likewise for local "equiv_insn".
5899 (will_delete_init_insn_p): Likewise for param "insn".
5900 (reload): Likewise for param ""first" and local "insn".
5901 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
5903 (calculate_elim_costs_all_insns): Likewise.
5904 (delete_caller_save_insns): Likewise.
5905 (spill_failure): Likewise for param "insn".
5906 (delete_dead_insn): Likewise.
5907 (set_label_offsets): Likewise.
5908 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
5910 (elimination_costs_in_insn): Likewise for param "insn".
5911 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
5912 when referring to an insn.
5913 (set_initial_label_offsets): Likewise.
5914 (set_offsets_for_label): Strengthen param "insn" from rtx to
5916 (init_eliminable_invariants): Likewise for param "first" and local
5918 (fixup_eh_region_note): Likewise for param "insn".
5919 (reload_as_needed): Likewise for locals "prev", "insn",
5920 "old_next", "old_prev", "next".
5921 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
5923 (reload_inheritance_insn): Strengthen elements of this array from
5925 (failed_reload): Likewise for param "insn".
5926 (choose_reload_regs): Likewise for local "insn". Replace use of
5927 NULL_RTX with NULL when referring to an insn.
5928 (input_reload_insns): Strengthen elements of this array from rtx
5930 (other_input_address_reload_insns): Likewise for this global.
5931 (other_input_reload_insns): Likewise for this global.
5932 (input_address_reload_insns): Likwise for the elements of this
5934 (inpaddr_address_reload_insns): Likwise for the elements of this
5936 (output_reload_insns): Likewise for the elements of this array.
5937 (output_address_reload_insns): Likewise for the elements of this
5939 (outaddr_address_reload_insns): Likewise for the elements of this
5941 (operand_reload_insns): Likewise for this global.
5942 (other_operand_reload_insns): Likewise for this global.
5943 (other_output_reload_insns): Likewise for the elements of this
5945 (new_spill_reg_store): Likewise for the elements of this
5947 (emit_input_reload_insns): Likewise for locals "insn", "temp".
5948 Strengthen local "where" from rtx * to rtx_insn **.
5949 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
5950 from rtx to rtx_insn *.
5951 (do_input_reload): Likewise for local "insn".
5952 (do_output_reload): Likewise for local "insn".
5953 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
5954 (emit_insn_if_valid_for_reload): Likewise for return type and local
5955 "last". Add checked cast to rtx_insn when returning "insn" since
5956 this has been through emit_insn.
5957 (gen_reload): Strengthen return type and locals "last", "insn", "set"
5958 from rtx to rtx_insn *. Add checked cast to rtx_insn when
5959 returning "insn" since it's been through
5960 emit_insn_if_valid_for_reload at this point.
5961 (delete_output_reload): Strengthen param "insn" and locals
5962 "output_reload_insn", "i2" from rtx to rtx_insn *.
5963 (delete_address_reloads): Likewise for params "dead_insn",
5964 "current_insn" and locals "prev", "next".
5965 (delete_address_reloads_1): Likewise for params "dead_insn",
5966 "current_insn" and locals "prev", "i2".
5967 (inc_for_reload): Likewise for locals "last", "add_insn".
5968 (add_auto_inc_notes): Strengthen param "insn" from rtx to
5971 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
5972 param of this duplicate of the prototype from reload.h
5974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5976 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
5978 (regstat_bb_compute_calls_crossed): Likewise.
5980 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5982 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
5984 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
5986 (regrename_analyze): Strengthen local "insn" from rtx to
5988 (scan_rtx_reg): Likewise for param "insn".
5989 (scan_rtx_address): Likewise.
5990 (scan_rtx): Likewise.
5991 (restore_operands): Likewise.
5992 (record_out_operands): Likewise.
5993 (build_def_use): Likewise for local "insn". Replace use of
5994 NULL_RTX with NULL when dealing with an insn.
5996 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5998 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
5999 * reginfo.c (reg_scan): Likewise, also for local "insn".
6000 (reg_scan_mark_refs): Likewise for param "insn".
6001 (init_subregs_of_mode): Likewise for local "insn".
6003 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6005 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6006 "insn" from rtx to rtx_insn *.
6007 (replace_oldest_value_reg): Likewise for param "insn".
6008 (replace_oldest_value_addr): Likewise.
6009 (replace_oldest_value_mem): Likewise.
6010 (apply_debug_insn_changes): Likewise for local "last_insn".
6011 (copyprop_hardreg_forward_1): Likewise for local "insn".
6013 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6015 * reg-stack.c (next_flags_user): Strengthen return type and param
6016 "insn" from rtx to rtx_insn *.
6017 (straighten_stack): Likewise for param "insn".
6018 (check_asm_stack_operands): Likewise.
6019 (remove_regno_note): Likewise.
6020 (emit_pop_insn): Likewise for return type, param "insn", local
6022 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6023 "limit" from rtx to rtx_insn *.
6024 (swap_to_top): Likewise for param "insn".
6025 (move_for_stack_reg): Likewise.
6026 (move_nan_for_stack_reg): Likewise.
6027 (swap_rtx_condition): Likewise.
6028 (compare_for_stack_reg): Likewise.
6029 (subst_all_stack_regs_in_debug_insn): Likewise.
6030 (subst_stack_regs_pat): Likewise, and local "insn2".
6031 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6033 (subst_stack_regs): Likewise.
6034 (change_stack): Likewise.
6035 (convert_regs_1): Likewise for locals "insn", "next".
6037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6039 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6041 (combine_set_extension): Likewise for param "curr_insn".
6042 (transform_ifelse): Likewise for param "def_insn".
6043 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6044 from vec<rtx> * to vec<rtx_insn *> *.
6045 (is_cond_copy_insn): Likewise for param "insn".
6046 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6048 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6049 local "def_insn" from rtx to rtx_insn *.
6050 (get_sub_rtx): Likewise for param "def_insn".
6051 (merge_def_and_ext): Likewise.
6052 (combine_reaching_defs): Likewise.
6053 (add_removable_extension): Likewise for param "insn".
6054 (find_removable_extensions): Likewise for local "insn".
6055 (find_and_remove_re): Likewise for locals "curr_insn" and
6056 "def_insn". Strengthen locals "reinsn_del_list" and
6057 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6059 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6061 * recog.c (split_insn): Strengthen param "insn" and locals
6062 "first", "last" from rtx to rtx_insn *.
6063 (split_all_insns): Likewise for locals "insn", "next".
6064 (split_all_insns_noflow): Likewise.
6066 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6068 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6070 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6071 (debug_rtx_find): Likewise for param 1 "x".
6073 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6074 const_rtx to const rtx_insn *. Likewise for local "insn".
6075 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6076 (debug_rtx_find): Likewise for param 1 "x".
6077 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6078 from const_rtx to const rtx_insn * within the appropriate cases of
6079 the switch statement.
6081 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6082 Strengthen local "insns" from rtx to rtx_insn * since this is
6083 passed to a call to debug_rtx_list.
6085 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6087 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6090 * function.c (stack_protect_epilogue): Add checked cast to
6091 rtx_insn for now when invoking predict_insn_def.
6093 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6095 (predict_insn_def): Likewise.
6096 (rtl_predict_edge): Likewise for local "last_insn".
6097 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6099 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6101 (bb_estimate_probability_locally): Likewise for local "last_insn".
6102 (expensive_function_p): Likewise for local "insn".
6104 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6105 local "jmp", since this is used when invoking predict_insn_def.
6107 2014-08-22 Marek Polacek <polacek@redhat.com>
6110 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6112 2014-08-22 Marek Polacek <polacek@redhat.com>
6115 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6116 a comparison in parens.
6117 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6122 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6125 * cprop.c (fis_get_condition): Likewise.
6127 * postreload.c (reload_cse_regs): Likewise for param "first".
6128 (reload_cse_simplify): Likewise for param "insn".
6129 (reload_cse_regs_1): Likewise for local "insn".
6130 (reload_cse_simplify_set): Likewise for param "insn".
6131 (reload_cse_simplify_operands): Likewise.
6132 (struct reg_use): Likewise for field "insn".
6133 (reload_combine_purge_insn_uses): Likewise for param "insn".
6134 (fixup_debug_insns): Likewise for params "from", "to" and local
6136 (try_replace_in_use): Likewise for local "use_insn".
6137 (reload_combine_recognize_const_pattern): Likewise for param
6138 "insn" and locals "add_moved_after_insn", "use_insn".
6139 (reload_combine_recognize_pattern): Likewise for param "insn" and
6141 (reload_combine): Likewise for locals "insn", "prev".
6142 (reload_combine_note_use): Likewise for param "insn".
6143 (move2add_use_add2_insn): Likewise.
6144 (move2add_use_add3_insn): Likewise.
6145 (reload_cse_move2add): Likewise, also for local "next".
6146 (move2add_note_store): Likewise for local "insn".
6148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6150 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6152 (struct unoccr): Likewise.
6153 (struct modifies_mem): Likewise.
6154 (alloc_mem): Likewise for local "insn".
6155 (insert_expr_in_table): Likewise for param "insn".
6156 (dump_expr_hash_table_entry): Likewise for local "insn".
6157 (oprs_unchanged_p): Likewise for param "insn".
6158 (load_killed_in_block_p): Likewise for local "setter".
6159 (record_last_reg_set_info): Likewise for param "insn".
6160 (record_last_reg_set_info_regno): Likewise.
6161 (record_last_mem_set_info): Likewise.
6162 (record_last_set_info): Likewise for local "last_set_insn".
6163 (record_opr_changes): Likewise for param "insn".
6164 (hash_scan_set): Likewise.
6165 (compute_hash_table): Likewise for local "insn".
6166 (get_avail_load_store_reg): Likewise for param "insn".
6167 (eliminate_partially_redundant_load): Likewise, also for locals
6168 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6170 (eliminate_partially_redundant_loads): Likewise for local "insn".
6172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6174 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6176 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6177 (expand_twoval_unop): Likewise for locals entry_last", "last".
6178 (expand_twoval_binop): Likewise.
6179 (expand_twoval_binop_libfunc): Likewise for local "insns".
6180 (widen_leading): Likewise for local "last".
6181 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6182 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6183 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6184 (expand_parity): Likewise for locals "last" and "seq".
6185 (expand_ffs): Likewise for local "seq". Strengthen local
6186 "nonzero_label" from rtx to rtx_code_label *.
6187 (expand_absneg_bit): Strengthen local "insns" from rtx to
6189 (expand_unop_direct): Likewise for local "last".
6190 (expand_unop): Likewise for locals "last", "insns".
6191 (expand_abs_nojump): Likewise for local "last".
6192 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6193 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6195 (expand_copysign_absneg): Strengthen local "label" from rtx to
6197 (expand_copysign_bit): Strengthen local "insns" from rtx to
6199 (struct no_conflict_data): Likewise for fields "first", "insn".
6200 (emit_libcall_block_1): Likewise for param "insns" and locals
6201 "next", "last", "insn".
6202 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6203 on "insns" when invoking emit_libcall_block_1. Ultimately we
6204 want to strengthen insns itself.
6205 (prepare_cmp_insn): Strengthen local "last" from rtx to
6207 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
6208 (prepare_float_lib_cmp): Likewise for local "insns".
6209 (emit_conditional_move): Likewise for local "last".
6210 (emit_conditional_add): Likewise.
6211 (have_sub2_insn): Likewise for local "seq".
6212 (expand_float): Likewise for local "insns". Strengthen locals
6213 "label", "neglabel" from rtx to rtx_code_label *.
6214 (expand_fix): Likewise for locals "last", "insn", "insns" (to
6215 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
6216 (expand_fixed_convert): Likewise for local "insns" (to
6218 (expand_sfix_optab): Likewise for local "last".
6219 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
6220 to rtx_code_label *.
6221 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
6222 from rtx to rtx_insn *.
6223 (expand_atomic_fetch_op): Likewise for local "insn".
6224 (maybe_legitimize_operand_same_code): Likewise for local "last".
6225 (maybe_legitimize_operands): Likewise.
6227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6229 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
6230 "insn" from rtx to rtx_insn *.
6231 (ps_rtl_insn): Likewise for return type.
6232 (doloop_register_get): Likewise for params "head", "tail" and
6233 locals "insn", "first_insn_not_to_check".
6234 (schedule_reg_move): Likewise for local "this_insn".
6235 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
6236 of gen_move_insn for now.
6237 (reset_sched_times): Strengthen local "insn" from rtx to
6239 (permute_partial_schedule): Likewise.
6240 (duplicate_insns_of_cycles): Likewise for local "u_insn".
6241 (dump_insn_location): Likewise for param "insn".
6242 (loop_canon_p): Likewise for local "insn".
6243 (sms_schedule): Likewise.
6244 (print_partial_schedule): Likewise.
6245 (ps_has_conflicts): Likewise.
6247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6249 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
6250 "tailp" from rtx * to rtx_insn **.
6252 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
6253 from rtx to rtx_insn *.
6254 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
6255 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
6256 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
6258 * modulo-sched.c (const_iteration_count): Strengthen return type
6259 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
6260 use of NULL_RTX with NULL when working with insns.
6261 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
6263 (sms_schedule): Likewise.
6264 * sched-rgn.c (init_ready_list): Likewise, also for locals
6265 "src_head" and "src_next_tail".
6266 (compute_block_dependences): Likewise.
6267 (free_block_dependencies): Likewise.
6268 (debug_rgn_dependencies): Likewise.
6269 (free_rgn_deps): Likewise.
6270 (compute_priorities): Likewise.
6271 (schedule_region): Likewise.
6272 * sel-sched.c (find_ebb_boundaries): Likewise.
6274 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
6275 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
6277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6279 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
6280 from rtx to rtx_insn *.
6281 (new_seginfo): Likewise for param "insn".
6282 (create_pre_exit): Likewise for locals "last_insn",
6283 "before_return_copy", "return_copy".
6284 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
6287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6289 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
6290 from rtx to rtx_insn *.
6291 (lra_push_insn): Likewise for 1st param.
6292 (lra_push_insn_and_update_insn_regno_info): Likewise.
6293 (lra_pop_insn): Likewise for return type.
6294 (lra_invalidate_insn_data): Likewise for 1st param.
6295 (lra_set_insn_deleted): Likewise.
6296 (lra_delete_dead_insn): Likewise.
6297 (lra_process_new_insns): Likewise for first 3 params.
6298 (lra_set_insn_recog_data): Likewise for 1st param.
6299 (lra_update_insn_recog_data): Likewise.
6300 (lra_set_used_insn_alternative): Likewise.
6301 (lra_invalidate_insn_regno_info): Likewise.
6302 (lra_update_insn_regno_info): Likewise.
6303 (lra_former_scratch_operand_p): Likewise.
6304 (lra_eliminate_regs_1): Likewise.
6305 (lra_get_insn_recog_data): Likewise.
6307 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
6310 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
6312 (substitute_within_insn): New.
6313 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
6314 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
6315 Replace call to "substitute" with call to substitute_within_insn.
6317 * lra-constraints.c (curr_insn): Strengthen from rtx to
6319 (get_equiv_with_elimination): Likewise for param "insn".
6320 (match_reload): Strengthen params "before" and "after" from rtx *
6322 (emit_spill_move): Likewise for return type. Add a checked cast
6323 to rtx_insn * on result of gen_move_insn for now.
6324 (check_and_process_move): Likewise for local "before". Replace
6325 NULL_RTX with NULL when referring to insns.
6326 (process_addr_reg): Strengthen params "before" and "after" from
6327 rtx * to rtx_insn **.
6328 (insert_move_for_subreg): Likewise.
6329 (simplify_operand_subreg): Strengthen locals "before" and "after"
6330 from rtx to rtx_insn *.
6331 (process_address_1): Strengthen params "before" and "after" from
6332 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
6334 (process_address): Strengthen params "before" and "after" from
6335 rtx * to rtx_insn **.
6336 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
6337 (curr_insn_transform): Strengthen locals "before" and "after"
6338 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
6340 (loc_equivalence_callback): Update cast of "data", changing
6341 resulting type from rtx to rtx_insn *.
6342 (substitute_pseudo_within_insn): New.
6343 (inherit_reload_reg): Strengthen param "insn" from rtx to
6344 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
6345 NULL when referring to insns. Add a checked cast to rtx_insn *
6346 when using usage_insn to invoke lra_update_insn_regno_info.
6347 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
6348 likewise for locals "restore", "save". Add checked casts to
6349 rtx_insn * when using usage_insn to invoke
6350 lra_update_insn_regno_info and lra_process_new_insns. Replace
6351 NULL_RTX with NULL when referring to insns.
6352 (split_if_necessary): Strengthen param "insn" from rtx to
6354 (update_ebb_live_info): Likewise for params "head", "tail" and local
6356 (get_last_insertion_point): Likewise for return type and local "insn".
6357 (get_live_on_other_edges): Likewise for local "last".
6358 (inherit_in_ebb): Likewise for params "head", "tail" and locals
6359 "prev_insn", "next_insn", "restore".
6360 (remove_inheritance_pseudos): Likewise for local "prev_insn".
6361 (undo_optional_reloads): Likewise for local "insn".
6363 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
6365 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
6367 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
6369 (spill_pseudos): Likewise for local "insn".
6370 (init_elimination): Likewise.
6371 (process_insn_for_elimination): Likewise for param "insn".
6373 * lra-lives.c (curr_insn): Likewise.;
6375 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
6376 (remove_pseudos): Likewise for param "insn".
6377 (spill_pseudos): Likewise for local "insn".
6378 (lra_final_code_change): Likewise for locals "insn", "curr".
6380 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
6381 (lra_set_insn_deleted): Likewise.
6382 (lra_delete_dead_insn): Likewise, and for local "prev".
6383 (new_insn_reg): Likewise for param "insn".
6384 (lra_set_insn_recog_data): Likewise.
6385 (lra_update_insn_recog_data): Likewise.
6386 (lra_set_used_insn_alternative): Likewise.
6387 (get_insn_freq): Likewise.
6388 (invalidate_insn_data_regno_info): Likewise.
6389 (lra_invalidate_insn_regno_info): Likewise.
6390 (lra_update_insn_regno_info): Likewise.
6391 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
6393 (lra_push_insn_1): Strengthen param "insn" from rtx to
6395 (lra_push_insn): Likewise.
6396 (lra_push_insn_and_update_insn_regno_info): Likewise.
6397 (lra_pop_insn): Likewise for return type and local "insn".
6398 (push_insns): Likewise for params "from", "to", and local "insn".
6399 (setup_sp_offset): Likewise for params "from", "last" and locals
6401 (lra_process_new_insns): Likewise for params "insn", "before",
6402 "after" and local "last".
6403 (struct sloc): Likewise for field "insn".
6404 (lra_former_scratch_operand_p): Likewise for param "insn".
6405 (remove_scratches): Likewise for locals "insn", "last".
6406 (check_rtl): Likewise for local "insn".
6407 (add_auto_inc_notes): Likewise for param "insn".
6408 (update_inc_notes): Likewise for local "insn".
6409 (lra): Replace NULL_RTX with NULL when referring to insn.
6411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6413 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
6415 (resolve_reg_notes): Likewise.
6416 (resolve_simple_move): Likewise for return type, param "insn", and
6417 locals "insns", "minsn".
6418 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
6419 (resolve_use): Likewise.
6420 (resolve_debug): Likewise.
6421 (find_decomposable_shift_zext): Likewise.
6422 (resolve_shift_zext): Likewise for return type, param "insn", and
6423 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
6424 (decompose_multiword_subregs): Likewise for local "insn",
6425 "orig_insn", "decomposed_shift", "end".
6427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6429 * basic-block.h (basic_block split_edge_and_insert): Strengthen
6430 param "insns" from rtx to rtx_insn *.
6432 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
6434 (struct iv_to_split): Likewise.
6435 (loop_exit_at_end_p): Likewise for local "insn".
6436 (split_edge_and_insert): Likewise for param "insns".
6437 (compare_and_jump_seq): Likewise for return type, param "cinsn",
6438 and locals "seq", "jump".
6439 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
6440 "branch_code"; update invocations of compare_and_jump_seq to
6441 eliminate NULL_RTX in favor of NULL.
6442 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
6444 (reset_debug_uses_in_loop): Likewise.
6445 (analyze_insn_to_expand_var): Likewise for param "insn".
6446 (analyze_iv_to_split_insn): Likewise.
6447 (analyze_insns_in_loop): Likewise for local "insn".
6448 (insert_base_initialization): Likewise for param
6449 "insn" and local "seq".
6450 (split_iv): Likewise for param "insn" and local "seq".
6451 (expand_var_during_unrolling): Likewise for param "insn".
6452 (insert_var_expansion_initialization): Likewise for local "seq".
6453 (combine_var_copies_in_loop_exit): Likewise.
6454 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
6456 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
6457 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
6460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6462 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
6464 (iv_analyze_result): Likewise.
6465 (iv_analyze_expr): Likewise.
6468 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
6469 local "def_insn" from rtx to rtx_insn *.
6470 (get_biv_step_1): Likewise for local "insn".
6471 (iv_analyze_expr): Likewise for param "insn".
6472 (iv_analyze_def): Likewise for local "insn".
6473 (iv_analyze_op): Likewise for param "insn".
6474 (iv_analyze): Likewise.
6475 (iv_analyze_result): Likewise.
6477 (suitable_set_for_replacement): Likewise.
6478 (simplify_using_initial_values): Likewise for local "insn".
6479 (iv_number_of_iterations): Likewise for param "insn".
6480 (check_simple_exit): Add checked cast to rtx_insn when invoking
6481 iv_number_of_iterations for now (until get_condition is
6484 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6485 "insn" from rtx to rtx_insn *.
6486 (analyze_insns_in_loop): Likewise for local "insn".
6488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6490 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6492 (struct invariant): Likewise.
6493 (hash_invariant_expr_1): Likewise for param "insn".
6494 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6495 (find_exits): Likewise for local "insn".
6496 (create_new_invariant): Likewise for param "insn".
6497 (check_dependencies): Likewise.
6498 (find_invariant_insn): Likewise.
6499 (record_uses): Likewise.
6500 (find_invariants_insn): Likewise.
6501 (find_invariants_bb): Likewise for local "insn".
6502 (get_pressure_class_and_nregs): Likewise for param "insn".
6503 (calculate_loop_reg_pressure): Likewise for local "insn".
6505 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6507 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6509 (add_test): Likewise for locals "seq", "jump".
6510 (doloop_modify): Likewise for locals "sequence", "jump_insn".
6512 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6514 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6516 (rebuild_jump_labels_chain): Likewise for param "chain".
6518 * cfgexpand.c (pass_expand::execute): Add checked cast to
6519 rtx_insn * when calling rebuild_jump_labels_chain in region where
6520 we know e->insns.r is non-NULL.
6522 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6524 (rebuild_jump_labels): Likewise.
6525 (rebuild_jump_labels_chain): Likewise for param "chain".
6526 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6527 (init_label_info): Likewise for param "f".
6528 (maybe_propagate_label_ref): Likewise for params "jump_insn",
6529 "prev_nonjump_insn".
6530 (mark_all_labels): Likewise for param "f" and locals "insn",
6531 "prev_nonjump_insn".
6533 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6535 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6536 from rtx to rtx_insn *insn.
6537 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6538 (ira_add_allocno_copy): Likewise.
6539 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6541 (ira_create_copy): Likewise.
6542 (ira_add_allocno_copy): Likewise.
6543 (create_bb_allocnos): Likewise for local "insn".
6544 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6545 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6546 process_regs_for_copy for rtx_insn * param.
6547 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6548 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
6549 process_regs_for_copy for rtx_insn * param.
6550 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6551 * ira-costs.c (record_reg_classes): Likewise for param "insn".
6552 (record_operand_costs): Likewise.
6553 (scan_one_insn): Likewise for return type, and for param "insn".
6554 (process_bb_for_costs): Likewise for local "insn".
6555 (process_bb_node_for_hard_reg_moves): Likewise.
6556 * ira-emit.c (struct move): Likewise for field "insn".
6557 (create_move): Eliminate use of NULL_RTX when dealing with an
6559 (emit_move_list): Strengthen return type and locals "result",
6560 "insn" from rtx to rtx_insn *insn.
6561 (emit_moves): Likewise for locals "insns", "tmp".
6562 (ira_emit): Likewise for local "insn".
6563 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6565 (find_call_crossed_cheap_reg): Likewise.
6566 (process_bb_node_lives): Likewise for local "insn".
6567 * ira.c (decrease_live_ranges_number): Likewise.
6568 (compute_regs_asm_clobbered): Likewise.
6569 (build_insn_chain): Likewise.
6570 (find_moveable_pseudos): Likewise, also locals "def_insn",
6571 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
6572 to rtx_insn **. Add a checked cast when assigning from
6573 "closest_use" into closest_uses array in a region where we know
6574 it's a non-NULL insn.
6575 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6577 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6578 "last_interesting_insn", "uin".
6579 (move_unallocated_pseudos): Likewise for locals "def_insn",
6580 "move_insn", "newinsn".
6582 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6584 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6585 Strengthen locals "done_label", "do_error" from rtx to
6587 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6588 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
6590 (ubsan_expand_si_overflow_neg_check): Likewise for locals
6591 "done_label", "do_error" to rtx_code_label * and local "last" to
6593 (ubsan_expand_si_overflow_mul_check): Likewise for locals
6594 "done_label", "do_error", "large_op0", "small_op0_large_op1",
6595 "one_small_one_large", "both_ops_large", "after_hipart_neg",
6596 "after_lopart_neg", "do_overflow", "hipart_different" to
6597 rtx_code_label * and local "last" to rtx_insn *.
6599 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6601 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6602 "insn" and "move_insn" from rtx to rtx_insn *.
6604 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6606 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6608 (cheap_bb_rtx_cost_p): Likewise.
6609 (first_active_insn): Likewise for return type and local "insn".
6610 (last_active_insn): Likewise for return type and locals "insn",
6612 (struct noce_if_info): Likewise for fields "jump", "insn_a",
6614 (end_ifcvt_sequence): Likewise for return type and locals "insn",
6616 (noce_try_move): Likewise for local "seq".
6617 (noce_try_store_flag): Likewise.
6618 (noce_try_store_flag_constants): Likewise.
6619 (noce_try_addcc): Likewise.
6620 (noce_try_store_flag_mask): Likewise.
6621 (noce_try_cmove): Likewise.
6622 (noce_try_minmax): Likewise.
6623 (noce_try_abs): Likewise.
6624 (noce_try_sign_mask): Likewise.
6625 (noce_try_bitop): Likewise.
6626 (noce_can_store_speculate_p): Likewise for local "insn".
6627 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6629 (check_cond_move_block): Likewise for local "insn".
6630 (cond_move_convert_if_block): Likewise.
6631 (cond_move_process_if_block): Likewise for locals "seq",
6633 (noce_find_if_block): Likewise for local "jump".
6634 (merge_if_block): Likewise for local "last".
6635 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6636 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6637 (block_has_only_trap): Likewise for return type and local "trap".
6638 (find_if_case_1): Likewise for local "jump".
6639 (dead_or_predicable): Likewise for locals "head", "end", "jump",
6642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6644 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6645 "last_insn", "loop_end" from rtx to rtx_insn *.
6647 * hw-doloop.c (scan_loop): Likewise for local "insn".
6648 (discover_loop): Likewise for param "tail_insn".
6649 (discover_loops): Likewise for local "tail".
6651 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6652 cast to rtx_insn * when assigning from an rtx local to a
6653 hwloop_info's "last_insn" field.
6655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6657 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6658 (add_delay_dependencies): Strengthen local "pro" from rtx to
6660 (recompute_todo_spec): Likewise.
6661 (dep_cost_1): Likewise for locals "insn", "used".
6662 (schedule_insn): Likewise for local "dbg".
6663 (schedule_insn): Likewise for locals "pro", "next".
6664 (unschedule_insns_until): Likewise for local "con".
6665 (restore_pattern): Likewise for local "next".
6666 (estimate_insn_tick): Likewise for local "pro".
6667 (resolve_dependencies): Likewise for local "next".
6668 (fix_inter_tick): Likewise.
6669 (fix_tick_ready): Likewise for local "pro".
6670 (add_to_speculative_block): Likewise for locals "check", "twin",
6672 (sched_extend_bb): Likewise for locals "end", "insn".
6673 (init_before_recovery): Likewise for local "x".
6674 (sched_create_recovery_block): Likewise for local "barrier".
6675 (create_check_block_twin): Likewise for local "pro".
6676 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6678 (unlink_bb_notes): Update for change to type of bb_header.
6679 Strengthen locals "prev", "label", "note", "next" from rtx to
6681 (clear_priorities): Likewise for local "pro".
6683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6685 * gcse.c (struct occr): Strengthen field "insn" from rtx to
6687 (test_insn): Likewise for this global.
6688 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6690 (oprs_anticipatable_p): Likewise.
6691 (oprs_available_p): Likewise.
6692 (insert_expr_in_table): Strengthen param "insn" from rtx to
6694 (hash_scan_set): Likewise.
6695 (hash_scan_clobber): Likewise.
6696 (hash_scan_call): Likewise.
6697 (hash_scan_insn): Likewise.
6698 (compute_hash_table_work): Likewise for local "insn".
6699 (process_insert_insn): Likewise for return type and local "pat".
6700 (insert_insn_end_basic_block): Likewise for locals "new_insn",
6701 "pat", "pat_end", "maybe_cc0_setter".
6702 (pre_edge_insert): Likewise for local "insn".
6703 (pre_insert_copy_insn): Likewise for param "insn".
6704 (pre_insert_copies): Likewise for local "insn".
6705 (struct set_data): Likewise for field "insn".
6706 (single_set_gcse): Likewise for param "insn".
6707 (gcse_emit_move_after): Likewise.
6708 (pre_delete): Likewise for local "insn".
6709 (update_bb_reg_pressure): Likewise for param "from" and local
6711 (should_hoist_expr_to_dom): Likewise for param "from".
6712 (hoist_code): Likewise for local "insn".
6713 (get_pressure_class_and_nregs): Likewise for param "insn".
6714 (calculate_bb_reg_pressure): Likewise for local "insn".
6715 (compute_ld_motion_mems): Likewise.
6717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6719 * genpeep.c (main): Rename param back from "uncast_ins1" to
6720 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
6723 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6725 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6728 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6729 documentation to state it is only for VSX operations.
6731 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6732 constraint only active if VSX.
6734 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6735 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6738 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6740 * fwprop.c (single_def_use_dom_walker::before_dom_children):
6741 Strengthen local "insn" from rtx to rtx_insn *.
6742 (use_killed_between): Likewise for param "target_insn".
6743 (all_uses_available_at): Likewise for param "target_insn" and
6745 (update_df_init): Likewise for params "def_insn", "insn".
6746 (update_df): Likewise for param "insn".
6747 (try_fwprop_subst): Likewise for param "def_insn" and local
6749 (free_load_extend): Likewise for param "insn".
6750 (forward_propagate_subreg): Likewise for param "def_insn" and
6752 (forward_propagate_asm): Likewise for param "def_insn" and local
6754 (forward_propagate_and_simplify): Likewise for param "def_insn"
6755 and local "use_insn".
6756 (forward_propagate_into): Likewise for locals "def_insn" and
6759 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6761 * function.c (emit_initial_value_sets): Strengthen local "seq"
6762 from rtx to rtx_insn *.
6763 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6765 (instantiate_virtual_regs): Likewise for local "insn".
6766 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6767 (reorder_blocks_1): Likewise for param "insns" and local "insn".
6768 (expand_function_end): Likewise for locals "insn" and "seq".
6769 (epilogue_done): Likewise for local "insn".
6770 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6772 (reposition_prologue_and_epilogue_notes): Likewise for locals
6773 "insn", "last", "note", "first".
6774 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6775 (pass_match_asm_constraints::execute): Likewise for local "insn".
6777 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6779 * output.h (final_scan_insn): Strengthen return type from rtx to
6781 (final_forward_branch_p): Likewise for param.
6782 (current_output_insn): Likewise for this global.
6784 * final.c (rtx debug_insn): Likewise for this variable.
6785 (current_output_insn): Likewise.
6786 (get_attr_length_1): Rename param "insn" to "uncast_insn",
6787 adding "insn" back in as an rtx_insn * with a checked cast, so
6788 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6790 (compute_alignments): Strengthen local "label" from rtx to
6792 (shorten_branches): Rename param from "first" to "uncast_first",
6793 introducing a new local rtx_insn * "first" using a checked cast to
6794 effectively strengthen "first" from rtx to rtx_insn * without
6795 affecting the type signature. Strengthen locals "insn", "seq",
6796 "next", "label" from rtx to rtx_insn *.
6797 (change_scope): Strengthen param "orig_insn" and local "insn" from
6799 (final_start_function): Rename param from "first" to "uncast_first",
6800 introducing a new local rtx_insn * "first" using a checked cast to
6801 effectively strengthen "first" from rtx to rtx_insn * without
6802 affecting the type signature. Strengthen local "insn" from rtx to
6804 (dump_basic_block_info): Strengthen param "insn" from rtx to
6806 (final): Rename param from "first" to "uncast_first",
6807 introducing a new local rtx_insn * "first" using a checked cast to
6808 effectively strengthen "first" from rtx to rtx_insn * without
6809 affecting the type signature. Strengthen locals "insn", "next"
6810 from rtx to rtx_insn *.
6811 (output_alternate_entry_point): Strengthen param "insn" from rtx to
6813 (call_from_call_insn): Strengthen param "insn" from rtx to
6815 (final_scan_insn): Rename param from "insn" to "uncast_insn",
6816 introducing a new local rtx_insn * "insn" using a checked cast to
6817 effectively strengthen "insn" from rtx to rtx_insn * without
6818 affecting the type signature. Strengthen return type and locals
6819 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
6820 now-redundant checked cast to rtx_insn * from both invocations of
6821 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
6822 introducing a local "call_insn" for use when invoking
6823 call_from_call_insn.
6824 (notice_source_line): Strengthen param "insn" from rtx to
6826 (leaf_function_p): Likewise for local "insn".
6827 (final_forward_branch_p): Likewise.
6828 (leaf_renumber_regs): Likewise for param "first".
6829 (rest_of_clean_state): Likewise for locals "insn" and "next".
6830 (self_recursive_call_p): Likewise for param "insn".
6831 (collect_fn_hard_reg_usage): Likewise for local "insn".
6832 (get_call_fndecl): Likewise for param "insn".
6833 (get_call_cgraph_rtl_info): Likewise.
6834 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6835 introducing a new local rtx_insn * "insn" using a checked cast to
6836 effectively strengthen "insn" from rtx to rtx_insn * without
6837 affecting the type signature.
6839 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
6840 cast when assigning from param "insn" to current_output_insn.
6841 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
6842 so that we can assign it back to current_output_insn.
6844 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6846 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
6847 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
6848 atmxt540s and atmxt540sreva devices.
6849 * config/avr/avr-tables.opt: Regenerate.
6850 * config/avr/t-multilib: Regenerate.
6851 * doc/avr-mmcu.texi: Regenerate.
6853 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6855 * expr.c (convert_move): Strengthen local "insns" from rtx to
6857 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
6858 "top_label" from rtx to rtx_code_label *.
6859 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
6861 (emit_single_push_insn): Likewise for locals "prev", "last".
6862 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
6863 to rtx_code_label *.
6864 (store_constructor): Likewise for locals "loop_start", "loop_end".
6865 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
6867 (expand_expr_real_2): Likewise.
6868 (expand_expr_real_1): Strengthen local "label" from rtx to
6871 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6873 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
6874 from rtx to rtx_insn *.
6875 (store_bit_field_1): Likewise.
6876 (extract_bit_field_1): Likewise.
6877 (expand_mult_const): Likewise for local "insns".
6878 (expmed_mult_highpart): Strengthen local "label" from rtx to
6880 (expand_smod_pow2): Likewise.
6881 (expand_sdiv_pow2): Likewise.
6882 (expand_divmod): Strengthen locals "last", "insn" from rtx to
6883 rtx_insn *. Strengthen locals "label", "label1", "label2",
6884 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
6885 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
6886 (emit_store_flag): Likewise.
6887 (emit_store_flag_force): Strengthen local "label" from rtx to
6889 (do_cmp_and_jump): Likewise for param "label".
6891 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6893 * explow.c (force_reg): Strengthen local "insn" from rtx to
6895 (adjust_stack_1): Likewise.
6896 (allocate_dynamic_stack_space): Likewise. Strengthen locals
6897 "final_label", "available_label", "space_available" from rtx to
6899 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
6900 (anti_adjust_stack_and_probe): Likewise.
6902 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6904 * except.h (sjlj_emit_function_exit_after): Strengthen param
6905 "after" from rtx to rtx_insn *. This is only called with
6906 result of get_last_insn (in function.c) so type-change should be
6909 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
6910 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
6911 to rtx_insn *. These fields are only used from except.c so this
6912 type-change should be self-contained to this patch.
6914 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
6915 local "last" from rtx to rtx_insn *.
6916 (dw2_build_landing_pads): Likewise for local "seq".
6917 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
6918 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
6919 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
6921 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
6923 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
6924 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
6925 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
6926 referring to an insn. Strengthen local "dispatch_label" from
6927 rtx to rtx_code_label *.
6928 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
6930 (expand_eh_return): Strengthen local "around_label" from
6931 rtx to rtx_code_label *.
6932 (convert_to_eh_region_ranges): Strengthen locals "iter",
6933 "last_action_insn", "first_no_action_insn",
6934 "first_no_action_insn_before_switch",
6935 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
6937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6939 * dwarf2out.c (last_var_location_insn): Strengthen this variable
6940 from rtx to rtx_insn *.
6941 (cached_next_real_insn): Likewise.
6942 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
6944 (dwarf2out_var_location): Strengthen locals "next_real",
6945 "next_note", "expected_next_loc_note", "last_start", "insn" from
6948 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6950 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
6951 from rtx to rtx_insn *.
6952 (create_pseudo_cfg): Likewise for local "insn".
6954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6956 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
6957 from rtx to rtx_insn *.
6958 (df_bb_regno_last_def_find): Likewise.
6960 * df-problems.c (df_rd_bb_local_compute): Likewise.
6961 (df_lr_bb_local_compute): Likewise.
6962 (df_live_bb_local_compute): Likewise.
6963 (df_chain_remove_problem): Likewise.
6964 (df_chain_create_bb): Likewise.
6965 (df_word_lr_bb_local_compute): Likewise.
6966 (df_remove_dead_eq_notes): Likewise for param "insn".
6967 (df_note_bb_compute): Likewise for local "insn".
6968 (simulate_backwards_to_point): Likewise.
6969 (df_md_bb_local_compute): Likewise.
6971 * df-scan.c (df_scan_free_bb_info): Likewise.
6972 (df_scan_start_dump): Likewise.
6973 (df_scan_start_block): Likewise.
6974 (df_install_ref_incremental): Likewise for local "insn".
6975 (df_insn_rescan_all): Likewise.
6976 (df_reorganize_refs_by_reg_by_insn): Likewise.
6977 (df_reorganize_refs_by_insn_bb): Likewise.
6978 (df_recompute_luids): Likewise.
6979 (df_bb_refs_record): Likewise.
6980 (df_update_entry_exit_and_calls): Likewise.
6981 (df_bb_verify): Likewise.
6983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6985 * ddg.h (struct ddg_node): Strengthen fields "insn" and
6986 "first_note" from rtx to rtx_insn *.
6987 (get_node_of_insn): Likewise for param 2 "insn".
6988 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6990 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
6992 (mem_write_insn_p): Likewise.
6993 (mem_access_insn_p): Likewise.
6994 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6995 (def_has_ccmode_p): Likewise for param "insn".
6996 (add_cross_iteration_register_deps): Likewise for locals
6997 "def_insn" and "use_insn".
6998 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
6999 (build_intra_loop_deps): Likewise for local "src_insn".
7000 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7002 (get_node_of_insn): Likewise for param "insn".
7004 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7006 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7007 (deletable_insn_p): Strengthen param "insn" from rtx to
7008 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7009 find_call_stack_args, since this is guarded by CALL_P (insn).
7010 (marked_insn_p): Strengthen param "insn" from rtx to
7012 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7013 invoking find_call_stack_args, since this is guarded by
7015 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7016 rtx_insn *; we know this is an insn since this was called by
7018 (mark_nonreg_stores_2): Likewise.
7019 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7021 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7022 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7024 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7025 from rtx to rtx_insn *.
7026 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7028 (delete_unmarked_insns): Likewise for locals "insn", "next".
7029 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7030 (mark_reg_dependencies): Likewise for param "insn".
7031 (rest_of_handle_ud_dce): Likewise for local "insn".
7032 (word_dce_process_block): Likewise.
7033 (dce_process_block): Likewise.
7035 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7037 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7038 from rtx to rtx_insn *.
7039 (struct change_cc_mode_args): Likewise for field "insn".
7040 (this_insn): Strengthen from rtx to rtx_insn *.
7041 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7043 (validate_canon_reg): Strengthen param "insn" from rtx to
7045 (canon_reg): Likewise.
7046 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7048 (record_jump_equiv): Strengthen param "insn" from rtx to
7050 (try_back_substitute_reg): Likewise, also for locals "prev",
7052 (find_sets_in_insn): Likewise for param "insn".
7053 (canonicalize_insn): Likewise.
7054 (cse_insn): Likewise. Add a checked cast.
7055 (invalidate_from_clobbers): Likewise for param "insn".
7056 (invalidate_from_sets_and_clobbers): Likewise.
7057 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7059 (cse_prescan_path): Strengthen local "insn" from rtx to
7061 (cse_extended_basic_block): Likewise for locals "insn" and
7063 (cse_main): Likewise for param "f".
7064 (check_for_label_ref): Likewise for local "insn".
7065 (set_live_p): Likewise for second param ("insn").
7066 (insn_live_p): Likewise for first param ("insn") and for local
7068 (cse_change_cc_mode_insn): Likewise for first param "insn".
7069 (cse_change_cc_mode_insns): Likewise for first and second params
7071 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7073 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7076 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7077 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7078 Anna Tikhonova <anna.tikhonova@intel.com>
7079 Ilya Tocar <ilya.tocar@intel.com>
7080 Andrey Turetskiy <andrey.turetskiy@intel.com>
7081 Ilya Verbin <ilya.verbin@intel.com>
7082 Kirill Yukhin <kirill.yukhin@intel.com>
7083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7085 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7087 * config/i386/sse.md
7088 (define_mode_iterator VI248_AVX2): Delete.
7089 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7090 (define_mode_iterator VI48_AVX2): Ditto.
7091 (define_insn <shift_insn><mode>3): Delete.
7092 (define_insn "<shift_insn><mode>3<mask_name>" with
7093 VI2_AVX2_AVX512BW): New.
7094 (define_insn "<shift_insn><mode>3<mask_name>" with
7097 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7098 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7099 Anna Tikhonova <anna.tikhonova@intel.com>
7100 Ilya Tocar <ilya.tocar@intel.com>
7101 Andrey Turetskiy <andrey.turetskiy@intel.com>
7102 Ilya Verbin <ilya.verbin@intel.com>
7103 Kirill Yukhin <kirill.yukhin@intel.com>
7104 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7106 * config/i386/sse.md
7107 (define_mode_iterator VI4F_BRCST32x2): New.
7108 (define_mode_attr 64x2_mode): Ditto.
7109 (define_mode_attr 32x2mode): Ditto.
7110 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7111 with VI4F_BRCST32x2): Ditto.
7112 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7113 with V16FI mode iterator): Ditto.
7114 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7116 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7117 with VI8F_BRCST64x2): Ditto.
7119 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7121 Anna Tikhonova <anna.tikhonova@intel.com>
7122 Ilya Tocar <ilya.tocar@intel.com>
7123 Andrey Turetskiy <andrey.turetskiy@intel.com>
7124 Ilya Verbin <ilya.verbin@intel.com>
7125 Kirill Yukhin <kirill.yukhin@intel.com>
7126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7128 * config/i386/sse.md
7129 (define_mode_iterator VI8_AVX512VL): New.
7130 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7132 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7134 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7135 (define_mode_iterator V48_AVX512VL): New.
7136 (define_mode_iterator V12_AVX512VL): Ditto.
7137 (define_insn <avx512>_load<mode>_mask): Split into two similar
7138 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7139 Refactor output template.
7140 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7142 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7144 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7146 (reg_available_p): Likewise for param "insn".
7147 (insert_set_in_table): Likewise.
7148 (hash_scan_set): Likewise.
7149 (hash_scan_insn): Likewise.
7150 (make_set_regs_unavailable): Likewise.
7151 (compute_hash_table_work): Likewise for local "insn".
7152 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7154 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7155 (try_replace_reg): Likewise.
7156 (find_avail_set): Likewise.
7157 (cprop_jump): Likewise for params "setcc", "jump".
7158 (constprop_register): Likewise for param "insn".
7159 (cprop_insn): Likewise.
7160 (do_local_cprop): Likewise.
7161 (local_cprop_pass): Likewise for local "insn".
7162 (bypass_block): Likewise for params "setcc" and "jump".
7163 (bypass_conditional_jumps): Likewise for locals "setcc" and
7165 (one_cprop_pass): Likewise for local "insn".
7167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7169 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7170 from rtx to rtx_insn *.
7171 (struct comparison): Likewise, also for field "prev_clobber".
7172 (conforming_compare): Likewise for param "insn".
7173 (arithmetic_flags_clobber_p): Likewise.
7174 (find_flags_uses_in_insn): Likewise.
7175 (find_comparison_dom_walker::before_dom_children): Likewise for
7176 locals "insn", "next", "last_clobber".
7177 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7181 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7182 "insn" from rtx to rtx_insn *.
7183 (single_set_for_csa): Likewise for param "insn".
7184 (record_one_stack_ref): Likewise.
7185 (try_apply_stack_adjustment): Likewise.
7186 (struct record_stack_refs_data): Likewise for field "insn".
7187 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7188 (prev_active_insn_bb): Likewise for return type and param "insn".
7189 (next_active_insn_bb): Likewise.
7190 (force_move_args_size_note): Likewise for params "prev" and "last"
7191 and locals "test", "next_candidate", "prev_candidate".
7192 (combine_stack_adjustments_for_block): Strengthen locals
7193 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7196 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7198 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7199 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7200 (subst_insn): Likewise for this variable.
7201 (added_links_insn): Likewise.
7202 (struct insn_link): Likewise for field "insn".
7203 (alloc_insn_link): Likewise for param "insn".
7204 (struct undobuf): Likewise for field "other_insn".
7205 (find_single_use): Likewise for param "insn" and local "next".
7206 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
7207 (delete_noop_moves): Likewise for locals "insn", "next".
7208 (create_log_links): Likewise for locals "insn", "use_insn".
7209 Strengthen local "next_use" from rtx * to rtx_insn **.
7210 (insn_a_feeds_b): Likewise for params "a", "b".
7211 (combine_instructions): Likewise for param "f" and locals "insn",
7212 "next", "prev", "first", "last_combined_insn", "link", "link1",
7213 "temp". Replace use of NULL_RTX with NULL when referring to
7215 (setup_incoming_promotions): Likewise for param "first"
7216 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
7217 (can_combine_p): Likewise for params "insn", "i3", "pred",
7218 "pred2", "succ", "succ2" and for local "p".
7219 (combinable_i3pat): Likewise for param "i3".
7220 (cant_combine_insn_p): Likewise for param "insn".
7221 (likely_spilled_retval_p): Likewise.
7222 (adjust_for_new_dest): Likewise.
7223 (update_cfg_for_uncondjump): Likewise, also for local "insn".
7224 (try_combine): Likewise for return type and for params "i3", "i2",
7225 "i1", "i0", "last_combined_insn", and for locals "insn",
7226 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
7227 "i0_insn". Eliminate local "tem" in favor of new locals
7228 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
7229 checked cast for now to rtx_insn * on the return type of
7230 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
7232 (find_split_point): Strengthen param "insn" from rtx to
7234 (simplify_set): Likewise for local "other_insn".
7235 (recog_for_combine): Likewise for param "insn".
7236 (record_value_for_reg): Likewise.
7237 (record_dead_and_set_regs_1): Likewise for local
7239 (record_dead_and_set_regs): Likewise for param "insn".
7240 (record_promoted_value): Likewise.
7241 (check_promoted_subreg): Likewise.
7242 (get_last_value_validate): Likewise.
7243 (reg_dead_at_p): Likewise.
7244 (move_deaths): Likewise for param "to_insn".
7245 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
7246 and locals "place", "place2", "cc0_setter". Eliminate local "tem
7247 in favor of new locals "tem_note" and "tem_insn", the latter being
7249 (distribute_links): Strengthen locals "place", "insn" from rtx to
7252 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7254 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
7256 (can_delete_label_p): Require a const rtx_code_label * rather than
7258 (delete_insn): Add checked cast to rtx_code_label * when we know
7259 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
7261 (delete_insn_chain): Strengthen locals "prev" and "current" from
7262 rtx to rtx_insn *. Add a checked cast when assigning from
7263 "finish" (strengthening the params will come later). Add a
7264 checked cast to rtx_note * in region where we know
7266 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
7268 (compute_bb_for_insn): Likewise.
7269 (free_bb_for_insn): Likewise for local "insn".
7270 (compute_bb_for_insn): Likewise.
7271 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
7272 local "insn" from rtx to rtx_insn *
7273 (flow_active_insn_p): Require a const rtx_insn * rather than a
7275 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
7277 (can_fallthru): Likewise for locals "insn" and "insn2".
7278 (bb_note): Likewise for local "note".
7279 (first_insn_after_basic_block_note): Likewise for local "note" and
7281 (rtl_split_block): Likewise for locals "insn" and "next".
7282 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
7284 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
7285 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
7287 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
7288 them), "kill_from", "barrier", "new_insn".
7289 (patch_jump_insn): Likewise for params "insn", "old_label".
7290 (redirect_branch_edge): Likewise for locals "old_label", "insn".
7291 (force_nonfallthru_and_redirect): Likewise for locals "insn",
7292 "old_label", "new_label".
7293 (rtl_tidy_fallthru_edge): Likewise for local "q".
7294 (rtl_split_edge): Likewise for locals "before", "last".
7295 (commit_one_edge_insertion): Likewise for locals "before",
7296 "after", "insns", "tmp", "last", adding a checked cast where
7297 currently necessary.
7298 (commit_edge_insertions): Likewise.
7299 (rtl_dump_bb): Likewise for locals "insn", "last".
7300 (print_rtl_with_bb): Likewise for local "x".
7301 (rtl_verify_bb_insns): Likewise for local "x".
7302 (rtl_verify_bb_pointers): Likewise for local "insn".
7303 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
7305 (rtl_verify_fallthru): Likewise for local "insn".
7306 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
7307 (purge_dead_edges): Likewise for local "insn".
7308 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
7309 (skip_insns_after_block): Likewise for return type and for locals
7310 "insn", "last_insn", "next_head", "prev".
7311 (record_effective_endpoints): Likewise for locals "next_insn",
7313 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
7314 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
7315 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
7316 (duplicate_insn_chain): For now, add checked cast from rtx to
7317 rtx_insn * when returning insn.
7318 (cfg_layout_duplicate_bb): Likewise for local "insn".
7319 (cfg_layout_delete_block): Likewise for locals "insn", "next",
7321 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
7322 (rtl_block_empty_p): Likewise.
7323 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
7324 "split_point", "last".
7325 (rtl_block_ends_with_call_p): Likewise for local "insn".
7326 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
7328 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
7329 "split_at_insn" from rtx to rtx_insn *.
7330 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
7331 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
7332 to const rtx_insn *.
7333 (rtl_account_profile_record): Likewise.
7335 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7337 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
7339 (average_num_loop_insns): Likewise.
7340 (init_set_costs): Likewise for local "seq".
7341 (seq_cost): Likewise for param "seq", from const_rtx to const
7344 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7346 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
7349 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7351 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
7352 "f1" and "f2" from rtx * to rtx_insn **.
7353 (flow_find_head_matching_sequence): Likewise.
7355 * cfgcleanup.c (try_simplify_condjump): Strengthen local
7356 "cbranch_insn" from rtx to rtx_insn *.
7357 (thread_jump): Likewise for local "insn".
7358 (try_forward_edges): Likewise for local "last".
7359 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
7360 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
7362 (can_replace_by): Likewise for params "i1", "i2".
7363 (old_insns_match_p): Likewise.
7364 (merge_notes): Likewise.
7365 (walk_to_nondebug_insn): Likewise for param "i1".
7366 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
7367 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
7368 "afterlast1", "afterlast2" from rtx to rtx_insn *.
7369 (flow_find_head_matching_sequence): Strengthen params "f1" and
7370 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
7371 "last1", "last2", "beforelast1", "beforelast2" from rtx to
7373 (outgoing_edges_match): Likewise for locals "last1", "last2".
7374 (try_crossjump_to_edge): Likewise for local "insn".
7375 Replace call to for_each_rtx with for_each_rtx_in_insn.
7377 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
7378 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
7379 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
7380 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
7381 (try_optimize_cfg): Strengthen local "last" from rtx to
7383 (delete_dead_jumptables): Likewise for locals "insn", "next",
7386 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
7387 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
7388 "rtx else_first_tail", to reflect the basic-block.h changes above.
7390 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7392 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
7394 (purge_dead_tablejump_edges): Likewise.
7395 (find_bb_boundaries): Likewise for locals "insn", "end",
7396 "flow_transfer_insn".
7398 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7400 * caller-save.c (save_call_clobbered_regs): Strengthen locals
7401 "ins" and "prev" from rtx to rtx_insn *.
7403 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7405 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
7407 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
7408 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
7410 (load_register_parameters): Likewise for local "before_arg".
7411 (check_sibcall_argument_overlap): Likewise for param "insn".
7412 (expand_call): Likewise for locals "normal_call_insns",
7413 "tail_call_insns", "insns", "before_call", "after_args",
7414 "before_arg", "last", "prev". Strengthen one of the "last" from
7415 rtx to rtx_call_insn *.
7416 (fixup_tail_calls): Strengthen local "insn" from rtx to
7418 (emit_library_call_value_1): Likewise for locals "before_call" and
7421 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7423 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
7424 and "last" from rtx to rtx_insn *.
7425 (expand_builtin_nonlocal_goto): Likewise for local "insn".
7426 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
7428 (expand_errno_check): Strengthen local "lab" from rtx to
7430 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
7432 (expand_builtin_mathfn_2): Likewise.
7433 (expand_builtin_mathfn_ternary): Likewise.
7434 (expand_builtin_mathfn_3): Likewise.
7435 (expand_builtin_interclass_mathfn): Likewise for local "last".
7436 (expand_builtin_int_roundingfn): Likewise for local "insns".
7437 (expand_builtin_int_roundingfn_2): Likewise.
7438 (expand_builtin_strlen): Likewise for local "before_strlen".
7439 (expand_builtin_strncmp): Likewise for local "seq".
7440 (expand_builtin_signbit): Likewise for local "last".
7441 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
7442 from rtx to rtx_code_label *.
7443 (expand_stack_restore): Strengthen local "prev" from rtx to
7446 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7448 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
7450 (struct btr_def_s): Likewise.
7451 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7453 (add_btr_def): Likewise.
7454 (new_btr_user): Likewise.
7455 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
7457 (link_btr_uses): Likewise.
7458 (move_btr_def): Likewise for locals "insp", "old_insn",
7459 "new_insn". Add checked cast to rtx_insn * for now on result of
7461 (can_move_up): Strengthen param "insn" from const_rtx to
7464 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7466 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
7468 (get_uncond_jump_length): Likewise for locals "label", "jump".
7469 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
7471 (add_labels_and_missing_jumps): Likewise for local "new_jump".
7472 (fix_up_fall_thru_edges): Likewise for local "old_jump".
7473 (find_jump_block): Likewise for local "insn".
7474 (fix_crossing_conditional_branches): Likewise for locals
7475 "old_jump", "new_jump".
7476 (fix_crossing_unconditional_branches): Likewise for locals
7477 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
7478 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
7480 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7482 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
7484 (struct mem_insn): Likewise for field "insn".
7485 (reg_next_use): Strengthen from rtx * to rtx_insn **.
7486 (reg_next_inc_use): Likewise.
7487 (reg_next_def): Likewise.
7488 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7489 from rtx to rtx_insn *.
7490 (move_insn_before): Likewise for param "next_insn" and local "insns".
7491 (attempt_change): Likewise for local "mov_insn".
7492 (try_merge): Likewise for param "last_insn".
7493 (get_next_ref): Likewise for return type and local "insn".
7494 Strengthen param "next_array" from rtx * to rtx_insn **.
7495 (parse_add_or_inc): Strengthen param "insn" from rtx to
7497 (find_inc): Likewise for locals "insn" and "other_insn" (three of
7499 (merge_in_block): Likewise for locals "insn", "curr",
7501 (pass_inc_dec::execute): Update allocations of the arrays to
7502 reflect the stronger types.
7504 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7506 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7507 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
7508 from rtx to rtx_code_label *.
7510 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7512 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7515 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7517 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7518 generated a warning and prevented bootstrapping the compiler.
7520 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7522 * rtl.h (delete_related_insns): Strengthen return type from rtx to
7525 * jump.c (delete_related_insns): Likewise, also for locals "next"
7528 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7530 * genautomata.c (output_internal_insn_latency_func): When writing
7531 the function "internal_insn_latency" to insn-automata.c,
7532 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7533 allowing the optional guard function of (define_bypass) clauses to
7534 expect a pair of rtx_insn *, rather than a pair of rtx.
7535 (output_insn_latency_func): When writing the function
7536 "insn_latency", add an "uncast_" prefix to params "insn" and
7537 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7538 using checked casts from the params, thus enabling the above
7539 change to the generated "internal_insn_latency" function.
7541 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
7543 PR tree-optimization/62091
7544 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7545 handle correctly arrays.
7546 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7548 (record_known_type): Walk into inner type.
7549 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7550 condition on no type changes.
7552 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7554 * genattrtab.c (write_attr_get): Within the generated get_attr_
7555 functions, rename param "insn" to "uncast_insn" and reintroduce
7556 "insn" as an local rtx_insn * using a checked cast, so that "insn"
7557 is an rtx_insn * within insn-attrtab.c
7559 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7561 * output.h (peephole): Strengthen return type from rtx to
7563 * rtl.h (delete_for_peephole): Likewise for both params.
7564 * genpeep.c (main): In generated "peephole" function, strengthen
7565 return type and local "insn" from rtx to rtx_insn *. For now,
7566 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7567 rtx_insn *, with a checked cast.
7568 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7569 locals "insn", "next", "prev" from rtx to rtx_insn *.
7571 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
7573 PR tree-optimization/62112
7574 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7575 * gimple-iterator.h (gsi_replace): Return bool.
7576 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7577 moved from ref_may_alias_global_p.
7578 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7580 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7581 (stmt_kills_ref_p_1): Rename...
7582 (stmt_kills_ref_p): ... to this.
7583 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7584 stmt_kills_ref_p): Declare.
7585 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7586 Move the self-assignment case...
7587 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7589 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7591 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7593 * emit-rtl.c (try_split): Likewise, also for locals "before" and
7594 "after". For now, don't strengthen param "trial", which requires
7595 adding checked casts when returning it.
7597 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7599 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7600 "label" from rtx to rtx_code_label *. Strengthen param 1 of
7601 "var_location" hook from rtx to rtx_insn *.
7602 (debug_nothing_rtx): Delete in favor of...
7603 (debug_nothing_rtx_code_label): New prototype.
7604 (debug_nothing_rtx_rtx): Delete unused prototype.
7605 (debug_nothing_rtx_insn): New prototype.
7607 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7608 invoking debug_hooks->var_location (in two places, one in a NOTE
7609 case of a switch statement, the other guarded by a CALL_P
7610 conditional. Add checked cast to rtx_code_label * when invoking
7611 debug_hooks->label (within CODE_LABEL case of switch statement).
7613 * dbxout.c (dbx_debug_hooks): Update "label" hook from
7614 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7615 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7616 (xcoff_debug_hooks): Likewise.
7617 * debug.c (do_nothing_debug_hooks): Likewise.
7618 (debug_nothing_rtx): Delete in favor of...
7619 (debug_nothing_rtx_insn): New function.
7620 (debug_nothing_rtx_rtx): Delete unused function.
7621 (debug_nothing_rtx_code_label): New function.
7622 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7623 debug_nothing_rtx to debug_nothing_rtx_code_label.
7624 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7626 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7627 debug_nothing_rtx to debug_nothing_rtx_insn.
7628 (sdbout_label): Strengthen param "insn" from rtx to
7630 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7631 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7632 "var_location" hook from debug_nothing_rtx to
7633 debug_nothing_rtx_insn.
7635 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7637 * recog.h (insn_output_fn): Update this function typedef to match
7638 the changes below to the generated output functions, strengthening
7639 the 2nd param from rtx to rtx_insn *.
7641 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7642 insn when invoking an output function, to match the new signature
7643 of insn_output_fn with a stronger second param.
7645 * genconditions.c (write_header): In the generated code for
7646 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7647 to match the other changes in this patch.
7649 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7650 the generated "gen_" functions from rtx to rtx_insn * within their
7653 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7654 the subfunctions within the generated "recog_", "split", "peephole2"
7655 function trees from rtx to rtx_insn *. For now, the top-level
7656 generated functions ("recog", "split", "peephole2") continue to
7657 take a plain rtx for "insn", to avoid introducing dependencies on
7658 other patches. Rename this 2nd param from "insn" to
7659 "uncast_insn", and reintroduce "insn" as a local variable of type
7660 rtx_insn *, initialized at the top of the generated function with
7661 a checked cast on "uncast_insn".
7662 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7663 the generated "gen_" functions from rtx to rtx_insn * within their
7666 * genoutput.c (process_template): Strengthen the 2nd param within
7667 the generated "output_" functions "insn" from rtx to rtx_insn *.
7669 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7671 * tree-profile.c (tree_profiling): Skip external functions
7672 when doing coverage instrumentation.
7673 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7675 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7677 * config/rs6000/altivec.h (vec_cpsgn): New #define.
7678 (vec_mergee): Likewise.
7679 (vec_mergeo): Likewise.
7680 (vec_cntlz): Likewise.
7681 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7682 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7683 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7685 * doc/extend.texi: Document various forms of vec_cpsgn,
7686 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7687 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7688 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7689 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7690 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7692 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7694 * config/rs6000/rs6000.c (context.h): New include.
7695 (tree-pass.h): Likewise.
7696 (make_pass_analyze_swaps): New decl.
7697 (rs6000_option_override): Register pass_analyze_swaps.
7698 (swap_web_entry): New subsclass of web_entry_base (df.h).
7699 (special_handling_values): New enum.
7700 (union_defs): New function.
7701 (union_uses): Likewise.
7702 (insn_is_load_p): Likewise.
7703 (insn_is_store_p): Likewise.
7704 (insn_is_swap_p): Likewise.
7705 (rtx_is_swappable_p): Likewise.
7706 (insn_is_swappable_p): Likewise.
7707 (chain_purpose): New enum.
7708 (chain_contains_only_swaps): New function.
7709 (mark_swaps_for_removal): Likewise.
7710 (swap_const_vector_halves): Likewise.
7711 (adjust_subreg_index): Likewise.
7712 (permute_load): Likewise.
7713 (permute_store): Likewise.
7714 (handle_special_swappables): Likewise.
7715 (replace_swap_with_copy): Likewise.
7716 (dump_swap_insn_table): Likewise.
7717 (rs6000_analyze_swaps): Likewise.
7718 (pass_data_analyze_swaps): New pass_data.
7719 (pass_analyze_swaps): New rtl_opt_pass.
7720 (make_pass_analyze_swaps): New function.
7721 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7723 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7725 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7726 type from rtx to rtx_insn *.
7727 (create_copy_of_insn_rtx): Likewise.
7728 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7729 (create_copy_of_insn_rtx): Likewise, also for local "res".
7731 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7733 * rtl.h (find_first_parameter_load): Strengthen return type from
7735 * rtlanal.c (find_first_parameter_load): Strengthen return type
7736 from rtx to rtx_insn *. Add checked cast for now, to postpone
7737 strengthening the params.
7739 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7742 * diagnostic.c: Set default caret.
7743 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7745 * diagnostic.h (struct diagnostic_context):
7747 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7749 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7750 (sel_bb_head): Strengthen return type insn_t (currently just an
7752 (sel_bb_end): Likewise.
7754 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7755 (sel_bb_head): Strengthen return type and local "head" from
7756 insn_t (currently just an rtx) to rtx_insn *.
7757 (sel_bb_end): Likewise for return type.
7758 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7761 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7763 * basic-block.h (get_last_bb_insn): Strengthen return type from
7765 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7768 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7771 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7773 (diagnostic_report_diagnostic): ... from here.
7774 * toplev.c (general_init): Move code to c-family.
7776 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7778 * df.h (web_entry_base): Replace existing struct web_entry with a
7779 new class web_entry_base with only the predecessor member.
7780 (unionfind_root): Remove declaration and move to class member.
7781 (unionfind_union): Remove declaration and move to friend
7783 (union_defs): Remove declaration.
7784 * web.c (web_entry_base::unionfind_root): Modify to be member
7785 function and adjust accessors.
7786 (unionfind_union): Modify to be friend function and adjust
7788 (web_entry): New subclass of web_entry_base containing the reg
7790 (union_match_dups): Modify for struct -> class changes.
7791 (union_defs): Likewise.
7792 (entry_register): Likewise.
7793 (pass_web::execute): Likewise.
7795 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
7797 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7798 builtin define __VEC_ELEMENT_REG_ORDER__.
7800 2014-08-20 Martin Jambor <mjambor@suse.cz>
7801 Wei Mi <wmi@google.com>
7805 * tree-ssa-operands.c (update_stmt_operands): Remove
7806 MODIFIED_NORETURN_CALLS.
7807 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7808 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7809 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7810 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7811 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7812 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7813 (gimple_call_set_ctrl_altering): New func.
7814 (gimple_call_ctrl_altering_p): Ditto.
7815 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7816 (make_blocks): Use gimple_call_initialize_ctrl_altering.
7817 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7818 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7819 remove MODIFIED_NORETURN_CALLS.
7821 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7823 * coverage.c (coverage_compute_profile_id): Return non-0;
7824 also handle symbols with unique name.
7825 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7827 2014-08-20 Steve Ellcey <sellcey@mips.com>
7830 * doc/sourcebuild.texi (non_strict_align): New.
7832 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7834 * cgraphunit.c (ipa_passes, compile): Reshedule
7835 symtab_remove_unreachable_nodes passes; update comments.
7836 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7837 TODO_remove_functions before the pass; the functions ought to be
7839 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
7840 TODO_remove_functions.
7841 * passes.c (pass_data_early_local_passes): Do not schedule function
7843 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
7845 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7848 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
7849 before setting the option.
7850 * diagnostic.c (diagnostic_classify_diagnostic): Record
7851 command-line status.
7853 2014-08-20 Richard Biener <rguenther@suse.de>
7856 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
7857 to build uint{16,32,64}_type_node.
7859 2014-08-20 Terry Guo <terry.guo@arm.com>
7861 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
7862 with immediate_operand.
7864 2014-08-20 David Malcolm <dmalcolm@redhat.com>
7866 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
7867 "insn" from an as_a to a safe_as_a, for the case when "insn" is
7870 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7872 PR preprocessor/51303
7873 * incpath.c (remove_duplicates): Use cpp_warning.
7875 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7879 * doc/options.texi (CPP): Document it.
7880 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
7881 * optc-gen.awk: Handle CPP.
7882 * opth-gen.awk: Likewise.
7884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7886 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
7888 (duplicate_insn_chain): Likewise.
7889 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
7890 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
7891 checked cast for now (until we can strengthen the params in the
7893 (duplicate_insn_chain): Likewise.
7895 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7897 * rtl.h (next_cc0_user): Strengthen return type from rtx to
7899 (prev_cc0_setter): Likewise.
7901 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
7902 rtx_insn *, adding checked casts for now as necessary.
7903 (prev_cc0_setter): Likewise.
7905 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7907 * expr.h (emit_move_insn): Strengthen return type from rtx to
7909 (emit_move_insn_1): Likewise.
7910 (emit_move_complex_push): Likewise.
7911 (emit_move_complex_parts): Likewise.
7913 * expr.c (emit_move_via_integer): Strengthen return type from rtx
7914 to rtx_insn *. Replace use of NULL_RTX with NULL when working
7916 (emit_move_complex_push): Strengthen return type from rtx to
7918 (emit_move_complex): Likewise, also for local "ret".
7919 (emit_move_ccmode): Likewise.
7920 (emit_move_multi_word): Likewise for return type and locals
7922 (emit_move_insn_1): Likewise for return type and locals "result",
7924 (emit_move_insn): Likewise for return type and local "last_insn".
7925 (compress_float_constant): Likewise.
7927 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7929 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
7930 from rtx to rtx_insn *.
7932 * rtl.h (emit_insn_before): Likewise.
7933 (emit_insn_before_noloc): Likewise.
7934 (emit_insn_before_setloc): Likewise.
7935 (emit_jump_insn_before): Likewise.
7936 (emit_jump_insn_before_noloc): Likewise.
7937 (emit_jump_insn_before_setloc): Likewise.
7938 (emit_call_insn_before): Likewise.
7939 (emit_call_insn_before_noloc): Likewise.
7940 (emit_call_insn_before_setloc): Likewise.
7941 (emit_debug_insn_before): Likewise.
7942 (emit_debug_insn_before_noloc): Likewise.
7943 (emit_debug_insn_before_setloc): Likewise.
7944 (emit_label_before): Likewise.
7945 (emit_insn_after): Likewise.
7946 (emit_insn_after_noloc): Likewise.
7947 (emit_insn_after_setloc): Likewise.
7948 (emit_jump_insn_after): Likewise.
7949 (emit_jump_insn_after_noloc): Likewise.
7950 (emit_jump_insn_after_setloc): Likewise.
7951 (emit_call_insn_after): Likewise.
7952 (emit_call_insn_after_noloc): Likewise.
7953 (emit_call_insn_after_setloc): Likewise.
7954 (emit_debug_insn_after): Likewise.
7955 (emit_debug_insn_after_noloc): Likewise.
7956 (emit_debug_insn_after_setloc): Likewise.
7957 (emit_label_after): Likewise.
7958 (emit_insn): Likewise.
7959 (emit_debug_insn): Likewise.
7960 (emit_jump_insn): Likewise.
7961 (emit_call_insn): Likewise.
7962 (emit_label): Likewise.
7963 (gen_clobber): Likewise.
7964 (emit_clobber): Likewise.
7965 (gen_use): Likewise.
7966 (emit_use): Likewise.
7969 (emit_barrier_before): Strengthen return type from rtx to
7971 (emit_barrier_after): Likewise.
7972 (emit_barrier): Likewise.
7974 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
7975 from rtx to rtx_insn *. Add checked casts for now when converting
7976 "last" from rtx to rtx_insn *.
7977 (emit_insn_before_noloc): Likewise for return type.
7978 (emit_jump_insn_before_noloc): Likewise.
7979 (emit_call_insn_before_noloc): Likewise.
7980 (emit_debug_insn_before_noloc): Likewise.
7981 (emit_barrier_before): Strengthen return type and local "insn"
7982 from rtx to rtx_barrier *.
7983 (emit_label_before): Strengthen return type from rtx to
7984 rtx_insn *. Add checked cast for now when returning param
7985 (emit_pattern_after_noloc): Strengthen return type from rtx to
7986 rtx_insn *. Add checked casts for now when converting "last" from
7988 (emit_insn_after_noloc): Strengthen return type from rtx to
7990 (emit_jump_insn_after_noloc): Likewise.
7991 (emit_call_insn_after_noloc): Likewise.
7992 (emit_debug_insn_after_noloc): Likewise.
7993 (emit_barrier_after): Strengthen return type from rtx to
7995 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
7996 Add checked cast for now when converting "label" from rtx to
7998 (emit_pattern_after_setloc): Strengthen return type from rtx to
7999 rtx_insn *. Add checked casts for now when converting "last" from
8001 (emit_pattern_after): Strengthen return type from rtx to
8003 (emit_insn_after_setloc): Likewise.
8004 (emit_insn_after): Likewise.
8005 (emit_jump_insn_after_setloc): Likewise.
8006 (emit_jump_insn_after): Likewise.
8007 (emit_call_insn_after_setloc): Likewise.
8008 (emit_call_insn_after): Likewise.
8009 (emit_debug_insn_after_setloc): Likewise.
8010 (emit_debug_insn_after): Likewise.
8011 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8012 when converting "last" from rtx to rtx_insn *.
8013 (emit_pattern_before): Strengthen return type from rtx to
8015 (emit_insn_before_setloc): Likewise.
8016 (emit_insn_before): Likewise.
8017 (emit_jump_insn_before_setloc): Likewise.
8018 (emit_jump_insn_before): Likewise.
8019 (emit_call_insn_before_setloc): Likewise.
8020 (emit_call_insn_before): Likewise.
8021 (emit_debug_insn_before_setloc): Likewise.
8022 (emit_debug_insn_before): Likewise.
8023 (emit_insn): Strengthen return type and locals "last", "insn",
8024 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8025 within cases where we know we have an insn.
8026 (emit_debug_insn): Likewise.
8027 (emit_jump_insn): Likewise.
8028 (emit_call_insn): Strengthen return type and local "insn" from rtx
8030 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8031 a checked cast to rtx_insn * for now on "label".
8032 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8033 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8034 (emit_use): Likewise.
8035 (gen_use): Likewise, also for local "seq".
8036 (emit): Likewise for return type and local "insn".
8037 (rtx_insn): Likewise for return type and local "new_rtx".
8039 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8040 from rtx to rtx_barrier *.
8042 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8043 changed return type from rtx to rtx_insn *, we must update
8044 "emit_fn" type, and this in turn means updating...
8045 (frame_insn): ...this. Strengthen return type from rtx to
8046 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8048 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8050 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8051 rtx to rtx_jump_table_data *. Also for local.
8052 * rtl.h (emit_jump_table_data): Likewise.
8054 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8056 * basic-block.h (create_basic_block_structure): Strengthen third
8057 param "bb_note" from rtx to rtx_note *.
8058 * rtl.h (emit_note_before): Strengthen return type from rtx to
8060 (emit_note_after): Likewise.
8061 (emit_note): Likewise.
8062 (emit_note_copy): Likewise. Also, strengthen param similarly.
8063 * function.h (struct rtl_data): Strengthen field
8064 "x_stack_check_probe_note" from rtx to rtx_note *.
8066 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8067 from rtx to rtx_note *.
8068 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8069 "bb_note" from rtx to rtx_note *.
8070 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8071 when calling emit_note_copy.
8072 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8074 (emit_note_after): Likewise.
8075 (emit_note_before): Likewise.
8076 (emit_note_copy): Likewise. Also, strengthen param similarly.
8077 (emit_note): Likewise.
8078 * except.c (emit_note_eh_region_end): Likewise for return type.
8079 Strengthen local "next" from rtx to rtx_insn *.
8080 (convert_to_eh_region_ranges): Strengthen local "note"
8081 from rtx to rtx_note *.
8082 * final.c (change_scope): Likewise.
8083 (reemit_insn_block_notes): Likewise, for both locals named "note".
8084 Also, strengthen local "insn" from rtx to rtx_insn *.
8085 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8087 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8088 strengthen local "seq" from rtx to rtx_insn *.
8089 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8091 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8093 (get_bb_note_from_pool): Strengthen return type from rtx to
8095 (sel_create_basic_block): Strengthen local "new_bb_note" from
8096 insn_t to rtx_note *.
8097 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8098 "note" from rtx to rtx_note *.
8099 (emit_notes_in_bb): Likewise.
8101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8103 * function.h (struct rtl_data): Strengthen field
8104 "x_parm_birth_insn" from rtx to rtx_insn *.
8105 * function.c (struct assign_parm_data_all): Strengthen fields
8106 "first_conversion_insn" and "last_conversion_insn" from rtx to
8109 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8111 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8112 to rtx_insn *; also for local "var_end_seq".
8113 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8114 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8116 (expand_gimple_cond): Likewise for locals "last2" and "last".
8117 (mark_transaction_restart_calls): Likewise for local "insn".
8118 (expand_gimple_stmt): Likewise for return type and locals "last"
8120 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8121 (avoid_complex_debug_insns): Likewise for param "insn".
8122 (expand_debug_locations): Likewise for locals "insn", "last",
8123 "prev_insn" and "insn2".
8124 (expand_gimple_basic_block): Likewise for local "last".
8125 (construct_exit_block): Likewise for locals "head", "end",
8127 (pass_expand::execute): Likewise for locals "var_seq",
8128 "var_ret_seq", "next".
8130 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8132 * asan.h (asan_emit_stack_protection): Strengthen return type from
8134 * asan.c (asan_emit_stack_protection): Likewise. Add local
8135 "insns" to hold the return value.
8137 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8139 * basic-block.h (bb_note): Strengthen return type from rtx to
8141 * sched-int.h (bb_note): Likewise.
8142 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8144 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8146 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8149 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8150 "insn" from rtx to rtx_insn *.
8151 (make_debug_insn_raw): Strengthen return type from rtx to
8152 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8153 (make_jump_insn_raw): Strengthen return type from rtx to
8154 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8155 (make_call_insn_raw): Strengthen return type from rtx to
8156 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8157 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8158 callback from rtx to rtx_insn *; likewise for local "insn" and
8159 "next", adding a checked cast to rtx_insn in the relevant cases of
8160 the switch statement.
8161 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8162 callback from rtx to rtx_insn *.
8163 (emit_pattern_after_setloc): Likewise.
8164 (emit_pattern_after): Likewise.
8165 (emit_pattern_before_setloc): Likewise.
8166 (emit_pattern_before): Likewise.
8168 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8170 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8172 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8173 accepting an rtx_insn *.
8174 (last_call_insn): Strengthen return type from rtx to
8177 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8179 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8180 "insns" from rtx to rtx_insn *.
8181 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8182 locals "insn" and "prev".
8184 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8186 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8187 rtx_jump_table_data **.
8189 * cfgbuild.c (make_edges): Introduce local "table", using it in
8190 place of "tmp" for jump table data.
8191 (find_bb_boundaries): Strengthen local "table" from rtx to
8192 rtx_jump_table_data *.
8193 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8194 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8195 (try_crossjump_to_edge): Likewise.
8196 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8198 (patch_jump_insn): Introduce local "table", using it in place of
8199 "tmp" for jump table data.
8200 (force_nonfallthru_and_redirect): Introduce local "table", so that
8201 call to tablejump_p can receive an rtx_jump_table_data **. Update
8202 logic around the call to overwrite "note" appropriately if
8203 tablejump_p returns non-zero.
8204 (get_last_bb_insn): Introduce local "table", using it in place of
8205 "tmp" for jump table data.
8206 * dwarf2cfi.c (create_trace_edges): Likewise.
8208 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
8209 from rtx to rtx_jump_table_data *.
8210 (create_fix_barrier): Strengthen local "tmp" from rtx to
8211 rtx_jump_table_data *.
8212 (arm_reorg): Likewise for local "table".
8214 * config/s390/s390.c (s390_chunkify_start): Likewise.
8216 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
8218 * jump.c (delete_related_insns): Strengthen local "lab_next" from
8219 rtx to rtx_jump_table_data *.
8221 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
8222 rtx_jump_table_data **. Add a checked cast when writing through
8223 the pointer: we know there that local "table" is non-NULL and that
8224 JUMP_TABLE_DATA_P (table) holds.
8225 (label_is_jump_target_p): Introduce local "table", using it in
8226 place of "tmp" for jump table data.
8228 2014-08-19 Marek Polacek <polacek@redhat.com>
8231 * doc/invoke.texi: Document -Wbool-compare.
8233 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8235 * rtl.h (entry_of_function): Strengthen return type from rtx to
8237 * cfgrtl.c (entry_of_function): Likewise.
8239 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8241 * emit-rtl.h (get_insns): Strengthen return type from rtx to
8242 rtx_insn *, adding a checked cast for now.
8243 (get_last_insn): Likewise.
8245 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8247 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
8250 * emit-rtl.c (gen_label_rtx): Likewise.
8252 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8254 * rtl.h (previous_insn): Strengthen return type from rtx to
8256 (next_insn): Likewise.
8257 (prev_nonnote_insn): Likewise.
8258 (prev_nonnote_insn_bb): Likewise.
8259 (next_nonnote_insn): Likewise.
8260 (next_nonnote_insn_bb): Likewise.
8261 (prev_nondebug_insn): Likewise.
8262 (next_nondebug_insn): Likewise.
8263 (prev_nonnote_nondebug_insn): Likewise.
8264 (next_nonnote_nondebug_insn): Likewise.
8265 (prev_real_insn): Likewise.
8266 (next_real_insn): Likewise.
8267 (prev_active_insn): Likewise.
8268 (next_active_insn): Likewise.
8270 * emit-rtl.c (next_insn): Strengthen return type from rtx to
8271 rtx_insn *, adding a checked cast.
8272 (previous_insn): Likewise.
8273 (next_nonnote_insn): Likewise.
8274 (next_nonnote_insn_bb): Likewise.
8275 (prev_nonnote_insn): Likewise.
8276 (prev_nonnote_insn_bb): Likewise.
8277 (next_nondebug_insn): Likewise.
8278 (prev_nondebug_insn): Likewise.
8279 (next_nonnote_nondebug_insn): Likewise.
8280 (prev_nonnote_nondebug_insn): Likewise.
8281 (next_real_insn): Likewise.
8282 (prev_real_insn): Likewise.
8283 (next_active_insn): Likewise.
8284 (prev_active_insn): Likewise.
8286 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
8287 param "stepfunc" so that it returns an rtx_insn * rather than an
8288 rtx, to track the change to prev_nonnote_insn_bb, which is the
8289 only function this is called with.
8290 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
8292 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
8294 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
8297 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8299 * coretypes.h (class rtx_debug_insn): Add forward declaration.
8300 (class rtx_nonjump_insn): Likewise.
8301 (class rtx_jump_insn): Likewise.
8302 (class rtx_call_insn): Likewise.
8303 (class rtx_jump_table_data): Likewise.
8304 (class rtx_barrier): Likewise.
8305 (class rtx_code_label): Likewise.
8306 (class rtx_note): Likewise.
8308 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
8309 adding the invariant DEBUG_INSN_P (X).
8310 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
8311 the invariant NONJUMP_INSN_P (X).
8312 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
8313 the invariant JUMP_P (X).
8314 (class rtx_call_insn): New, a subclass of rtx_insn, adding
8315 the invariant CALL_P (X).
8316 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
8317 invariant JUMP_TABLE_DATA_P (X).
8318 (class rtx_barrier): New, a subclass of rtx_insn, adding the
8319 invariant BARRIER_P (X).
8320 (class rtx_code_label): New, a subclass of rtx_insn, adding
8321 the invariant LABEL_P (X).
8322 (class rtx_note): New, a subclass of rtx_insn, adding
8323 the invariant NOTE_P(X).
8324 (is_a_helper <rtx_debug_insn *>::test): New.
8325 (is_a_helper <rtx_nonjump_insn *>::test): New.
8326 (is_a_helper <rtx_jump_insn *>::test): New.
8327 (is_a_helper <rtx_call_insn *>::test): New.
8328 (is_a_helper <rtx_jump_table_data *>::test): New functions,
8329 overloaded for both rtx and rtx_insn *.
8330 (is_a_helper <rtx_barrier *>::test): New.
8331 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
8332 for both rtx and rtx_insn *.
8333 (is_a_helper <rtx_note *>::test): New.
8335 2014-08-19 Marek Polacek <polacek@redhat.com>
8337 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
8338 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8339 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
8340 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8342 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8344 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
8345 rtx_insn *. To help with transition, for now, convert from an
8346 access macro into a pair of functions: BND_TO, returning an
8348 (SET_BND_TO): New function, for use where BND_TO is used as an
8351 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
8353 (BND_TO): New function, adding a checked cast.
8354 (SET_BND_TO): New function.
8356 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
8358 (compute_av_set_on_boundaries): Likewise.
8360 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8362 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
8363 destination if it is used in source.
8364 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
8365 (*popcount<mode>2_falsedep_1): Likewise.
8367 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8370 * configure.ac: Set install_gold_as_default to no first.
8371 * configure: Regenerated.
8373 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8375 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
8376 "note_list" field will eventually be an rtx_insn *. To help with
8377 transition, for now, convert from an access macro into a pair of
8378 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
8379 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
8382 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
8383 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
8385 * sel-sched-ir.c (init_bb): Likewise.
8386 (sel_restore_notes): Likewise.
8387 (move_bb_info): Likewise.
8388 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
8389 (SET_BB_NOTE_LIST): New function.
8391 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8393 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
8394 field will eventually be an rtx_insn *. To help with transition,
8395 for now, convert from an access macro into a pair of functions:
8396 VINSN_INSN_RTX, returning an rtx_insn *, and...
8397 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
8398 is used as an lvalue.
8400 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
8401 SET_VINSN_INSN_RTX where it's used as an lvalue.
8402 (VINSN_INSN_RTX): New function.
8403 (SET_VINSN_INSN_RTX): New function.
8405 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8407 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
8408 eventually be rtx_insn *, but to help with transition, for now,
8409 convert from an access macro into a pair of functions: DEP_PRO
8410 returning an rtx_insn * and...
8411 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
8412 lvalue, returning an rtx&.
8413 (DEP_CON): Analogous changes to DEP_PRO above.
8414 (SET_DEP_CON): Likewise.
8416 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
8417 an lvalue to SET_DEP_CON.
8418 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
8419 (sd_copy_back_deps): Likewise for DEP_CON.
8420 (DEP_PRO): New function, adding a checked cast for now.
8421 (DEP_CON): Likewise.
8422 (SET_DEP_PRO): New function.
8423 (SET_DEP_CON): Likewise.
8425 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8427 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
8428 (extra_options): Add i386/cygwin.opt.
8429 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
8430 (CPP_SPEC): Accept -pthread.
8432 (GOMP_SELF_SPECS): Update comment.
8433 * config/i386/cygwin.opt: New file for -pthread flag.
8435 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8437 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
8438 * df.h (DF_REF_INSN): Convert from a macro to a function, so
8439 that we can return an rtx_insn *.
8441 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8443 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
8444 when building executables, not DLLs. Add --large-address-aware
8445 under the same conditions.
8446 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
8447 when building executables, not DLLs. Add --large-address-aware
8448 under the same conditions when using -m32.
8450 * config/i386/cygwin-stdint.h: Throughout, make type
8451 definitions dependent on target architecture, not host.
8453 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8455 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
8456 the return type from rtx to rtx_insn *, which will enable various
8457 conversions in followup patches. For now this is is done by a
8459 (NEXT_INSN): Likewise.
8460 (SET_PREV_INSN): Convert to an inline function. This is intended
8461 for use as an lvalue, and so returns an rtx& to allow in-place
8463 (SET_NEXT_INSN): Likewise.
8465 2014-07-08 Mark Wielaard <mjw@redhat.com>
8468 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
8470 2014-08-19 Marek Polacek <polacek@redhat.com>
8473 * cgraphunit.c (handle_alias_pairs): Fix condition.
8475 2014-08-19 Richard Biener <rguenther@suse.de>
8477 * gimple-fold.c (fold_gimple_assign): Properly build a
8478 null-pointer constant when devirtualizing addresses.
8480 2014-07-07 Mark Wielaard <mjw@redhat.com>
8482 * dwarf2out.c (decl_quals): New function.
8483 (modified_type_die): Take one cv_quals argument instead of two,
8484 one for const and one for volatile.
8485 (add_type_attribute): Likewise.
8486 (generic_parameter_die): Call add_type_attribute with one modifier
8488 (base_type_for_mode): Likewise.
8489 (add_bounds_info): Likewise.
8490 (add_subscript_info): Likewise.
8491 (gen_array_type_die): Likewise.
8492 (gen_descr_array_type_die): Likewise.
8493 (gen_entry_point_die): Likewise.
8494 (gen_enumeration_type_die): Likewise.
8495 (gen_formal_parameter_die): Likewise.
8496 (gen_subprogram_die): Likewise.
8497 (gen_variable_die): Likewise.
8498 (gen_const_die): Likewise.
8499 (gen_field_die): Likewise.
8500 (gen_pointer_type_die): Likewise.
8501 (gen_reference_type_die): Likewise.
8502 (gen_ptr_to_mbr_type_die): Likewise.
8503 (gen_inheritance_die): Likewise.
8504 (gen_subroutine_type_die): Likewise.
8505 (gen_typedef_die): Likewise.
8506 (force_type_die): Likewise.
8508 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8510 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8512 * configure: Regenerate.
8514 2014-08-19 Richard Biener <rguenther@suse.de>
8516 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8517 DECL_EXTERNALs in BLOCKs as non-references.
8518 * tree-streamer-out.c (streamer_write_chain): Likewise.
8520 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
8521 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8522 Anna Tikhonova <anna.tikhonova@intel.com>
8523 Ilya Tocar <ilya.tocar@intel.com>
8524 Andrey Turetskiy <andrey.turetskiy@intel.com>
8525 Ilya Verbin <ilya.verbin@intel.com>
8526 Kirill Yukhin <kirill.yukhin@intel.com>
8527 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8529 * config/i386/sse.md
8530 (define_mode_iterator VI48_AVX512F): Delete.
8531 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8532 (define_mode_iterator VI2_AVX512VL): Ditto.
8533 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8536 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8538 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8539 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8540 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8541 with VI48_AVX512F_AVX512VL): New.
8542 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8543 with VI2_AVX512VL): Ditto.
8545 2014-08-19 Marek Polacek <polacek@redhat.com>
8547 * doc/invoke.texi: Document -Wc99-c11-compat.
8549 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8551 * rtl.h (PREV_INSN): Split macro in two: the existing one,
8553 (SET_PREV_INSN): New macro, for use as an lvalue.
8554 (NEXT_INSN, SET_NEXT_INSN): Likewise.
8556 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8557 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8558 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8559 (fixup_abnormal_edges): Likewise.
8560 (unlink_insn_chain): Likewise.
8561 (fixup_reorder_chain): Likewise.
8562 (cfg_layout_delete_block): Likewise.
8563 (cfg_layout_merge_blocks): Likewise.
8564 * combine.c (update_cfg_for_uncondjump): Likewise.
8565 * emit-rtl.c (link_insn_into_chain): Likewise.
8566 (remove_insn): Likewise.
8567 (delete_insns_since): Likewise.
8568 (reorder_insns_nobb): Likewise.
8569 (emit_insn_after_1): Likewise.
8570 * final.c (rest_of_clean_state): Likewise.
8571 (final_scan_insn): Likewise.
8572 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8573 * haifa-sched.c (concat_note_lists): Likewise.
8574 (remove_notes): Likewise.
8575 (restore_other_notes): Likewise.
8576 (move_insn): Likewise.
8577 (unlink_bb_notes): Likewise.
8578 (restore_bb_notes): Likewise.
8579 * jump.c (delete_for_peephole): Likewise.
8580 * optabs.c (emit_libcall_block_1): Likewise.
8581 * reorg.c (emit_delay_sequence): Likewise.
8582 (fill_simple_delay_slots): Likewise.
8583 * sel-sched-ir.c (sel_move_insn): Likewise.
8584 (sel_remove_insn): Likewise.
8585 (get_bb_note_from_pool): Likewise.
8586 * sel-sched.c (move_nop_to_previous_block): Likewise.
8588 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8589 * config/c6x/c6x.c (gen_one_bundle): Likewise.
8590 (c6x_gen_bundles): Likewise.
8591 (hwloop_optimize): Likewise.
8592 * config/frv/frv.c (frv_function_prologue): Likewise.
8593 (frv_register_nop): Likewise.
8594 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8595 (ia64_reorg): Likewise.
8596 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8597 (mep_make_bundle): Likewise.
8598 (mep_bundle_insns): Likewise.
8599 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8600 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8601 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8603 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8605 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
8606 return type from rtx to rtx_insn *.
8608 (BB_HEADER): Likewise.
8609 (BB_FOOTER): Likewise.
8610 (SET_BB_HEAD): Convert to a function.
8611 (SET_BB_END): Likewise.
8612 (SET_BB_HEADER): Likewise.
8613 (SET_BB_FOOTER): Likewise.
8615 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8616 Strengthen the return type from rtx to rtx_insn *. For now, this
8617 is done by adding a checked cast, but this will eventually
8618 become a field lookup.
8620 (BB_HEADER): Likewise.
8621 (BB_FOOTER): Likewise.
8622 (SET_BB_HEAD): New function, from macro of same name. This is
8623 intended for use as an lvalue, and so returns an rtx& to allow
8624 in-place modification.
8625 (SET_BB_END): Likewise.
8626 (SET_BB_HEADER): Likewise.
8627 (SET_BB_FOOTER): Likewise.
8629 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8631 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8633 (SET_BB_HEAD): New macro, for use as a lvalue.
8634 (BB_END, SET_BB_END): Likewise.
8635 (BB_HEADER, SET_BB_HEADER): Likewise.
8636 (BB_FOOTER, SET_BB_FOOTER): Likewise.
8638 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8639 of BB_* macros into SET_BB_* macros.
8640 (fix_crossing_unconditional_branches): Likewise.
8641 * caller-save.c (save_call_clobbered_regs): Likewise.
8642 (insert_one_insn): Likewise.
8643 * cfgbuild.c (find_bb_boundaries): Likewise.
8644 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8645 (outgoing_edges_match): Likewise.
8646 (try_optimize_cfg): Likewise.
8647 * cfgexpand.c (expand_gimple_cond): Likewise.
8648 (expand_gimple_tailcall): Likewise.
8649 (expand_gimple_basic_block): Likewise.
8650 (construct_exit_block): Likewise.
8651 * cfgrtl.c (delete_insn): Likewise.
8652 (create_basic_block_structure): Likewise.
8653 (rtl_delete_block): Likewise.
8654 (rtl_split_block): Likewise.
8655 (emit_nop_for_unique_locus_between): Likewise.
8656 (rtl_merge_blocks): Likewise.
8657 (block_label): Likewise.
8658 (try_redirect_by_replacing_jump): Likewise.
8659 (emit_barrier_after_bb): Likewise.
8660 (fixup_abnormal_edges): Likewise.
8661 (record_effective_endpoints): Likewise.
8662 (relink_block_chain): Likewise.
8663 (fixup_reorder_chain): Likewise.
8664 (fixup_fallthru_exit_predecessor): Likewise.
8665 (cfg_layout_duplicate_bb): Likewise.
8666 (cfg_layout_split_block): Likewise.
8667 (cfg_layout_delete_block): Likewise.
8668 (cfg_layout_merge_blocks): Likewise.
8669 * combine.c (update_cfg_for_uncondjump): Likewise.
8670 * emit-rtl.c (add_insn_after): Likewise.
8671 (remove_insn): Likewise.
8672 (reorder_insns): Likewise.
8673 (emit_insn_after_1): Likewise.
8674 * haifa-sched.c (get_ebb_head_tail): Likewise.
8675 (restore_other_notes): Likewise.
8676 (move_insn): Likewise.
8677 (sched_extend_bb): Likewise.
8678 (fix_jump_move): Likewise.
8679 * ifcvt.c (noce_process_if_block): Likewise.
8680 (dead_or_predicable): Likewise.
8681 * ira.c (update_equiv_regs): Likewise.
8682 * reg-stack.c (change_stack): Likewise.
8683 * sel-sched-ir.c (sel_move_insn): Likewise.
8684 * sel-sched.c (move_nop_to_previous_block): Likewise.
8686 * config/c6x/c6x.c (hwloop_optimize): Likewise.
8687 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8689 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8691 * rtl.h (for_each_rtx_in_insn): New function.
8692 * rtlanal.c (for_each_rtx_in_insn): Likewise.
8694 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8696 * coretypes.h (class rtx_insn): Add forward declaration.
8698 * rtl.h: Include is-a.h.
8699 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8700 workaround to ensure gengtype knows inheritance is occurring,
8701 whilst continuing to use the pre-existing special-casing for
8703 (class rtx_insn): New subclass of rtx_def, adding the
8704 invariant that we're dealing with something we can sanely use
8705 INSN_UID, NEXT_INSN, PREV_INSN on.
8706 (is_a_helper <rtx_insn *>::test): New.
8707 (is_a_helper <const rtx_insn *>::test): New.
8709 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8711 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8713 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8715 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8718 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8720 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8721 to BUILT_IN_UNREACHABLE.
8723 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
8726 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8728 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8729 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8730 (ffs<mode>2): Do not expand with tzcnt for
8731 TARGET_AVOID_FALSE_DEP_FOR_BMI.
8732 (ffssi2_no_cmove): Ditto.
8733 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8734 (ctz<mode>2): New expander.
8735 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8736 (*ctz<mode>2_falsedep): New insn.
8737 (*ctz<mode>2): Rename from ctz<mode>2.
8738 (clz<mode>2_lzcnt): New expander.
8739 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8740 (*clz<mode>2_lzcnt_falsedep): New insn.
8741 (*clz<mode>2): Rename from ctz<mode>2.
8742 (popcount<mode>2): New expander.
8743 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8744 (*popcount<mode>2_falsedep): New insn.
8745 (*popcount<mode>2): Rename from ctz<mode>2.
8746 (*popcount<mode>2_cmp): Remove.
8747 (*popcountsi2_cmp_zext): Ditto.
8749 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
8751 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8752 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8753 * config/microblaze/microblaze.h
8754 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8756 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
8759 * configure.ac: Set install_gold_as_default to no for
8761 * configure: Regenerated.
8763 2014-08-18 Roman Gareev <gareevroman@gmail.com>
8765 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8766 * config.in: Add undef of HAVE_isl.
8767 * configure: Regenerate.
8768 * configure.ac: Add definition of HAVE_isl.
8769 * graphite-blocking.c: Add checking of HAVE_isl.
8770 * graphite-dependences.c: Likewise.
8771 * graphite-interchange.c: Likewise.
8772 * graphite-isl-ast-to-gimple.c: Likewise.
8773 * graphite-optimize-isl.c: Likewise.
8774 * graphite-poly.c: Likewise.
8775 * graphite-scop-detection.c: Likewise.
8776 * graphite-sese-to-poly.c: Likewise.
8777 * graphite.c: Likewise.
8778 * toplev.c: Replace the checking of HAVE_cloog with the checking
8781 2014-08-18 Richard Biener <rguenther@suse.de>
8783 PR tree-optimization/62090
8784 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8785 (fold_builtin_3): Do not fold snprintf.
8786 (fold_builtin_4): Likewise.
8787 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8788 moved from builtins.c.
8789 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8790 (gimple_fold_builtin): Do not fold sprintf here.
8792 2014-08-18 Richard Biener <rguenther@suse.de>
8794 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8796 (maybe_canonicalize_mem_ref_addr): ... this function.
8797 (fold_stmt_1): Apply it here before all simplification.
8799 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
8802 * cgraph.h (cgraph_node::create_indirect_edge): Add
8803 compute_indirect_info param.
8804 * cgraph.c (cgraph_node::create_indirect_edge): Compute
8805 indirect_info only when it is required.
8806 * cgraphclones.c (cgraph_clone_edge): Do not recompute
8807 indirect_info fore cloned indirect edge.
8809 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8811 Anna Tikhonova <anna.tikhonova@intel.com>
8812 Ilya Tocar <ilya.tocar@intel.com>
8813 Andrey Turetskiy <andrey.turetskiy@intel.com>
8814 Ilya Verbin <ilya.verbin@intel.com>
8815 Kirill Yukhin <kirill.yukhin@intel.com>
8816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8818 * config/i386/sse.md
8819 (define_mode_iterator VI8_AVX2_AVX512BW): New.
8820 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8822 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8823 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8824 Anna Tikhonova <anna.tikhonova@intel.com>
8825 Ilya Tocar <ilya.tocar@intel.com>
8826 Andrey Turetskiy <andrey.turetskiy@intel.com>
8827 Ilya Verbin <ilya.verbin@intel.com>
8828 Kirill Yukhin <kirill.yukhin@intel.com>
8829 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8831 * config/i386/sse.md
8832 (define_mode_iterator VF1_AVX512VL): New.
8833 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8834 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8837 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8839 Anna Tikhonova <anna.tikhonova@intel.com>
8840 Ilya Tocar <ilya.tocar@intel.com>
8841 Andrey Turetskiy <andrey.turetskiy@intel.com>
8842 Ilya Verbin <ilya.verbin@intel.com>
8843 Kirill Yukhin <kirill.yukhin@intel.com>
8844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8846 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
8847 * config/i386/i386.md
8848 (define_code_iterator any_float): New.
8849 (define_code_attr floatsuffix): New.
8850 * config/i386/sse.md
8851 (define_mode_iterator VF1_128_256VL): New.
8852 (define_mode_iterator VF2_512_256VL): New.
8853 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
8855 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
8856 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
8858 (define_mode_attr qq2pssuff): New.
8859 (define_mode_attr sselongvecmode): New.
8860 (define_mode_attr sselongvecmodelower): New.
8861 (define_mode_attr sseintvecmode3): New.
8862 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
8864 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
8865 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
8866 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
8867 (define_insn "ufloatv2siv2df2<mask_name>"): New.
8869 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8870 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8871 Anna Tikhonova <anna.tikhonova@intel.com>
8872 Ilya Tocar <ilya.tocar@intel.com>
8873 Andrey Turetskiy <andrey.turetskiy@intel.com>
8874 Ilya Verbin <ilya.verbin@intel.com>
8875 Kirill Yukhin <kirill.yukhin@intel.com>
8876 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8878 * config/i386/sse.md
8879 (define_mode_iterator VF2_AVX512VL): New.
8880 (define_mode_attr sseintvecmode2): New.
8881 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
8882 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
8883 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
8885 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
8887 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8889 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8892 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8893 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8894 Anna Tikhonova <anna.tikhonova@intel.com>
8895 Ilya Tocar <ilya.tocar@intel.com>
8896 Andrey Turetskiy <andrey.turetskiy@intel.com>
8897 Ilya Verbin <ilya.verbin@intel.com>
8898 Kirill Yukhin <kirill.yukhin@intel.com>
8899 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8901 * config/i386/i386.md
8902 (define_insn "*movoi_internal_avx"): Add evex version.
8903 (define_insn "*movti_internal"): Ditto.
8905 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8906 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8907 Anna Tikhonova <anna.tikhonova@intel.com>
8908 Ilya Tocar <ilya.tocar@intel.com>
8909 Andrey Turetskiy <andrey.turetskiy@intel.com>
8910 Ilya Verbin <ilya.verbin@intel.com>
8911 Kirill Yukhin <kirill.yukhin@intel.com>
8912 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8914 * config/i386/i386.md
8915 (define_attr "isa"): Add avx512dq, noavx512dq.
8916 (define_attr "enabled"): Ditto.
8917 * config/i386/sse.md
8918 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
8920 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8922 Anna Tikhonova <anna.tikhonova@intel.com>
8923 Ilya Tocar <ilya.tocar@intel.com>
8924 Andrey Turetskiy <andrey.turetskiy@intel.com>
8925 Ilya Verbin <ilya.verbin@intel.com>
8926 Kirill Yukhin <kirill.yukhin@intel.com>
8927 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8929 * config/i386/i386.c
8930 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
8931 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
8932 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
8933 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
8934 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
8935 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
8936 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
8937 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
8938 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
8939 * config/i386/sse.md
8940 (define_mode_iterator VMOVE): Allow V4TI mode.
8941 (define_mode_iterator V_AVX512VL): New.
8942 (define_mode_iterator V): New handling for AVX512VL.
8943 (define_insn "avx512f_load<mode>_mask"): Delete.
8944 (define_insn "<avx512>_load<mode>_mask"): New.
8945 (define_insn "avx512f_store<mode>_mask"): Delete.
8946 (define_insn "<avx512>_store<mode>_mask"): New.
8949 2014-08-18 Yury Gribov <y.gribov@samsung.com>
8952 * asan.c (instrument_derefs): Fix bitfield check.
8954 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
8956 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
8957 * config/rs6000/htm.md (ttest): Remove clobber.
8958 * config/rs6000/predicates.md (any_mask_operand): New predicate.
8959 (and_operand): Reformat.
8960 (and_2rld_operand): New predicate.
8961 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
8963 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
8964 parameter. Handle AND directly.
8965 (rs6000_split_logical_di): Remove last parameter.
8966 (rs6000_split_logical): Remove last parameter. Remove obsolete
8968 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
8969 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
8970 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
8971 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
8972 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
8973 and 5 anonymous splitters): Delete.
8974 (and<mode>3): New expander.
8975 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
8976 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
8977 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
8978 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
8979 (floatdisf2_internal1): Remove clobbers.
8980 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
8981 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
8982 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
8983 (and<mode>3 for BOOL_128): Remove clobber.
8984 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
8985 rs6000_split_logical.
8986 (*bool<mode>3_internal for BOOL_128): Adjust call of
8987 rs6000_split_logical.
8988 (*boolc<mode>3_internal1 for BOOL_128,
8989 *boolc<mode>3_internal2 for BOOL_128,
8990 *boolcc<mode>3_internal1 for BOOL_128,
8991 *boolcc<mode>3_internal2 for BOOL_128,
8992 *eqv<mode>3_internal1 for BOOL_128,
8993 *eqv<mode>3_internal2 for BOOL_128,
8994 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
8995 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
8997 (*vec_reload_and_reg_<mptrsize>): Delete.
8999 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9001 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9002 and split, *boolccsi3_internal3 and split): Delete.
9003 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9004 *boolccdi3_internal3 and split): Delete.
9005 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9006 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9008 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9010 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9011 and split, *boolcsi3_internal3 and split): Delete.
9012 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9013 *boolcdi3_internal3 and split): Delete.
9014 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9016 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9018 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9019 <'u'>: Also support printing the low-order 16 bits.
9020 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9021 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9022 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9023 *booldi3_internal3 and split): Delete.
9024 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9025 *bool<mode>3_dot2): New.
9026 (two anonymous define_splits for non_logical_cint_operand): Merge.
9028 2014-08-17 Marek Polacek <polacek@redhat.com>
9029 Manuel López-Ibáñez <manu@gcc.gnu.org>
9032 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9033 (diagnostic_show_locus): Don't print caret diagnostic
9034 if a column is larger than the line_width.
9036 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9038 * common.opt: Make the ISL AST generator to be the main code generator
9041 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9043 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9045 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9048 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9050 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9051 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9052 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9054 * config/pa/pa.md (begin_brtab): Delete insn.
9055 (end_brtab): Likewise.
9057 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9059 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9061 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9063 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9064 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9065 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9066 (get_dynamic_type): Remove.
9067 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9068 (clear_speculation): Bring to ipa-deivrt.h
9069 (get_class_context): Rename to ...
9070 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9071 (contains_type_p): Update.
9072 (get_dynamic_type): Rename to ...
9073 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9074 (possible_polymorphic_call_targets): UPdate.
9075 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9076 * ipa-prop.c (ipa_analyze_call_uses): Update.
9078 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9080 * doc/invoke.texi (SH options): Document missing processor variant
9081 options. Remove references to Hitachi. Undocument deprecated mspace
9084 2014-08-15 Jason Merrill <jason@redhat.com>
9086 * tree.c (type_hash_canon): Uncomment assert.
9088 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9090 * input.h (in_system_header_at): Add comment.
9092 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9095 * diagnostic.c (build_message_string): Make it extern.
9096 * diagnostic.h (build_message_string): Make it extern.
9098 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9100 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9101 load/store from/to non-floating class pseudo.
9103 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9105 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9107 2014-08-15 Richard Biener <rguenther@suse.de>
9109 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9110 (get_constraint_for_ssa_var): Remove dead code.
9111 (get_constraint_for_1): Adjust.
9112 (find_what_var_points_to): Likewise.
9113 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9115 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9118 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9119 (_mm512_mask_cmpge_epu32_mask): Ditto.
9120 (_mm512_cmpge_epu32_mask): Ditto.
9121 (_mm512_mask_cmpge_epi64_mask): Ditto.
9122 (_mm512_cmpge_epi64_mask): Ditto.
9123 (_mm512_mask_cmpge_epu64_mask): Ditto.
9124 (_mm512_cmpge_epu64_mask): Ditto.
9125 (_mm512_mask_cmple_epi32_mask): Ditto.
9126 (_mm512_cmple_epi32_mask): Ditto.
9127 (_mm512_mask_cmple_epu32_mask): Ditto.
9128 (_mm512_cmple_epu32_mask): Ditto.
9129 (_mm512_mask_cmple_epi64_mask): Ditto.
9130 (_mm512_cmple_epi64_mask): Ditto.
9131 (_mm512_mask_cmple_epu64_mask): Ditto.
9132 (_mm512_cmple_epu64_mask): Ditto.
9133 (_mm512_mask_cmplt_epi32_mask): Ditto.
9134 (_mm512_cmplt_epi32_mask): Ditto.
9135 (_mm512_mask_cmplt_epu32_mask): Ditto.
9136 (_mm512_cmplt_epu32_mask): Ditto.
9137 (_mm512_mask_cmplt_epi64_mask): Ditto.
9138 (_mm512_cmplt_epi64_mask): Ditto.
9139 (_mm512_mask_cmplt_epu64_mask): Ditto.
9140 (_mm512_cmplt_epu64_mask): Ditto.
9141 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9142 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9143 (_mm512_cmpneq_epu32_mask): Ditto.
9144 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9145 (_mm512_cmpneq_epi64_mask): Ditto.
9146 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9147 (_mm512_cmpneq_epu64_mask): Ditto.
9148 (_mm512_castpd_ps): Ditto.
9149 (_mm512_castpd_si512): Ditto.
9150 (_mm512_castps_pd): Ditto.
9151 (_mm512_castps_si512): Ditto.
9152 (_mm512_castsi512_ps): Ditto.
9153 (_mm512_castsi512_pd): Ditto.
9154 (_mm512_castpd512_pd128): Ditto.
9155 (_mm512_castps512_ps128): Ditto.
9156 (_mm512_castsi512_si128): Ditto.
9157 (_mm512_castpd512_pd256): Ditto.
9158 (_mm512_castps512_ps256): Ditto.
9159 (_mm512_castsi512_si256): Ditto.
9160 (_mm512_castpd128_pd512): Ditto.
9161 (_mm512_castps128_ps512): Ditto.
9162 (_mm512_castsi128_si512): Ditto.
9163 (_mm512_castpd256_pd512): Ditto.
9164 (_mm512_castps256_ps512): Ditto.
9165 (_mm512_castsi256_si512): Ditto.
9166 (_mm512_cmpeq_epu32_mask): Ditto.
9167 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9168 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9169 (_mm512_cmpeq_epu64_mask): Ditto.
9170 (_mm512_cmpgt_epu32_mask): Ditto.
9171 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9172 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9173 (_mm512_cmpgt_epu64_mask): Ditto.
9174 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9175 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9176 * config/i386/i386.c (enum ix86_builtins): Add
9177 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9178 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9179 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9180 (bdesc_args): Add __builtin_ia32_si512_256si,
9181 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9182 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9183 __builtin_ia32_pd512_pd.
9184 (ix86_expand_args_builtin): Handle new FTYPEs.
9185 * config/i386/sse.md (castmode): Add 512-bit modes.
9186 (AVX512MODE2P): New.
9187 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9188 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9190 2014-08-15 Richard Biener <rguenther@suse.de>
9192 * fold-const.c (tree_swap_operands_p): Put all constants
9193 last, also strip sign-changing NOPs when considering further
9194 canonicalization. Canonicalize also when optimizing for size.
9196 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9198 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9199 one_match > zero_match case to just before simple_sequence.
9201 2014-08-15 Richard Biener <rguenther@suse.de>
9203 * data-streamer.h (streamer_string_index, string_for_index):
9205 * data-streamer-out.c (streamer_string_index): Make static.
9206 * data-streamer-in.c (string_for_index): Likewise.
9207 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
9208 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
9210 2014-08-15 Richard Biener <rguenther@suse.de>
9212 PR tree-optimization/62031
9213 * tree-data-ref.c (dr_analyze_indices): Do not set
9214 DR_UNCONSTRAINED_BASE.
9215 (dr_may_alias_p): All indirect accesses have to go the
9216 formerly DR_UNCONSTRAINED_BASE path.
9217 * tree-data-ref.h (struct indices): Remove
9218 unconstrained_base member.
9219 (DR_UNCONSTRAINED_BASE): Remove.
9221 2014-08-15 Jakub Jelinek <jakub@redhat.com>
9224 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
9225 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
9226 in OMP_CLAUSE_MAP in some outer target region.
9228 2014-08-15 Bin Cheng <bin.cheng@arm.com>
9230 * tree-ssa-loop-ivopts.c (ivopts_data): New field
9231 name_expansion_cache.
9232 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
9233 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
9234 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
9235 (difference_cannot_overflow_p): New parameter. Use affine
9236 expansion for equality check.
9237 (iv_elimination_compare_lt): Pass new argument.
9239 2014-08-14 DJ Delorie <dj@redhat.com>
9241 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
9242 variables to the accumulator.
9244 * config/rl78/predicates.md (rl78_near_mem_operand): New.
9245 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
9246 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
9249 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
9250 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
9251 (umulqihi3_virt): Likewise.
9252 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
9253 (umulqihi3_real): Likewise.
9255 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
9257 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9259 PR tree-optimization/62091
9260 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
9261 function_entry_reached.
9262 (walk_aliased_vdefs): Clear it here.
9263 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
9265 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9267 * ipa-utils.h (compare_virtual_tables): Declare.
9268 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
9270 2014-08-14 Marek Polacek <polacek@redhat.com>
9273 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
9274 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
9276 2014-08-14 Tom de Vries <tom@codesourcery.com>
9278 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
9280 2014-08-14 Tom de Vries <tom@codesourcery.com>
9282 PR rtl-optimization/62004
9283 PR rtl-optimization/62030
9284 * ifcvt.c (rtx_interchangeable_p): New function.
9285 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
9286 * emit-rtl.h (mem_attrs_eq_p): Declare.
9288 2014-08-14 Roman Gareev <gareevroman@gmail.com>
9290 * graphite-scop-detection.c:
9291 Add inclusion of cp-tree.h.
9292 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
9293 in case they are pointers to object types
9295 2014-08-14 Richard Biener <rguenther@suse.de>
9297 * BASE-VER: Change to 5.0.0
9299 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9300 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9301 Anna Tikhonova <anna.tikhonova@intel.com>
9302 Ilya Tocar <ilya.tocar@intel.com>
9303 Andrey Turetskiy <andrey.turetskiy@intel.com>
9304 Ilya Verbin <ilya.verbin@intel.com>
9305 Kirill Yukhin <kirill.yukhin@intel.com>
9306 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9308 * config/i386/sse.md (define_mode_attr avx512): New.
9309 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
9311 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
9312 (define_mode_attr ssse3_avx2): Ditto.
9313 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
9314 (define_mode_attr avx2_avx512bw): New.
9315 (define_mode_attr ssedoublemodelower): New.
9316 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
9318 (define_mode_attr ssebytemode): Allow V8DI modes.
9319 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
9320 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
9321 (define_mode_attr ssePSmode2): New.
9322 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
9324 (define_mode_attr dbpsadbwmode): New.
9325 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
9326 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
9327 (vi8_sse4_1_avx2_avx512): New.
9328 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
9330 (define_mode_attr blendbits): Move before its immediate use.
9332 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9333 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9334 Anna Tikhonova <anna.tikhonova@intel.com>
9335 Ilya Tocar <ilya.tocar@intel.com>
9336 Andrey Turetskiy <andrey.turetskiy@intel.com>
9337 Ilya Verbin <ilya.verbin@intel.com>
9338 Kirill Yukhin <kirill.yukhin@intel.com>
9339 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9341 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
9342 * config/i386/subst.md
9343 (define_mode_iterator SUBST_V): Update.
9344 (define_mode_iterator SUBST_A): Ditto.
9345 (define_subst_attr "mask_operand7"): New.
9346 (define_subst_attr "mask_operand10"): New.
9347 (define_subst_attr "mask_operand_arg34") : New.
9348 (define_subst_attr "mask_expand_op3"): New.
9349 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
9350 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
9351 (define_subst_attr "mask_avx512vl_condition"): New.
9352 (define_subst_attr "round_mask_operand4"): Ditto.
9353 (define_subst_attr "round_mask_scalar_op3"): Delete.
9354 (define_subst_attr "round_mask_op4"): New.
9355 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
9357 (define_subst_attr "round_modev8sf_condition"): New.
9358 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
9360 (define_subst_attr "round_saeonly_mask_operand4"): New.
9361 (define_subst_attr "round_saeonly_mask_op4"): New.
9362 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
9363 V8DImode, V16SImode.
9364 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
9365 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
9366 (define_subst_attr "mask_expand4_args"): New.
9367 (define_subst "mask_expand4"): New.
9369 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9371 Anna Tikhonova <anna.tikhonova@intel.com>
9372 Ilya Tocar <ilya.tocar@intel.com>
9373 Andrey Turetskiy <andrey.turetskiy@intel.com>
9374 Ilya Verbin <ilya.verbin@intel.com>
9375 Kirill Yukhin <kirill.yukhin@intel.com>
9376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9378 * config/i386/i386.md
9379 (define_attr "isa"): Add avx512bw,noavx512bw.
9380 (define_attr "enabled"): Ditto.
9381 (define_split): Add 32/64-bit mask logic.
9382 (define_insn "*k<logic>qi"): New.
9383 (define_insn "*k<logic>hi"): New.
9384 (define_insn "*anddi_1"): Add mask version.
9385 (define_insn "*andsi_1"): Ditto.
9386 (define_insn "*<code><mode>_1"): Ditto.
9387 (define_insn "*<code>hi_1"): Ditto.
9388 (define_insn "kxnor<mode>"): New.
9389 (define_insn "kunpcksi"): New.
9390 (define_insn "kunpckdi"): New.
9391 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
9392 (define_insn "*one_cmplhi2_1"): Ditto.
9394 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9396 Anna Tikhonova <anna.tikhonova@intel.com>
9397 Ilya Tocar <ilya.tocar@intel.com>
9398 Andrey Turetskiy <andrey.turetskiy@intel.com>
9399 Ilya Verbin <ilya.verbin@intel.com>
9400 Kirill Yukhin <kirill.yukhin@intel.com>
9401 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9403 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
9406 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9407 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9408 Anna Tikhonova <anna.tikhonova@intel.com>
9409 Ilya Tocar <ilya.tocar@intel.com>
9410 Andrey Turetskiy <andrey.turetskiy@intel.com>
9411 Ilya Verbin <ilya.verbin@intel.com>
9412 Kirill Yukhin <kirill.yukhin@intel.com>
9413 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9415 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
9417 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
9418 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
9419 xmm/ymm16+ when availble.
9420 * config/i386/i386.h
9421 (HARD_REGNO_NREGS): Add mask regs.
9422 (VALID_AVX512F_REG_MODE): Ditto.
9423 (VALID_AVX512F_REG_MODE) : Define.
9424 (VALID_MASK_AVX512BW_MODE): Ditto.
9425 (reg_class) (MASK_REG_P(X)): Define.
9426 * config/i386/i386.md: Do not split long moves with mask register,
9427 use kmovb if avx512bw is availible.
9428 (movdi_internal): Handle mask registers.
9430 2014-08-14 Richard Biener <rguenther@suse.de>
9432 PR tree-optimization/62081
9433 * tree-ssa-loop.c (pass_fix_loops): New pass.
9434 (pass_tree_loop::gate): Do not fixup loops here.
9435 * tree-pass.h (make_pass_fix_loops): Declare.
9436 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
9438 2014-08-14 Richard Biener <rguenther@suse.de>
9440 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
9441 (type_hash_canon): ... this and avoid 2nd lookup for the add.
9443 2014-08-14 Richard Biener <rguenther@suse.de>
9445 PR tree-optimization/62090
9446 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
9447 (fold_builtin_2): Do not fold sprintf.
9448 (fold_builtin_3): Likewise.
9449 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
9450 moved from builtins.c.
9451 (gimple_fold_builtin): Fold sprintf.
9453 2014-08-14 Richard Biener <rguenther@suse.de>
9455 PR rtl-optimization/62079
9456 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
9459 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9461 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
9462 current_function_decl.
9464 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9466 * cgraph.c (cgraph_node::function_symbol): Fix wrong
9467 cgraph_function_node to cgraph_node::function_symbol
9470 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
9472 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
9473 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
9475 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
9477 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
9480 2014-08-13 Roman Gareev <gareevroman@gmail.com>
9482 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
9485 2014-08-12 Jakub Jelinek <jakub@redhat.com>
9488 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9489 any registers that are used in mem_insn.
9491 2014-08-12 Steve Ellcey <sellcey@mips.com>
9493 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
9495 2014-08-12 Steve Ellcey <sellcey@mips.com>
9497 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9498 (MULTILIB_DIRNAMES): Ditto.
9499 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9500 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9501 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9502 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9503 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9504 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9506 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9509 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9510 of __ARM_SIZEOF_WCHAR_T.
9512 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9515 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9516 Remove unnecessary attributes.
9518 2014-08-12 Yury Gribov <y.gribov@samsung.com>
9520 * internal-fn.c (init_internal_fns): Fix off-by-one.
9522 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9524 Anna Tikhonova <anna.tikhonova@intel.com>
9525 Ilya Tocar <ilya.tocar@intel.com>
9526 Andrey Turetskiy <andrey.turetskiy@intel.com>
9527 Ilya Verbin <ilya.verbin@intel.com>
9528 Kirill Yukhin <kirill.yukhin@intel.com>
9529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9531 * config/i386/i386.c (standard_sse_constant_opcode): Use
9532 vpxord/vpternlog if avx512 is availible.
9534 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
9537 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9538 bitfields, that is when size doesn't match the size of type or the
9539 size of the constructor.
9541 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9543 * config/rs6000/constraints.md (wh constraint): New constraint,
9544 for FP registers if direct move is available.
9545 (wi constraint): New constraint, for VSX/FP registers that can
9546 handle 64-bit integers.
9547 (wj constraint): New constraint for VSX/FP registers that can
9548 handle 64-bit integers for direct moves.
9549 (wk constraint): New constraint for VSX/FP registers that can
9550 handle 64-bit doubles for direct moves.
9551 (wy constraint): Make documentation match implementation.
9553 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9554 scalar_in_vmx_p field to simplify tests of whether SFmode or
9555 DFmode can go in the Altivec registers.
9556 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9557 (rs6000_setup_reg_addr_masks): Likewise.
9558 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9559 field, and wh/wi/wj/wk constraints.
9560 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9561 the wh/wi/wj/wk constraints.
9562 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9563 upper registers, prefer VSX registers unless the operation is a
9564 memory operation with REG+OFFSET addressing.
9566 * config/rs6000/vsx.md (VSr mode attribute): Add support for
9567 DImode. Change SFmode to use ww constraint instead of d to allow
9568 SF registers in the upper registers.
9571 (VSr5): Fix thinko in comment.
9572 (VSa): New mode attribute that is an alternative to wa, that
9573 returns the VSX register class that a mode can go in, but may not
9574 be the preferred register class.
9575 (VS_64dm): New mode attribute for appropriate register classes for
9576 referencing 64-bit elements of vectors for direct moves and normal
9578 (VS_64reg): Likewise.
9579 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9580 register allocator to only registers the data type can handle.
9581 (vsx_le_perm_load_<mode>): Likewise.
9582 (vsx_le_perm_store_<mode>): Likewise.
9583 (vsx_xxpermdi2_le_<mode>): Likewise.
9584 (vsx_xxpermdi4_le_<mode>): Likewise.
9585 (vsx_lxvd2x2_le_<mode>): Likewise.
9586 (vsx_lxvd2x4_le_<mode>): Likewise.
9587 (vsx_stxvd2x2_le_<mode>): Likewise.
9588 (vsx_add<mode>3): Likewise.
9589 (vsx_sub<mode>3): Likewise.
9590 (vsx_mul<mode>3): Likewise.
9591 (vsx_div<mode>3): Likewise.
9592 (vsx_tdiv<mode>3_internal): Likewise.
9593 (vsx_fre<mode>2): Likewise.
9594 (vsx_neg<mode>2): Likewise.
9595 (vsx_abs<mode>2): Likewise.
9596 (vsx_nabs<mode>2): Likewise.
9597 (vsx_smax<mode>3): Likewise.
9598 (vsx_smin<mode>3): Likewise.
9599 (vsx_sqrt<mode>2): Likewise.
9600 (vsx_rsqrte<mode>2): Likewise.
9601 (vsx_tsqrt<mode>2_internal): Likewise.
9602 (vsx_fms<mode>4): Likewise.
9603 (vsx_nfma<mode>4): Likewise.
9604 (vsx_eq<mode>): Likewise.
9605 (vsx_gt<mode>): Likewise.
9606 (vsx_ge<mode>): Likewise.
9607 (vsx_eq<mode>_p): Likewise.
9608 (vsx_gt<mode>_p): Likewise.
9609 (vsx_ge<mode>_p): Likewise.
9610 (vsx_xxsel<mode>): Likewise.
9611 (vsx_xxsel<mode>_uns): Likewise.
9612 (vsx_copysign<mode>3): Likewise.
9613 (vsx_float<VSi><mode>2): Likewise.
9614 (vsx_floatuns<VSi><mode>2): Likewise.
9615 (vsx_fix_trunc<mode><VSi>2): Likewise.
9616 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9617 (vsx_x<VSv>r<VSs>i): Likewise.
9618 (vsx_x<VSv>r<VSs>ic): Likewise.
9619 (vsx_btrunc<mode>2): Likewise.
9620 (vsx_b2trunc<mode>2): Likewise.
9621 (vsx_floor<mode>2): Likewise.
9622 (vsx_ceil<mode>2): Likewise.
9623 (vsx_<VS_spdp_insn>): Likewise.
9624 (vsx_xscvspdp): Likewise.
9625 (vsx_xvcvspuxds): Likewise.
9626 (vsx_float_fix_<mode>2): Likewise.
9627 (vsx_set_<mode>): Likewise.
9628 (vsx_extract_<mode>_internal1): Likewise.
9629 (vsx_extract_<mode>_internal2): Likewise.
9630 (vsx_extract_<mode>_load): Likewise.
9631 (vsx_extract_<mode>_store): Likewise.
9632 (vsx_splat_<mode>): Likewise.
9633 (vsx_xxspltw_<mode>): Likewise.
9634 (vsx_xxspltw_<mode>_direct): Likewise.
9635 (vsx_xxmrghw_<mode>): Likewise.
9636 (vsx_xxmrglw_<mode>): Likewise.
9637 (vsx_xxsldwi_<mode>): Likewise.
9638 (vsx_xscvdpspn): Tighten constraints to only use register classes
9640 (vsx_xscvspdpn): Likewise.
9641 (vsx_xscvdpspn_scalar): Likewise.
9643 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9644 wj, and wk constraints.
9645 (GPR_REG_CLASS_P): New helper macro for register classes targeting
9646 general purpose registers.
9648 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9650 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9651 DImode instead of wm. Use wk constraint for direct move of DFmode
9653 (extendsidi2_lfiwax): Likewise.
9656 (movdi_internal64): Likewise.
9658 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9659 wk constraints. Make the wy constraint documentation match them
9662 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
9664 Replacement of isl_int by isl_val
9665 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9666 (compute_bounds_for_param): use isl_val instead of isl_int
9667 (compute_bounds_for_loop): likewise
9668 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9669 (build_linearized_memory_access): use isl_val instead of isl_int
9670 (pdr_stride_in_loop): likewise
9671 * graphite-optimize-isl.c:
9672 (getPrevectorMap): use isl_val instead of isl_int
9674 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9675 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9676 (extern the_isl_ctx): declare
9677 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9678 (extract_affine_gmp): likewise
9680 (build_loop_iteration_domains): likewise
9681 (add_param_constraints): likewise
9683 2014-08-11 Richard Biener <rguenther@suse.de>
9685 PR tree-optimization/62075
9686 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9687 handle uses in patterns.
9689 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9691 Anna Tikhonova <anna.tikhonova@intel.com>
9692 Ilya Tocar <ilya.tocar@intel.com>
9693 Andrey Turetskiy <andrey.turetskiy@intel.com>
9694 Ilya Verbin <ilya.verbin@intel.com>
9695 Kirill Yukhin <kirill.yukhin@intel.com>
9696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9698 * common/config/i386/i386-common.c
9699 (OPTION_MASK_ISA_AVX512VL_SET): Define.
9700 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9701 (ix86_handle_option): Handle OPT_mavx512vl.
9702 * config/i386/cpuid.h (bit_AVX512VL): Define.
9703 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9704 set -mavx512vl accordingly.
9705 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9706 OPTION_MASK_ISA_AVX512VL.
9707 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9708 (ix86_option_override_internal): Define PTA_AVX512VL, handle
9709 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9710 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9711 * config/i386/i386.h (TARGET_AVX512VL): Define.
9712 (TARGET_AVX512VL_P(x)): Ditto.
9713 * config/i386/i386.opt: Add mavx512vl.
9715 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
9717 PR tree-optimization/62073
9718 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9721 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9722 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9723 Anna Tikhonova <anna.tikhonova@intel.com>
9724 Ilya Tocar <ilya.tocar@intel.com>
9725 Andrey Turetskiy <andrey.turetskiy@intel.com>
9726 Ilya Verbin <ilya.verbin@intel.com>
9727 Kirill Yukhin <kirill.yukhin@intel.com>
9728 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9730 * common/config/i386/i386-common.c
9731 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9732 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9733 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9734 (ix86_handle_option): Handle OPT_mavx512bw.
9735 * config/i386/cpuid.h (bit_AVX512BW): Define.
9736 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9737 set -mavx512bw accordingly.
9738 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9739 OPTION_MASK_ISA_AVX512BW.
9740 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9741 (ix86_option_override_internal): Define PTA_AVX512BW, handle
9742 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9743 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9744 * config/i386/i386.h (TARGET_AVX512BW): Define.
9745 (TARGET_AVX512BW_P(x)): Ditto.
9746 * config/i386/i386.opt: Add mavx512bw.
9748 2014-08-11 Richard Biener <rguenther@suse.de>
9750 PR tree-optimization/62070
9751 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9752 Remove SSA checking.
9754 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9756 * asan.c (asan_check_flags): New enum.
9757 (build_check_stmt_with_calls): Removed function.
9758 (build_check_stmt): Split inlining logic to
9759 asan_expand_check_ifn.
9760 (instrument_derefs): Rename parameter.
9761 (instrument_mem_region_access): Rename parameter.
9762 (instrument_strlen_call): Likewise.
9763 (asan_expand_check_ifn): New function.
9764 (asan_instrument): Remove old code.
9765 (pass_sanopt::execute): Change handling of
9766 asan-instrumentation-with-call-threshold.
9767 (asan_clear_shadow): Fix formatting.
9768 (asan_function_start): Likewise.
9769 (asan_emit_stack_protection): Likewise.
9770 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9772 * internal-fn.c (expand_ASAN_CHECK): New function.
9773 * internal-fn.def (ASAN_CHECK): New internal function.
9774 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9776 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9777 * tree.c: Small comment fix.
9779 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9781 * gimple.c (gimple_call_fnspec): Support internal functions.
9782 (gimple_call_return_flags): Use const.
9783 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9784 * internal-fn.def: Add fnspec information.
9785 * internal-fn.h (internal_fn_fnspec): New function.
9786 (init_internal_fns): Declare new function.
9787 * internal-fn.c (internal_fn_fnspec_array): New global variable.
9788 (init_internal_fns): New function.
9789 * tree-core.h: Update macro call.
9790 * tree.c (build_common_builtin_nodes): Initialize internal fns.
9792 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
9794 * lto-streamer.h (struct output_block::symbol): Change from
9795 struct symtab_node to plain symtab_node.
9796 (referenced_from_this_partition_p): Change first parameter
9797 from struct symtab_node to plain symtab_node.
9799 2014-08-10 Marek Polacek <polacek@redhat.com>
9802 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9804 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
9806 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9807 DECL correctly; do not give up on types in static storage.
9809 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
9811 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9813 2014-08-09 Roman Gareev <gareevroman@gmail.com>
9815 * graphite-isl-ast-to-gimple.c:
9816 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9818 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9820 2014-08-08 Guozhi Wei <carrot@google.com>
9822 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9824 2014-08-08 Cary Coutant <ccoutant@google.com>
9826 * dwarf2out.c (get_skeleton_type_unit): Remove.
9827 (output_skeleton_debug_sections): Remove skeleton type units.
9828 (output_comdat_type_unit): Likewise.
9829 (dwarf2out_finish): Likewise.
9831 2014-08-07 Yi Yang <ahyangyi@google.com>
9833 * predict.c (expr_expected_value_1): Remove the redundant assignment.
9835 2014-08-08 Richard Biener <rguenther@suse.de>
9837 * lto-streamer.h (struct lto_input_block): Make it a class
9839 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
9840 (struct lto_function_header, struct lto_simple_header,
9841 struct lto_simple_header_with_strings,
9842 struct lto_decl_header, struct lto_function_header): Make
9843 a simple inheritance hieararchy. Remove unused fields.
9844 (struct lto_asm_header): Remove.
9845 * lto-streamer-out.c (produce_asm): Adjust.
9846 (lto_output_toplevel_asms): Likewise.
9847 (produce_asm_for_decls): Likewise.
9848 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9849 * data-streamer-in.c (string_for_index): Likewise.
9850 * ipa-inline-analysis.c (inline_read_section): Likewise.
9851 * ipa-prop.c (ipa_prop_read_section): Likewise.
9852 (read_replacements_section): Likewise.
9853 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
9854 * lto-section-in.c (lto_create_simple_input_block): Likewise.
9855 (lto_destroy_simple_input_block): Likewise.
9856 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
9857 (lto_input_toplevel_asms): Likewise.
9859 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
9860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9861 Anna Tikhonova <anna.tikhonova@intel.com>
9862 Ilya Tocar <ilya.tocar@intel.com>
9863 Andrey Turetskiy <andrey.turetskiy@intel.com>
9864 Ilya Verbin <ilya.verbin@intel.com>
9865 Kirill Yukhin <kirill.yukhin@intel.com>
9866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9868 * common/config/i386/i386-common.c
9869 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
9870 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
9871 (ix86_handle_option): Handle OPT_mavx512dq.
9872 * config/i386/cpuid.h (bit_AVX512DQ): Define.
9873 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
9874 set -mavx512dq accordingly.
9875 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9876 OPTION_MASK_ISA_AVX512DQ.
9877 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
9878 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
9879 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
9880 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
9881 * config/i386/i386.h (TARGET_AVX512DQ): Define.
9882 (TARGET_AVX512DQ_P(x)): Ditto.
9883 * config/i386/i386.opt: Add mavx512dq.
9885 2014-08-08 Richard Biener <rguenther@suse.de>
9887 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
9888 target_percent, target_percent_s): Export.
9889 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
9890 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
9891 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
9892 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
9893 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
9894 Move to gimple-fold.c.
9895 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
9897 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
9898 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
9899 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
9900 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
9901 (rewrite_call_expr_array): Remove.
9902 (fold_builtin_sprintf_chk): Likewise.
9903 (fold_builtin_snprintf_chk): Likewise.
9904 (fold_builtin_varargs): Remove handling of sprintf_chk,
9905 vsprintf_chk, snprintf_chk and vsnprintf_chk.
9906 (gimple_fold_builtin_sprintf_chk): Remove.
9907 (gimple_fold_builtin_snprintf_chk): Likewise.
9908 (gimple_fold_builtin_varargs): Likewise.
9909 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
9910 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
9911 * gimple.c (gimple_seq_add_seq_without_update): New function.
9912 * gimple.h (gimple_seq_add_seq_without_update): Declare.
9913 * gimple-fold.c: Include output.h.
9914 (gsi_replace_with_seq_vops): New function, split out from ...
9915 (gimplify_and_update_call_from_tree): ... here.
9916 (replace_call_with_value): New function.
9917 (replace_call_with_call_and_fold): Likewise.
9918 (var_decl_component_p): Moved from builtins.c.
9919 (gimple_fold_builtin_memory_op): Moved from builtins.c
9920 fold_builtin_memory_op and rewritten to GIMPLE.
9921 (gimple_fold_builtin_memset): Likewise.
9922 (gimple_fold_builtin_strcpy): Likewise.
9923 (gimple_fold_builtin_strncpy): Likewise.
9924 (gimple_fold_builtin_strcat): Likewise.
9925 (gimple_fold_builtin_fputs): Likewise.
9926 (gimple_fold_builtin_memory_chk): Likewise.
9927 (gimple_fold_builtin_stxcpy_chk): Likewise.
9928 (gimple_fold_builtin_stxncpy_chk): Likewise.
9929 (gimple_fold_builtin_snprintf_chk): Likewise.
9930 (gimple_fold_builtin_sprintf_chk): Likewise.
9931 (gimple_fold_builtin_strlen): New function.
9932 (gimple_fold_builtin_with_strlen): New function split out from
9933 gimple_fold_builtin.
9934 (gimple_fold_builtin): Change signature and handle
9935 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
9936 here. Call gimple_fold_builtin_with_strlen.
9937 (gimple_fold_call): Adjust.
9939 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
9941 * calls.c (precompute_arguments): Check
9942 promoted_for_signed_and_unsigned_p and set the promoted mode.
9943 (promoted_for_signed_and_unsigned_p): New function.
9944 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
9945 and set the promoted mode.
9946 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
9947 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
9948 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
9951 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
9953 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
9954 instead of SUBREG_PROMOTED_UNSIGNED_SET.
9955 (expand_call): Likewise.
9956 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
9957 to get promoted mode.
9958 * combine.c (record_promoted_value): Skip > 0 comparison with
9959 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
9960 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
9961 of SUBREG_PROMOTED_UNSIGNED_P.
9962 (convert_modes): Likewise.
9963 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
9964 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
9965 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
9966 SUBREG_PROMOTED_UNSIGNED_SET.
9967 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
9968 instead of SUBREG_PROMOTED_UNSIGNED_SET.
9969 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
9970 SUBREG_PROMOTED_SET.
9971 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
9972 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
9973 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
9974 of SUBREG_PROMOTED_UNSIGNED_P.
9975 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
9976 (SUBREG_PROMOTED_SET): New define.
9977 (SUBREG_PROMOTED_GET): Likewise.
9978 (SUBREG_PROMOTED_SIGN): Likewise.
9979 (SUBREG_PROMOTED_SIGNED_P): Likewise.
9980 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
9981 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
9982 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
9983 instead of SUBREG_PROMOTED_UNSIGNED_GET.
9984 (nonzero_bits1): Skip > 0 comparison with the results as
9985 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
9986 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
9987 of !SUBREG_PROMOTED_UNSIGNED_P.
9988 * simplify-rtx.c (simplify_unary_operation_1): Use new
9989 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
9990 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
9991 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
9992 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
9994 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
9996 * ipa-devirt.c: Include gimple-pretty-print.h
9997 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
9999 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10000 (get_polymorphic_call_info): Fix return value
10001 (type_change_info): New sturcture based on ipa-prop
10003 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10004 based on ipa-prop variant.
10005 (extr_type_from_vtbl_ptr_store): New function
10006 based on ipa-prop variant.
10007 (record_known_type): New function.
10008 (check_stmt_for_type_change): New function.
10009 (get_dynamic_type): New function.
10010 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10011 * tree-ssa-pre.c: ipa-utils.h
10012 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10013 machinery; sanity check with ipa-prop devirtualization.
10014 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10017 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10019 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10020 * alias.c, cfgexpand.c, cgraphbuild.c,
10021 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10022 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10023 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10024 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10025 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10026 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10027 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10028 dse.c, except.c, gengtype.c, gimple-expr.c,
10029 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10030 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10031 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10032 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10033 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10034 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10036 * pointer-set.c: Remove file.
10037 * pointer-set.h: Remove file.
10039 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10041 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10042 * config/arm/types.md (f_sels, f_seld): Delete.
10044 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10046 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10047 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10048 (aarch64_movdi_<mode>high): Likewise.
10049 (aarch64_mov<mode>high_di): Likewise.
10050 (aarch64_movdi_<mode>low): Likewise.
10051 (aarch64_mov<mode>low_di): Likewise.
10052 (aarch64_movtilow_tilow): Likewise.
10053 Add comment explaining usage of fp,simd attributes and of
10054 TARGET_FLOAT and TARGET_SIMD.
10056 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10057 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10059 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10060 Use MOVN when one of the half-words is 0xffff.
10062 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10064 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10066 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10068 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10069 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10070 (rfs_str): String corresponding to RFS_* constants.
10071 (rank_for_schedule_stats_t): New typedef.
10072 (rank_for_schedule_stats): New static variable.
10073 (rfs_result): New static function.
10074 (rank_for_schedule): Track statistics for deciding heuristics.
10075 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10077 (ready_sort): Use them for debug printouts.
10078 (schedule_block): Init statistics state. Print statistics on
10079 rank_for_schedule decisions.
10081 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10083 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10085 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10087 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10090 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10092 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10093 function to not conflict.
10094 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10095 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10096 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10097 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10098 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10101 2014-08-07 Marek Polacek <polacek@redhat.com>
10103 * fold-const.c (fold_binary_loc): Add folding of
10104 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10106 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10108 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10109 instead of type size.
10110 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10112 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10114 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10115 (*thumb1_movqi_insn): Likewise.
10116 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10118 2014-08-07 Tom de Vries <tom@codesourcery.com>
10120 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10121 (glibc_2_11_or_earlier): Remove effective-target keywords.
10123 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10125 * config/arm/arm.c (bdesc_2arg): Fix typo.
10126 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10128 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10130 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10132 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10135 * haifa-sched.c (advance_one_cycle): Fix dump.
10136 (schedule_block): Don't advance cycle if we are already at the
10137 beginning of the cycle.
10139 2014-08-06 Martin Jambor <mjambor@suse.cz>
10142 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10144 2014-08-06 Richard Biener <rguenther@suse.de>
10147 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10149 (lto_input_tree): Pop SCCs here.
10151 2014-08-06 Richard Biener <rguenther@suse.de>
10153 PR tree-optimization/61320
10154 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10155 handle misaligned loads.
10157 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10159 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10160 (aarch64_expand_vec_perm_const): Check for dup before zip.
10162 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10164 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10165 CONST_INT_P instead of GET_CODE and compare.
10166 (aarch64_select_cc_mode): Likewise.
10167 (aarch64_print_operand): Likewise.
10168 (aarch64_rtx_costs): Likewise.
10169 (aarch64_simd_valid_immediate): Likewise.
10170 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10171 (aarch64_simd_emit_pair_result_insn): Likewise.
10173 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10175 * gdbhooks.py (find_gcc_source_dir): New helper function.
10176 (class PassNames): New class, locating and parsing passes.def.
10177 (class BreakOnPass): New command "break-on-pass".
10179 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10181 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10184 2014-08-05 Richard Biener <rguenther@suse.de>
10186 PR rtl-optimization/61672
10187 * emit-rtl.h (mem_attrs_eq_p): Declare.
10188 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10189 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10190 * cfgcleanup.c (merge_memattrs): Likewise.
10191 Include emit-rtl.h.
10193 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10195 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10196 rather than singleton vectors.
10197 (vqdmlsls_lane_s32): Likewise.
10199 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10201 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10202 Use VSDQ_HSI mode iterator.
10203 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10204 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10205 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10206 Use BUILTIN_VDQHS macro.
10207 (sqrdmulh_laneq): Likewise.
10208 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
10209 (vqdmlals_laneq_s32): Likewise.
10210 (vqdmlslh_laneq_s16): Likewise.
10211 (vqdmlsls_laneq_s32): Likewise.
10212 (vqdmulhh_laneq_s16): Likewise.
10213 (vqdmulhs_laneq_s32): Likewise.
10214 (vqrdmulhh_laneq_s16): Likewise.
10215 (vqrdmulhs_laneq_s32): Likewise.
10217 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10219 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
10220 (vmuld_laneq_f64): Likewise.
10221 (vmuls_laneq_f32): Likewise.
10222 (vmul_n_f64): Likewise.
10223 (vmuld_lane_f64): Reimplement in C.
10224 (vmuls_lane_f32): Likewise.
10226 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10228 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
10230 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
10232 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10234 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
10235 (rbitsi2): Likewise.
10236 (*arm_rev): Set predicable and predicable_short_it attributes.
10238 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10240 * convert.c (convert_to_integer): Guard transformation to lrint by
10243 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10245 * config/aarch64/aarch64-builtins.c
10246 (aarch64_simd_builtin_type_mode): Delete.
10247 (v8qi_UP): Remap to V8QImode.
10248 (v4hi_UP): Remap to V4HImode.
10249 (v2si_UP): Remap to V2SImode.
10250 (v2sf_UP): Remap to V2SFmode.
10251 (v1df_UP): Remap to V1DFmode.
10252 (di_UP): Remap to DImode.
10253 (df_UP): Remap to DFmode.
10254 (v16qi_UP):V16QImode.
10255 (v8hi_UP): Remap to V8HImode.
10256 (v4si_UP): Remap to V4SImode.
10257 (v4sf_UP): Remap to V4SFmode.
10258 (v2di_UP): Remap to V2DImode.
10259 (v2df_UP): Remap to V2DFmode.
10260 (ti_UP): Remap to TImode.
10261 (ei_UP): Remap to EImode.
10262 (oi_UP): Remap to OImode.
10263 (ci_UP): Map to CImode.
10264 (xi_UP): Remap to XImode.
10265 (si_UP): Remap to SImode.
10266 (sf_UP): Remap to SFmode.
10267 (hi_UP): Remap to HImode.
10268 (qi_UP): Remap to QImode.
10269 (aarch64_simd_builtin_datum): Make mode a machine_mode.
10270 (VAR1): Build builtin name.
10271 (aarch64_init_simd_builtins): Remove dead code.
10273 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10275 * graphite-isl-ast-to-gimple.c:
10276 (set_options): New function.
10277 (scop_to_isl_ast): Add calling of set_options.
10279 2014-08-05 Jakub Jelinek <jakub@redhat.com>
10281 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
10282 (analyze_iv_to_split_insn): Don't initialize them.
10283 (get_ivts_expr): Removed.
10284 (allocate_basic_variable, insert_base_initialization): Use
10285 SET_SRC instead of *get_ivts_expr.
10286 (split_iv): Use &SET_SRC instead of get_ivts_expr.
10288 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10290 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
10291 (translate_isl_ast_for_loop): Add checking of the
10292 flag_loop_parallelize_all.
10293 (ast_build_before_for): New function.
10294 (scop_to_isl_ast): Add checking of the
10295 flag_loop_parallelize_all.
10296 * graphite-dependences.c: Move the defenition of the
10297 scop_get_dependences from graphite-optimize-isl.c to this file.
10298 (apply_schedule_on_deps): Add checking of the ux's emptiness.
10299 (carries_deps): Add checking of the x's value.
10300 * graphite-optimize-isl.c: Move the defenition of the
10301 scop_get_dependences to graphite-dependences.c.
10302 * graphite-poly.h: Add declarations of scop_get_dependences
10305 2014-08-04 Rohit <rohitarulraj@freescale.com>
10308 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
10310 (alt_reg_names): Likewise.
10311 (rs6000_dwarf_register_span): For SPE high registers, replace
10312 dwarf register numbers with GCC hard register numbers.
10313 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
10314 (rs6000_dbx_register_number): For SPE high registers, return dwarf
10315 register number for the corresponding GCC hard register number.
10316 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
10317 newly added GCC hard register numbers for SPE high registers.
10318 (DWARF_FRAME_REGISTERS): Likewise.
10319 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
10320 (DWARF_FRAME_REGNUM): Likewise.
10321 (FIXED_REGISTERS): Likewise.
10322 (CALL_USED_REGISTERS): Likewise.
10323 (CALL_REALLY_USED_REGISTERS): Likewise.
10324 (REG_ALLOC_ORDER): Likewise.
10325 (enum reg_class): Likewise.
10326 (REG_CLASS_NAMES): Likewise.
10327 (REG_CLASS_CONTENTS): Likewise.
10328 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
10330 2014-08-04 Richard Biener <rguenther@suse.de>
10332 * gimple-fold.h (gimple_fold_builtin): Remove.
10333 * gimple-fold.c (gimple_fold_builtin): Make static.
10334 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
10335 fold_stmt, not gimple_fold_builtin.
10337 2014-08-04 Martin Liska <mliska@suse.cz>
10339 * cgraph.h (csi_end_p): Removed.
10340 (csi_next): Likewise.
10341 (csi_node): Likewise.
10342 (csi_start): Likewise.
10343 (cgraph_node_in_set_p): Likewise.
10344 (cgraph_node_set_size): Likewise.
10345 (vsi_end_p): Likewise.
10346 (vsi_next): Likewise.
10347 (vsi_node): Likewise.
10348 (vsi_start): Likewise.
10349 (varpool_node_set_size): Likewise.
10350 (cgraph_node_set_nonempty_p): Likewise.
10351 (varpool_node_set_nonempty_p): Likewise.
10352 * cgraphunit.c (cgraph_process_new_functions): vec replaces
10354 * ipa-inline-transform.c: Likewise.
10355 * ipa-utils.c (cgraph_node_set_new): Removed.
10356 (cgraph_node_set_add): Likewise.
10357 (cgraph_node_set_remove): Likewise.
10358 (cgraph_node_set_find): Likewise.
10359 (dump_cgraph_node_set): Likewise.
10360 (debug_cgraph_node_set): Likewise.
10361 (free_cgraph_node_set): Likewise.
10362 (varpool_node_set_new): Likewise.
10363 (varpool_node_set_add): Likewise.
10364 (varpool_node_set_remove): Likewise.
10365 (varpool_node_set_find): Likewise.
10366 (dump_varpool_node_set): Likewise.
10367 (free_varpool_node_set): Likewise.
10368 (debug_varpool_node_set): Likewise.
10369 * tree-emutls.c (struct tls_var_data):
10370 (emutls_index): Removed.
10371 (emutls_decl): Likewise.
10372 (gen_emutls_addr): Function implementation uses newly added
10373 hash_map<varpool_node *, tls_var_data>.
10374 (clear_access_vars): Likewise.
10375 (create_emultls_var): Likewise.
10376 (ipa_lower_emutls): Likewise.
10377 (reset_access): New function.
10379 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10381 * config/i386/i386.c (ix86_option_override_internal): Add
10382 PTA_RDRND and PTA_MOVBE for bdver4.
10384 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10385 James Greenhalgh <james.greenhalgh@arm.com>
10387 * doc/md.texi (clrsb): Document.
10388 (clz): Change reference to x into operand 1.
10390 (popcount): Likewise.
10392 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10395 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
10396 move to subtarget in serial version if result is ignored.
10398 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10399 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10401 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
10402 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
10403 (sched_analyze_insn): Update use of try_group_insn to
10404 sched_macro_fuse_insns.
10405 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
10406 arguments that are not conditional jumps.
10408 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10410 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
10411 family information. Handle BTVER2 cpu with cpuid family value.
10413 2014-08-04 Tom de Vries <tom@codesourcery.com>
10415 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10416 (glibc_2_11_or_earlier): Document effective-target keywords.
10418 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10420 * ipa-devirt.c (odr_type_warn_count): Add type.
10421 (possible_polymorphic_call_targets): Set it.
10422 (ipa_devirt): Use it.
10424 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10426 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
10428 * ipa-devirt.c: Include hash-map.h
10429 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
10430 (clear_speculation): Break out of ...
10431 (get_class_context): ... here; speed up handling obviously useless
10433 (odr_type_warn_count, decl_warn_count): New structures.
10434 (final_warning_record): New structure.
10435 (final_warning_records): New static variable.
10436 (possible_polymorphic_call_targets): Cleanup handling of
10437 speculative info; do not build speculation when user do not care;
10438 record info about warnings when asked for.
10439 (add_decl_warning): New function.
10440 (type_warning_cmp): New function.
10441 (decl_warning_cmp): New function.
10442 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
10443 (gate): Enable pass when warnings are requested.
10444 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
10447 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10449 * hash-map.h (default_hashmap_traits::mark_key_deleted):
10451 (hash_map::remove): New method.
10452 (hash_map::traverse): New method.
10453 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
10454 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
10455 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
10456 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
10457 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
10458 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
10461 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10463 * hash-set.h: new File.
10464 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
10465 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
10466 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
10467 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
10468 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
10469 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
10470 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
10471 varpool.c: Use hash_set instead of pointer_set.
10473 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
10475 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
10477 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10479 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
10480 for frame access when strict_p is false.
10482 2014-08-01 Renlin Li <renlin.li@arm.com>
10483 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10485 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10486 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10487 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10489 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10491 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10492 aarch64_mem_pair_offset.
10494 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10496 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10498 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10499 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10501 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
10503 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10505 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
10507 PR regression/61510
10508 * cgraphunit.c (analyze_functions): Use get_create rather than get
10509 for decls which are clones of abstract functions.
10511 2014-08-01 Martin Liska <mliska@suse.cz>
10513 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10514 * ipa-prop.h (count_formal_params): Global function created from static.
10515 * ipa-prop.c (count_formal_params): Likewise.
10516 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10517 profiles for semantically equivalent functions.
10518 * passes.c (do_per_function): If we load body of a function
10519 during WPA, this condition should behave same.
10520 * varpool.c (ctor_for_folding): More tolerant assert for variable
10521 aliases created during WPA.
10523 2014-08-01 Martin Liska <mliska@suse.cz>
10525 * doc/invoke.texi (Options That Control Optimization): Documentation
10526 for -foptimize-strlen introduced. Optimization levels default options
10529 2014-08-01 Jakub Jelinek <jakub@redhat.com>
10531 * opts.c (common_handle_option): Handle -fsanitize=alignment.
10532 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10533 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10535 * stor-layout.h (min_align_of_type): New prototype.
10536 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10537 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
10539 * ubsan.c: Include builtins.h.
10540 (ubsan_expand_bounds_ifn): Change return type to bool,
10541 always return true.
10542 (ubsan_expand_null_ifn): Change return type to bool, change
10543 argument to gimple_stmt_iterator *. Handle both null and alignment
10544 sanitization, take type from ckind argument's type rather than
10546 (instrument_member_call): Removed.
10547 (instrument_mem_ref): Remove t argument, add mem and base arguments.
10548 Handle both null and alignment sanitization, don't say whole
10549 struct access is member access. Build 3 argument IFN_UBSAN_NULL
10550 call instead of 2 argument.
10551 (instrument_null): Adjust instrument_mem_ref caller. Don't
10552 instrument calls here.
10553 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10554 like SANITIZE_NULL.
10555 * stor-layout.c (min_align_of_type): New function.
10556 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10557 Or it into SANITIZE_UNDEFINED.
10558 * doc/invoke.texi (-fsanitize=alignment): Document.
10560 2014-07-31 Andi Kleen <ak@linux.intel.com>
10562 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10564 2014-07-31 Andi Kleen <ak@linux.intel.com>
10566 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10568 (vn_reference_compute_hash): Dito.
10569 (vn_nary_op_compute_hash): Dito.
10570 (vn_phi_compute_hash): Dito.
10571 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10573 2014-07-31 Andi Kleen <ak@linux.intel.com>
10575 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10576 Rename to inchash:add_expr_commutative. Convert to inchash.
10577 (iterative_hash_hashable_expr): Rename to
10578 inchash:add_hashable_expr. Convert to inchash.
10579 (avail_expr_hash): Dito.
10581 2014-07-31 Andi Kleen <ak@linux.intel.com>
10583 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10584 Convert to inchash.
10586 2014-07-31 Andi Kleen <ak@linux.intel.com>
10588 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10590 2014-07-31 Andi Kleen <ak@linux.intel.com>
10592 * Makefile.in (OBJS): Add rtlhash.o
10593 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10594 (loc_checksum): Dito.
10595 (loc_checksum_ordered): Dito.
10596 (hash_loc_operands): Dito.
10598 (hash_loc_list): Dito.
10599 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10600 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10601 * rtlhash.c: New file.
10602 * rtlhash.h: New file.
10604 2014-07-31 Andi Kleen <ak@linux.intel.com>
10606 * inchash.h (inchash): Change inchash class to namespace.
10607 (class hash): ... Rename from inchash.
10608 (add_object): Move from macro to class template.
10609 * lto-streamer-out.c (hash_tree): Change inchash
10611 * tree.c (build_type_attribute_qual_variant): Dito.
10612 (type_hash_list): Dito.
10613 (attribute_hash_list): Dito.
10614 (iterative_hstate_expr): Rename to inchash::add_expr
10615 (build_range_type_1): Change inchash to inchash::hash
10616 and use hash::add_expr.
10617 (build_array_type_1): Dito.
10618 (build_function_type): Dito
10619 (build_method_type_directly): Dito.
10620 (build_offset_type): Dito.
10621 (build_complex_type): Dito.
10622 (make_vector_type): Dito.
10623 * tree.h (iterative_hash_expr): Dito.
10625 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
10627 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10629 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10631 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10632 correct alphabetical position.
10633 (vpaddd_f64): Rewrite using builtins.
10634 (vpaddd_s64): Move to correct alphabetical position.
10637 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
10640 * config/sh/sh.c (sh_legitimate_address_p,
10641 sh_legitimize_reload_address): Handle reg+reg address modes when
10642 ALLOW_INDEXED_ADDRESS is false.
10643 * config/sh/predicates.md (general_movsrc_operand,
10644 general_movdst_operand): Likewise.
10646 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10648 * config/aarch64/aarch64-builtins.c
10649 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10652 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10654 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10655 the generated mask based on BYTES_BIG_ENDIAN.
10656 (aarch64_simd_check_vect_par_cnst_half): New.
10657 * config/aarch64/aarch64-protos.h
10658 (aarch64_simd_check_vect_par_cnst_half): New.
10659 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10660 the check out to aarch64_simd_check_vect_par_cnst_half.
10661 (vect_par_cnst_lo_half): Likewise.
10662 * config/aarch64/aarch64-simd.md
10663 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10664 (move_hi_quad_<mode>): Always generate a low mask.
10666 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10668 * doc/invoke.texi (AVR Options): Add documentation about
10669 __AVR_DEVICE_NAME__ built-in macro.
10671 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
10674 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10675 constraints are satisfied.
10676 (<shift>di3_neon): Likewise.
10678 2014-07-31 Richard Biener <rguenther@suse.de>
10680 PR tree-optimization/61964
10681 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10682 by structural equality.
10684 2014-07-31 Yury Gribov <y.gribov@samsung.com>
10686 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10687 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10688 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10690 * gcc.c (sanitize_spec_function): Support new option.
10691 (SANITIZER_SPEC): Remove now redundant check.
10692 * opts.c (common_handle_option): Support new option.
10693 (finish_options): Check for incompatibilities.
10694 * toplev.c (process_options): Split userspace-specific checks.
10696 2014-07-31 Richard Biener <rguenther@suse.de>
10698 * lto-streamer.h (struct output_block): Remove global.
10699 (struct data_in): Remove labels, num_named_labels and
10700 num_unnamed_labels.
10701 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10702 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10704 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
10707 * common.opt (-Wreturn-local-addr): Moved from c.opt.
10708 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10709 (isolate_path): New argument to avoid inserting a trap.
10710 (find_implicit_erroneous_behaviour): Handle returning the address
10711 of a local variable.
10712 (find_explicit_erroneous_behaviour): Likewise.
10714 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
10717 * toplev.c (init_random_seed): Move piece of code never called to
10719 (set_random_seed): see above.
10721 2014-07-31 Tom de Vries <tom@codesourcery.com>
10723 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10725 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
10727 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10728 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10730 2014-07-31 Richard Biener <rguenther@suse.de>
10732 * data-streamer.h (streamer_write_data_stream): Declare here,
10734 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
10735 * lto-cgraph.c (lto_output_node): Adjust.
10736 (lto_output_varpool_node): Likewise.
10737 * data-streamer-out.c (streamer_string_index): Likewise.
10738 (streamer_write_data_stream, lto_append_block): Move from ...
10739 * lto-section-out.c (lto_output_data_stream,
10740 lto_append_block): ... here.
10742 2014-07-30 Mike Stump <mikestump@comcast.net>
10744 * configure.ac: Also check for popen.
10745 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10746 * configure: Regenerate.
10747 * config.in: Regenerate.
10749 2014-07-30 Martin Jambor <mjambor@suse.cz>
10751 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10752 parameter to gimple.
10754 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10756 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10757 address as second parameter to __tpf_eh_return routine.
10759 2014-07-30 Jiong Wang <jiong.wang@arm.com>
10761 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10764 2014-07-30 Tom Tromey <tromey@redhat.com>
10767 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10768 * doc/extend.texi (Type Attributes): Document designated_init
10771 2014-07-30 Roman Gareev <gareevroman@gmail.com>
10773 * graphite-isl-ast-to-gimple.c:
10774 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10775 (gcc_expression_from_isl_expression): Pass type to
10776 gcc_expression_from_isl_ast_expr_id.
10778 2014-07-30 Richard Biener <rguenther@suse.de>
10780 * lto-streamer.h (lto_write_data): New function.
10781 * langhooks.c (lhd_append_data): Do not free block.
10782 * lto-section-out.c (lto_write_data): New function writing
10783 raw data to the current section.
10784 (lto_write_stream): Adjust for langhook semantic change.
10785 (lto_destroy_simple_output_block): Write header directly.
10786 * lto-opts.c (lto_write_options): Write options directly.
10787 * lto-streamer-out.c (produce_asm): Write heaeder directly.
10788 (lto_output_toplevel_asms): Likewise.
10789 (copy_function_or_variable): Copy data directly.
10790 (write_global_references): Output index table directly.
10791 (lto_output_decl_state_refs): Likewise.
10792 (write_symbol): Write data directly.
10793 (produce_symtab): Adjust.
10794 (produce_asm_for_decls): Output header and refs directly.
10796 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10798 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10799 to speculative_targets
10800 (get_class_context): Fix handling of contextes without outer type;
10801 avoid matching non-polymorphic types in LTO.
10802 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10803 parameter to speculative_targetsp; handle speculation.
10804 (dump_possible_polymorphic_call_targets): Update dumping.
10806 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10808 * common.opt (Wodr): Enable by default.
10810 2014-07-29 Olivier Hainque <hainque@adacore.com>
10812 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10814 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
10817 * gengtype.c (strtoken): New function.
10818 (create_user_defined_type): Replace strtok with strtoken.
10820 2014-07-29 Nathan Sidwell <nathan@acm.org>
10822 * gcov-io.c (gcov_var): Make hidden.
10823 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10824 (gcov_do_dump): Declare.
10825 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10827 2014-07-29 Martin Jambor <mjambor@suse.cz>
10829 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10830 parameter to gimple.
10831 (sra_modify_assign): Likewise.
10833 2014-07-29 Richard Biener <rguenther@suse.de>
10835 PR middle-end/52478
10836 * expr.c (expand_expr_real_2): Revert last change.
10838 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
10840 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
10841 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
10842 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
10844 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
10845 (contains_type_p): Forward declare.
10846 (polymorphic_call_target_hasher::hash): Hash speculative info.
10847 (polymorphic_call_target_hasher::equal): Compare speculative info.
10848 (get_class_context): Handle speuclation.
10849 (contains_type_p): Update.
10850 (get_polymorphic_call_info_for_decl): Update.
10851 (walk_ssa_copies): Break out from ...
10852 (get_polymorphic_call_info): ... here; set speculative context
10854 * ipa-prop.c (ipa_write_indirect_edge_info,
10855 ipa_read_indirect_edge_info): Stream speculative context.
10856 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
10857 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
10858 SPECULATIVE_MAYBE_DERIVED_TYPE).
10859 (possible_polymorphic_call_targets overriders): Update.
10860 (dump_possible_polymorphic_call_targets overriders): Update.
10861 (dump_possible_polymorphic_call_target_p overriders): Update.
10863 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
10865 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
10866 ipa-devirt path; fix thinko there.
10868 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
10870 * config/i386/i386.c (ix86_return_in_memory): Replace one
10871 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
10873 2014-07-28 Marek Polacek <polacek@redhat.com>
10875 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
10877 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
10879 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
10880 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
10881 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
10882 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10883 (USE_LD_AS_NEEDED): Likewise.
10884 (ASM_APP_ON): Likewise.
10885 (ASM_APP_OFF): Likewise.
10886 (TARGET_POSIX_IO): Likewise.
10887 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
10888 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10889 (USE_LD_AS_NEEDED): Likewise.
10890 (ASM_APP_ON): Likewise.
10891 (ASM_APP_OFF): Likewise.
10892 (TARGET_POSIX_IO): Likewise.
10894 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
10896 PR middle-end/61734
10897 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
10898 operators other than the equality operators.
10900 2014-07-28 Richard Biener <rguenther@suse.de>
10902 PR middle-end/52478
10903 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
10904 sure to register SImode ones, not only >= word_mode ones.
10905 * expr.c (expand_expr_real_2): When expanding -ftrapv
10906 binops do not use OPTAB_LIB_WIDEN.
10908 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
10910 PR middle-end/61919
10911 * tree-outof-ssa.c (insert_partition_copy_on_edge)
10912 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
10913 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
10914 inserting them in the insn stream.
10916 2014-07-28 Marek Polacek <polacek@redhat.com>
10918 PR middle-end/61913
10919 * common.opt (Wodr): Add Var.
10921 2014-07-28 Richard Biener <rguenther@suse.de>
10923 PR tree-optimization/61921
10924 * tree-ssa-structalias.c (create_variable_info_for_1): Check
10925 if there is a varpool node before dereferencing it.
10927 2014-07-28 Roman Gareev <gareevroman@gmail.com>
10929 * graphite-sese-to-poly.c:
10930 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
10931 id of the pbb), which contains pointer to the pbb1.
10933 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
10935 2014-07-28 Roman Gareev <gareevroman@gmail.com>
10937 * graphite-isl-ast-to-gimple.c:
10938 (graphite_create_new_guard): New function.
10939 (translate_isl_ast_node_if): New function.
10940 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
10942 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
10944 2014-07-27 Anthony Green <green@moxielogic.com>
10946 * config.gcc: Add moxie-*-moxiebox* configuration.
10947 * config/moxie/moxiebox.h: New file.
10949 2014-07-26 Andrew Pinski <apinski@cavium.com>
10951 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
10952 from the read only register.
10954 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
10956 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
10957 as the allocation class if it isn't likely to be spilled.
10959 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
10961 * rtl.h (tls_referenced_p): Declare.
10962 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
10963 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
10964 (mips_cannot_force_const_mem): Use tls_referenced_p.
10965 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
10966 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
10967 instead of pa_tls_referenced_p.
10968 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
10969 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
10970 (pa_legitimate_constant_p): Likewise.
10971 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
10972 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
10973 (rs6000_cannot_force_const_mem, rs6000_emit_move)
10974 (rs6000_address_for_altivec): Use tls_referenced_p instead of
10975 rs6000_tls_referenced_p.
10976 (rs6000_tls_symbol_ref_1): Delete.
10978 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
10981 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
10982 Optimize inverse of a VEC_CONCAT.
10984 2014-07-25 Xinliang David Li <davidxl@google.com>
10986 * params.def: New parameter.
10987 * coverage.c (get_coverage_counts): Check new flag.
10988 (coverage_compute_profile_id): Check new flag.
10989 (coverage_begin_function): Check new flag.
10990 (coverage_end_function): Check new flag.
10991 * value-prof.c (coverage_node_map_initialized_p): New function.
10992 (init_node_map): Populate map with all functions.
10993 * doc/invoke.texi: Document new parameter.
10995 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
10996 Richard Biener <rguenther@suse.de>
10998 * lto-streamer-out.c (struct sccs): Turn to ...
10999 (class DFS): ... this one; refactor the DFS walk so it can
11000 be re-done on per-SCC basis.
11001 (DFS::DFS): New constructor.
11002 (DFS::~DFS): New destructor.
11003 (hash_tree): Add new MAP argument holding in-SCC hash values;
11004 remove POINTER_TYPE hashing hack.
11005 (scc_entry_compare): Rename to ...
11006 (DFS::scc_entry_compare): ... this one.
11007 (hash_scc): Rename to ...
11008 (DFS::hash_scc): ... this one; pass output_block instead
11009 of streamer_cache; work harder to get unique and stable SCC
11011 (DFS_write_tree): Rename to ...
11012 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11013 (lto_output_tree): Update.
11015 2014-07-25 Andi Kleen <ak@linux.intel.com>
11017 * lto-streamer-out.c (hash_tree): Convert to inchash.
11019 2014-07-25 Andi Kleen <ak@linux.intel.com>
11021 * tree.c (build_type_attribute_qual_variant): Use inchash.
11022 (type_hash_list): Dito.
11023 (attribute_hash_list): Dito
11024 (iterative_hstate_expr): Dito.
11025 (iterative_hash_expr): Dito.
11026 (build_range_type_1): Dito.
11027 (build_array_type_1): Dito.
11028 (build_function_type): Dito.
11029 (build_method_type_directly): Dito.
11030 (build_offset_type): Dito.
11031 (build_complex_type): Dito.
11032 (make_vector_type): Dito.
11033 * tree.h (iterative_hash_expr): Add compat wrapper.
11034 (iterative_hstate_expr): Add.
11036 2014-07-25 Andi Kleen <ak@linux.intel.com>
11038 * Makefile.in (OBJS): Add inchash.o.
11039 (PLUGIN_HEADERS): Add inchash.h.
11040 * ipa-devirt.c: Include inchash.h.
11041 * lto-streamer-out.c: Dito.
11042 * tree-ssa-dom.c: Dito.
11043 * tree-ssa-pre.c: Dito.
11044 * tree-ssa-sccvn.c: Dito.
11045 * tree-ssa-tail-merge.c: Dito.
11047 * tree.c (iterative_hash_hashval_t): Move to ...
11048 (iterative_hash_host_wide_int): Move to ...
11049 * inchash.c: Here. New file.
11050 * tree.h (iterative_hash_hashval_t): Move to ...
11051 (iterative_hash_host_wide_int): Move to ...
11052 * inchash.h: Here. New file.
11054 2014-07-25 Richard Biener <rguenther@suse.de>
11056 PR middle-end/61762
11057 PR middle-end/61894
11058 * fold-const.c (native_encode_int): Add and handle offset
11059 parameter to do partial encodings of expr.
11060 (native_encode_fixed): Likewise.
11061 (native_encode_real): Likewise.
11062 (native_encode_complex): Likewise.
11063 (native_encode_vector): Likewise.
11064 (native_encode_string): Likewise.
11065 (native_encode_expr): Likewise.
11066 * fold-const.c (native_encode_expr): Add offset parameter
11068 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11069 (fold_ctor_reference): Handle all reads from tcc_constant
11072 2014-07-25 Richard Biener <rguenther@suse.de>
11074 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11075 as possibly unused.
11077 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11079 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11081 2014-07-24 Kyle McMartin <kyle@redhat.com>
11083 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11085 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11087 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11089 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11091 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11092 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11093 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11095 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11097 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11098 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11099 aggregate types. Instead, *all* aggregate types, except for single-
11100 element or homogeneous float/vector aggregates, are quadword-aligned
11101 if required by their type alignment. Issue -Wpsabi note when a type
11102 is now treated differently than before.
11104 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11106 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11107 does not fit fully into floating-point registers, and there is still
11108 space in the register parameter area, use GPRs to pass those parts
11109 of the argument. Issue -Wpsabi note if any parameter is now treated
11110 differently than before.
11111 (rs6000_arg_partial_bytes): Update.
11113 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11115 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11117 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11119 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11120 * toplev.c (initialize_rtl): Don't use it. Move previously
11121 "language-dependent" calls to...
11122 (backend_init): ...here.
11123 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11124 Assert that RTL initialization hasn't happend yet.
11126 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11128 PR rtl-optimization/61629
11129 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11130 they have already been initialized.
11132 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11134 PR middle-end/61268
11135 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11136 DECL_INCOMING_RTL and entry_parm.
11137 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11138 * calls.c (load_register_parameters): Likewise argument values.
11139 (emit_library_call_value_1, store_one_arg): Likewise argument
11141 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11143 * explow.c (validize_mem): Modify the argument in-place.
11145 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11147 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11148 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11150 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11152 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11153 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11155 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11157 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11158 (aarch64_save_callee_saves): New parameter "skip_wb".
11159 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11161 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11163 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11165 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11167 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11169 * graphite-isl-ast-to-gimple.c:
11170 (graphite_create_new_loop): Add calling of isl_id_free to properly
11171 decrement reference counts.
11173 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11175 2014-07-24 Martin Liska <mliska@suse.cz>
11176 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11178 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11179 (rs6000_code_end): Likewise.
11181 2014-07-24 Martin Liska <mliska@suse.cz>
11183 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11184 symtab_node funtion used.
11185 (rs6000_xcoff_declare_object_name): Likewise.
11187 2014-07-24 Martin Liska <mliska@suse.cz>
11189 * cgraphunit.c (compile): Correct function used.
11191 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11193 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11196 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11199 * varasm.c (bss_initializer_p): Handle offlined ctors.
11200 (align_variable, get_variable_align): Likewise.
11201 (make_decl_one_only): Likewise.
11202 (default_binds_local_p_1): Likewise.
11203 (decl_binds_to_current_def_p): Likewise.
11204 (get_variable_section): Get constructor if it is offlined.
11205 (assemble_variable_contents): Sanity check that the caller
11206 streamed in the ctor in LTO.
11208 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11210 * graphite-isl-ast-to-gimple.c:
11211 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
11212 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
11213 isl_ast_op_pdiv_r to the different case.
11215 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
11217 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11219 PR middle-end/61876
11220 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
11221 when flag_errno_math is on.
11223 2014-07-24 Martin Liska <mliska@suse.cz>
11225 * cgraph.h (varpool_node):
11226 (availability get_availability (void)):
11227 created from cgraph_variable_initializer_availability
11228 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
11229 created from: cgraph_variable_initializer_availability
11230 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
11231 (void finalize_named_section_flags (void)):
11232 created from varpool_finalize_named_section_flags
11233 (bool assemble_decl (void)): created from varpool_assemble_decl
11234 (void analyze (void)): created from varpool_analyze_node
11235 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
11236 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
11237 (void remove_initializer (void)): created from varpool_remove_initializer
11238 (tree get_constructor (void)): created from varpool_get_constructor
11239 (bool externally_visible_p (void)): created from varpool_externally_visible_p
11240 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
11241 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
11242 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
11243 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
11244 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
11245 (static bool output_variables (void)): created from varpool_output_variables
11246 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
11247 created from varpool_extra_name_alias
11248 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
11249 (static void dump_varpool (FILE *f)): created from dump_varpool
11250 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
11251 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
11252 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
11253 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
11254 (void assemble_aliases (void)): created from assemble_aliases
11256 2014-07-24 Martin Liska <mliska@suse.cz>
11258 * cgraph.h (symtab_node):
11259 (void register_symbol (void)): created from symtab_register_node
11260 (void remove (void)): created from symtab_remove_node
11261 (void dump (FILE *f)): created from dump_symtab_node
11262 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
11263 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
11264 (struct ipa_ref *add_reference (symtab_node *referred_node,
11265 enum ipa_ref_use use_type)): created from add_reference
11266 (struct ipa_ref *add_reference (symtab_node *referred_node,
11267 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
11268 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
11269 gimple stmt)): created from maybe_add_reference
11270 (bool semantically_equivalent_p (symtab_node *target)): created from
11271 symtab_semantically_equivalent_p
11272 (void remove_from_same_comdat_group (void)): created from
11273 remove_from_same_comdat_group
11274 (void add_to_same_comdat_group (symtab_node *old_node)): created from
11275 symtab_add_to_same_comdat_group
11276 (void dissolve_same_comdat_group_list (void)): created from
11277 symtab_dissolve_same_comdat_group_list
11278 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
11279 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
11280 created from symtab_alias_ultimate_target
11281 (inline symtab_node *next_defined_symbol (void)): created from
11282 symtab_next_defined_symbol
11283 (bool resolve_alias (symtab_node *target)): created from
11284 symtab_resolve_alias
11285 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
11286 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
11287 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
11288 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
11289 (void set_section (const char *section)): created from set_section_1
11290 (enum availability get_availability (void)): created from symtab_node_availability
11291 (void make_decl_local (void)): created from symtab_make_decl_local
11292 (bool real_symbol_p (void)): created from symtab_read_node
11293 (can_be_discarded_p (void)): created from symtab_can_be_discarded
11294 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
11295 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
11296 symtab_in_same_comdat_p;
11297 (bool address_taken_from_non_vtable_p (void)): created from
11298 address_taken_from_non_vtable_p
11299 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
11300 (static void dump_table (FILE *)): created from dump_symtab
11301 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
11302 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
11303 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
11304 symtab_used_from_object_file_p
11305 (void dump_base (FILE *)): created from dump_symtab_base
11306 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
11307 (void unregister (void)): created from symtab_unregister_node
11308 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
11309 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
11310 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
11311 symtab_nonoverwritable_alias_1
11312 * cgraph.h (cgraph_node):
11313 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
11314 created from cgraph_remove_node_and_inline_clones
11315 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
11316 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
11317 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
11318 (cgraph_node *function_symbol (enum availability *avail = NULL)):
11319 created from cgraph_function_node
11320 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
11321 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
11322 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
11323 created from cgraph_create_clone
11324 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
11325 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
11326 created from cgraph_create_virtual_clone
11327 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
11328 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
11329 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
11330 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
11331 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
11332 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
11333 created from cgraph_function_version_info
11334 (struct cgraph_function_version_info *insert_new_function_version (void)):
11335 created from insert_new_cgraph_node_version
11336 (struct cgraph_function_version_info *function_version (void)): created from
11337 get_cgraph_node_version
11338 (void analyze (void)): created from analyze_function
11339 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
11340 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
11341 tree real_alias) cgraph_add_thunk
11342 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
11343 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
11344 created from cgraph_function_or_thunk_node
11345 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
11346 created from expand_thunk
11347 (void reset (void)): created from cgraph_reset_node
11348 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
11349 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
11350 (void remove (void)): created from cgraph_remove_node
11351 (void dump (FILE *f)): created from dump_cgraph_node
11352 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
11353 (bool get_body (void)): created from cgraph_get_body
11354 (void release_body (void)): created from cgraph_release_function_body
11355 (void unnest (void)): created from cgraph_unnest_node
11356 (void make_local (void)): created from cgraph_make_node_local
11357 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
11358 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
11359 gcov_type count, int freq)): created from cgraph_create_edge
11360 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
11361 gcov_type count, int freq)): created from cgraph_create_indirect_edge
11362 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
11363 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
11364 created from cgraph_create_edge_including_clones
11365 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
11366 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
11367 (void remove_callers (void)): created from cgraph_node_remove_callers
11368 (void remove_callees (void)): created from cgraph_node_remove_callees
11369 (enum availability get_availability (void)): created from cgraph_function_body_availability
11370 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
11371 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
11372 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
11373 (void call_duplication_hooks (cgraph_node *node2)): created from
11374 cgraph_call_node_duplication_hooks
11375 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
11376 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
11377 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
11378 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
11379 (void call_function_insertion_hooks (void)):
11380 created from cgraph_call_function_insertion_hooks
11381 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
11382 (bool local_p (void)): created from cgraph_local_node
11383 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
11384 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
11385 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
11386 (inline bool only_called_directly_or_aliased_p (void)):
11387 created from cgraph_only_called_directly_or_aliased_p
11388 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
11389 created from cgraph_will_be_removed_from_program_if_no_direct_calls
11390 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
11391 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
11392 (bool can_remove_if_no_direct_calls_p (void)):
11393 created from cgraph_can_remove_if_no_direct_calls_p
11394 (inline bool has_gimple_body_p (void)):
11395 created from cgraph_function_with_gimple_body_p
11396 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
11397 (static void dump_cgraph (FILE *f)): created from dump_cgraph
11398 (static inline void debug_cgraph (void)): created from debug_cgraph
11399 (static void record_function_versions (tree decl1, tree decl2)):
11400 created from record_function_versions
11401 (static void delete_function_version (tree decl)):
11402 created from delete_function_version
11403 (static void add_new_function (tree fndecl, bool lowered)):
11404 created from cgraph_add_new_function
11405 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
11406 (static cgraph_node * create (tree decl)): created from cgraph_create_node
11407 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
11408 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
11409 (static cgraph_node *get_for_asmname (tree asmname)):
11410 created from cgraph_node_for_asm
11411 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
11412 created from cgraph_same_body_alias
11413 (static bool used_from_object_file_p_worker (cgraph_node *node,
11414 void *): new function
11415 (static bool non_local_p (cgraph_node *node, void *)):
11416 created from cgraph_non_local_node_p_1
11417 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
11418 created from verify_cgraph
11419 (static bool make_local (cgraph_node *node, void *)):
11420 created from cgraph_make_node_local
11421 (static cgraph_node *create_alias (tree alias, tree target)):
11422 created from cgraph_create_function_alias
11423 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
11424 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
11425 created from cgraph_create_edge_1
11426 * cgraph.h (varpool_node):
11427 (void remove (void)): created from varpool_remove_node
11428 (void dump (FILE *f)): created from dump_varpool_node
11430 2014-07-24 Richard Biener <rguenther@suse.de>
11433 * tree-ssa-structalias.c (create_variable_info_for_1):
11434 Use varpool_get_constructor.
11435 (create_variable_info_for): Likewise.
11437 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11439 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
11440 subtract outgoing area size when restoring stack_pointer_rtx.
11442 2014-07-24 Nick Clifton <nickc@redhat.com>
11444 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
11445 that operations are taking place in parallel.
11446 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
11448 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
11450 * omp-low.c (extract_omp_for_data): Add missing break statement.
11452 2014-07-24 Richard Biener <rguenther@suse.de>
11454 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
11455 * tree-inline.c (estimate_move_cost): Add speed_p parameter
11456 and adjust MOVE_RATIO query accordingly.
11457 (estimate_num_insns): Adjust callers.
11458 * ipa-prop.c (ipa_populate_param_decls): Likewise.
11459 * ipa-cp.c (gather_context_independent_values,
11460 estimate_local_effects): Likewise.
11461 * ipa-split.c (consider_split): Likewise.
11463 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
11465 * config/i386/driver-i386.c: Remove names of unused arguments and
11466 unnecessary unused attributes.
11467 * config/i386/host-mingw32.c: Likewise.
11468 * config/i386/i386.c: Likewise.
11469 * config/i386/winnt-stubs.c: Likewise.
11470 * config/i386/winnt.c: Likewise.
11472 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11474 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
11475 (aarch64_gen_loadwb_pair): New helper function.
11476 (aarch64_expand_epilogue): Simplify code using new helper functions.
11477 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
11479 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11481 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
11482 (aarch64_gen_storewb_pair): New helper function.
11483 (aarch64_expand_prologue): Simplify code using new helper functions.
11484 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11486 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11488 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11489 Rename to aarch64_save_callee_saves, remove restore code.
11490 (aarch64_restore_callee_saves): New function.
11492 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11494 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11495 (aarch64_save_callee_saves): New function to handle reg save
11496 for both core and vectore regs.
11498 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11500 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11501 (aarch64_gen_store_pair): New helper function.
11502 (aarch64_save_or_restore_callee_save_registers)
11503 (aarch64_save_or_restore_fprs): Use new helper functions.
11505 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11507 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11508 (aarch64_save_or_restore_callee_save_registers)
11509 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11511 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11513 * config/aarch64/aarch64.c
11514 (aarch64_save_or_restore_callee_save_registers)
11515 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11517 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11519 * config/aarch64/aarch64.c
11520 (aarch64_save_or_restore_callee_save_registers)
11521 (aarch64_save_or_restore_fprs): Remove 'increment'.
11523 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11525 * config/aarch64/aarch64.c
11526 (aarch64_save_or_restore_callee_save_registers)
11527 (aarch64_save_or_restore_fprs): Use register offset in
11528 cfun->machine->frame.reg_offset.
11530 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11532 * config/aarch64/aarch64.c
11533 (aarch64_save_or_restore_callee_save_registers)
11534 (aarch64_save_or_restore_fprs): Remove base_rtx.
11536 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11538 * config/aarch64/aarch64.c
11539 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11540 to 'start_offset'. Remove local variable 'start_offset'.
11542 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11544 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11545 type to HOST_WIDE_INT.
11547 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11549 * config/aarch64/aarch64.c (aarch64_expand_prologue)
11550 (aarch64_save_or_restore_fprs)
11551 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11553 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11555 * config/arm/t-rtems-eabi: Add
11556 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11557 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11558 mbig-endian/mthumb/march=armv7-r, and
11559 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11562 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11563 Chris Johns <chrisj@rtems.org>
11564 Joel Sherrill <joel.sherrill@oarcorp.com>
11566 * config.gcc: Add nios2-*-rtems*.
11567 * config/nios2/rtems.h: New file.
11568 * gcc/config/nios2/t-rtems: New file.
11570 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11573 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11574 constant numbers, not general constants.
11575 (rs6000_expand_vector_init): Ditto.
11577 2014-07-23 Nathan Sidwell <nathan@acm.org>
11579 * gcov-tool.c (gcov_list): Declare here.
11580 (set_gcov_list): Remove.
11581 (gcov_output_files): Set gcov_list directly.
11583 2014-07-23 Host Schirmeier <horst@schirmeier.com>
11585 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11587 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11589 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11590 callee-saved registers are available for padding purpose
11591 and r3 is not mandatory, then prefer use those callee-saved
11594 2014-07-23 Richard Biener <rguenther@suse.de>
11596 * params.def (PARAM_MAX_COMBINE_INSNS): New.
11597 * combine.c: Include statistics.h and params.h.
11598 (combine_instructions): Guard three and four insn combines
11599 with max-combine-insns value. Record statistics for combines
11601 * doc/invoke.texi (max-combine-insns): Document new param.
11603 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11605 * graphite-isl-ast-to-gimple.c:
11606 (translate_isl_ast_node_block): New function.
11607 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11609 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11610 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11612 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11614 * graphite-isl-ast-to-gimple.c:
11615 (get_max_schedule_dimensions): New function.
11616 (extend_schedule): Likewise.
11617 (generate_isl_schedule): Add calling of extend_schedule and
11618 get_max_schedule_dimensions.
11620 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11622 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11623 (case UNSPEC): Handle UNSPEC_RBIT.
11625 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11627 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11628 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11630 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11632 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11634 2014-07-22 Roman Gareev <gareevroman@gmail.com>
11636 * graphite-isl-ast-to-gimple.c:
11637 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11638 (ivs_params_clear):
11639 (build_iv_mapping): New function.
11640 (translate_isl_ast_node_user): Likewise.
11641 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11643 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11644 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11645 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11647 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11650 * config/arm/arm.md (setmem): New pattern.
11651 * config/arm/arm-protos.h (struct tune_params): New fields.
11652 (arm_gen_setmem): New prototype.
11653 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11654 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11655 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11656 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11657 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11658 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11659 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11660 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11661 (arm_const_inline_cost): New function.
11662 (arm_block_set_max_insns): New function.
11663 (arm_block_set_non_vect_profit_p): New function.
11664 (arm_block_set_vect_profit_p): New function.
11665 (arm_block_set_unaligned_vect): New function.
11666 (arm_block_set_aligned_vect): New function.
11667 (arm_block_set_unaligned_non_vect): New function.
11668 (arm_block_set_aligned_non_vect): New function.
11669 (arm_block_set_vect, arm_gen_setmem): New functions.
11671 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11673 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11675 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
11678 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11679 out of #ifdef __OPTIMIZE__.
11681 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11683 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11684 different trapping status if -fnon-call-exceptions is enabled.
11686 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11688 * expr.c (store_field): Handle VOIDmode for calls that return values
11689 in multiple locations.
11691 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11693 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
11694 (altivec_vsldoi_<mode>): Likewise.
11696 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11698 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11699 to the number of characters in the line.
11701 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11703 * graphite-isl-ast-to-gimple.c: Add using of
11704 build_nonstandard_integer_type instead of int128_integer_type_node.
11706 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
11708 * toplev.c (output_stack_usage): Adjust the location of the warning.
11710 2014-07-19 Daniel Cederman <cederman@gaisler.com>
11712 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11713 (*membar_storeload): Disable for LEON3.
11715 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11717 PR rtl-optimization/61461
11718 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11720 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
11723 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11724 Fix instruction constraint.
11725 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11727 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
11729 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11731 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
11733 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11734 GNU coding standards.
11735 (nds32_register_move_cost): Likewise.
11736 (nds32_memory_move_cost): Likewise.
11737 (nds32_address_cost): Likewise.
11739 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11741 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11743 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
11745 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11746 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11747 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11748 (HAVE_sync_compare_and_swapqi): Define.
11749 (HAVE_sync_compare_and_swaphi): Likewise.
11750 (HAVE_sync_compare_and_swapsi): Likewise.
11752 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
11754 * config/mips/p5600.md: Add missing cpu tests.
11756 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11758 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11759 (vmla_f64): Likewise.
11760 (vfms_f64): Likewise.
11761 (vmls_f64): Likewise.
11763 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11765 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11766 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11768 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11770 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11771 (vmlal_high_lane_s32): Likewise.
11772 (vmlal_high_lane_u16): Likewise.
11773 (vmlal_high_lane_u32): Likewise.
11774 (vmlsl_high_lane_s16): Likewise.
11775 (vmlsl_high_lane_s32): Likewise.
11776 (vmlsl_high_lane_u16): Likewise.
11777 (vmlsl_high_lane_u32): Likewise.
11779 2014-07-17 Terry Guo <terry.guo@arm.com>
11781 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11782 (alus_reg): Renamed to alus_sreg.
11783 * config/arm/arm-fixed.md: Change type of non-dsp instructions
11784 from alu_reg to alu_sreg. Change type of dsp instructions from
11785 alu_reg to alu_dsp_reg.
11786 * config/arm/thumb1.md: Likewise.
11787 * config/arm/thumb2.md: Likewise.
11788 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11789 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11790 with alu_sreg and alus_sreg.
11791 * config/arm/arm1026ejs.md (alu_op): Likewise.
11792 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11793 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11794 * config/arm/fa526.md (526_alu_op): Likewise.
11795 * config/arm/fa606te.md (606te_alu_op): Likewise.
11796 * config/arm/fa626te.md (626te_alu_op): Likewise.
11797 * config/arm/fa726te.md (726te_alu_op): Likewise.
11798 * config/arm/fmp626.md (mp626_alu_op): Likewise.
11799 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11800 alu_sreg, alu_dsp_reg and alus_sreg.
11801 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11802 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11803 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11804 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11805 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11806 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11807 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11808 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11809 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11810 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11811 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11812 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11813 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11814 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11815 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11816 alus_reg to alus_sreg.
11818 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
11820 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11823 2014-07-17 Richard Biener <rguenther@suse.de>
11825 PR rtl-optimization/61801
11826 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11827 don't set reg_pending_barrier if it appears in a debug-insn.
11829 2014-07-16 DJ Delorie <dj@redhat.com>
11831 * config/rx/rx.c (rx_option_override): Fix alignment values.
11832 (rx_align_for_label): Likewise.
11834 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
11837 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11838 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11839 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
11841 (cris_print_index, cris_print_operand, cris_constant_index_p)
11842 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
11843 (cris_address_cost): Ditto last CONSTANT_P.
11844 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
11845 callers changed. Yield cris_offsettable_symbol for non-PIC
11846 constant symbolic expressions including labels. Yield cris_unspec
11848 (cris_expand_pic_call_address): New parameter MARKERP. Set its
11849 target to pic_offset_table_rtx for calls that will likely go
11850 through PLT, const0_rtx when they can't. All callers changed.
11851 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
11852 symbolic expressions to be PICified. Remove second, redundant,
11853 assert on can_create_pseudo_p returning non-zero. Use
11854 replace_equiv_address_nv, not replace_equiv_address, for final
11856 * config/cris/cris.md ("movsi"): Move variable t to pattern
11857 toplevel. Adjust assert for new cris_symbol_type member. Use
11858 CONSTANT_P instead of CONSTANT_ADDRESS_P.
11859 ("*movsi_internal") <case 9>: Make check for valid unspec operands
11861 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
11862 ("call", "call_value"): Use second incoming operand as a marker
11863 for pic-offset-table-register being used.
11864 ("*expanded_call_non_v32", "*expanded_call_v32")
11865 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
11866 second incoming operand to CALL, match cris_call_type_marker.
11867 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
11868 ("*expanded_call_side"): Ditto. Fix typo in comment.
11869 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
11871 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
11872 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
11873 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
11874 users changed. Add members cris_offsettable_symbol and cris_unspec.
11875 (cris_symbol_type): Rename from cris_pic_symbol_type.
11876 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
11878 * config/cris/cris-protos.h (cris_symbol_type_of,
11879 cris_expand_pic_call_address): Adjust prototypes.
11880 (cris_legitimate_constant_p): New prototype.
11882 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
11883 an existing tmake_file. Don't add t-slibgcc and t-linux.
11885 2014-07-17 Jason Merrill <jason@redhat.com>
11888 * symtab.c (symtab_remove_from_same_comdat_group): Also
11889 set_comdat_group to NULL_TREE.
11890 (verify_symtab): Fix diagnostic.
11892 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
11895 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
11897 2014-07-16 Dodji Seketeli <dodji@redhat.com>
11899 Support location tracking for built-in macro tokens
11900 * input.h (is_location_from_builtin_token): New function declaration.
11901 * input.c (is_location_from_builtin_token): New function definition.
11902 * toplev.c (general_init): Tell libcpp what the pre-defined
11903 spelling location for built-in tokens is.
11905 2014-07-16 Jakub Jelinek <jakub@redhat.com>
11907 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
11908 on the FUNCTION_DECL.
11910 2014-07-16 Richard Biener <rguenther@suse.de>
11913 * doc/extend.texi (always_inline): Clarify.
11915 2014-07-15 Eric Christopher <echristo@gmail.com>
11917 * doc/invoke.texi (Link Options): Document -z option.
11919 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
11921 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
11922 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11924 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
11926 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
11928 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
11930 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
11931 varpool_assemble_decl.
11932 * varpool.c (varpool_assemble_decl): Assert that node->definition is
11935 2014-07-15 Michael Matz <matz@suse.de>
11937 PR rtl-optimization/61772
11938 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
11940 2014-07-15 Richard Biener <rguenther@suse.de>
11942 * opts.c (default_options_table): Disable bit-ccp at -Og.
11944 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
11946 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
11948 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
11950 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
11951 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
11952 call langhook for unknown declaration.
11953 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
11954 * tree.h (DECL_ARGUMENTS): Update.
11955 * print-tree.c (print_node): Update.
11956 * tree-core.h (tree_decl_non_common): Remove arguments.
11957 (tree_function_decl): Add arguments.
11959 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
11961 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
11963 2014-07-14 Richard Biener <rguenther@suse.de>
11965 PR tree-optimization/61779
11966 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
11967 simplifying a condition.
11969 2014-07-14 Richard Biener <rguenther@suse.de>
11971 * builtins.c (c_strlen): Make only_value == 2 really only
11972 affect warning generation.
11974 2014-07-14 Richard Biener <rguenther@suse.de>
11976 PR tree-optimization/61757
11977 PR tree-optimization/61783
11978 PR tree-optimization/61787
11979 * tree-ssa-dom.c (record_equality): Revert canonicalization
11980 change and add comment.
11981 (propagate_rhs_into_lhs): Revert previous fix, removing
11982 loop depth restriction again.
11984 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11986 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
11987 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11988 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11989 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
11990 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11991 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11992 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11994 2014-07-14 Richard Biener <rguenther@suse.de>
11996 * cgraph.h (decl_in_symtab_p): Make inline.
11998 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12000 PR middle-end/61294
12001 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12004 * config/i386/i386.c (classify_argument): Don't merge classes above
12007 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12009 * cgraph.h (symtab_node): Add nonzero_address.
12010 (decl_in_symtab_p): Break out from ...
12011 (symtab_get_node): ... here.
12012 * fold-const.c: Include cgraph.h
12013 (tree_single_nonzero_warnv_p): Use symtab to determine
12014 if symbol is non-zero.
12015 * symtab.c (symtab_node::nonzero_address): New method.
12017 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12019 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12020 forgotten in previous commit.
12022 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12024 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12026 * ipa-devirt.c: Include stor-layout.h and intl.h
12027 (odr_subtypes_equivalent_p): New function.
12028 (warn_odr): New function.
12029 (warn_type_mismatch): New function.
12030 (odr_types_equivalent_p): New function.
12031 (add_type_duplicate): Use it.
12032 * common.opt (Wodr): New flag.
12033 * doc/invoke.texi (Wodr): Document new warning.
12035 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12037 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12038 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12039 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12040 (varpool_get_constructor): Push CTORS_IN timevar.
12041 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12043 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12045 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12046 Remove VOID_FTYPE_PUSHORT.
12047 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12048 Change code to USHORT_FTYPE_VOID.
12049 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12050 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12051 (ix86_atomic_assign_expand_fenv): Update for
12052 __builtin_ia32_fnstsw changes.
12053 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12054 (fnstsw): Change operand 0 to nonimmediate operand.
12056 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12058 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12059 (varpool_get_constructor): New function.
12060 (varpool_ctor_useable_for_folding_p): Break out from ...
12061 (ctor_for_folding): ... here; use varpool_get_constructor.
12062 (varpool_assemble_decl): Likewise.
12063 * lto-streamer.h (struct output_block): Turn cgraph_node
12065 (lto_input_variable_constructor): Declare.
12066 * ipa-visibility.c (function_and_variable_visibility): Use
12067 varpool_get_constructor.
12068 * cgraph.h (varpool_get_constructor): Declare.
12069 (varpool_ctor_useable_for_folding_p): New function.
12070 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12071 parameter; return error_mark_node for non-trivial constructors.
12072 (lto_write_tree_1, DFS_write_tree): Update use of
12073 get_symbol_initial_value.
12074 (output_function): Update initialization of symbol.
12075 (output_constructor): New function.
12076 (copy_function): Rename to ..
12077 (copy_function_or_variable): ... this one; handle vars too.
12078 (lto_output): Output variable sections.
12079 * lto-streamer-in.c (input_constructor): New function.
12080 (lto_read_body): Rename from ...
12081 (lto_read_body_or_constructor): ... this one; handle vars too.
12082 (lto_input_variable_constructor): New function.
12083 * ipa-prop.c (ipa_prop_write_jump_functions,
12084 ipa_prop_write_all_agg_replacement): Update.
12085 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12086 (output_cgraph_opt_summary): Set symbol to NULL.
12088 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12090 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12091 non-polymorphic types.
12092 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12093 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12094 of types is not polymorphic.
12096 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12098 * lra-constraints.c (remove_inheritance_pseudos): Process
12099 destination pseudo too.
12101 2014-07-11 Rong Xu <xur@google.com>
12103 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12106 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12108 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12109 * config/avr/avr-devices.c (AVR_MCU): Same.
12110 (avr_mcu_types): add text start value to end of device list.
12111 * config/avr/avr-mcus.def: Add text section start for all devices.
12112 (ata5782): Add new avr5 device.
12114 * config/avr/avr-tables.opt: Regenerate.
12115 * config/avr/avr.h: Add declaration for text section start handler.
12116 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12118 (LINK_SPEC): Include text section start handler to linker spec.
12119 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12120 pass -Ttext option to linker if the text section start for the device
12122 * config/avr/t-multilib: Regenerate.
12123 * doc/avr-mmcu.texi: Regenerate.
12125 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12127 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12128 * config/rs6000/aix52.h (LINK_SPEC): Same.
12129 * config/rs6000/aix53.h (LINK_SPEC): Same.
12130 * config/rs6000/aix61.h (LINK_SPEC): Same.
12131 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12133 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12135 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12136 (graphite_verify): New function.
12137 (ivs_params_clear): New function.
12138 (gcc_expression_from_isl_ast_expr_id): New function.
12139 (gcc_expression_from_isl_expr_int): New function.
12140 (binary_op_to_tree): New function.
12141 (ternary_op_to_tree): New function.
12142 (unary_op_to_tree): New function.
12143 (nary_op_to_tree): New function.
12144 (gcc_expression_from_isl_expr_op): New function.
12145 (gcc_expression_from_isl_expression): New function.
12146 (graphite_create_new_loop): New function.
12147 (translate_isl_ast_for_loop): New function.
12148 (get_upper_bound): New function.
12149 (graphite_create_new_loop_guard): New function.
12150 (translate_isl_ast_node_for): New function.
12151 (translate_isl_ast): New function.
12152 (add_parameters_to_ivs_params): New function.
12153 (scop_to_isl_ast): New parameter ip.
12154 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12156 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12158 * config/xtensa/predicates.md (call expander): Update for
12159 DECL_SECTION_NAME being string.
12161 2014-07-11 Richard Biener <rguenther@suse.de>
12163 PR middle-end/61473
12164 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12165 can be implemented with a single load followed by a single store.
12166 (c_strlen): Only warn when only_value is not 2.
12168 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12170 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12172 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12175 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12176 (*movhi_bytes): Likewise.
12177 (*arm_movqi_insn): Likewise.
12179 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12182 * config/alpha/alpha.c: Include tree-pass.h, context.h
12183 and pass_manager.h.
12184 (pass_data_handle_trap_shadows): New pass.
12185 (pass_handle_trap_shadows::gate): New pass gate function.
12186 (make_pass_handle_trap_shadows): New function.
12187 (rest_of_handle_trap_shadows): Ditto.
12189 (alpha_align_insns_1): Rename from alpha_align_insns.
12190 (pass_data_align_insns): New pass.
12191 (pass_align_insns::gate): New pass gate function.
12192 (make_pass_aling_insns): New function.
12193 (rest_of_align_insns): Ditto.
12194 (alpha_align_insns): Ditto.
12196 (alpha_option_override): Declare handle_trap_shadows info
12197 and align_insns_info. Register handle_trap_shadows and align_insns
12199 (alpha_reorg): Do not call alpha_trap_shadows and
12200 alpha_align_insn from here.
12202 (alpha_pad_function_end): Do not skip BARRIERs.
12204 2014-07-10 Rong Xu <xur@google.com>
12206 Add gcov-tool: an offline gcda profile processing tool support.
12207 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
12208 (gcov_is_error): Ditto.
12209 (gcov_read_string): Ditto.
12210 (gcov_read_sync): Ditto.
12211 * gcov-io.h: Move counter defines to gcov-counter.def.
12212 * gcov-dump.c (tag_counters): Use gcov-counter.def.
12213 * coverage.c: Ditto.
12214 * gcov-tool.c: Offline gcda profile processing tool.
12215 (unlink_gcda_file): Remove one gcda file.
12216 (unlink_profile_dir): Remove gcda files from the profile path.
12217 (gcov_output_files): Output gcda files to an output dir.
12218 (profile_merge): Merge two profiles in directory.
12219 (print_merge_usage_message): Print merge usage.
12220 (merge_usage): Print merge usage and exit.
12221 (do_merge): Driver for profile merge sub-command.
12222 (profile_rewrite): Rewrite profile.
12223 (print_rewrite_usage_message): Print rewrite usage.
12224 (rewrite_usage): Print rewrite usage and exit.
12225 (do_rewrite): Driver for profile rewrite sub-command.
12226 (print_usage): Print gcov-info usage and exit.
12227 (print_version): Print gcov-info version.
12228 (process_args): Process arguments.
12229 (main): Main routine for gcov-tool.
12230 * Makefile.in: Build and install gcov-tool.
12231 * gcov-counter.def: New file split from gcov-io.h.
12232 * doc/gcc.texi: Include gcov-tool.texi.
12233 * doc/gcov-tool.texi: Document for gcov-tool.
12235 2014-07-10 Richard Biener <rguenther@suse.de>
12237 PR tree-optimization/61757
12238 * tree-ssa-dom.c (loop_depth_of_name): Restore.
12239 (propagate_rhs_into_lhs): Revert part of last change.
12241 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
12243 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
12246 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
12248 PR middle-end/53590
12249 * function.c (allocate_struct_function): Revert r188667 change.
12251 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
12253 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
12255 * doc/install.texi: Remove links to defunct package providers for
12258 2014-07-09 Tom de Vries <tom@codesourcery.com>
12260 * final.c (get_call_fndecl): Declare.
12261 (self_recursive_call_p): New function.
12262 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
12264 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12266 * ipa-devirt.c (record_node): Walk through aliases.
12268 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12270 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
12272 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12275 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12277 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12279 * ipa-visibility.c (function_and_variable_visibility): Remove
12280 temporary hack disabling local aliases on AIX.
12282 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12284 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
12285 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
12287 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12289 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
12290 * rs6000/rs6000.c: Inline output of .set instruction.
12291 (declare_alias_data): New struct.
12292 (rs6000_declare_alias): New function.
12293 (rs6000_xcoff_declare_function_name): Use it.
12294 (rs6000_xcoff_declare_object_name): New function.
12295 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
12296 (ASM_OUTPUT_DEF): Turn to empty definition.
12298 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12301 * hash-table.h: use hash_table::value_type instead of
12302 Descriptor::value_type in the return types of several methods.
12304 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12306 * tree-pass.h (pass_data): Remove has_execute member.
12307 * passes.c (execute_one_pass): Don't check pass->has_execute.
12308 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12309 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12310 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12311 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12312 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12313 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
12314 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
12315 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
12316 gimple-low.c, gimple-ssa-isolate-paths.c,
12317 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
12318 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
12319 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
12320 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
12321 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
12322 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
12323 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
12324 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
12325 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
12326 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
12327 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
12328 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12329 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12330 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12331 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12332 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12333 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12334 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12335 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12336 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12337 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
12338 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12339 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
12340 web.c: Remove initializer for pass_data::has_execute.
12342 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12344 * graphite-htab.h: Use hash_map instead of hash_table.
12345 * graphite-clast-to-gimple.c: Adjust.
12346 * passes.c: Use hash_map instead of hash_table.
12347 * sese.c: Likewise.
12348 * sese.h: Remove now unused code.
12350 2014-07-08 Sriraman Tallam <tmsriram@google.com>
12353 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
12356 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12358 PR rtl-optimization/61673
12359 * combine.c (simplify_comparison): Test just mode's sign bit
12360 in tmode rather than the sign bit and any bits above it.
12362 2014-07-08 Roman Gareev <gareevroman@gmail.com>
12364 * graphite-isl-ast-to-gimple.c (generate_isl_context):
12365 Add __isl_give to the declaration.
12366 (generate_isl_schedule): Likewise.
12367 (scop_to_isl_ast): Likewise.
12369 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12371 * config/arm/arm.c (cortexa5_extra_costs): New table.
12372 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
12374 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12376 PR tree-optimization/61725
12377 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
12378 range, use range_includes_zerop_p instead of integer_zerop on
12379 vr0->min, only use log2 of max if min is not negative.
12381 2014-07-08 Richard Biener <rguenther@suse.de>
12383 * tree-ssa-dom.h (loop_depth_of_name): Remove.
12384 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
12385 restriction on loop depth difference.
12386 (record_equality): Likewise.
12387 (propagate_rhs_into_lhs): Likewise. Simplify condition.
12388 (loop_depth_of_name): Remove.
12389 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
12390 restriction on loop depth difference.
12391 (init_copy_prop): Likewise.
12393 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12395 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
12397 (walk_aliased_vdefs): Likewise.
12398 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
12399 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
12400 (detect_type_change_from_memory_writes): Check if entry was reached.
12402 2014-07-08 Richard Biener <rguenther@suse.de>
12404 PR tree-optimization/61681
12405 * tree-ssa-structalias.c (find_what_var_points_to): Expand
12406 NONLOCAL inside ESCAPED.
12408 2014-07-08 Richard Biener <rguenther@suse.de>
12410 PR tree-optimization/61680
12411 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12412 Handle properly all read-write dependences with group accesses.
12414 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12416 PR tree-optimization/61576
12417 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
12418 block containing reduction statement is predecessor of phi basi block.
12420 2014-07-08 Marek Polacek <polacek@redhat.com>
12423 * fold-const.c (round_up_loc): Change the parameter type.
12425 * fold-const.h (round_up_loc): Adjust declaration.
12426 * stor-layout.c (finalize_record_size): Check for too large types.
12428 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
12430 * symtab.c: Include calls.h.
12431 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
12433 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
12435 * config/rs6000/rs6000.c (output_vec_const_move): Handle
12436 little-endian code generation.
12437 * config/rs6000/spe.md (spe_evmergehi): Rename to...
12438 (vec_perm00_v2si): ... this. Handle little-endian code generation.
12439 (spe_evmergehilo): Rename to...
12440 (vec_perm01_v2si): ... this. Handle little-endian code generation.
12441 (spe_evmergelo): Rename to...
12442 (vec_perm11_v2si): ... this. Handle little-endian code generation.
12443 (spe_evmergelohi): Rename to...
12444 (vec_perm10_v2si): ... this. Handle little-endian code generation.
12445 (spe_evmergehi, spe_evmergehilo): New expanders.
12446 (spe_evmergelo, spe_evmergelohi): Likewise.
12447 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
12448 (*frob_tf_ti): Likewise.
12449 (*frob_<mode>_di_2): Likewise.
12450 (*frob_tf_di_8_2): Likewise.
12451 (*frob_di_<mode>): Likewise.
12452 (*frob_ti_tf): Likewise.
12453 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
12454 (*frob_ti_<mode>_8_2): Likewise.
12455 (*frob_ti_tf_2): Likewise.
12456 (mov_si<mode>_e500_subreg0): Rename to...
12457 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
12459 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
12460 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
12461 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
12462 the big endianness only.
12463 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
12464 (*mov_si<mode>_e500_subreg0_2): Rename to...
12465 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
12466 big big endianness only.
12467 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
12468 (*mov_si<mode>_e500_subreg4): Rename to...
12469 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
12471 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
12472 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
12473 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
12474 the big endianness only.
12475 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
12477 (*mov_si<mode>_e500_subreg4_2): Rename to...
12478 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
12480 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
12481 (*mov_sitf_e500_subreg8): Rename to...
12482 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
12484 (*mov_sitf_e500_subreg8_le): New instruction pattern.
12485 (*mov_sitf_e500_subreg8_2): Rename to...
12486 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
12488 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12489 (*mov_sitf_e500_subreg12): Rename to...
12490 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
12492 (*mov_sitf_e500_subreg12_le): New instruction pattern.
12493 (*mov_sitf_e500_subreg12_2): Rename to...
12494 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
12496 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12498 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
12500 * asan.c (instrument_strlen_call): Do not instrument first byte
12501 in strlen if already instrumented.
12503 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12505 * config/arm/arm.opt (mwords-little-endian): Delete.
12506 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12507 of TARGET_LITTLE_WORDS.
12508 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12509 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12511 * doc/invoke.texi: Remove references to -mwords-little-endian.
12513 2014-07-07 Jakub Jelinek <jakub@redhat.com>
12515 * expmed.c (struct init_expmed_rtl): Change all fields but
12516 pow2 and cint from struct rtx_def to rtx.
12517 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12518 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
12521 2014-07-06 Marek Polacek <polacek@redhat.com>
12524 * doc/invoke.texi: Document -Wsizeof-array-argument.
12526 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
12528 * wide-int.h (wide_int_storage): Change declaration from struct
12531 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
12533 * cgraph.c (cgraph_create_indirect_edge): Update call of
12534 get_polymorphic_call_info.
12535 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12536 (possible_polymorphic_call_targets): Add parameter call.
12537 (decl_maybe_in_construction_p): New predicate.
12538 (get_polymorphic_call_info): Add parameter call;
12539 use decl_maybe_in_construction_p.
12540 * gimple-fold.c (fold_gimple_assign): Update use of
12541 possible_polymorphic_call_targets.
12542 (gimple_fold_call): Likewise.
12543 * ipa-prop.c: Inlcude calls.h
12544 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12545 (param_type_may_change_p): New predicate.
12546 (detect_type_change_from_memory_writes): Break out from ...
12547 (detect_type_change): ... this one; use param_type_may_change_p.
12548 (detect_type_change_ssa): Use param_type_may_change_p.
12549 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12551 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
12554 * config/arm/arm-protos.h (arm_legitimate_address_p,
12555 arm_is_constant_pool_ref): Add prototypes.
12556 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12557 (arm_is_constant_pool_ref) New function.
12558 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12559 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12560 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12561 operand. Remove pool_range and neg_pool_range attributes.
12562 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12563 pool_range and neg_pool_range attributes.
12564 * config/arm/constraints.md (Uh): New constraint.
12565 (Uq): Don't allow constant pool references.
12567 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
12569 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12570 (move_lo_quad_internal_be_<mode>): Likewise.
12571 (move_lo_quad_<mode>): Convert to define_expand.
12572 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12573 (aarch64_simd_move_hi_quad_be_<mode>): New.
12574 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12575 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12576 (aarch64_combinez_be<mode>): New.
12577 (aarch64_combine<mode>): Convert to define_expand.
12578 (aarch64_combine_internal<mode>): New.
12579 (aarch64_simd_combine<mode>): Remove bogus RTL description.
12581 2014-07-04 Tom de Vries <tom@codesourcery.com>
12583 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12584 combination of earlyclobber and read/write modifiers.
12586 2014-07-04 Tom de Vries <tom@codesourcery.com>
12588 * config/aarch64/aarch64-simd.md
12589 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12591 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
12594 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12596 2014-07-04 Jakub Jelinek <jakub@redhat.com>
12598 PR middle-end/61654
12599 * cgraphunit.c (expand_thunk): Call free_dominance_info.
12601 PR tree-optimization/61684
12602 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12603 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12605 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12606 Kito Cheng <kito@0xlab.org>
12607 Monk Chiang <sh.chiang04@gmail.com>
12609 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12610 (nds32_symbol_load_store_p): Move to ...
12611 (nds32_fp_as_gp_check_available): Move to ...
12612 * config/nds32/nds32-fp-as-gp.c: ... here.
12613 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12614 extern declaration.
12616 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12617 Kito Cheng <kito@0xlab.org>
12618 Monk Chiang <sh.chiang04@gmail.com>
12620 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12621 (nds32_expand_store_multiple): Move to ...
12622 (nds32_expand_movmemqi): Move to ...
12623 * config/nds32/nds32-memory-manipulation.c: ... here.
12625 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12626 Kito Cheng <kito@0xlab.org>
12627 Monk Chiang <sh.chiang04@gmail.com>
12629 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
12630 (nds32_output_casesi_pc_relative): Move to ...
12631 (nds32_output_casesi): Move to ...
12632 (nds32_mem_format): Move to ...
12633 (nds32_output_16bit_store): Move to ...
12634 (nds32_output_16bit_load): Move to ...
12635 (nds32_output_32bit_store): Move to ...
12636 (nds32_output_32bit_load): Move to ...
12637 (nds32_output_32bit_load_s): Move to ...
12638 (nds32_output_stack_push): Move to ...
12639 (nds32_output_stack_pop): Move to ...
12640 * config/nds32/nds32-md-auxiliary.c: ... here.
12642 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12643 Ling-Hua Tseng <uranus@tinlans.org>
12645 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12646 the purpose of this file.
12648 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12649 Kito Cheng <kito@0xlab.org>
12650 Monk Chiang <sh.chiang04@gmail.com>
12652 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12653 (nds32_address_cost): Move implementation to ...
12654 * config/nds32/nds32-cost.c: ... here.
12655 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12656 (nds32_address_cost_impl): Declare.
12658 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12659 Kito Cheng <kito@0xlab.org>
12660 Monk Chiang <sh.chiang04@gmail.com>
12662 * config/nds32/nds32.c
12663 (nds32_consecutive_registers_load_store_p): Move to ...
12664 (nds32_valid_multiple_load_store): Move to ...
12665 (nds32_valid_stack_push_pop): Move to ...
12666 (nds32_can_use_bclr_p): Move to ...
12667 (nds32_can_use_bset_p): Move to ...
12668 (nds32_can_use_btgl_p): Move to ...
12669 (nds32_can_use_bitci_p): Move to ...
12670 * config/nds32/nds32-predicates.c: ... here.
12672 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12673 Kito Cheng <kito@0xlab.org>
12674 Monk Chiang <sh.chiang04@gmail.com>
12676 * config/nds32/nds32.c
12677 (nds32_expand_builtin_null_ftype_reg): Move to ...
12678 (nds32_expand_builtin_reg_ftype_imm): Move to ...
12679 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12680 (nds32_init_builtins): Move implementation to ...
12681 (nds32_expand_builtin): Move implementation to ...
12682 * config/nds32/nds32-intrinsic.c: ... here.
12683 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12684 (nds32_expand_builtin_impl): Declare.
12686 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12687 Kito Cheng <kito@0xlab.org>
12688 Monk Chiang <sh.chiang04@gmail.com>
12690 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12691 (nds32_emit_section_tail_template): Move to ...
12692 (nds32_emit_isr_jmptbl_section): Move to ...
12693 (nds32_emit_isr_vector_section): Move to ...
12694 (nds32_emit_isr_reset_conten): Move to ...
12695 (nds32_check_isr_attrs_conflict): Move to ...
12696 (nds32_construct_isr_vectors_information): Move to ...
12697 (nds32_asm_file_start): Move implementation to ...
12698 (nds32_asm_file_end): Move implementation to ...
12699 * config/nds32/nds32-isr.c: ... here.
12700 * config/nds32/nds32-protos.h
12701 (nds32_check_isr_attrs_conflict): Declare.
12702 (nds32_construct_isr_vectors_information): Declare.
12703 (nds32_asm_file_start_for_isr): Declare.
12704 (nds32_asm_file_end_for_isr): Declare.
12706 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12707 Kito Cheng <kito@0xlab.org>
12708 Monk Chiang <sh.chiang04@gmail.com>
12710 * config.gcc (nds32*): Add new modules to extra_objs.
12711 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12712 (nds32be-*-*): Likewise.
12713 * config/nds32/nds32-cost.c: New file.
12714 * config/nds32/nds32-fp-as-gp.c: New file.
12715 * config/nds32/nds32-intrinsic.c: New file.
12716 * config/nds32/nds32-isr.c: New file.
12717 * config/nds32/nds32-md-auxiliary.c: New file.
12718 * config/nds32/nds32-memory-manipulation.c: New file.
12719 * config/nds32/nds32-pipelines-auxiliary.c: New file.
12720 * config/nds32/nds32-predicates.c: New file.
12721 * config/nds32/t-nds32: New file.
12723 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12725 PR tree-optimization/61682
12726 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12727 using cases and when one of the operands is equal to 1.
12729 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
12731 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12732 ashr<mode>3): Correct mode of operands[2].
12733 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12734 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12735 Correct mode of operands[2]. Fix split condition.
12737 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
12739 * arm.md (arch): Add armv6_or_vfpv3.
12740 (arch_enabled): Add test for the above.
12741 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12743 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12745 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12747 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12748 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12749 HWI 1 and negate the unsigned value.
12750 * expmed.c (expand_sdiv_pow2): For modes wider than word always
12751 use AND instead of shift.
12752 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12754 2014-07-03 Marek Polacek <polacek@redhat.com>
12756 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12757 (-fsanitize=float-divide-by-zero): Move to the table with
12758 -fsanitize=undefined suboptions.
12759 (-fsanitize=float-cast-overflow): Likewise.
12761 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
12763 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12764 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12767 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12769 * loop-invariant.c (struct invariant): Add a new member: eqno;
12770 (find_identical_invariants): Update eqno;
12771 (create_new_invariant): Init eqno;
12772 (get_inv_cost): Compute comp_cost with eqno;
12774 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
12776 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12777 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12778 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12779 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12780 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12782 2014-07-02 Christian Bruel <christian.bruel@st.com>
12786 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12787 (make_preds_opaque): Delete.
12788 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12789 (commit_mode_sets): New function.
12790 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12791 Process all modes at once.
12792 * basic-block.h (pre_edge_lcm_avs): Declare.
12793 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12794 Call clear_aux_for_edges. Fix comments.
12795 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12796 (pre_edge_rev_lcm): Idem.
12797 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12799 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12800 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12802 * config/i386/i386.c (x96_emit_mode_set): Idem.
12803 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12804 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
12805 (fpscr_toggle) Disallow from delay slot.
12806 * target.def (emit_mode_set): Add prev_mode parameter.
12807 * doc/tm.texi: Regenerate.
12809 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12811 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12814 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12816 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12817 vtable_pointer_value_to_vtable): Constify.
12818 (contains_polymorphic_type_p): Declare.
12819 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12820 vtable_pointer_value_to_vtable): Constify.
12821 (contains_polymorphic_type_p): New predicate.
12822 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12824 (ipa_set_ancestor_jf): Likewise.
12825 (detect_type_change): Return false in easy cases.
12826 (compute_complex_assign_jump_func): Require type to contain
12828 (compute_known_type_jump_func): Likewise.
12830 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12832 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12834 (type_in_anonymous_namespace_p): Constify argument.
12835 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12836 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12837 (main_odr_variant): New function.
12838 (hash_type_name): Make static; update assert; do not ICE on
12840 (types_same_for_odr): Bring here from tree.c; simplify and remove
12841 old structural comparing code that doesn't work for templates.
12842 (odr_hasher::equal): Update assert.
12843 (add_type_duplicate): Return true when bases should be computed;
12844 replace incomplete loader by complete; do not output duplicated
12845 warnings; do not ICE on non-records; set odr_violated flag.
12846 (get_odr_type): Be ready to replace incomplete type by complete
12847 one; work on ODR variants instead of main variants; reorder item
12848 in array so bases have still smaller indexes.
12849 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
12850 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
12852 2014-07-01 Cary Coutant <ccoutant@google.com>
12854 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
12856 (resolve_addr_in_expr): When replacing the rtx in a location list
12857 entry, get a new address table entry.
12858 (dwarf2out_finish): Call index_location_lists even if there are no
12859 addr_index_table entries yet.
12861 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
12863 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
12864 change for not being obvious.
12866 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
12868 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
12871 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12873 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
12874 (vcagt_f64): Likewise.
12875 (vcale_f64): Likewise.
12876 (vcaled_f64): Likewise.
12877 (vcales_f32): Likewise.
12878 (vcalt_f64): Likewise.
12879 (vcaltd_f64): Likewise.
12880 (vcalts_f32): Likewise.
12882 2014-07-01 Marek Polacek <polacek@redhat.com>
12884 * doc/invoke.texi: Document -Wint-conversion.
12886 2014-07-01 Marek Polacek <polacek@redhat.com>
12889 * doc/invoke.texi: Document -Wincompatible-pointer-types.
12891 2014-07-01 Martin Liska <mliska@suse.cz>
12893 IPA REF alias refactoring
12894 * cgraph.h (iterate_direct_aliases): New function.
12895 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
12896 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
12897 FOR_EACH_ALIAS added.
12898 (cgraph_for_node_and_aliases): Likewise.
12899 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
12900 * ipa-inline.c (reset_edge_caches): Likewise.
12901 (update_caller_keys): Likewise.
12902 * trans-mem.c (ipa_tm_execute): Likewise.
12903 *varpool.c (varpool_analyze_node): Likewise.
12904 (varpool_for_node_and_aliases): Likewise.
12905 * ipa-ref.h (first_alias): New function.
12906 (last_alias): Likewise.
12907 (has_aliases_p): Likewise.
12908 * ipa-ref.c (ipa_ref::remove_reference): Removal function
12909 is sensitive to IPA_REF_ALIASes.
12910 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
12911 are put at the beginning of the list.
12912 (symtab_node::iterate_direct_aliases): New function.
12914 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
12917 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12919 (write_ts_type_common_tree_pointers): Do not stream fields not set
12920 for incomplete types; do not stream duplicated fields for variants;
12921 sanity check that variant and type match.
12922 (write_ts_type_non_common_tree_pointers): Likewise.
12923 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12924 TYPE_SIZE whether type is complete.
12925 (lto_input_ts_type_common_tree_pointers): Do same changes as in
12926 write_ts_type_common_tree_pointers
12927 (lto_input_ts_type_non_common_tree_pointers): Likewise.
12929 2014-06-30 Joseph Myers <joseph@codesourcery.com>
12931 * var-tracking.c (add_stores): Return instead of asserting if old
12932 and new values for conditional store are the same.
12934 2014-06-30 Richard Henderson <rth@redhat.com>
12938 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
12939 the cfg if there were any changes.
12940 * passes.def: Revert move of peephole2 after reorder_blocks;
12941 move duplicate_computed_gotos before peephole2.
12943 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
12945 * except.c (emit_note_eh_region_end): New helper function.
12946 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
12947 emit EH_REGION_END note.
12948 * jump.c (cleanup_barriers): Do not split a call and its
12949 corresponding CALL_ARG_LOCATION note.
12951 2014-06-30 Jeff Law <law@redhat.com>
12953 PR tree-optimization/61607
12954 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
12955 deeper into the SSA_NAME_VALUE chain.
12957 2014-06-30 Marek Polacek <polacek@redhat.com>
12959 * convert.c (convert_to_integer): Don't instrument conversions if the
12960 function has no_sanitize_undefined attribute.
12961 * ubsan.c: Don't run the ubsan pass if the function has
12962 no_sanitize_undefined attribute.
12964 2014-06-30 Jakub Jelinek <jakub@redhat.com>
12966 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
12967 -fsanitize=undefined suboptions.
12969 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
12971 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
12972 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
12973 against bigendian and adjust indices.
12975 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
12977 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
12979 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
12982 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
12983 Add alternative; make early clobber. Adjust both split patterns
12984 to use operand 0 as the working register.
12986 2014-06-30 Jakub Jelinek <jakub@redhat.com>
12988 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
12989 as ira_object_id_map might be NULL, or 1.
12991 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12993 * loop-invariant.c (get_inv_cost): Handle register class.
12994 (gain_for_invariant): Check the register pressure of the inv
12995 and its overlapped register class, other than all.
12997 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
12999 * doc/invoke.texi (Optimize Options): Fix descriptions of
13000 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13002 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13004 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13007 2014-06-29 Tobias Grosser <tobias@grosser.es>
13010 * graphite-isl-ast-to-gimple.c: Add missing guards.
13012 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13014 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13015 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13016 * flag-types.h: Add new enum fgraphite_generator.
13017 * graphite-isl-ast-to-gimple.c: New.
13018 * graphite-isl-ast-to-gimple.h: New.
13019 * graphite.c (graphite_transform_loops): Add choice of Graphite
13020 code generator, which depends on flag_graphite_code_gen.
13022 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13024 * graphite-dependences.c (subtract_commutative_associative_deps):
13025 Add NULL checking of the following variables: must_raw_no_source,
13026 may_raw_no_source, must_war_no_source, may_war_no_source,
13027 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13028 must_war, may_war, must_waw, may_waw.
13030 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13032 * graphite-clast-to-gimple.c: gloog is renamed to
13033 graphite_regenerate_ast_cloog. gloog_error is renamed to
13034 graphite_regenerate_error.
13035 * graphite-clast-to-gimple.h: The definition of the struct
13036 bb_pbb_def is moved to graphite-htab.h.
13037 Add inclusion of the hash-table.h.
13038 * graphite-htab.h: The declaration of the function gloog is moved
13039 to graphite-clast-to-gimple.h and renamed to
13040 graphite_regenerate_ast_cloog.
13041 * graphite.c (graphite_transform_loops): gloog is renamed
13042 to graphite_regenerate_ast_cloog.
13044 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13046 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13048 (write_ts_type_common_tree_pointers): Do not stream fields not set
13049 for incomplete types; do not stream duplicated fields for variants;
13050 sanity check that variant and type match.
13051 (write_ts_type_non_common_tree_pointers): Likewise.
13052 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13053 TYPE_SIZE whether type is complete.
13054 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13055 write_ts_type_common_tree_pointers
13056 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13058 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13060 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13062 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13064 * tree-inline.c (remap_type_1): Do not duplicate fields
13065 that are shared in between type and its main variant.
13067 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13069 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13071 (ipa_set_ancestor_jf) Likewise.
13072 (check_stmt_for_type_change): Check that we work on main variant.
13073 (detect_type_change): Look into main variant.
13074 (compute_known_type_jump_func): Check that main variant has BINFO.
13076 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13078 * ipa-devirt.c (set_type_binfo): New function.
13079 (add_type_duplicate): Use it.
13080 (get_odr_type): Sanity check that binfos points to main variants.
13081 (get_class_context): Be sure the context's outer_type is main variant.
13082 (contains_type_p): Walk main variant.
13083 (get_polymorphic_call_info_for_decl): Set outer_type to be
13085 (get_polymorphic_call_info): Likewise.
13086 (possible_polymorphic_call_targets): Sanity check that we operate
13089 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13091 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13093 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13095 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13096 accidental change due to wide-int branch merge.
13098 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13100 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13101 compressed debug support.
13102 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13103 * configure: Regenerate.
13104 * config.in: Regenerate.
13105 * common.opt (compressed_debug_sections): New enum.
13106 (gz, gz=): New options.
13107 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13108 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13109 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13110 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13111 LINK_COMPRESS_DEBUG_SPEC.
13112 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13113 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13114 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13115 (Debugging Options): Document -gz[=type].
13117 2014-06-27 Martin Jambor <mjambor@suse.cz>
13120 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13121 args_to_skip, use those from node instead. Copy args_to_skip and
13122 combined_args_to_skip from node to the new thunk.
13123 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13124 (cgraph_create_virtual_clone): Moved computation of
13125 combined_args_to_skip...
13126 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13128 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13130 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13131 redundant diagnostic machinary.
13133 2014-06-27 Richard Biener <rguenther@suse.de>
13135 * tree-ssa-math-opts.c (bswap_replace): Fix
13136 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13138 2014-06-27 Martin Liska <mliska@suse.cz>
13140 * gimple.h (gimple_location_safe): New function introduced.
13141 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13142 of gimple_location_safe replaces gimple_location.
13143 (gimple_fold_call): Likewise.
13144 * ipa-devirt.c (ipa_devirt): Likewise.
13145 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13146 * ipa.c (walk_polymorphic_call_targets): Likewise.
13147 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13149 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13151 PR tree-optimization/57233
13152 PR tree-optimization/61299
13153 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13155 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13156 would be lowered to scalar shifts, check if corresponding
13157 shifts and vector BIT_IOR_EXPR are supported and don't lower
13158 or lower just to narrower vector type in that case.
13159 * expmed.c (expand_shift_1): Fix up handling of vector
13160 shifts and rotates.
13162 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13165 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13167 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13169 * doc/invoke.texi (-fsemantic-interposition): Document.
13170 * common.opt (fsemantic-interposition): New flag.
13171 * varasm.c (decl_replaceable_p): Use it.
13173 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13176 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13177 extraction other than index 3.
13179 2014-06-26 Teresa Johnson <tejohnson@google.com>
13181 * doc/invoke.texi: Fix typo.
13182 * dumpfile.c: Add support for documented -fdump-* options
13183 optimized/missed/note/optall.
13185 2014-06-26 Martin Jambor <mjambor@suse.cz>
13187 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13188 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13189 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13190 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13191 * opts.c (default_options_optimization): Set
13192 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13193 * doc/invoke.texi (allow-load-data-races)
13194 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13195 (allow-store-data-races): Document the new default.
13197 2014-06-26 Martin Jambor <mjambor@suse.cz>
13199 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13200 renamed to ipa_impossible_devirt_target. Fix typo.
13201 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13202 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13203 ipa_impossible_devirt_target.
13205 2014-06-26 Richard Biener <rguenther@suse.de>
13207 PR tree-optimization/61607
13208 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
13209 explaining why we restrict copies on loop depth.
13210 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13212 (record_equivalences_from_phis): Instead add it here.
13214 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
13216 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
13217 (LTO_WRAPPER_OBJS): New variable.
13218 (lto-wrapper$(exeext)): Use it.
13219 * collect2.c: Include "collect-utils.h".
13220 (verbose, debug): Remove variables.
13221 (at_file_supplied): No longer static.
13222 (tool_name): New variable.
13223 (do_wait, fork_execute, maybe_unlink): Don't declare.
13224 (tool_cleanup): No longer static.
13225 (notice): Remove function.
13226 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
13227 fork_execute calls.
13228 (collect_wait, do_wait, collect_execute): Remove functions.
13229 (maybe_unlink): No longer static.
13230 * collect2.h (verbose, debug): Don't declare.
13231 (at_file_supplied): Declare.
13232 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
13234 (collect_execute): Replace with implementation from collect2, plus a
13235 new arg use_atfile. All callers changed.
13236 (collect_wait): Replace with implementation from collect2.
13237 (maybe_unlink_file): Remove function.
13238 (fork_execute): Replace with implementation from collect2, plus a
13239 new arg use_atfile. All callers changed.
13240 (do_wait): Add call to utils_cleanup to the error path.
13241 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
13242 (tool_cleanup): Adjust declarations.
13243 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
13244 * tlink.c: Include "collect-utils.h".
13245 (tlink_execute): New arg use_atfile. All callers changed.
13246 (tlink_init, tlink_execute): Remove declarations.
13248 * collect-utils.c (save_temps): New variable.
13249 (do_wait): Use it instead of debug. Use fatal_error.
13250 * collect-utils.h (save_temps): Declare.
13251 * collect2.c (verbose): Rename from vflag. All uses changed.
13252 (tool_cleanup): New function, copied from collect_atexit.
13253 (collect_atexit, handler): Just call it.
13254 * collect2.h (verbose): Declaration renamed from vflag.
13255 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
13258 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
13259 (lto-wrapper$(exeext)): Link with collect-utils.o.
13260 * collect-utils.c: New file.
13261 * collect-utils.h: New file.
13262 * lto-wrapper.c: Include "collect-utils.h".
13263 (args_name): Delete variable.
13264 (tool_name): New variable.
13265 (tool_cleanup): New function.
13266 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
13267 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
13268 (fork_execute): Remove functions.
13270 2014-06-26 Nick Clifton <nickc@redhat.com>
13272 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
13274 * doc/extend.texi (Function Attributes): Fix typo in description
13275 of RX vector attribute.
13277 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13279 * config.gcc (supported_defaults): Error when passing either
13280 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
13282 2014-06-26 Richard Biener <rguenther@suse.de>
13284 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13285 propagating volatile pointers.
13287 2014-06-26 Richard Biener <rguenther@suse.de>
13289 PR tree-optimization/61607
13290 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
13291 loop if we redirected its latch edge.
13292 (thread_block_1): Do not cancel loops prematurely.
13294 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
13296 * toplev.c (backend_init_target): Move init_emit_regs and
13298 (backend_init) ... here; skip ira_init_once and backend_init_target.
13299 (target_reinit) ... and here; clear
13300 this_target_rtl->lang_dependent_initialized.
13301 (lang_dependent_init_target): Clear
13302 this_target_rtl->lang_dependent_initialized;
13303 break out rtl initialization to ...
13304 (initialize_rtl): ... here; call also backend_init_target
13306 * toplev.h (initialize_rtl): New function.
13307 * function.c: Include toplev.h
13308 (init_function_start): Call initialize_rtl.
13309 * rtl.h (target_rtl): Add target_specific_initialized,
13310 lang_dependent_initialized.
13312 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
13313 Jakub Jelinek <jakub@redhat.com>
13315 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
13317 2014-06-25 Tom de Vries <tom@codesourcery.com>
13319 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
13321 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13323 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
13324 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
13325 Issue a strict overflow warning if appropriate.
13327 2014-06-25 Martin Liska <mliska@suse.cz>
13329 IPA REF refactoring
13330 * Makefile.in: Removed header file (ipa-ref-inline.h).
13331 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
13333 (cgraph_speculative_call_info): Likewise.
13334 (cgraph_for_node_thunks_and_aliases): Likewise.
13335 (cgraph_for_node_and_aliases): Likewise.
13336 (verify_cgraph_node): Likewise.
13337 * cgraph.h: Batch of IPA REF functions become member functions of
13338 symtab_node: add_reference, maybe_add_reference, clone_references,
13339 clone_referring, clone_reference, find_reference,
13340 remove_stmt_references, remove_all_references,
13341 remove_all_referring, dump_references, dump_referring,
13342 has_alias_p, iterate_reference, iterate_referring.
13343 * cgraphbuild.c (record_reference): New IPA REF function used.
13344 (record_type_list): Likewise.
13345 (record_eh_tables): Likewise.
13346 (mark_address): Likewise.
13347 (mark_load): Likewise.
13348 (mark_store): Likewise.
13349 (pass_build_cgraph_edges): Likewise.
13350 (rebuild_cgraph_edge): Likewise.
13351 (cgraph_rebuild_references): Likewise.
13352 (pass_remove_cgraph_callee_edges): Likewise.
13353 * cgraphclones.c (cgraph_clone_node): Likewise.
13354 (cgraph_create_virtual_clone): Likewise.
13355 (cgraph_materialize_clone): Likewise.
13356 (cgraph_materialize_all_clones): Likewise.
13357 * cgraphunit.c (cgraph_reset_node): Likewise.
13358 (cgraph_reset_node): Likewise.
13359 (analyze_function): Likewise.
13360 (assemble_thunks_and_aliases): Likewise.
13361 (expand_function): Likewise.
13362 * ipa-comdats.c (propagate_comdat_group): Likewise.
13363 (enqueue_references): Likewise.
13364 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
13365 (create_specialized_node): Likewise.
13366 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
13367 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
13368 * ipa-inline.c (reset_edge_caches): Likewise.
13369 (update_caller_keys): Likewise.
13370 (execute): Likewise.
13371 * ipa-prop.c (remove_described_reference): Likewise.
13372 (propagate_controlled_uses): Likewise.
13373 (ipa_edge_duplication_hook): Likewise.
13374 (ipa_modify_call_arguments): Likewise.
13375 * ipa-pure-const.c (propagate_pure_const): Likewise.
13376 * ipa-ref-inline.h: Header file removed, functions moved
13377 to symtab_node class.
13378 * ipa-ref.c (remove_reference): New class member function.
13379 (cannot_lead_to_return): New class member function.
13380 (referring_ref_list): Likewise.
13381 (referred_ref_list): Likewise.
13382 Rest of functions moved to symtab_node class.
13383 * ipa-ref.h: New member functions remove_reference,
13384 cannot_lead_to_return, referring_ref_list, referred_ref_list added
13386 ipa_ref_list class has new member functions: first_reference,
13387 first_referring, clear, nreferences.
13388 * ipa-reference.c (analyze_function): New IPA REF function used.
13389 (write_node_summary_p): Likewise.
13390 (ipa_reference_write_optimization_summary): Likewise.
13391 * ipa-split.c (split_function): Likewise.
13392 * ipa-utils.c (ipa_reverse_postorder): Likewise.
13393 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
13394 (function_and_variable_visibility): Likewise.
13395 * ipa.c (has_addr_references_p): Likewise.
13396 (process_references): Argument type changed.
13397 (symtab_remove_unreachable_nodes): New IPA REF function used.
13398 (process_references): Likewise.
13399 (set_writeonly_bit): Likewise.
13400 * lto-cgraph.c: Implementation of new symtab_node member functions
13401 that uses new IPA REF functions.
13402 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
13404 * lto-streamer-out.c (output_symbol_p): Likewise.
13405 * lto-streamer.h (referenced_from_this_partition_p): Argument type
13407 * symtab.c: Implementation of new IPA REF API.
13408 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
13409 (ipa_tm_create_version): Likewise.
13410 (ipa_tm_execute): Likewise.
13411 * tree-emutls.c (gen_emutls_addr): Likewise.
13412 * tree-inline.c (copy_bb): Likewise.
13413 (delete_unreachable_blocks_update_callgraph): Likewise.
13414 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
13415 (varpool_for_node_and_aliases): Likewise.
13417 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13419 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
13421 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13424 * fold-const.c (fold_checksum_tree): Use a hash_table of const
13425 tree_node * instead of tree_node *.
13427 (print_fold_checksum): Likewise.
13428 (fold_check_failed): Likewise.
13429 (debug_fold_checksum): Likewise.
13430 (fold_build1_stat_loc): Likewise.
13431 (fold_build2_stat_loc): Likewise.
13432 (fold_build3_stat_loc): Likewise.
13433 (fold_build_call_array_loc): Likewise.
13435 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
13437 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
13438 implementation with call to...
13439 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
13441 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
13444 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
13446 PR tree-optimization/57742
13447 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
13448 after replacing the statement.
13450 2014-06-25 Nick Clifton <nickc@redhat.com>
13452 * config/v850/v850.c (GHS_default_section_names): Change to const
13454 (GHS_current_section_names): Likewise.
13455 (v850_insert_attributes): Do not build strings, just assign the
13456 names directly. Change the type of 'chosen_section' to const
13458 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
13459 directly to the array entry.
13460 * config/v850/v850.h (GHS_default_section_names): Change to const
13462 (GHS_current_section_names): Likewise.
13464 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13466 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
13467 (LANG_HOOKS_DECLS): Add it.
13468 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
13470 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
13471 * langhooks.h (struct lang_hooks_for_decls): Add
13472 omp_clause_linear_ctor hook.
13473 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
13474 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
13475 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
13476 combined simd loop use omp_clause_linear_ctor hook.
13478 2014-06-24 Cong Hou <congh@google.com>
13480 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
13481 pattern recognition.
13482 (type_conversion_p): PROMOTION is true if it's a type promotion
13483 conversion, and false otherwise. Return true if the given expression
13484 is a type conversion one.
13485 * tree-vectorizer.h: Adjust the number of patterns.
13486 * tree.def: Add SAD_EXPR.
13487 * optabs.def: Add sad_optab.
13488 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13489 * expr.c (expand_expr_real_2): Likewise.
13490 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13491 * gimple.c (get_gimple_rhs_num_ops): Likewise.
13492 * optabs.c (optab_for_tree_code): Likewise.
13493 * tree-cfg.c (estimate_operator_cost): Likewise.
13494 * tree-ssa-operands.c (get_expr_operands): Likewise.
13495 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13496 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13497 * doc/generic.texi: Add document for SAD_EXPR.
13498 * doc/md.texi: Add document for ssad and usad.
13500 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13502 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13503 qualification in cast.
13505 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
13507 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13508 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13509 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13510 (tree_function_decl): ... here.
13511 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13512 streaming of vindex to ...
13513 (write_ts_function_decl_tree_pointers): ... here.
13514 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13515 Do not stream DECL_VINDEX.
13516 (lto_input_ts_function_decl_tree_pointers): Stream it here.
13518 2014-06-24 Catherine Moore <clm@codesourcery.com>
13519 Sandra Loosemore <sandra@codesourcery.com>
13521 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13522 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13523 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13525 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13527 * doc/invoke.texi (Warning Options): Remove duplicated
13528 -Wmaybe-uninitialized.
13530 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13532 PR tree-optimization/57742
13533 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13534 (handle_builtin_malloc, handle_builtin_memset): New functions.
13535 (strlen_optimize_stmt): Call them.
13536 * passes.def: Move strlen after loop+dom but before vrp.
13538 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13541 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13542 model family 6 CPU with has_longmode never use a CPU without
13545 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
13548 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13551 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13553 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13554 * dominance.c (iterate_fix_dominators): Use hash_map instead of
13556 * hash-map.h: New file.
13557 * ipa-comdats.c: Use hash_map instead of pointer_map.
13559 * lto-section-out.c: Adjust.
13560 * lto-streamer.h: Replace pointer_map with hash_map.
13561 * symtab.c (verify_symtab): Likewise.
13562 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13563 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13564 * tree-streamer.h: Likewise.
13565 * tree-streamer.c: Adjust.
13566 * pointer-set.h: Remove pointer_map.
13568 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13570 * hash-table.h: Add a template arg to choose between storing values
13571 and storing pointers to values, and then provide partial
13572 specializations for both.
13573 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13574 should store, not the type values should point to.
13575 * tree-into-ssa.c (var_info_hasher): Likewise.
13576 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13577 * tree-complex.c: Adjust.
13578 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13579 table instead of int_tree_map *.
13580 * tree-parloops.c: Adjust.
13581 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13582 type is being stored.
13583 * tree-vectorizer.c: Adjust.
13585 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13587 * hash-table.h: Remove a layer of indirection from hash_table so that
13588 it contains the hash table's data instead of a pointer to the data.
13589 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13590 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13591 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13592 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13593 fold-const.c, gcse.c, ggc-common.c,
13594 gimple-ssa-strength-reduction.c, gimplify.c,
13595 graphite-clast-to-gimple.c, graphite-dependences.c,
13596 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13597 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13598 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13599 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13600 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13601 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13602 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13603 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13604 tree-ssa-live.c, tree-ssa-loop-im.c,
13605 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13606 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13607 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13608 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13609 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13610 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13611 vtable-verify.c, vtable-verify.h: Adjust.
13613 2014-06-24 Richard Biener <rguenther@suse.de>
13615 PR tree-optimization/61572
13616 * tree-ssa-sink.c (statement_sink_location): Do not sink
13617 loads from hard registers.
13619 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13621 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13622 not mentioned in clauses use private clause if the iterator is
13623 declared in #pragma omp for simd, and when adding lastprivate
13624 instead, add it to the outer #pragma omp for too. Diagnose
13625 if the variable is private in outer context. For simd collapse > 1
13626 loops, replace all iterators with temporaries.
13627 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13628 same even in collapse > 1 loops.
13630 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13631 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13633 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13634 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13636 (gimplify_adjust_omp_clauses): Likewise.
13637 * omp-low.c (lower_rec_simd_input_clauses,
13638 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13639 safelen the same as safelen(1).
13640 * tree-nested.c (convert_nonlocal_omp_clauses,
13641 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
13642 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13643 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13644 Fixup handling of GIMPLE_OMP_TARGET.
13645 (convert_tramp_reference_stmt, convert_gimple_call): Handle
13648 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
13650 PR tree-optimization/61554
13651 * tree-ssa-propagate.c: Include "bitmap.h".
13652 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13653 properly update constructor/destructor.
13654 (substitute_and_fold_dom_walker::before_dom_children):
13655 Remove call to gimple_purge_dead_eh_edges, add bb->index to
13656 need_eh_cleaup instead.
13657 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13660 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13662 * varpool.c (dump_varpool_node): Dump used_by_single_function.
13663 * tree-pass.h (make_pass_ipa_single_use): New pass.
13664 * cgraph.h (used_by_single_function): New flag.
13665 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13667 * passes.def (pass_ipa_single_use): Scedule.
13668 * ipa.c (BOTTOM): New macro.
13669 (meet): New function
13670 (propagate_single_user): New function.
13671 (ipa_single_use): New function.
13672 (pass_data_ipa_single_use): New pass.
13673 (pass_ipa_single_use): New pass.
13674 (pass_ipa_single_use::gate): New gate.
13675 (make_pass_ipa_single_use): New function.
13677 2014-06-23 Kai Tietz <ktietz@redhat.com>
13680 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13681 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13683 2014-06-23 Richard Biener <rguenther@suse.de>
13685 * tree-ssa-loop.c (gate_loop): New function.
13686 (pass_tree_loop::gate): Call it.
13687 (pass_data_tree_no_loop, pass_tree_no_loop,
13688 make_pass_tree_no_loop): New.
13689 * tree-vectorizer.c: Include tree-scalar-evolution.c
13690 (pass_slp_vectorize::execute): Initialize loops and SCEV if
13692 (pass_slp_vectorize::clone): New method.
13693 * timevar.def (TV_TREE_NOLOOP): New.
13694 * tree-pass.h (make_pass_tree_no_loop): Declare.
13695 * passes.def (pass_tree_no_loop): New pass group with
13698 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
13701 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13702 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13704 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13706 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13707 "yes" where needed.
13709 2014-06-23 Alan Modra <amodra@gmail.com>
13712 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13713 to zero on debug statements.
13715 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13718 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13719 Ignore third operand if present by marking qualifier_internal.
13721 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13723 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13725 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13726 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13727 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13728 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13729 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13730 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13731 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13732 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13733 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13734 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13735 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13736 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13737 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13738 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13739 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13740 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13741 logic in GCC vector extensions
13743 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13744 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13745 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13746 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13747 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13748 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13749 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13750 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13751 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13752 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13754 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13756 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13759 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13760 (vget_low_s64): Use __GET_LOW macro.
13761 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13762 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13763 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13764 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13765 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13767 (vcombine_s64): Use GCC vector extensions; remove cast.
13768 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13769 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13770 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13771 Fix type signature; remove cast.
13773 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13776 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13778 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13780 (BUILTIN_VD1): New.
13781 (BUILTIN_VD_RE): Remove.
13782 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13783 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13784 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13785 variant but not df.
13786 (vreinterpretv1df*, vreinterpret*v1df): New.
13787 (vreinterpretdf*, vreinterpret*df): Remove.
13788 * config/aarch64/aarch64-simd.md (aarch64_create,
13789 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13790 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13792 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13793 (vcreate_f64): Remove cast, use v1df builtin.
13794 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13795 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13796 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13797 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13798 vmov_n_f64, vst1_f64): Use gcc vector extensions.
13799 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13800 add range check using __builtin_aarch64_im_lane_boundsi.
13801 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13802 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13803 type signature, use gcc vector extensions.
13804 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13805 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13806 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13807 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13808 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13809 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13810 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13811 vreinterpret_u64_f64): Use v1df builtin not df.
13813 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13815 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13818 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13820 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13823 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13825 * loop-invariant.c (pre_check_invariant_p): New function.
13826 (find_invariant_insn): Call pre_check_invariant_p.
13828 2014-06-22 Richard Henderson <rth@redhat.com>
13831 * compare-elim.c (struct comparison): Add eh_note.
13832 (find_comparison_dom_walker::before_dom_children): Don't eliminate
13833 a redundant comparison in a different EH region. Purge EH edges if
13836 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13838 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
13839 (var_shift): Use it.
13840 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
13841 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13842 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13843 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13844 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13845 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
13846 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
13847 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
13848 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
13849 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
13850 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
13851 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
13852 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
13853 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
13854 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
13855 *rotldi3_internal15be): Use the new attribute. Merge register and
13856 integer alternatives.
13858 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13860 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
13861 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
13862 split, *ashrdi3_internal3 and split): Delete, merge into...
13863 (ashr<mode>3): New expander.
13864 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
13865 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
13867 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13869 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
13870 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
13871 *rotldi3_internal3 and split): Delete, merge into...
13872 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
13873 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
13874 Use "rotlw" extended mnemonic.
13876 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13878 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
13879 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
13880 and split, *ashldi3_internal3 and split): Delete, merge into...
13881 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
13882 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
13884 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13886 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
13887 (lshrsi3, two anonymous define_insns and define_splits,
13888 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
13889 *lshrdi3_internal3 and split): Delete, merge into...
13890 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
13891 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
13893 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13895 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
13896 Remove "O" alternative.
13898 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
13900 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
13901 (mips_move_from_gpr_cost): Likewise.
13902 (mips_register_move_cost): Update accordingly.
13903 (mips_secondary_reload_class): Remove name of in_p.
13905 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
13908 * config/i386/i386.md (x86_64_shrd, x86_shrd,
13909 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
13911 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13913 * config/nios2/nios2.c: Include "builtins.h".
13915 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
13917 * cgraph.h (tls_model_names): New variable.
13918 * print-tree.c (print_node): Simplify.
13919 * varpool.c (tls_model_names): New variable.
13920 (dump_varpool_node): Output tls model.
13922 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
13924 * ipa-visibility.c (function_and_variable_visibility): Disable
13925 temporarily local aliases for some targets.
13927 2014-06-20 Marek Polacek <polacek@redhat.com>
13929 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
13930 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
13931 into SANITIZE_UNDEFINED.
13932 * doc/invoke.texi: Describe -fsanitize=bounds.
13933 * gimplify.c (gimplify_call_expr): Add gimplification of internal
13934 functions created in the FEs.
13935 * internal-fn.c: Move "internal-fn.h" after "tree.h".
13936 (expand_UBSAN_BOUNDS): New function.
13937 * internal-fn.def (UBSAN_BOUNDS): New internal function.
13938 * internal-fn.h: Don't define internal functions here.
13939 * opts.c (common_handle_option): Add -fsanitize=bounds.
13940 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
13941 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
13942 * tree-core.h: Define internal functions here.
13943 (struct tree_base): Add ifn field.
13944 * tree-pretty-print.c: Include "internal-fn.h".
13945 (dump_generic_node): Handle functions without CALL_EXPR_FN.
13946 * tree.c (get_callee_fndecl): Likewise.
13947 (build_call_expr_internal_loc): New function.
13948 * tree.def (CALL_EXPR): Update description.
13949 * tree.h (CALL_EXPR_IFN): Define.
13950 (build_call_expr_internal_loc): Declare.
13951 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
13953 (ubsan_type_descriptor): Change bool parameter to enum
13954 ubsan_print_style. Adjust the code. Add handling of
13956 (ubsan_expand_bounds_ifn): New function.
13957 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
13958 (ubsan_build_overflow_builtin): Likewise.
13959 (instrument_bool_enum_load): Likewise.
13960 (ubsan_instrument_float_cast): Likewise.
13961 * ubsan.h (enum ubsan_print_style): New enum.
13962 (ubsan_expand_bounds_ifn): Declare.
13963 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
13965 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
13967 * config/rs6000/rs6000.md: Append `DONE' to preparation
13968 statements of `bswap' pattern splitters.
13970 2014-06-20 Tom de Vries <tom@codesourcery.com>
13972 * target.def (call_fusage_contains_non_callee_clobbers): Update
13974 * doc/tm.texi: Regenerate.
13976 2014-06-20 Yury Gribov <y.gribov@samsung.com>
13977 Max Ostapenko <m.ostapenko@partner.samsung.com>
13980 * asan.c (instrument_strlen_call): Fixed instrumentation of
13983 2014-06-20 Martin Jambor <mjambor@suse.cz>
13986 * ipa-prop.c (impossible_devirt_target): New function.
13987 (try_make_edge_direct_virtual_call): Use it, also instead of
13990 2014-06-20 Yury Gribov <y.gribov@samsung.com>
13991 Max Ostapenko <m.ostapenko@partner.samsung.com>
13994 * asan.c (build_check_stmt): Add condition.
13996 2014-06-20 Martin Jambor <mjambor@suse.cz>
13999 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14002 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14004 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14006 (VCONQ): Make comment more helpful.
14008 * config/aarch64/aarch64-simd.md
14009 (aarch64_sqdmulh_lane<mode>):
14010 Use VCOND for operands 2. Update lane checking and flipping logic.
14011 (aarch64_sqrdmulh_lane<mode>): Likewise.
14012 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14013 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14014 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14015 attribute of operand 3 to VCOND.
14016 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14017 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14018 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14019 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14020 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14021 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14023 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14024 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14025 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14026 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14027 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14028 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14029 operand to VCOND. Update lane flipping and bounds checking logic.
14030 (aarch64_sqdmlal2_lane<mode>): Likewise.
14031 (aarch64_sqdmlsl_lane<mode>): Likewise.
14032 (aarch64_sqdmull_lane<mode>): Likewise.
14033 (aarch64_sqdmull2_lane<mode>): Likewise.
14034 (aarch64_sqdmlal_laneq<mode>):
14035 Replace VCON usage with VCONQ.
14036 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14037 (aarch64_sqdmlal2_laneq<mode>): Emit
14038 aarch64_sqdmlal2_laneq<mode>_internal insn.
14039 Replace VCON with VCONQ.
14040 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14041 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14042 (aarch64_sqdmull_laneq<mode>): Emit
14043 aarch64_sqdmull_laneq<mode>_internal insn.
14044 Replace VCON with VCONQ.
14045 (aarch64_sqdmull2_laneq<mode>): Emit
14046 aarch64_sqdmull2_laneq<mode>_internal insn.
14047 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14048 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14049 of 3rd argument to int16x4_t.
14050 (vqdmlalh_lane_s16): Likewise.
14051 (vqdmlslh_lane_s16): Likewise.
14052 (vqdmull_high_lane_s16): Likewise.
14053 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14054 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14055 (vqdmlsl_lane_s16): Likewise.
14056 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14057 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14058 (vqdmlals_lane_s32): Likewise.
14059 (vqdmlsls_lane_s32): Likewise.
14060 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14061 (vqdmulls_lane_s32): Likewise.
14062 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14063 (vqdmlsl_lane_s32): Likewise.
14064 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14065 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14066 (vqrdmulhh_lane_s16): Likewise.
14067 (vqdmlsl_high_lane_s16): Likewise.
14068 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14069 (vqdmlsl_high_lane_s32): Likewise.
14070 (vqrdmulhs_lane_s32): Likewise.
14072 2014-06-20 Tom de Vries <tom@codesourcery.com>
14074 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14075 get_call_reg_set_usage.
14077 2014-06-20 Tom de Vries <tom@codesourcery.com>
14079 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14080 it contains all call_used_regs.
14082 2014-06-20 Tom de Vries <tom@codesourcery.com>
14084 * final.c (collect_fn_hard_reg_usage): Add and use variable
14085 function_used_regs.
14087 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14089 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14090 (set_init_priority, get_init_priority, set_fini_priority,
14091 get_fini_priority): New methods.
14092 * tree.c (init_priority_for_decl): Remove.
14093 (init_ttree): Do not initialize init priority.
14094 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14095 (decl_priority_info): Remove.
14096 (decl_init_priority_insert): Rewrite.
14097 (decl_fini_priority_insert): Rewrite.
14098 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14099 tree_priority_map_marked_p): Remove.
14100 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14101 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14102 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14103 not output priorities.
14104 (pack_ts_function_decl_value_fields): Likewise.
14105 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14106 not input priorities.
14107 (unpack_ts_function_decl_value_fields): Likewise.
14108 * symtab.c (symbol_priority_map): Declare.
14109 (init_priority_hash): Declare.
14110 (symtab_unregister_node): Unregister from priority hash, too.
14111 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14113 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14114 (symbol_priority_info): New function.
14115 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14117 * tree-core.h (tree_priority_map): Remove.
14119 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14121 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14122 0xff to uint64_t before shifting it up.
14124 2014-06-20 Julian Brown <julian@codesourcery.com>
14125 Chung-Lin Tang <cltang@codesourcery.com>
14127 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14128 TARGET_THUMB1_ONLY. Add comments.
14130 2014-06-19 Tom de Vries <tom@codesourcery.com>
14132 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14133 return type to void.
14134 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14136 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14138 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14139 as "move", from depends_on.
14141 2014-06-19 Terry Guo <terry.guo@arm.com>
14143 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14146 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14148 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14150 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14152 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14155 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14156 addresses here if reload in progress or completed.
14158 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14160 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14161 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14162 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14163 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14164 (mips_register_priority): New function that implements the target
14165 hook TARGET_REGISTER_PRIORITY.
14166 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14167 (mips_lra_p): Likewise for TARGET_LRA_P.
14168 (TARGET_REGISTER_PRIORITY): Define macro.
14169 (TARGET_SPILL_CLASS): Likewise.
14170 (TARGET_LRA_P): Likewise.
14171 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14173 (REG_CLASS_NAMES): Likewise.
14174 (REG_CLASS_CONTENTS): Likewise.
14175 (BASE_REG_CLASS): Use M16_SP_REGS.
14176 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14177 New set attribute to enable alternatives depending on the register
14179 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14180 (*lea64): Disable pattern for MIPS16.
14181 * config/mips/mips.opt (mlra): New option.
14183 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14185 * lra-constraints.c (base_to_reg): New function.
14186 (process_address): Use new function.
14188 2014-06-18 Tom de Vries <tom@codesourcery.com>
14190 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14191 * config/aarch64/aarch64.c
14192 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14193 (aarch64_emit_call_insn): New function.
14194 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14196 * config/aarch64/aarch64.md (define_expand "call_internal")
14197 (define_expand "call_value_internal", define_expand "sibcall_internal")
14198 (define_expand "sibcall_value_internal"): New.
14199 (define_expand "call", define_expand "call_value")
14200 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14201 expand variant and aarch64_emit_call_insn.
14203 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14204 Tom de Vries <tom@codesourcery.com>
14206 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
14207 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14209 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
14210 clobbers to CALL_INSN_FUNCTION_USAGE.
14211 (define_expand "sibcall_internal")
14212 (define_expand "sibcall_value_internal"): New.
14213 (define_expand "call", define_expand "call_value"): Add argument to
14214 arm_emit_call_insn.
14215 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
14216 (define_expand "sibcall_value"): Use sibcall_value_internal and
14217 arm_emit_call_insn.
14219 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14221 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
14223 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14225 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
14228 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14230 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
14231 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
14232 annotations. Fix DWARF information.
14234 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14236 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
14237 __udivmoddi4, and fixups for negative operands.
14239 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14241 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
14243 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14245 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
14248 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14250 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
14253 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14255 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
14256 describing register usage on function entry and exit.
14258 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14260 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
14261 (__aeabi_ldivmod): Fix whitespace.
14263 2014-06-18 Andreas Schwab <schwab@suse.de>
14265 * doc/md.texi (Standard Names): Use @itemx for grouped items.
14266 Remove blank line after @item.
14268 2014-06-18 Richard Henderson <rth@redhat.com>
14271 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
14273 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14275 * config/arm/arm.c (neon_vector_mem_operand): Allow register
14276 POST_MODIFY for neon loads and stores.
14277 (arm_print_operand): Output post-index register for neon loads and
14280 2014-06-18 Richard Biener <rguenther@suse.de>
14282 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
14284 2014-06-18 Richard Biener <rguenther@suse.de>
14286 * tree-pass.h (make_pass_dce_loop): Remove.
14287 * passes.def: Replace pass_dce_loop with pass_dce.
14288 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
14289 changed free niter estimates and reset the scev cache.
14290 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
14291 make_pass_dce_loop): Remove.
14292 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
14293 (fini_copy_prop): Return whether something changed. Always
14294 let substitute_and_fold perform DCE and free niter estimates
14295 and reset the scev cache if so.
14296 (execute_copy_prop): If sth changed schedule cleanup-cfg.
14297 (pass_data_copy_prop): Do not unconditionally schedule
14298 cleanup-cfg or update-ssa.
14300 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14302 PR tree-optimization/61518
14303 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14304 reduction var is used in reduction stmt or phi-function only.
14306 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14308 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
14310 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14312 PR tree-optimization/61517
14313 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
14314 whose rhs's first tree is the source expression instead of the
14316 (find_bswap_or_nop): Likewise.
14317 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
14318 gimple stmt whose rhs's first tree is the source. In the memory source
14319 case, move the stmt to be replaced close to one of the original load to
14320 avoid the problem of a store between the load and the stmt's original
14322 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
14325 2014-06-18 Andreas Schwab <schwab@suse.de>
14327 PR rtl-optimization/54555
14328 * postreload.c (move2add_use_add2_insn): Substitute
14329 STRICT_LOW_PART only if it is cheaper.
14331 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
14333 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
14334 Do not use unspec as call operand. Use memory_operand instead of
14335 memory_nox32_operand and add "m" operand constraint. Disable
14336 pattern for TARGET_X32.
14337 (*sibcall_pop_memory): Ditto.
14338 (*sibcall_value_memory): Ditto.
14339 (*sibcall_value_pop_memory): Ditto.
14340 (sibcall peepholes): Merge SImode and DImode patterns using
14341 W mode iterator. Use memory_operand instead of memory_nox32_operand.
14342 Disable pattern for TARGET_X32. Check if eliminated register is
14343 really dead after call insn. Generate call RTX without unspec operand.
14344 (sibcall_value peepholes): Ditto.
14345 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
14346 instead of memory_nox32_operand. Check if eliminated register is
14347 really dead after call insn. Generate call RTX without unspec operand.
14348 (sibcall_value_pop peepholes): Ditto.
14349 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
14351 2014-06-18 Terry Guo <terry.guo@arm.com>
14354 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
14357 2014-06-18 Olivier Hainque <hainque@adacore.com>
14359 * tree-core.h (tree_block): Add an "end_locus" field, allowing
14360 memorization of the end of block source location.
14361 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
14362 * gimplify.c (gimplify_bind_expr): Propagate the block start and
14363 end source location info we have on the block entry/exit code we
14366 2014-06-18 Richard Biener <rguenther@suse.de>
14368 * common.opt (fssa-phiopt): New option.
14369 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
14371 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
14372 * doc/invoke.texi (-fssa-phiopt): Document.
14374 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14376 * genattrtab.c (n_bypassed): New variable.
14377 (process_bypasses): Initialise n_bypassed.
14378 Count number of bypassed reservations.
14379 (make_automaton_attrs): Allocate space for bypassed reservations
14380 rather than number of bypasses.
14382 2014-06-18 Richard Biener <rguenther@suse.de>
14384 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
14385 we propagated anything.
14386 (substitute_and_fold_dom_walker::before_dom_children): Something
14387 changed if we propagated into PHI arguments.
14388 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
14391 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
14393 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
14395 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
14396 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
14397 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
14398 Introduces alternative way of loads group permutaions.
14399 (vect_transform_grouped_load): Try alternative way of permutations.
14401 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14403 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
14404 changed in ORT_TARGET region, don't jump to do_outer.
14405 (struct gimplify_adjust_omp_clauses_data): New type.
14406 (gimplify_adjust_omp_clauses_1): Adjust for data being
14407 a struct gimplify_adjust_omp_clauses_data pointer instead
14408 of tree *. Pass pre_p as a new argument to
14409 lang_hooks.decls.omp_finish_clause hook.
14410 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
14411 splay_tree_foreach to pass both list_p and pre_p.
14412 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
14413 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
14414 gimplify_adjust_omp_clauses callers.
14415 * langhooks.c (lhd_omp_finish_clause): New function.
14416 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
14417 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
14418 * langhooks.h (struct lang_hooks_for_decls): Add a new
14419 gimple_seq * argument to omp_finish_clause hook.
14420 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
14421 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
14422 (scan_omp_parallel, lower_omp_for): When adding
14423 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
14424 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
14425 * tree-nested.c (convert_nonlocal_omp_clauses,
14426 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
14427 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
14429 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
14431 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
14432 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
14434 2014-06-17 Xinliang David Li <davidxl@google.com>
14436 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
14437 * passes.c (pass_init_dump_file): Do not set initialize
14438 flag to false unconditionally.
14440 2014-06-17 Richard Biener <rguenther@suse.de>
14442 * genopinit.c (main): Use vec<>::qsort method.
14443 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14445 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
14447 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
14449 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
14450 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
14451 (mips_move_to_gpr_cost): Remove ST_REGS case.
14452 (mips_move_from_gpr_cost): Likewise.
14453 (mips_register_move_cost): Likewise.
14454 (mips_secondary_reload_class): Likewise.
14456 2014-06-17 Richard Biener <rguenther@suse.de>
14458 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
14459 (pass_all_optimizations): Move 3rd copy-prop pass from after
14460 fre to before ifcombine/phiopt.
14462 2014-06-17 Richard Biener <rguenther@suse.de>
14464 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
14465 and allow all blocks to be forwarders.
14467 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
14470 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
14471 variable 'size'; calculate 'size' right in the front; use
14472 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
14473 pcum->aapcs_stack_words.
14475 2014-06-17 Nick Clifton <nickc@redhat.com>
14477 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
14478 (umulhi3, mulsidi3, umulsidi3): Likewise.
14480 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
14482 PR middle-end/61508
14483 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14484 check for section name.
14486 2014-06-17 Richard Biener <rguenther@suse.de>
14488 * tree-ssa-propagate.c: Include domwalk.h.
14489 (substitute_and_fold): Outline main worker into a domwalker ...
14490 (substitute_and_fold_dom_walker::before_dom_children): ... here.
14491 Schedule stmts we can fully propagate for removal. Remove
14493 (substitute_and_fold): Apply a dominator walk to perform
14494 substitution. Process stmts scheduled for removal here.
14496 2014-06-17 Richard Biener <rguenther@suse.de>
14498 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14499 of PHI node moving.
14501 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14503 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14504 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14505 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14506 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14507 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14509 (get_fpscr) : Likewise.
14511 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14513 PR rtl-optimization/61325
14514 * lra-constraints.c (valid_address_p): Add forward declaration.
14515 (simplify_operand_subreg): Check address validity before and after
14516 alter_reg of memory subreg.
14518 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
14520 * config/i386/i386.c (decide_alg): Correctly handle
14521 maximum size of stringop algorithm.
14523 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14525 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14527 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14529 PR rtl-optimization/61522
14530 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14532 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
14535 * symtab.c (symtab_node::reset_section): New method.
14536 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14538 * cgraph.h (reset_section): Declare.
14539 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14540 do not consider comdat locals.
14541 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14543 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14544 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14545 reset sections of symbols dragged out of the comdats.
14546 (function_and_variable_visibility): Reset sections of
14549 2014-06-16 Richard Biener <rguenther@suse.de>
14551 PR tree-optimization/61482
14552 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14553 [-INF(OVF), +INF(OVF)] range.
14555 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14557 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14558 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14559 handling 32-bit multiplication.
14561 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
14563 PR middle-end/61430
14564 * lra-lives.c (process_bb_lives): Skip creating copy during
14565 insn scan when src/dest has constrained to same regno.
14567 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14569 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14570 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14572 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14574 * asan.c (check_func): New function.
14575 (maybe_create_ssa_name): Likewise.
14576 (build_check_stmt_with_calls): Likewise.
14577 (use_calls_p): Likewise.
14578 (report_error_func): Change interface.
14579 (build_check_stmt): Allow non-integer lengths; add support
14581 (asan_instrument): Likewise.
14582 (instrument_mem_region_access): Moved code to build_check_stmt.
14583 (instrument_derefs): Likewise.
14584 (instrument_strlen_call): Likewise.
14585 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14586 * doc/invoke.texi: Describe new parameter.
14587 * params.def: Define new parameter.
14588 * params.h: Likewise.
14589 * sanitizer.def: Describe new builtins.
14591 2014-06-16 Richard Biener <rguenther@suse.de>
14593 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14594 Make all defs available at the end.
14595 (eliminate): If we remove a PHI node schedule cfg-cleanup.
14597 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14600 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14602 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
14605 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14606 initialization. Replace remaining use of uid.
14608 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14610 * c-family/c-common.c (handle_tls_model_attribute): Use
14611 set_decl_tls_model.
14612 * c-family/c-common.c (handle_tls_model_attribute): Use
14613 set_decl_tls_model.
14614 * cgraph.h (struct varpool_node): Add tls_model.
14615 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14616 * tree.h (DECL_TLS_MODEL): Update.
14617 (DECL_THREAD_LOCAL_P): Check that variable is static.
14618 (decl_tls_model): Declare.
14619 (set_decl_tls_model): Declare.
14620 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14621 set symbol prorperties.
14622 (get_emutls_init_templ_addr): Cleanup.
14623 (new_emutls_decl): Update.
14624 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14625 (lto_input_varpool_node): Likewise.
14626 * lto-streamer-out.c (hash_tree): Likewise.
14627 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14628 not stream DECL_TLS_MODEL.
14629 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14630 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14632 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14634 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14636 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14638 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14639 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14641 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14642 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14643 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14644 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14645 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14646 (df_get_artificial_defs, df_get_artificial_uses)
14647 (df_single_def, df_single_use): Update accordingly.
14648 (df_refs_chain_dump): Take the first element in a linked list as
14649 parameter, rather than a pointer to an array of pointers.
14650 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14651 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14652 (df_chain_create_bb_process_use): Likewise.
14653 (df_md_bb_local_compute_process_def): Likewise.
14654 * fwprop.c (process_defs, process_uses): Likewise.
14655 (register_active_defs, update_uses): Likewise.
14656 (forward_propagate_asm): Update for new df_ref linking.
14657 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14658 (df_null_ref_rec, df_null_mw_rec): Likewise.
14659 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14661 (df_scan_free_bb_info): Remove check for null artificial_defs.
14662 (df_install_ref_incremental): Adjust for new df_ref linking.
14663 Use a single-element insertion rather than a full sort.
14664 (df_ref_chain_delete_du_chain): Take the first element
14665 in a linked list as parameter, rather than a pointer to an array of
14667 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14668 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14669 (df_insn_info_delete): Remove check for null defs and call to
14670 df_scan_free_mws_vec.
14671 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14672 null rather than df_null_*_rec.
14673 (df_insn_rescan_debug_internal): Likewise, and update null
14674 checks in the same way. Remove check for null defs.
14675 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14676 Move a single element rather doing a full sort.
14677 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14679 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
14680 Initialize df_ref and df_mw_hardreg lists to null rather than
14682 (df_ref_compare): Take df_refs as parameter, transferring the
14683 old interface to...
14684 (df_ref_ptr_compare): ...this new function.
14685 (df_sort_and_compress_refs): Update accordingly.
14686 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14687 old interface to...
14688 (df_mw_ptr_compare): ...this new function.
14689 (df_sort_and_compress_mws): Update accordingly.
14690 (df_install_refs, df_install_mws): Return a linked list rather than
14691 an array of pointers.
14692 (df_refs_add_to_chains): Assert that old lists are empty rather
14694 (df_insn_refs_verify): Don't handle null defs speciailly.
14695 * web.c (union_match_dups): Update for new df_ref linking.
14697 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14699 * df.h (df_ref_create, df_ref_remove): Delete.
14700 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14701 (df_ref_remove): Likewise.
14703 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14705 * df.h (df_single_def, df_single_use): New functions.
14706 * ira.c (find_moveable_pseudos): Use them.
14708 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14710 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14711 * df-problems.c (df_note_bb_compute): Use it.
14712 * regstat.c (regstat_bb_compute_ri): Likewise.
14714 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14716 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14717 * cse.c (cse_extended_basic_block): Use them.
14718 * dce.c (mark_artificial_use): Likewise.
14719 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14720 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14721 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14722 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14723 (df_simulate_initialize_backwards): Likewise.
14724 (df_simulate_finalize_backwards): Likewise.
14725 (df_simulate_initialize_forwards): Likewise.
14726 (df_md_simulate_artificial_defs_at_top): Likewise.
14727 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14728 * regrename.c (init_rename_info): Likewise.
14729 * regstat.c (regstat_bb_compute_ri): Likewise.
14730 (regstat_bb_compute_calls_crossed): Likewise.
14732 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14734 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14735 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14736 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14737 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14738 * combine.c (create_log_links): Likewise.
14739 * compare-elim.c (find_flags_uses_in_insn): Likewise.
14740 (try_eliminate_compare): Likewise.
14741 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14742 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14743 (remove_reg_equal_equiv_notes_for_defs): Likewise.
14744 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14745 (word_dce_process_block, dce_process_block): Likewise.
14746 * ddg.c (def_has_ccmode_p): Likewise.
14747 * df-core.c (df_bb_regno_first_def_find): Likewise.
14748 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14749 * df-problems.c (df_rd_simulate_one_insn): Likewise.
14750 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14751 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14752 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14753 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14754 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14755 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14756 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14757 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14758 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14759 * fwprop.c (local_ref_killed_between_p): Likewise.
14760 (all_uses_available_at, free_load_extend): Likewise.
14761 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14762 * hw-doloop.c (scan_loop): Likewise.
14763 * ifcvt.c (dead_or_predicable): Likewise.
14764 * init-regs.c (initialize_uninitialized_regs): Likewise.
14765 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14766 (process_bb_node_lives): Likewise.
14767 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14768 (find_moveable_pseudos): Likewise.
14769 * loop-invariant.c (check_dependencies, record_uses): Likewise.
14770 * recog.c (peep2_find_free_register): Likewise.
14771 * ree.c (get_defs): Likewise.
14772 * regstat.c (regstat_bb_compute_ri): Likewise.
14773 (regstat_bb_compute_calls_crossed): Likewise.
14774 * sched-deps.c (find_inc, find_mem): Likewise.
14775 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14776 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14777 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14778 (prepare_shrink_wrap): Likewise.
14779 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14780 * web.c (union_defs, pass_web::execute): Likewise.
14781 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14782 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14784 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
14786 * lra-assign.c (assign_by_spills): Add code to assign vector regs
14787 to inheritance pseudos.
14788 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14790 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
14793 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14794 (BU_MISC_2): Rename to ...
14795 (BU_LDBL128_2): ... this.
14796 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14797 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14798 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14799 RS6000_BTM_LDBL128.
14800 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14801 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14802 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14803 (unpacktf_1): Likewise.
14804 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14805 (__builtin_longdouble_dw1): Likewise.
14806 * doc/sourcebuild.texi (longdouble128): Document.
14808 2014-06-13 Jeff Law <law@redhat.com>
14810 PR rtl-optimization/61094
14811 PR rtl-optimization/61446
14812 * ree.c (combine_reaching_defs): Get the mode for the copy from
14813 the extension insn rather than the defining insn.
14815 2014-06-13 Dehao Chen <dehao@google.com>
14817 * dwarf2out.c (add_linkage_name): Emit more linkage name.
14819 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
14821 * doc/install.texi (--enable-linker-plugin-configure-flags)
14822 (--enable-linker-plugin-flags): Document new flags.
14824 2014-06-13 Martin Jambor <mjambor@suse.cz>
14827 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14828 cache_token if returning early.
14830 2014-06-13 Nick Clifton <nickc@redhat.com>
14832 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14833 requested alignment is active.
14834 (LABEL_ALIGN): Likewise.
14835 (LOOP_ALIGN): Likewise.
14837 2014-06-13 Richard Biener <rguenther@suse.de>
14839 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14840 Rewrite to propagate the VN result into all uses where
14841 possible and to remove stmts becoming dead because of that.
14842 (eliminate): Generalize stmt removal handling, remove in
14843 reverse dominator order to support proper debug stmt
14844 generation. Update stmts before removing stmts.
14845 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
14847 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14849 PR tree-optimization/61375
14850 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
14851 symbolic number cannot be represented in an uint64_t.
14852 (find_bswap_or_nop_1): Likewise.
14854 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
14856 * symtab.c (symtab_node::reset_section): New method.
14857 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14859 * cgraph.h (reset_section): Declare.
14860 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14861 do not consider comdat locals.
14862 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14864 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14865 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14866 reset sections of symbols dragged out of the comdats.
14867 (function_and_variable_visibility): Reset sections of
14870 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
14872 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
14873 to use symtab and decl_binds_to_current_def_p
14874 * tree-vectorizer.c (increase_alignment): Increase alignment
14875 of alias target, too.
14877 2014-06-12 Jakub Jelinek <jakub@redhat.com>
14879 PR middle-end/61486
14880 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
14881 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
14882 if outer combined construct is distribute.
14883 (gimplify_omp_for): For OMP_DISTRIBUTE set
14884 gimplify_omp_ctxp->distribute.
14885 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
14886 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
14887 mapping into decl map.
14889 2014-06-12 Jason Merrill <jason@redhat.com>
14891 * common.opt (fabi-version): Change default to 0.
14893 2014-06-12 Jason Merrill <jason@redhat.com>
14895 * toplev.c (process_options): Reject -fabi-version=1.
14897 2014-06-12 Jeff Law <law@redhat.com>
14899 PR tree-optimization/61009
14900 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
14901 value when we stop processing a block due to problematic PHIs.
14903 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
14905 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
14906 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
14907 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
14908 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
14909 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
14910 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
14911 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
14912 are not in the spec.
14914 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
14917 * config/aarch64/aarch64-modes.def: Add V1DFmode.
14918 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
14921 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
14923 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
14925 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
14928 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
14929 loading from address spaces.
14931 2014-06-12 Martin Liska <mliska@suse.cz>
14934 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
14935 statement is reachable.
14937 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
14939 * symtab.c (section_hash): New hash.
14940 (symtab_unregister_node): Clear section before freeing.
14941 (hash_section_hash_entry): New haser.
14942 (eq_sections): New function.
14943 (symtab_node::set_section_for_node): New method.
14944 (set_section_1): Update.
14945 (symtab_node::set_section): Take string instead of tree as parameter.
14946 (symtab_resolve_alias): Update.
14947 * cgraph.h (section_hash_entry_d): New structure.
14948 (section_hash_entry): New typedef.
14949 (cgraph_node): Change comdat_group_ to x_comdat_group,
14950 change section_ to x_section and turn into section_hash_entry;
14951 update accestors; put set_section_for_node offline.
14952 * tree.c (decl_section_name): Turn into string.
14953 (set_decl_section_name): Change parameter to be string.
14954 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
14955 * sdbout.c (sdbout_one_type): Update.
14956 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
14957 * varasm.c (IN_NAMED_SECTION, get_named_section,
14958 resolve_unique_section, hot_function_section, get_named_text_section,
14959 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
14960 make_decl_rtl, default_unique_section): Update.
14961 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
14962 (c6x_elf_unique_section): Update.
14963 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
14964 * config/pa/pa.c (pa_function_section): Update.
14965 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
14966 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
14967 * config/arc/arc.c (arc_in_small_data_p): Update.
14968 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
14969 * config/mcore/mcore.c (mcore_unique_section): Update.
14970 * config/mips/mips.c (mips16_build_function_stub): Update.
14971 (mips16_build_call_stub): Update.
14972 (mips_function_rodata_section): Update.
14973 (mips_in_small_data_p): Update.
14974 * config/score/score.c (score_in_small_data_p): Update.
14975 * config/rx/rx.c (rx_in_small_data): Update.
14976 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
14977 (rs6000_xcoff_asm_named_section): Update.
14978 (rs6000_xcoff_unique_section): Update.
14979 * config/frv/frv.c (frv_string_begins_with): Update.
14980 (frv_in_small_data_p): Update.
14981 * config/v850/v850.c (v850_encode_data_area): Update.
14982 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
14983 (bfin_handle_l1_data_attribute): Update.
14984 (bfin_handle_l2_attribute): Update.
14985 * config/mep/mep.c (mep_unique_section): Update.
14986 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
14988 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
14989 (h8300_handle_tiny_data_attribute): Update.
14990 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
14991 (m32r_in_small_data_p): Update.
14992 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
14993 * config/i386/i386.c (ix86_in_large_data_p): Update.
14994 * config/i386/winnt.c (i386_pe_unique_section): Update.
14995 * config/darwin.c (darwin_function_section): Update.
14996 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
14997 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14998 (new_emutls_decl): Update.
14999 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15000 input_varpool_node): Update.
15001 (ead_string_cst): Turn to ...
15002 (read_string): ... this one.
15003 * dwarf2out.c (secname_for_decl): Update.
15004 * asan.c (asan_protect_global): Update.
15006 2014-06-11 DJ Delorie <dj@redhat.com>
15008 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15010 * config/rx/rx.c (rx_option_override): Likewise.
15011 (rx_align_for_label): Likewise.
15013 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15015 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15017 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15020 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15022 * common.md: New file.
15023 * doc/md.texi: Update description of generic, machine-independent
15025 * config/s390/constraints.md (e): Delete.
15026 * Makefile.in (md_file): Include common.md.
15027 * config/m32c/t-m32c (md_file): Likewise.
15028 * genpreds.c (general_mem): New array.
15029 (generic_constraint_letters): Remove constraints now defined by
15031 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15032 Allow the first character to be '<' or '>' as well.
15033 * genoutput.c (general_mem): New array.
15034 (indep_constraints): Remove constraints now defined by common.md.
15035 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15036 Remove special handling of 'm'.
15037 * ira-costs.c (record_reg_classes): Remove special handling of
15038 constraints now defined by common.md.
15039 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15040 * ira-lives.c (single_reg_class): Likewise.
15041 (ira_implicitly_set_insn_hard_regs): Likewise.
15042 * lra-constraints.c (reg_class_from_constraints): Likewise.
15043 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15044 * postreload.c (reload_cse_simplify_operands): Likewise.
15045 * reload.c (push_secondary_reload, scratch_reload_class)
15046 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15047 * reload1.c (maybe_fix_stack_asms): Likewise.
15048 * targhooks.c (default_secondary_reload): Likewise.
15049 * stmt.c (parse_output_constraint): Likewise.
15050 * recog.c (preprocess_constraints): Likewise.
15051 (constrain_operands, peep2_find_free_register): Likewise.
15052 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15053 must be handled specially.
15055 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15057 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15058 * genpreds.c (have_const_dbl_constraints): Delete.
15059 (add_constraint): Don't set it.
15060 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15061 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15062 constraints using the lookup_constraint logic.
15063 * ira-lives.c (single_reg_class): Likewise.
15064 * ira.c (ira_setup_alts): Likewise.
15065 * lra-constraints.c (process_alt_operands): Likewise.
15066 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15067 * reload.c (find_reloads): Likewise.
15069 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15071 * genpreds.c (const_int_start, const_int_end): New variables.
15072 (choose_enum_order): Output CONST_INT constraints before memory
15074 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15076 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15077 * ira.c (ira_setup_alts): Likewise.
15078 * lra-constraints.c (process_alt_operands): Likewise.
15079 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15080 * reload.c (find_reloads): Likewise.
15082 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15084 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15085 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15086 * recog.c (preprocess_constraints): Update accordingly.
15088 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15090 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15091 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15092 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15093 * genpreds.c (print_type_tree): New function.
15094 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15095 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15096 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15097 Write out enum constraint_type and get_constraint_type.
15098 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15099 constraint_num rather than a constraint string.
15100 (satisfies_address_constraint_p): Likewise.
15101 (reg_class_from_constraints): Avoid old constraint macros.
15102 (process_alt_operands, process_address_1): Likewise.
15103 (curr_insn_transform): Likewise.
15104 * ira-costs.c (record_reg_classes): Likewise.
15105 (record_operand_costs): Likewise.
15106 * ira-lives.c (single_reg_class): Likewise.
15107 (ira_implicitly_set_insn_hard_regs): Likewise.
15108 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15109 * postreload.c (reload_cse_simplify_operands): Likewise.
15110 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15111 (constrain_operands, peep2_find_free_register): Likewise.
15112 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15113 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15114 * reload1.c (maybe_fix_stack_asms): Likewise.
15115 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15116 * targhooks.c (default_secondary_reload): Likewise.
15117 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15118 to EXTRA_CONSTRAINT_STR.
15119 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15121 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15123 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15124 (write_constraint_satisfied_p_array): ...this new function.
15125 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15127 (write_insn_preds_c): Update accordingly.
15129 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15131 * genpreds.c (write_lookup_constraint): Rename to...
15132 (write_lookup_constraint_1): ...this.
15133 (write_lookup_constraint_array): New function.
15134 (write_tm_preds_h): Define lookup_constraint as an inline function
15135 that uses write_lookup_constraint_array where possible.
15136 (write_insn_preds_c): Update for the changes above.
15138 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15140 * doc/md.texi (regclass_for_constraint): Rename to...
15141 (reg_class_for_constraint): ...this.
15142 * genpreds.c (num_constraints, enum_order, register_start)
15143 (register_end, satisfied_start, memory_start, memory_end)
15144 (address_start, address_end): New variables.
15145 (add_constraint): Count the number of constraints.
15146 (choose_enum_order): New function.
15147 (write_enum_constraint_num): Iterate over enum_order.
15148 (write_regclass_for_constraint): Rename to...
15149 (write_reg_class_for_constraint_1): ...this and update output
15151 (write_constraint_satisfied_p): Rename to...
15152 (write_constraint_satisfied_p_1): ...this and update output
15153 accordingly. Do nothing if all extra constraints are register
15155 (write_insn_extra_memory_constraint): Delete.
15156 (write_insn_extra_address_constraint): Delete.
15157 (write_range_function): New function.
15158 (write_tm_preds_h): Define constraint_satisfied_p and
15159 reg_class_for_constraint as inline functions that do a range check
15160 before calling the out-of-line function. Use write_range_function
15161 to implement insn_extra_{register,memory,address}_constraint,
15162 the first of which is new.
15163 (write_insn_preds_c): Update after above changes to write_* functions.
15164 (main): Call choose_enum_order.
15166 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15168 PR tree-optimization/61306
15169 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15170 expression instead of its size.
15171 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15172 false to prevent optimization when the result is unpredictable due to
15173 arithmetic right shift of signed type with highest byte is set.
15174 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15175 (init_symbolic_number): Likewise.
15176 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15177 when the result is unpredictable due to sign extension.
15179 2014-06-11 Terry Guo <terry.guo@arm.com>
15181 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15182 (*thumb1_addsi3): Ditto.
15183 (*thumb_subdi3): Ditto.
15184 (thumb1_subsi3_insn): Ditto.
15185 (*thumb_mulsi3): Ditto.
15186 (*thumb_mulsi3_v6): Ditto.
15187 (*thumb1_andsi3_insn): Ditto.
15188 (thumb1_bicsi3): Ditto.
15189 (*thumb1_iorsi3_insn): Ditto.
15190 (*thumb1_xorsi3_insn): Ditto.
15191 (*thumb1_ashlsi3): Ditto.
15192 (*thumb1_ashrsi3): Ditto.
15193 (*thumb1_lshrsi3): Ditto.
15194 (*thumb1_rotrsi3): Ditto.
15195 (*thumb1_negdi2): Ditto.
15196 (*thumb1_negsi2): Ditto.
15197 (*thumb1_abssi2): Ditto.
15198 (*thumb1_neg_abssi2): Ditto.
15199 (*thumb1_one_cmplsi2): Ditto.
15200 (*thumb1_zero_extendhisi2): Ditto.
15201 (*thumb1_zero_extendqisi2): Ditto.
15202 (*thumb1_zero_extendqisi2_v6): Ditto.
15203 (thumb1_extendhisi2): Ditto.
15204 (thumb1_extendqisi2): Ditto.
15205 (*thumb1_movdi_insn): Ditto.
15206 (*thumb1_movsi_insn): Ditto.
15207 (*thumb1_movhi_insn): Ditto.
15208 (thumb_movhi_clobber): Ditto.
15209 (*thumb1_movqi_insn): Ditto.
15210 (*thumb1_movhf): Ditto.
15211 (*thumb1_movsf_insn): Ditto.
15212 (*thumb_movdf_insn): Ditto.
15213 (movmem12b): Ditto.
15215 (cbranchqi4): Ditto.
15216 (cbranchsi4_insn): Ditto.
15217 (cbranchsi4_scratch): Ditto.
15218 (*negated_cbranchsi4): Ditto.
15219 (*tbit_cbranch): Ditto.
15220 (*tlobits_cbranch): Ditto.
15221 (*tstsi3_cbranch): Ditto.
15222 (*cbranchne_decr1): Ditto.
15223 (*addsi3_cbranch): Ditto.
15224 (*addsi3_cbranch_scratch): Ditto.
15225 (*thumb_cmpdi_zero): Ditto.
15226 (cstoresi_eq0_thumb1): Ditto.
15227 (cstoresi_ne0_thumb1): Ditto.
15228 (*cstoresi_eq0_thumb1_insn): Ditto.
15229 (*cstoresi_ne0_thumb1_insn): Ditto.
15230 (cstoresi_nltu_thumb1): Ditto.
15231 (cstoresi_ltu_thumb1): Ditto.
15232 (thumb1_addsi3_addgeu): Ditto.
15233 (*thumb_jump): Ditto.
15234 (*call_reg_thumb1_v5): Ditto.
15235 (*call_reg_thumb1): Ditto.
15236 (*call_value_reg_thumb1_v5): Ditto.
15237 (*call_value_reg_thumb1): Ditto.
15238 (*call_insn): Ditto.
15239 (*call_value_insn): Ditto.
15240 (thumb1_casesi_internal_pic): Ditto.
15241 (thumb1_casesi_dispatch): Ditto.
15242 (*thumb1_indirect_jump): Ditto.
15243 (prologue_thumb1_interwork): Ditto.
15244 (*epilogue_insns): Ditto.
15245 (consttable_1): Ditto.
15246 (consttable_2): Ditto.
15247 (tablejump): Ditto.
15248 (*thumb1_tablejump): Ditto.
15249 (thumb_eh_return): Ditto.
15250 (define_peephole2): Two of them are thumb1 only and got moved into
15251 new file thumb1.md.
15252 (define_split): Six of them are thumb1 only and got moved into new
15254 * config/arm/thumb1.md: New file comprised of above thumb1 only
15257 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15259 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
15260 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
15262 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
15263 (aarch64_crc_builtin_datum): New struct.
15264 (aarch64_crc_builtin_data): New.
15265 (aarch64_init_crc32_builtins): New function.
15266 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
15267 (aarch64_crc32_expand_builtin): New.
15268 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
15269 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15270 __ARM_FEATURE_CRC32 when appropriate.
15271 (TARGET_CRC32): Define.
15272 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
15273 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
15274 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
15275 (aarch64_<crc_variant>): New pattern.
15276 * config/aarch64/arm_acle.h: New file.
15277 * config/aarch64/iterators.md (CRC): New int iterator.
15278 (crc_variant, crc_mode): New int attributes.
15279 * doc/aarch64-acle-intrinsics.texi: New file.
15280 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
15281 Include aarch64-acle-intrinsics.texi.
15283 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
15285 * tree-vect-data-refs.c (vect_grouped_store_supported): New
15286 check for stores group of length 3.
15287 (vect_permute_store_chain): New permutations for stores group of
15289 * tree-vect-stmts.c (vect_model_store_cost): Change cost
15290 of vec_perm_shuffle for the new permutations.
15292 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15294 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
15295 table rewriting temporarily on targets not supporting ONE_ONLY.
15297 2014-06-11 Richard Biener <rguenther@suse.de>
15299 PR middle-end/61437
15301 2014-06-04 Richard Biener <rguenther@suse.de>
15303 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15304 TREE_PUBLIC and DECL_EXTERNAL decls.
15306 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15308 * varasm.c (set_implicit_section): New function.
15309 (resolve_unique_section): Use it to set implicit section
15311 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
15312 (default_function_section): Likewise.
15313 (decl_binds_to_current_def_p): Constify argument.
15314 * varasm.h (decl_binds_to_current_def_p): Update prototype.
15315 * asan.c (asan_protect_global): Use
15316 symtab_get_node (decl)->implicit_section.
15317 * symtab.c (dump_symtab_base): Dump implicit sections.
15318 (verify_symtab_base): Verify sanity of sectoins and comdats.
15319 (symtab_resolve_alias): Alias share the section of its target.
15320 (set_section_1): New function.
15321 (symtab_node::set_section): Move here, recurse to aliases.
15322 (verify_symtab): Check for duplicated symtab lists.
15323 * tree-core.h (implicit_section_name_p): Remove.
15324 * tree-vect-data-refs.c: Include varasm.h.
15325 (vect_can_force_dr_alignment_p): Fix conditional on when
15326 decl bints to current definition; use
15327 symtab_get_node (decl)->implicit_section.
15328 * cgraph.c (cgraph_make_node_local_1): Fix section set.
15329 * cgraph.h (struct symtab_node): Add implicit_section.
15330 (set_section): Rename to ...
15331 (set_section_for_node): ... this one.
15332 (set_section): Declare.
15333 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
15334 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15335 input_overwrite_node, input_varpool_node): Stream implicit_section.
15336 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
15337 removal; it will fail in LTO.
15339 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15341 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
15342 Change second alternative type to f_mcr.
15343 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
15344 and 12th alternatives' types to f_mcr and f_mrc.
15345 (*movdi_aarch64): Same for 12th and 13th alternatives.
15346 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
15347 (aarch64_movtilow_tilow): Change type to fmov.
15349 2014-06-10 Jiong Wang <jiong.wang@arm.com>
15351 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
15352 (aarch64_save_or_restore_callee_save_registers): Fix layout.
15354 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15356 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
15358 (aarch64_sqrdmulh_lane<mode>): Likewise.
15359 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15360 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15361 (aarch64_sqdmulh_laneq<mode>): New expander.
15362 (aarch64_sqrdmulh_laneq<mode>): Likewise.
15363 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
15364 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
15365 (aarch64_sqdmulh_lane<mode>): New expander.
15366 (aarch64_sqrdmulh_lane<mode>): Likewise.
15367 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15368 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15369 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
15370 (aarch64_sqdmlal_laneq<mode>): Likewise.
15371 (aarch64_sqdmlsl_lane<mode>): Likewise.
15372 (aarch64_sqdmlsl_laneq<mode>): Likewise.
15373 (aarch64_sqdmlal2_lane<mode>): Likewise.
15374 (aarch64_sqdmlal2_laneq<mode>): Likewise.
15375 (aarch64_sqdmlsl2_lane<mode>): Likewise.
15376 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15377 (aarch64_sqdmull_lane<mode>): Likewise.
15378 (aarch64_sqdmull_laneq<mode>): Likewise.
15379 (aarch64_sqdmull2_lane<mode>): Likewise.
15380 (aarch64_sqdmull2_laneq<mode>): Likewise.
15382 2014-06-10 Richard Biener <rguenther@suse.de>
15384 PR tree-optimization/61438
15385 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
15386 (eliminate_dom_walker::before_dom_children): Only try to inhibit
15387 insertion of IVs if running PRE.
15388 (eliminate): Adjust.
15389 (pass_pre::execute): Likewise.
15390 (pass_fre::execute): Likewise.
15392 2014-06-10 Richard Biener <rguenther@suse.de>
15394 PR middle-end/61456
15395 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15396 Do not use the main variant for the type comparison.
15397 (ncr_compar): Likewise.
15398 (nonoverlapping_component_refs_p): Likewise.
15400 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
15402 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
15403 REG_CFA_RESTORE mode.
15405 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
15407 * config/i386/i386.c (expand_vec_perm_pblendv): New.
15408 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
15409 expand_vec_perm_pblendv.
15411 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15413 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
15415 Simplify description of __crc32d and __crc32cd intrinsics.
15416 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
15419 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
15422 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
15423 * config.in: Regenerate.
15424 * configure: Likewise.
15426 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15428 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
15430 (intersect_static_var_sets): Remove.
15431 (propagate): Do not prune local statics.
15433 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15436 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
15437 Set lastprivate_firstprivate even if omp_private_outer_ref
15438 langhook returns true.
15439 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
15440 langhook, call unshare_expr on new_var and call
15441 build_outer_var_ref to get the last argument.
15443 2014-06-10 Marek Polacek <polacek@redhat.com>
15446 * doc/extend.texi: Add cindex for transparent_union.
15448 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
15450 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
15451 init_symbolic_number ().
15453 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
15455 PR middle-end/61141
15456 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
15457 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
15458 (verify_rtl_sharing): Likewise.
15460 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
15463 * tree.c (build_qualified_type): Use a canonical type for
15466 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15468 * config/arm/arm-modes.def: Remove XFmode.
15470 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
15473 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
15474 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
15475 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
15476 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
15477 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
15478 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
15479 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
15480 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
15481 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
15483 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
15485 * tree-core.h (tree_decl_with_vis): Remove section_name.
15487 2014-06-09 Kito Cheng <kito@0xlab.org>
15489 * ira.c (ira): Don't call init_caller_save if LRA enabled
15490 since LRA use its own infrastructure to handle that.
15492 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15494 * symtab.c (dump_symtab_base): Update dumping.
15495 (symtab_make_decl_local): Clear only DECL_COMDAT.
15496 * tree-vect-data-refs.c (Check that variable is static before
15497 tampering with sections.
15498 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15499 (cgraph_create_virtual_clone): Likewise.
15500 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15501 (decl_section_name, set_decl_section_name): New accessors.
15502 (find_decls_types_r): Do not walk section name
15503 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15504 (decl_comdat_group, decl_comdat_group_id): Constify.
15505 (decl_section_name, set_decl_section_name): Update.
15506 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15507 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15508 (cgraph_make_node_local_1): Clear section and comdat group.
15509 * cgraph.h (set_comdat_group): Sanity check.
15510 (get_section, set_section): New.
15511 * ipa-comdats.c (ipa_comdats): Use get_section.
15512 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15513 * lto-streamer-out.c: Do not follow section names.
15514 * c-family/c-common.c (handle_section_attribute): Update.
15515 * lto-cgraph.c (lto_output_node): Output section.
15516 (lto_output_varpool_node): Likewise.
15517 (read_comdat_group): Rename to ...
15518 (read_identifier): ... this one.
15519 (read_string_cst): New function.
15520 (input_node, input_varpool_node): Input section names.
15521 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15522 (new_emutls_decl): Update.
15523 (secname_for_decl): Check section names only of static vars.
15524 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15525 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15526 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15527 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15528 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15529 * config/mcore/mcore.c (mcore_unique_section): Likewise.
15530 * config/mips/mips.c (mips16_build_function_stub): Likewise.
15531 * config/v850/v850.c (v850_insert_attributes): Likewise.
15532 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15534 (h8300_handle_tiny_data_attribute): Likewise.
15535 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15536 (bfin_handle_l2_attribute): Likewise.
15538 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15540 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15541 remove static initializer.
15543 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15545 * varasm.c (use_blocks_for_decl_p): Check symbol table
15546 instead of alias attribute.
15547 (place_block_symbol): Recurse on aliases.
15549 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15551 * ipa-visibility.c: Include varasm.h
15552 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15554 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15556 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15557 outputting aliases.
15559 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
15561 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15562 from test_insn into GGC space escape via SET_SRC.
15564 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
15566 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15567 call statement, if any.
15568 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15569 statements, if any. Tidy up.
15571 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15574 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15575 iterators, VSX_D that handles 64-bit types, and VSX_LE that
15576 handles swapping the two 64-bit double words on little endian
15577 systems. Include V1TImode and optionally TImode in VSX_LE so that
15578 these types are properly swapped. Change all of the insns and
15579 splits that do the 64-bit swaps to use VSX_LE.
15580 (vsx_le_perm_load_<mode>): Likewise.
15581 (vsx_le_perm_store_<mode>): Likewise.
15582 (splitters for little endian memory operations): Likewise.
15583 (vsx_xxpermdi2_le_<mode>): Likewise.
15584 (vsx_lxvd2x2_le_<mode>): Likewise.
15585 (vsx_stxvd2x2_le_<mode>): Likewise.
15587 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
15590 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15591 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15592 and corresponding splitters. Zero extend general register
15593 or memory input operand to XMM temporary. Enable for
15594 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15595 (floatunssi<mode>2): Update expander predicate.
15597 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
15599 PR rtl-optimization/61325
15600 * lra-constraints.c (process_address_1): Check scale equal to one
15601 to prevent transformation: base + scale * index => base + new_reg.
15603 2014-06-06 Richard Biener <rguenther@suse.de>
15605 PR tree-optimization/59299
15606 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15608 (nearest_common_dominator_of_uses): Likewise.
15609 (statement_sink_location): Adjust. Support sinking loads.
15611 2014-06-06 Martin Jambor <mjambor@suse.cz>
15613 * ipa-prop.c (get_place_in_agg_contents_list): New function.
15614 (build_agg_jump_func_from_list): Likewise.
15615 (determine_known_aggregate_parts): Renamed to
15616 determine_locally_known_aggregate_parts. Moved some functionality
15617 to the two functions above, removed bound checks.
15619 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
15621 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15622 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15623 (aarch64_progress_pointer): Likewise.
15624 (aarch64_copy_one_part_and_move_pointers): Likewise.
15625 (aarch64_expand_movmen): Likewise.
15626 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15627 * config/aarch64/aarch64.md (movmem<mode>): New.
15629 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
15631 * targhooks.c (default_add_stmt_cost): Call target specific
15632 hook instead of default one.
15634 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
15636 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15637 endianness instead of host endianness.
15638 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15641 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15644 * function.c (instantiate_decls): Process the saved static chain.
15645 (expand_function_start): If not optimizing, save the static chain
15647 * tree-nested.c (convert_all_function_calls): Always create the static
15648 chain for nested functions if not optimizing.
15650 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15652 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15654 2014-06-06 Richard Biener <rguenther@suse.de>
15656 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15657 (construct_init_block): Likewise.
15658 (construct_exit_block): Likewise.
15659 (pass_expand::execute): Likewise.
15660 * graphite.c (graphite_transforms): Replace check for current_loops
15661 with a check for > 1 loops.
15662 (pass_graphite_transforms::execute): Adjust.
15663 * ipa-split.c (split_function): Remove check for current_loops.
15664 * omp-low.c (expand_parallel_call): Likewise.
15665 (expand_omp_for_init_counts): Likewise.
15666 (extract_omp_for_update_vars): Likewise.
15667 (expand_omp_for_generic): Likewise.
15668 (expand_omp_sections): Likewise.
15669 (expand_omp_target): Likewise.
15670 * tracer.c (tail_duplicate): Likewise.
15671 (pass_tracer::execute): Likewise.
15672 * trans-mem.c (expand_transaction): Likewise.
15673 * tree-complex.c (expand_complex_div_wide): Likewise.
15674 * tree-eh.c (lower_resx): Likewise.
15675 (cleanup_empty_eh_merge_phis): Likewise.
15676 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15677 current_loops with a check for > 1 loops.
15678 (pass_predcom::execute): Adjust.
15679 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15680 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15681 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15682 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15683 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15684 * tree-switch-conversion.c (process_switch): Likewise.
15685 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15686 * tree-vrp.c (vrp_visit_phi_node): Likewise.
15687 (execute_vrp): Likewise.
15688 * ubsan.c (ubsan_expand_null_ifn): Likewise.
15690 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15692 * rtl.h (insn_location): Declare.
15693 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15694 with UNKNOWN_LOCATION.
15695 * emit-rtl.c (insn_location): New function.
15696 * final.c (notice_source_line): Check that the instruction has a
15697 location before retrieving it and use insn_location.
15698 * modulo-sched.c (loop_single_full_bb_p): Likewise.
15699 * print-rtl.c (print_rtx): Likewise.
15701 2014-06-06 Richard Biener <rguenther@suse.de>
15703 * passes.def: Move 2nd VRP pass before phi-only-cprop.
15705 2014-06-06 Christian Bruel <christian.bruel@st.com>
15707 PR tree-optimization/43934
15708 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15711 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
15713 * ira-lives.c (single_reg_class): Add missing break. Explicitly
15714 return NO_REGS for extra address and memory constraints. Handle
15715 operands that match (or are equivalent to something that matches)
15716 extra constant constraints. Ignore other non-register operands.
15718 2014-06-06 Alan Modra <amodra@gmail.com>
15721 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15722 * doc/tm.texi: Regenerate.
15723 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15724 Use throughout in place of REG_PARM_STACK_SPACE.
15725 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15726 "incoming" param. Pass to rs6000_function_parms_need_stack.
15727 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15728 prototype_p when incoming. Use function decl when incoming
15729 to handle K&R style functions.
15730 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15731 (INCOMING_REG_PARM_STACK_SPACE): Define.
15733 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15736 * cfgexpand.c (expand_debug_expr): Use address space of nested
15737 TREE_TYPE for ADDR_EXPR and MEM_REF.
15739 2014-06-05 Jeff Law <law@redhat.com>
15741 PR tree-optimization/61289
15742 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15743 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
15744 looking for those which match LHS. All callers changed.
15745 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15746 parameters and code which manipulated them. All callers changed.
15747 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15748 and DST_MAP parameters. Simplify invalidation code by just calling
15749 invalidate_equivalences. All callers changed.
15750 (thread_across_edge): Simplify now that we don't need to maintain
15751 the map of equivalences to invalidate.
15753 2014-06-05 Kai Tietz <ktietz@redhat.com>
15754 Richard Henderson <rth@redhat.com>
15757 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15758 checking for !TARGET_X32.
15759 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15760 (sibcall_intern): New define_insn, plus required peepholes.
15761 (sibcall_pop_intern): Likewise.
15762 (sibcall_value_intern): Likewise.
15763 (sibcall_value_pop_intern): Likewise.
15765 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
15767 * tree-inline.c (tree_function_versioning): Check DF info existence
15768 before accessing it.
15770 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15772 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15774 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15775 aarch64_frame hard_fp_offset and frame_size.
15776 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15777 frame_size; remove original_frame_size.
15778 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15779 (aarch64_initial_elimination_offset): Remove frame_size and
15780 offset. Use aarch64_frame frame_size.
15782 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15783 Jiong Wang <jiong.wang@arm.com>
15784 Renlin <renlin.li@arm.com>
15786 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15787 initialization of R30 offset. Update offset. Iterate core
15788 regisers upto X30. Remove X29, X30 specific code.
15790 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15791 Jiong Wang <jiong.wang@arm.com>
15793 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15794 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15795 (aarch64_register_saved_on_entry): Adjust test.
15797 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15799 * config/aarch64/aarch64.h (machine_function): Move
15800 saved_varargs_size from here...
15801 (aarch64_frame): ... to here.
15803 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15804 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15805 (aarch64_initial_elimination_offset)
15806 (aarch64_setup_incoming_varargs): Adjust location of
15807 saved_varargs_size.
15809 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15811 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15814 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
15815 Prachi Godbole <Prachi.Godbole@imgtec.com>
15817 * config/mips/mips-cpus.def: Add definition for p5600. Updated
15818 mips32r5 entry to use PROCESSOR_P5600.
15819 * config/mips/mips-tables.opt: Regenerate.
15820 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15821 * config/mips/mips.c (mips_fmadd_bypass): New function.
15822 (mips_rtx_cost_data): Add costs for p5600.
15823 (mips_issue_rate): Add support for p5600.
15824 (mips_multipass_dfa_lookahead): Likewise.
15825 * config/mips/mips.h (TUNE_P5600): New define.
15826 (TUNE_MACC_CHAINS): Add TUNE_P5600.
15827 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15828 * config/mips/mips.md: Include p5600.md.
15829 (processor): Add p5600.
15830 * config/mips/p5600.md: New file.
15832 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
15834 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15835 * config/i386/predicates.md (palignr_operand): New.
15836 Indicates if permutation is suitable for palignr instruction.
15838 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
15840 PR tree-optimization/61319
15841 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15842 stmt belongs to loop.
15844 2014-06-05 Richard Biener <rguenther@suse.de>
15846 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
15847 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
15848 (lookup_tmp_var): Adjust.
15849 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
15851 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15853 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
15855 2014-06-05 Marek Polacek <polacek@redhat.com>
15858 * doc/invoke.texi: Document -Wlogical-not-parentheses.
15860 2014-06-04 Tom de Vries <tom@codesourcery.com>
15862 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
15865 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
15867 PR tree-optimization/61385
15868 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
15870 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
15872 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
15873 changed to use fatal_error.
15874 (main): Ensure lto_wrapper_cleanup is run atexit.
15876 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15878 * lra-constraints.c (valid_address_p): Move earlier in file.
15879 (address_eliminator): New structure.
15880 (satisfies_memory_constraint_p): New function.
15881 (satisfies_address_constraint_p): Likewise.
15882 (process_alt_operands, process_address, curr_insn_transform): Use them.
15884 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15886 * lra-int.h (lra_static_insn_data): Make operand_alternative a
15888 (target_lra_int, default_target_lra_int, this_target_lra_int)
15889 (op_alt_data): Delete.
15890 * lra.h (lra_init): Delete.
15891 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
15892 (init_insn_code_data_once): Remove op_alt_data handling.
15893 (finish_insn_code_data_once): Likewise.
15894 (init_op_alt_data): Delete.
15895 (get_static_insn_data): Initialize operand_alternative to null.
15896 (free_insn_recog_data): Cast operand_alternative before freeing it.
15897 (setup_operand_alternative): Take the operand_alternative as
15898 parameter and assume it isn't already cached in the static
15900 (lra_set_insn_recog_data): Update accordingly.
15901 (lra_init): Delete.
15902 * ira.c (ira_init): Don't call lra_init.
15903 * target-globals.h (this_target_lra_int): Declare.
15904 (target_globals): Remove lra_int.
15905 (restore_target_globals): Update accordingly.
15906 * target-globals.c: Don't include lra-int.h.
15907 (default_target_globals, save_target_globals): Remove lra_int.
15909 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15911 * recog.h (operand_alternative): Convert reg_class, reject,
15912 matched and matches into bitfields.
15913 (preprocess_constraints): New overload.
15914 (preprocess_insn_constraints): New function.
15915 (preprocess_constraints): Take the insn as parameter.
15916 (recog_op_alt): Change into a pointer.
15917 (target_recog): Add x_op_alt.
15918 * recog.c (asm_op_alt): New variable.
15919 (recog_op_alt): Change into a pointer.
15920 (preprocess_constraints): New overload, replacing the old function
15921 definition with one that doesn't use global state.
15922 (preprocess_insn_constraints): New function.
15923 (preprocess_constraints): Use them. Take the insn as parameter.
15924 Use asm_op_alt for asms.
15925 (recog_init): Free existing x_op_alt entries.
15926 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
15928 (make_early_clobber_and_input_conflicts): Likewise.
15929 (process_bb_node_lives): Pass the insn to process_constraints.
15930 * reg-stack.c (check_asm_stack_operands): Likewise.
15931 (subst_asm_stack_regs): Likewise.
15932 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15933 * regrename.c (build_def_use): Likewise.
15934 * sched-deps.c (sched_analyze_insn): Likewise.
15935 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
15936 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15937 (note_invalid_constants): Likewise.
15938 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15939 (ix86_legitimate_combined_insn): Make operand_alternative pointer
15942 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15944 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
15945 * ira-lives.c (check_and_make_def_conflict): Check for disabled
15947 (make_early_clobber_and_input_conflicts): Likewise.
15948 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15950 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15952 * recog.h (alternative_class): New function.
15953 (which_op_alt): Return a const recog_op_alt.
15954 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
15955 (subst_asm_stack_regs): Likewise.
15956 * config/arm/arm.c (note_invalid_constants): Likewise.
15957 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
15958 the operand_alternative; use alternative class instead.
15959 * sel-sched.c (get_reg_class): Likewise.
15960 * regrename.c (build_def_use): Likewise.
15961 (hide_operands, restore_operands, record_out_operands): Update type
15964 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15966 * recog.h (recog_op_alt): Convert to a flat array.
15967 (which_op_alt): New function.
15968 * recog.c (recog_op_alt): Convert to a flat array.
15969 (preprocess_constraints): Update accordingly, grouping all
15970 operands of the same alternative together, rather than the
15972 * ira-lives.c (check_and_make_def_conflict): Likewise.
15973 (make_early_clobber_and_input_conflicts): Likewise.
15974 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15975 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
15976 (subst_asm_stack_regs): Likewise.
15977 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15978 * regrename.c (hide_operands, record_out_operands): Likewise.
15979 (build_def_use): Likewise.
15980 * sel-sched.c (get_reg_class): Likewise.
15981 * config/arm/arm.c (note_invalid_constants): Likewise.
15983 2014-06-04 Jason Merrill <jason@redhat.com>
15987 * gimplify.c (gimplify_arg): Non-static.
15988 * gimplify.h: Declare it.
15990 2014-06-04 Richard Biener <rguenther@suse.de>
15992 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15993 TREE_PUBLIC and DECL_EXTERNAL decls.
15995 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
15997 * regcprop.c (copyprop_hardreg_forward_1): Account for
15998 HARD_REGNO_CALL_PART_CLOBBERED.
16000 2014-06-04 Richard Biener <rguenther@suse.de>
16002 * configure.ac: Check whether the underlying type of int64_t
16003 is long or long long.
16004 * configure: Regenerate.
16005 * config.in: Likewise.
16006 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16007 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16009 2014-06-04 Richard Biener <rguenther@suse.de>
16011 PR tree-optimization/60098
16012 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16014 (dse_optimize_stmt): Simplify, now that we found a kill
16017 2014-06-04 Richard Biener <rguenther@suse.de>
16019 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16020 of accesses with non-invariant address.
16022 2014-06-04 Martin Liska <mliska@suse.cz>
16024 * cgraph.h (cgraph_make_wrapper): New function introduced.
16025 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16026 * ipa-inline.h (inline_analyze_function): The function is global.
16027 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16029 2014-06-04 Martin Liska <mliska@suse.cz>
16031 * tree.h (private_lookup_attribute_starting): New function.
16032 (lookup_attribute_starting): Likewise.
16033 * tree.c (private_lookup_attribute_starting): Likewise.
16035 2014-06-04 Martin Liska <mliska@suse.cz>
16037 * cgraph.h (expand_thunk): New argument added.
16038 (address_taken_from_non_vtable_p): New global function.
16039 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16040 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16041 * cgraphunit.c (analyze_function): Likewise.
16042 (assemble_thunks_and_aliases): Argument added to call.
16043 (expand_thunk): New argument forces to produce GIMPLE thunk.
16045 2014-06-04 Martin Liska <mliska@suse.cz>
16047 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16048 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16049 * profile.c (branch_prob): Likewise.
16051 2014-06-04 Martin Jambor <mjambor@suse.cz>
16054 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16055 handler for switch on an ipa_ref_use enum.
16056 * ipa-reference.c (analyze_function): Likewise.
16058 2014-06-04 Kai Tietz <ktietz@redhat.com>
16060 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16061 from old call-instruction.
16063 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16065 * config/aarch64/aarch64.c (aarch64_classify_address)
16066 (aarch64_legitimize_reload_address): Support full addressing modes
16068 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16069 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16071 2014-06-03 Andrew Pinski <apinski@cavium.com>
16073 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16076 2014-06-03 Andrew Pinski <apinski@cavium.com>
16078 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16079 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16081 2014-06-03 Kai Tietz <ktietz@redhat.com>
16083 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16086 2014-06-03 Dehao Chen <dehao@google.com>
16088 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16091 2014-06-03 Marek Polacek <polacek@redhat.com>
16094 * doc/invoke.texi: Document -Wswitch-bool.
16095 * function.c (stack_protect_epilogue): Cast controlling expression of
16097 * gengtype.c (walk_type): Generate switch expression with its
16098 controlling expression cast to int.
16100 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16102 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16104 * config/avr/avr-tables.opt: Regenerate.
16105 * config/avr/t-multilib: Regenerate.
16106 * doc/avr-mmcu.texi: Regenerate.
16108 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16109 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16111 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16112 (ata6617c, ata664251): Add new avr35 devices.
16113 (ata6612c): Add new avr4 device.
16114 (ata6613c, ata6614q): Add new avr5 devices.
16115 * config/avr/avr-tables.opt: Regenerate.
16116 * config/avr/t-multilib: Regenerate.
16117 * doc/avr-mmcu.texi: Regenerate.
16119 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16121 * gcc/config/aarch64/aarch64-builtins.c
16122 (aarch64_types_binop_ssu_qualifiers): New static data.
16123 (TYPES_BINOP_SSU): Define.
16124 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16125 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16126 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16127 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16128 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16129 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16130 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16131 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16132 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16133 suffix to builtin function name, remove cast.
16134 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16135 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16136 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16138 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16140 * gcc/config/aarch64/aarch64-builtins.c
16141 (aarch64_types_binop_uus_qualifiers,
16142 aarch64_types_shift_to_unsigned_qualifiers,
16143 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16144 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16145 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16146 sqshlu_n, uqshl_n): Update qualifiers.
16147 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16148 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16149 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16150 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16151 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16152 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16153 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16154 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16155 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16156 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16157 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16158 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16159 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16160 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16161 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16162 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16163 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16164 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16165 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16166 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16167 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16168 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16169 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16170 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16171 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16172 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16173 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16175 2014-06-03 Teresa Johnson <tejohnson@google.com>
16177 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16179 2014-06-02 Jason Merrill <jason@redhat.com>
16182 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16184 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16186 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16189 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16191 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16193 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16194 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16195 * config/aarch64/iterators.md (REVERSE): New iterator.
16196 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16197 (rev_op): New int_attribute.
16198 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16199 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16200 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16201 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16202 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16203 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16204 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16205 Replace temporary __asm__ with __builtin_shuffle.
16207 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16209 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
16211 * config/mips/mips-tables.opt: Regenerate.
16212 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
16213 to use mips_isa_rev rather than ISA_MIPS32R2.
16214 * config/mips/mips.h (ISA_MIPS32R3): New define.
16215 (ISA_MIPS32R5): New define.
16216 (ISA_MIPS64R3): New define.
16217 (ISA_MIPS64R5): New define.
16218 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
16219 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
16220 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
16222 (MIPS_ISA_SYNCI_SPEC): Likewise.
16223 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
16224 (LINK_SPEC): Added mips32r3 and mips32r5.
16225 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
16226 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
16227 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
16228 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
16229 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
16230 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
16231 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
16233 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16235 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
16237 * config/mips/mips.opt (mxpa): New option.
16238 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
16241 2014-06-03 Martin Jambor <mjambor@suse.cz>
16244 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
16247 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
16249 PR tree-optimization/61328
16250 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
16251 initialization from find_bswap_or_nop_1.
16252 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
16253 in source_expr2 before using the size value the function sets. Also
16254 make use of init_symbolic_number () in both the old place and
16255 find_bswap_or_nop_load () to avoid reading uninitialized memory when
16256 doing recursion in the GIMPLE_BINARY_RHS case.
16258 2014-06-03 Richard Biener <rguenther@suse.de>
16260 PR tree-optimization/61383
16261 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
16264 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
16266 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
16267 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
16268 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
16269 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
16271 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16272 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
16273 * system.h: ...here and make it unconditional.
16274 * target.def (conditional_register_usage): Mention
16275 define_register_constraint instead of old-style constraint macros.
16276 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
16277 * doc/tm.texi: Regenerate.
16278 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
16279 protected by !USE_MD_CONSTRAINTS.
16280 * config/frv/frv.md: Remove quote from old version of documentation.
16281 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
16282 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
16283 CONST_DOUBLE_OK_FOR_LETTER.
16284 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
16286 2014-06-02 Andrew Pinski <apinski@cavium.com>
16288 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
16289 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
16290 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
16291 file whose name depends on -mabi= and -mbig-endian.
16292 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
16293 Handle LP64 better and handle ilp32 too.
16294 (MULTILIB_OPTIONS): Delete.
16295 (MULTILIB_DIRNAMES): Delete.
16297 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
16299 * expr.h: Remove prototypes of functions defined in builtins.c.
16300 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
16301 Remove prototypes of functions defined in builtins.c.
16302 * builtins.h: Update prototype list to include all exported functions.
16303 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
16304 no_c99_libc_has_function): Move to targhooks.c
16305 (build_string_literal, build_call_expr_loc_array,
16306 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
16308 (expand_builtin_object_size, fold_builtin_object_size): Make static.
16309 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
16310 no_c99_libc_has_function): Relocate from builtins.c.
16311 * tree.c: Include builtins.h.
16312 (build_call_expr_loc_array, build_call_expr_loc_vec,
16313 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
16315 * fold-const.h (fold_fma): Move prototype to builtins.h.
16316 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
16317 * asan.c: Include builtins.h.
16318 * cfgexpand.c: Likewise.
16319 * convert.c: Likewise.
16320 * emit-rtl.c: Likewise.
16321 * except.c: Likewise.
16322 * expr.c: Likewise.
16323 * fold-const.c: Likewise.
16324 * gimple-fold.c: Likewise.
16325 * gimple-ssa-strength-reduction.c: Likewise.
16326 * gimplify.c: Likewise.
16327 * ipa-inline.c: Likewise.
16328 * ipa-prop.c: Likewise.
16329 * lto-streamer-out.c: Likewise.
16330 * stmt.c: Likewise.
16331 * tree-inline.c: Likewise.
16332 * tree-object-size.c: Likewise.
16333 * tree-sra.c: Likewise.
16334 * tree-ssa-ccp.c: Likewise.
16335 * tree-ssa-forwprop.c: Likewise.
16336 * tree-ssa-loop-ivcanon.c: Likewise.
16337 * tree-ssa-loop-ivopts.c: Likewise.
16338 * tree-ssa-math-opts.c: Likewise.
16339 * tree-ssa-reassoc.c: Likewise.
16340 * tree-ssa-threadedge.c: Likewise.
16341 * tree-streamer-in.c: Likewise.
16342 * tree-vect-data-refs.c: Likewise.
16343 * tree-vect-patterns.c: Likewise.
16344 * tree-vect-stmts.c: Likewise.
16345 * config/aarch64/aarch64.c: Likewise.
16346 * config/alpha/alpha.c: Likewise.
16347 * config/arc/arc.c: Likewise.
16348 * config/arm/arm.c: Likewise.
16349 * config/avr/avr.c: Likewise.
16350 * config/bfin/bfin.c: Likewise.
16351 * config/c6x/c6x.c: Likewise.
16352 * config/cr16/cr16.c: Likewise.
16353 * config/cris/cris.c: Likewise.
16354 * config/epiphany/epiphany.c: Likewise.
16355 * config/fr30/fr30.c: Likewise.
16356 * config/frv/frv.c: Likewise.
16357 * config/h8300/h8300.c: Likewise.
16358 * config/i386/i386.c: Likewise.
16359 * config/i386/winnt.c: Likewise.
16360 * config/ia64/ia64.c: Likewise.
16361 * config/iq2000/iq2000.c: Likewise.
16362 * config/lm32/lm32.c: Likewise.
16363 * config/m32c/m32c.c: Likewise.
16364 * config/m32r/m32r.c: Likewise.
16365 * config/m68k/m68k.c: Likewise.
16366 * config/mcore/mcore.c: Likewise.
16367 * config/mep/mep.c: Likewise.
16368 * config/microblaze/microblaze.c: Likewise.
16369 * config/mips/mips.c: Likewise.
16370 * config/mmix/mmix.c: Likewise.
16371 * config/mn10300/mn10300.c: Likewise.
16372 * config/moxie/moxie.c: Likewise.
16373 * config/msp430/msp430.c: Likewise.
16374 * config/nds32/nds32.c: Likewise.
16375 * config/pa/pa.c: Likewise.
16376 * config/pdp11/pdp11.c: Likewise.
16377 * config/picochip/picochip.c: Likewise.
16378 * config/rl78/rl78.c: Likewise.
16379 * config/rs6000/rs6000.c: Likewise.
16380 * config/rx/rx.c: Likewise.
16381 * config/s390/s390.c: Likewise.
16382 * config/score/score.c: Likewise.
16383 * config/sh/sh.c: Likewise.
16384 * config/sparc/sparc.c: Likewise.
16385 * config/spu/spu.c: Likewise.
16386 * config/stormy16/stormy16.c: Likewise.
16387 * config/tilegx/tilegx.c: Likewise.
16388 * config/tilepro/tilepro.c: Likewise.
16389 * config/v850/v850.c: Likewise.
16390 * config/vax/vax.c: Likewise.
16391 * config/xtensa/xtensa.c: Likewise.
16393 2014-06-02 Jeff Law <law@redhat.com>
16395 PR rtl-optimization/61094
16396 * ree.c (combine_reaching_defs): Do not reextend an insn if it
16397 was marked as do_no_reextend. If a copy is needed to eliminate
16398 an extension, then mark it as do_not_reextend.
16400 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
16402 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
16404 2014-06-02 Richard Henderson <rth@redhat.com>
16407 * config/alpha/alpha.c (print_operand_address): Allow symbolic
16408 addresses inside asms. Use output_operand_lossage instead of
16411 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
16414 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
16415 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
16417 2014-06-02 Tom de Vries <tom@codesourcery.com>
16419 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
16420 case that x has VOIDmode.
16422 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
16424 * varasm.c (copy_constant): Delete function.
16425 (build_constant_desc): Don't call it.
16427 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16430 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
16431 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
16432 with immediate_operand.
16434 2014-06-02 Andreas Schwab <schwab@suse.de>
16436 * config/ia64/ia64.c
16437 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
16438 pending_data_specs first.
16440 2014-06-02 Richard Biener <rguenther@suse.de>
16442 PR tree-optimization/61378
16443 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
16444 valueized_anything.
16446 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
16448 * config/i386/constraints.md (Bw): Rename from 'w'.
16449 (Bz): Rename from 'z'.
16450 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
16452 2014-06-01 Kai Tietz <ktietz@redhat.com>
16455 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
16456 * config/i386/i386.md (sibcall_insn_operand): Use Bs
16457 instead of m constraint.
16459 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
16461 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
16462 a separate alternative where the scratch operand 2 is marked as
16465 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16467 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16468 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
16469 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
16470 and __builtins_arm_get_fpscr.
16471 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16472 __builtins_arm_get_fpscr.
16473 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
16474 __builtins_arm_ldfpscr.
16475 (arm_atomic_assign_expand_fenv): New function.
16476 * config/arm/vfp.md (set_fpscr): New pattern.
16477 (get_fpscr) : Likewise.
16478 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
16480 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16481 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
16483 2014-05-30 Jakub Jelinek <jakub@redhat.com>
16485 * asan.c (report_error_func): Add SLOW_P argument, use
16486 BUILT_IN_ASAN_*_N if set.
16487 (build_check_stmt): Likewise.
16488 (instrument_derefs): If T has insufficient alignment,
16489 force same handling as for odd sizes.
16491 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16492 BUILT_IN_ASAN_REPORT_STORE_N): New.
16493 * asan.c (struct asan_mem_ref): Change access_size type to
16495 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16496 update_mem_ref_hash_table): Likewise.
16497 (asan_mem_ref_hasher::hash): Hash in a HWI.
16498 (report_error_func): Change size_in_bytes argument to HWI.
16499 Use *_N builtins if size_in_bytes is larger than 16 or not power of
16501 (build_shadow_mem_access): New function.
16502 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
16503 Handle size_in_bytes not power of two or larger than 16.
16504 (instrument_derefs): Don't give up if size_in_bytes is not
16505 power of two or is larger than 16.
16507 2014-05-30 Kai Tietz <ktietz@redhat.com>
16510 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16511 for sibling-tail-calls.
16512 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16514 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16515 (sibcall_insn_operand): Add check for sibcall_memory_operand.
16517 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16519 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16520 * config/avr/avr-tables.opt: Regenerate.
16521 * config/avr/t-multilib: Regenerate.
16522 * doc/avr-mmcu.texi: Regenerate.
16524 2014-05-30 Ian Lance Taylor <iant@google.com>
16526 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16529 2014-05-30 Tom de Vries <tom@codesourcery.com>
16531 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16534 2014-05-30 Tom de Vries <tom@codesourcery.com>
16536 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16537 * lra.c (initialize_lra_reg_info_element): Add init of
16538 actual_call_used_reg_set field.
16539 (lra): Call lra_create_live_ranges before lra_inheritance for
16541 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16543 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16544 instead of call_used_reg_set for -fuse-caller-save.
16545 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16547 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16549 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16551 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16553 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16555 * ira.c (ira_get_dup_out_num): Check for output operands at
16556 the start of the loop. Handle cases where an included alternative
16557 follows an excluded one.
16559 2014-05-29 Mike Stump <mikestump@comcast.net>
16562 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16563 post ld passes when lto is used.
16565 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
16567 PR rtl-optimization/61325
16568 * lra-constraints.c (process_address): Rename to process_address_1.
16569 (process_address): New function.
16571 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
16573 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16574 TYPES_BINOPV): New static data.
16575 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16577 * config/aarch64/aarch64-simd.md (aarch64_ext,
16578 aarch64_im_lane_boundsi): New patterns.
16579 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16581 (aarch64_evpc_ext): New function.
16583 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16585 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16586 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16587 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16588 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16589 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16591 2014-05-29 Tom de Vries <tom@codesourcery.com>
16593 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16595 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
16596 Richard Sandiford <rdsandiford@googlemail.com>
16598 * arm/iterators.md (shiftable_ops): New code iterator.
16599 (t2_binop0, arith_shift_insn): New code attributes.
16600 * arm/predicates.md (shift_nomul_operator): New predicate.
16601 * arm/arm.md (insn_enabled): Delete.
16602 (enabled): Remove insn_enabled test.
16603 (*arith_shiftsi): Delete. Replace with ...
16604 (*<arith_shift_insn>_multsi): ... new pattern.
16605 (*<arith_shift_insn>_shiftsi): ... new pattern.
16606 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16608 2014-05-29 Radovan Obradovic <robradovic@mips.com>
16609 Tom de Vries <tom@codesourcery.com>
16611 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16612 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16614 (mips_split_call): Use POST_CALL_TMP_REG.
16615 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16617 2014-05-29 Tom de Vries <tom@codesourcery.com>
16619 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16620 with #ifdef STACK_REGS.
16622 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
16624 * varasm.c (get_variable_section): Walk aliases.
16625 (place_block_symbol): Walk aliases.
16627 2014-05-28 Tom de Vries <tom@codesourcery.com>
16630 2014-05-28 Tom de Vries <tom@codesourcery.com>
16632 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16633 * lra.c (initialize_lra_reg_info_element): Add init of
16634 actual_call_used_reg_set field.
16635 (lra): Call lra_create_live_ranges before lra_inheritance for
16637 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16639 * lra-constraints.c (need_for_call_save_p): Use
16640 actual_call_used_reg_set instead of call_used_reg_set for
16642 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16644 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16646 * doc/md.texi: Document that the % constraint character must
16647 be at the beginning of the string.
16648 * genoutput.c (validate_insn_alternatives): Check that '=',
16649 '+' and '%' only appear at the beginning of a constraint.
16650 * ira.c (commutative_constraint_p): Delete.
16651 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16652 at the start of the string.
16653 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16655 * config/arm/neon.md (bicdi3_neon): Likewise.
16656 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16657 (slt_si, sltu_si): Likewise.
16658 * config/vax/vax.md (sbcdi3): Likewise.
16659 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16660 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16661 (mul64): Move '%' to beginning of constraint.
16662 * config/arm/arm.md (*xordi3_insn): Likewise.
16663 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16664 (xorsi3): Likewise.
16666 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16668 * doc/md.texi: Document the restrictions on the "enabled" attribute.
16670 2014-05-28 Jason Merrill <jason@redhat.com>
16673 * cgraph.h (symtab_node::get_comdat_group_id): New.
16674 * cgraphunit.c (analyze_functions): Call it.
16675 * symtab.c (dump_symtab_node): Likewise.
16676 * tree.c (decl_comdat_group_id): New.
16677 * tree.h: Declare it.
16678 * lto-streamer-out.c (write_symbol): Use it.
16679 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16681 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16683 PR bootstrap/PR61146
16684 * wide-int.cc: Do not include longlong.h when compiling with clang.
16686 2014-05-28 Richard Biener <rguenther@suse.de>
16688 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16689 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16690 (vrp_visit_assignment_or_call): Print less vertical space.
16691 (vrp_visit_stmt): Likewise.
16692 (vrp_visit_phi_node): Likewise. For a PHI argument with
16693 VR_VARYING range consider recording it as copy.
16695 2014-05-28 Richard Biener <rguenther@suse.de>
16698 2014-05-28 Richard Biener <rguenther@suse.de>
16700 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16702 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16704 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16705 sufficiently aligned and an offset is used at the same time.
16706 (expand_expr_real_1): Likewise.
16708 2014-05-28 Richard Biener <rguenther@suse.de>
16710 PR middle-end/61045
16711 * fold-const.c (fold_comparison): When folding
16712 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16713 the sign of the remaining constant operand stays the same.
16715 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
16717 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16718 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16719 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16721 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16722 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16723 (m32bit-doubles) Likewise.
16724 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16725 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16728 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16730 * configure.ac ($gcc_cv_ld_clearcap): New test.
16731 * configure: Regenerate.
16732 * config.in: Regenerate.
16733 * config/sol2.opt (mclear-hwcap): New option.
16734 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16735 * config/sol2-clearcap.map: Moved here from
16736 testsuite/gcc.target/i386/clearcap.map.
16737 * config/sol2-clearcapv2.map: Move here from
16738 gcc.target/i386/clearcapv2.map.
16739 * config/t-sol2 (install): Depend on install-clearcap-map.
16740 (install-clearcap-map): New target.
16741 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16744 2014-05-28 Richard Biener <rguenther@suse.de>
16746 * hwint.h (*_HALF_WIDE_INT*): Move to ...
16747 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16748 ... here and remove the rest.
16749 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16751 2014-05-28 Richard Biener <rguenther@suse.de>
16753 PR tree-optimization/61335
16754 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16755 new range fails, drop to varying.
16757 2014-05-28 Olivier Hainque <hainque@adacore.com>
16759 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16760 (CPP_SPEC): Add entry for -mcpu=8548.
16761 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16762 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16764 2014-05-28 Tom de Vries <tom@codesourcery.com>
16766 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16767 * lra.c (initialize_lra_reg_info_element): Add init of
16768 actual_call_used_reg_set field.
16769 (lra): Call lra_create_live_ranges before lra_inheritance for
16771 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16773 * lra-constraints.c (need_for_call_save_p): Use
16774 actual_call_used_reg_set instead of call_used_reg_set for
16776 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16778 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16779 Tom de Vries <tom@codesourcery.com>
16781 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16783 (@item -fuse-caller-save): New item.
16785 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16786 Tom de Vries <tom@codesourcery.com>
16788 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16789 OPT_fuse_caller_save.
16791 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16792 Tom de Vries <tom@codesourcery.com>
16794 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16795 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16796 get_call_reg_set_usage.
16797 * resource.c (mark_set_resources, mark_target_live_regs): Use
16798 get_call_reg_set_usage.
16799 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16801 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16802 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16803 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16804 * ira-build.c (ira_create_allocno): Init
16805 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16806 (create_cap_allocno, propagate_allocno_info)
16807 (propagate_some_info_from_allocno)
16808 (copy_info_to_removed_store_destinations): Handle
16809 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16810 * ira-costs.c (ira_tune_allocno_costs): Use
16811 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16813 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16814 Tom de Vries <tom@codesourcery.com>
16816 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16817 and function_used_regs_valid fields.
16818 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16819 find_all_hard_reg_sets.
16820 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16821 (get_call_reg_set_usage): New function.
16822 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16823 * regs.h (get_call_reg_set_usage): Declare.
16825 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16828 * config/dbx.h (License): Add Runtime Library Exception.
16829 * config/newlib-stdint.h (License): Same.
16830 * config/rtems.h (License): Same
16831 * config/initfini-array.h (License): Same
16832 * config/v850/v850.h (License): Same.
16833 * config/v850/v850-opts.h (License): Same
16834 * config/v850/rtems.h (License): Same.
16836 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16839 * doc/extend.texi (Local Labels): Note that label differences are
16840 not supported for AVR.
16842 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16843 Olivier Hainque <hainque@adacore.com>
16845 * rtl.h (set_for_reg_notes): Declare.
16846 * emit-rtl.c (set_for_reg_notes): New function.
16847 (set_unique_reg_note): Use it.
16848 * optabs.c (add_equal_note): Likewise
16850 2014-05-27 Andrew Pinski <apinski@cavium.com>
16852 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
16853 Use <w> for the register in assembly template.
16854 (stack_protect_test): Use the mode of operands[0] for the result.
16855 (stack_protect_test_<mode>): Use <w> for the register
16856 in assembly template.
16858 2014-05-27 DJ Delorie <dj@redhat.com>
16860 * config/rx/rx.c (add_vector_labels): New.
16861 (rx_output_function_prologue): Call it.
16862 (rx_handle_func_attribute): Don't require empty arguments.
16863 (rx_handle_vector_attribute): New.
16864 (rx_attribute_table): Add "vector" attribute.
16865 * doc/extend.texi (interrupt, vector): Document new/changed
16866 RX-specific attributes.
16868 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
16870 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
16872 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
16873 predicate to detect a negative quotient.
16875 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
16877 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
16878 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
16879 Add X - Y CMP 0 to X CMP Y transformation.
16880 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
16882 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
16884 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
16887 2014-05-27 Steve Ellcey <sellcey@mips.com>
16889 * config/mips/mips.c: Add include of cgraph.h.
16891 2014-05-27 Richard Biener <rguenther@suse.de>
16893 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
16895 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
16898 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
16899 * config/arm/arm-cores.def (License): Same.
16900 * config/arm/arm-opts.h (License): Same.
16901 * config/arm/aout.h (License): Same.
16902 * config/arm/bpabi.h (License): Same.
16903 * config/arm/elf.h (License): Same.
16904 * config/arm/linux-elf.h (License): Same.
16905 * config/arm/linux-gas.h (License): Same.
16906 * config/arm/netbsd-elf.h (License): Same.
16907 * config/arm/uclinux-eabi.h (License): Same.
16908 * config/arm/uclinux-elf.h (License): Same.
16909 * config/arm/vxworks.h (License): Same.
16911 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16913 * config/arm/neon.md (neon_bswap<mode>): New pattern.
16914 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
16915 (arm_init_neon_builtins): Handle NEON_BSWAP.
16916 Define required type nodes.
16917 (arm_expand_neon_builtin): Handle NEON_BSWAP.
16918 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
16919 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
16920 * config/arm/iterators.md (VDQHSD): New mode iterator.
16922 2014-05-27 Richard Biener <rguenther@suse.de>
16924 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16925 Try using literal operands when comparing value-ranges failed.
16927 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16929 * ira.c (commutative_operand): Adjust for change to recog_data.
16930 [Missing from previous commit.]
16932 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16934 * system.h (TEST_BIT): New macro.
16935 * recog.h (alternative_mask): New type.
16936 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
16937 (recog_data_d): Replace alternative_enabled_p array with
16938 enabled_alternatives.
16939 (target_recog): New structure.
16940 (default_target_recog, this_target_recog): Declare.
16941 (get_enabled_alternatives, recog_init): Likewise.
16942 * recog.c (default_target_recog, this_target_recog): New variables.
16943 (get_enabled_alternatives): New function.
16944 (extract_insn): Use it.
16945 (recog_init): New function.
16946 (preprocess_constraints, constrain_operands): Adjust for change to
16948 * postreload.c (reload_cse_simplify_operands): Likewise.
16949 * reload.c (find_reloads): Likewise.
16950 * ira-costs.c (record_reg_classes): Likewise.
16951 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
16952 all alternatives after a disabled one would be skipped.
16953 (ira_implicitly_set_insn_hard_regs): Likewise.
16954 * ira.c (ira_setup_alts): Adjust for change to recog_data.
16955 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
16956 with enabled_alternatives.
16957 * lra.c (free_insn_recog_data): Update accordingly.
16958 (lra_update_insn_recog_data): Likewise.
16959 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
16960 * lra-constraints.c (process_alt_operands): Likewise. Handle
16961 only_alternative as part of the enabled mask.
16962 * target-globals.h (this_target_recog): Declare.
16963 (target_globals): Add a recog field.
16964 (restore_target_globals): Restore this_target_recog.
16965 * target-globals.c: Include recog.h.
16966 (default_target_globals): Initialize recog field.
16967 (save_target_globals): Likewise.
16968 * reginfo.c (reinit_regs): Call recog_init.
16969 * toplev.c (backend_init_target): Likewise.
16971 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
16973 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
16974 rather than any named insn's code.
16976 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
16979 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
16980 * config/arm/arm-cores.def (License): Same.
16982 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
16984 * tree.h (decl_comdat_group): Declare.
16985 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
16986 * tree.c (decl_comdat_group): Here.
16988 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
16990 PR rtl-optimization/61222
16991 * combine.c (simplify_shift_const_1): When moving a PLUS outside
16992 the shift, truncate the PLUS operand to the result mode.
16994 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
16997 * config/i386/i386.c (ix86_rtx_costs)
16998 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17001 2014-05-26 Martin Jambor <mjambor@suse.cz>
17003 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17006 2014-05-26 Richard Biener <rguenther@suse.de>
17008 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17009 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17010 Provide specializations.
17011 (wi::int_traits <HOST_WIDE_INT>,
17012 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17014 2014-05-26 Alan Modra <amodra@gmail.com>
17017 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17018 params and return a bool. Remove dead code. Update comment.
17019 Assert we have a const_int source. Remove bogus code from
17020 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17021 handling of constants > 2G and reg_equal note, from..
17022 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17023 return value. Update comment. If we can, use a new pseudo
17024 for intermediate calculations.
17025 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17027 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17028 call to rs6000_emit_set_const in splitter.
17029 (movdi_internal64+2, +3): Likewise.
17031 2014-05-26 Richard Biener <rguenther@suse.de>
17033 * system.h: Define __STDC_FORMAT_MACROS before
17034 including inttypes.h.
17035 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17036 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17037 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17038 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17039 HOST_WIDEST_INT_C): Remove.
17040 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17041 if C99 inttypes.h is not available.
17042 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17043 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17044 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17045 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17046 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17047 (struct output_info): Likewise.
17048 (print_statistics): Adjust.
17049 (dump_bitmap_statistics): Likewise.
17050 * bt-load.c (migrate_btr_defs): Print with PRId64.
17051 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17052 (MAX_SAFE_MULTIPLIER): Adjust.
17053 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17054 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17055 dump_cgraph_node): Likewise.
17056 * final.c (dump_basic_block_info): Likewise.
17057 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17058 * gcov.c (format_gcov): Likewise.
17059 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17061 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17062 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17063 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17064 Use PRId64 for dumping.
17065 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17066 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17067 (add_allocno_hard_regs): Adjust.
17068 * loop-doloop.c (doloop_modify): Print using PRId64.
17069 * loop-iv.c (inverse): Compute in uint64_t.
17070 (determine_max_iter, iv_number_of_iterations): Likewise.
17071 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17072 Print using PRId64.
17073 * lto-streamer-out.c (write_symbol): Use uint64_t.
17074 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17075 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17076 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17077 * modulo-sched.c (const_iteration_count): Use int64_t.
17078 (sms_schedule): Dump using PRId64.
17079 * predict.c (dump_prediction): Likewise.
17080 * pretty-print.h (pp_widest_integer): Remove.
17081 * profile.c (get_working_sets, is_edge_inconsistent,
17082 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17083 * tree-pretty-print.c (pp_double_int): Remove case handling
17084 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17085 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17087 (pass_optimize_bswap::execute): Remove restriction on hosts.
17088 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17089 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17090 * tree.c (widest_int_cst_value): Remove.
17091 * tree.h (widest_int_cst_value): Likewise.
17092 * value-prof.c (dump_histogram_value): Print using PRId64.
17093 * gengtype.c (main): Also inject int64_t.
17094 * ggc-page.c (struct max_alignment): Use int64_t.
17095 * alloc-pool.c (struct allocation_object_def): Likewise.
17096 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17098 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17099 * doc/tm.texi: Regenerated.
17100 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17101 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17102 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17103 mmix_output_register_setting): Use [u]int64_t in prototypes.
17104 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17105 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17106 mmix_output_octa, mmix_output_shifted_value): Adjust.
17107 (mmix_intval): Adjust. Remove unreachable case.
17108 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17110 2014-05-26 Richard Biener <rguenther@suse.de>
17112 * configure.ac: Drop __int64 type check. Insist that we
17113 found uint64_t and int64_t.
17114 * hwint.h (HOST_BITS_PER___INT64): Remove.
17115 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17116 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17117 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17118 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17119 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17120 for dst_q_src_df_rms_cdt.
17121 * configure: Regenerate.
17122 * config.in: Likewise.
17124 2014-05-26 Michael Tautschnig <mt@debian.org>
17127 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17128 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17130 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17132 PR rtl-optimization/61278
17133 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17135 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17137 PR rtl-optimization/61220
17138 Part of PR rtl-optimization/61225
17139 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17140 insn; skip split_edge for a block with only one successor.
17142 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17144 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17147 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17149 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17150 (update_vtable_references): New function.
17151 (function_and_variable_visibility): Rewrite also vtable initializers.
17152 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17154 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17156 * ggc.h (ggc_grow): New function.
17157 * ggc-none.c (ggc_grow): New function.
17158 * ggc-page.c (ggc_grow): Likewise.
17160 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17162 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17163 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17164 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17165 varpool_externally_visible_p, can_replace_by_local_alias,
17166 update_visibility_by_resolution_info, function_and_variable_visibility,
17167 pass_data_ipa_function_and_variable_visibility,
17168 make_pass_ipa_function_and_variable_visibility,
17169 whole_program_function_and_variable_visibility,
17170 pass_data_ipa_whole_program_visibility,
17171 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17172 * cgraph.h (cgraph_local_node_p): Declare.
17173 * ipa-visibility.c: New file.
17174 * Makefile.in (OBJS): Add ipa-visiblity.o
17176 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17178 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17179 that var decl is available.
17181 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17183 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17184 symtab_node pointer.
17185 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17186 (find_decls_types_r): Do not walk COMDAT_GROUP.
17187 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17188 * varasm.c (make_decl_one_only): Use set_comdat_group;
17189 create node if needed.
17190 * ipa-inline-transform.c (save_inline_function_body): Update
17191 way we decl->symtab mapping.
17192 * symtab.c (symtab_hash, hash_node, eq_node
17193 symtab_insert_node_to_hashtable): Remove.
17194 (symtab_register_node): Update.
17195 (symtab_unregister_node): Update.
17196 (symtab_get_node): Reimplement as inline function.
17197 (symtab_add_to_same_comdat_group): Update.
17198 (symtab_dissolve_same_comdat_group_list): Update.
17199 (dump_symtab_base): Update.
17200 (verify_symtab_base): Update.
17201 (symtab_make_decl_local): Update.
17202 (fixup_same_cpp_alias_visibility): Update.
17203 (symtab_nonoverwritable_alias): Update.
17204 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17205 * ipa.c (update_visibility_by_resolution_info): UPdate.
17206 * bb-reorder.c: Include cgraph.h
17207 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
17208 with comdat groups.
17209 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
17210 * cgraph.c (cgraph_get_create_node): Update.
17211 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
17213 (symtab_get_node): Make inline.
17214 (symtab_insert_node_to_hashtable): Remove.
17215 (symtab_can_be_discarded): Update.
17216 (decl_comdat_group): New function.
17217 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
17219 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
17221 (read_comdat_group): New function.
17222 (input_node, input_varpool_node): Use it.
17223 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
17225 * mips.c (mips_start_unique_function): Likewise.
17226 (ix86_code_end): Likewise.
17227 (rs6000_code_end): Likweise.
17228 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
17230 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17232 * gengtype-state.c (fatal_reading_state): Bring offline.
17233 * optabs.c (widening_optab_handler): Bring offline.
17234 * optabs.h (widening_optab_handler): Likewise.
17235 * final.c (get_attr_length_1): Likewise.
17237 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17239 * sched-int.h (sd_iterator_cond): Manually tail recurse.
17241 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17243 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
17244 (ppc440-compare): Include shift with dot.
17245 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
17246 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
17248 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
17250 (e6500_sfx2): Include it.
17251 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
17252 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17253 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
17254 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
17255 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
17256 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
17257 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
17258 *lshiftrt_internal1le, *lshiftrt_internal1be,
17259 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
17260 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
17261 *rotldi3_internal10le, *rotldi3_internal10be,
17262 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
17263 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
17264 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
17265 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
17266 define_insns): Use type "shift" in the appropriate alternatives.
17268 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17270 * config/rs6000/rs6000.md (type): Add "logical". Delete
17272 (dot): Adjust comment.
17273 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
17274 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
17275 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
17276 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
17277 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
17278 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
17279 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
17280 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17282 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17283 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17284 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17285 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17286 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17287 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17288 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17289 * config/rs6000/8540.md (ppc8540_su): Adjust.
17290 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17291 cell-cmp-microcoded): Adjust.
17292 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17293 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17294 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17295 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17296 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17297 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17298 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17299 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17300 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17302 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17303 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
17304 Adjust. Adjust comment.
17305 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17306 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17308 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17310 * config/rs6000/rs6000.md (type): Add "add".
17311 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
17312 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
17313 define_insns): Use it.
17314 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17316 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17317 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17318 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17319 * config/rs6000/601.md (ppc601-integer): Adjust.
17320 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17321 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17322 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17323 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17324 * config/rs6000/8540.md (ppc8540_su): Adjust.
17325 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17326 cell-cmp-microcoded): Adjust.
17327 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17328 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17329 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17330 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17331 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17332 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17333 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17334 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17335 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17337 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17338 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
17339 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17340 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17342 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17344 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
17345 "delayed_compare", "var_delayed_compare".
17346 (var_shift): New attribute.
17347 (cell_micro): Adjust.
17348 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
17349 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
17350 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
17351 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17352 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17353 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17354 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17355 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
17356 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
17357 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17358 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
17359 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
17360 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
17361 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
17362 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
17363 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
17364 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
17365 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
17366 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
17367 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
17368 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
17369 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
17370 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
17371 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17372 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17374 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17375 * config/rs6000/440.md (ppc440-integer): Adjust.
17376 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17377 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
17378 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17379 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17380 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17381 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17382 * config/rs6000/8540.md (ppc8540_su): Adjust.
17383 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17384 cell-cmp-microcoded): Adjust.
17385 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
17386 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17387 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
17388 e500mc64_delayed): Adjust.
17389 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
17390 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
17391 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17392 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
17393 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
17394 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
17395 power6-delayed-compare, power6-var-delayed-compare): Adjust.
17396 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
17397 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
17399 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17400 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17402 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17404 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
17405 (bits): New mode_attr.
17406 (idiv_ldiv): Delete mode_attr.
17407 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
17408 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17409 rs6000_adjust_priority, is_nonpipeline_insn,
17410 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17412 * config/rs6000/40x.md (ppc403-idiv): Adjust.
17413 * config/rs6000/440.md (ppc440-idiv): Adjust.
17414 * config/rs6000/476.md (ppc476-idiv): Adjust.
17415 * config/rs6000/601.md (ppc601-idiv): Adjust.
17416 * config/rs6000/603.md (ppc603-idiv): Adjust.
17417 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
17418 ppc620-ldiv): Adjust.
17419 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
17420 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
17421 * config/rs6000/8540.md (ppc8540_divide): Adjust.
17422 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
17423 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
17424 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
17425 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
17426 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
17427 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
17428 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
17429 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
17430 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
17431 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
17432 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
17433 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
17434 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
17435 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
17436 * config/rs6000/titan.md (titan_fxu_div): Adjust.
17438 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17440 * config/rs6000/rs6000.md (type): Delete "insert_word",
17441 "insert_dword". Add "insert".
17442 (size): Update comment.
17443 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17444 insn_must_be_first_in_group): Adjust.
17445 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17446 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17447 *insvsi_internal6, insvdi_internal): Adjust.
17449 * config/rs6000/40x.md (ppc403-integer): Adjust.
17450 * config/rs6000/440.md (ppc440-integer): Adjust.
17451 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
17452 * config/rs6000/601.md (ppc601-integer): Adjust.
17453 * config/rs6000/603.md (ppc603-integer): Adjust.
17454 * config/rs6000/6xx.md (ppc604-integer): Adjust.
17455 * config/rs6000/7450.md (ppc7450-integer): Adjust.
17456 * config/rs6000/7xx.md (ppc750-integer): Adjust.
17457 * config/rs6000/8540.md (ppc8540_su): Adjust.
17458 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
17459 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
17460 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17461 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
17462 * config/rs6000/e5500.md (e5500_sfx): Adjust.
17463 * config/rs6000/e6500.md (e6500_sfx): Adjust.
17464 * config/rs6000/mpc.md (mpccore-integer): Adjust.
17465 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
17466 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
17467 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
17468 * config/rs6000/power7.md (power7-integer): Adjust.
17469 * config/rs6000/power8.md (power8-1cyc): Adjust.
17470 * config/rs6000/rs64.md (rs64a-integer): Adjust.
17471 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17473 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17475 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
17476 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
17477 (size): New attribute.
17478 (dot): New attribute.
17479 (cell_micro): Adjust.
17480 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
17481 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
17482 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
17483 umuldi3_highpart): Adjust.
17484 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17485 rs6000_adjust_priority, is_nonpipeline_insn,
17486 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17488 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17489 ppc405-imul3): Adjust.
17490 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17491 * config/rs6000/476.md (ppc476-imul): Adjust.
17492 * config/rs6000/601.md (ppc601-imul): Adjust.
17493 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17494 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17495 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17496 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17497 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17499 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17500 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17501 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17502 cell-imul): Adjust.
17503 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17504 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17505 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17506 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17507 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17508 * config/rs6000/mpc.md (mpccore-imul): Adjust.
17509 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17510 power4-lmul, power4-imul, power4-imul3): Adjust.
17511 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17512 power5-lmul, power5-imul, power5-imul3): Adjust.
17513 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17514 power6-lmul, power6-imul, power6-imul3): Adjust.
17515 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17516 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17518 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17519 rs64a-lmul): Adjust.
17520 * config/rs6000/titan.md (titan_imul): Adjust.
17522 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17524 * config/rs6000/rs6000.md (type): Add new value "halfmul".
17525 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17526 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17527 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17528 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17529 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17530 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17531 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17532 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17533 * config/rs6000/titan.md: Delete nonsensical comment.
17534 (titan_imul): Add type imul3.
17535 (titan_mulhw): Remove type imul3; add type halfmul.
17537 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17539 * config/rs6000/rs6000.md (type): Reorder, reformat.
17541 2014-05-23 Martin Jambor <mjambor@suse.cz>
17543 PR tree-optimization/53787
17544 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17545 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17546 analysis_done, update all uses.
17547 * ipa-prop.c: Include domwalk.h
17548 (param_analysis_info): Removed.
17549 (param_aa_status): New type.
17550 (ipa_bb_info): Likewise.
17551 (func_body_info): Likewise.
17552 (ipa_get_bb_info): New function.
17553 (aa_overwalked): Likewise.
17554 (find_dominating_aa_status): Likewise.
17555 (parm_bb_aa_status_for_bb): Likewise.
17556 (parm_preserved_before_stmt_p): Changed to use new param AA info.
17557 (load_from_unmodified_param): Accept func_body_info as a parameter
17558 instead of parms_ainfo.
17559 (parm_ref_data_preserved_p): Changed to use new param AA info.
17560 (parm_ref_data_pass_through_p): Likewise.
17561 (ipa_load_from_parm_agg_1): Likewise. Update callers.
17562 (compute_complex_assign_jump_func): Changed to use new param AA info.
17563 (compute_complex_ancestor_jump_func): Likewise.
17564 (ipa_compute_jump_functions_for_edge): Likewise.
17565 (ipa_compute_jump_functions): Removed.
17566 (ipa_compute_jump_functions_for_bb): New function.
17567 (ipa_analyze_indirect_call_uses): Likewise, moved variable
17569 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17570 and info, moved variable declarations down.
17571 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17573 (ipa_analyze_stmt_uses): Likewise.
17574 (ipa_analyze_params_uses): Removed.
17575 (ipa_analyze_params_uses_in_bb): New function.
17576 (ipa_analyze_controlled_uses): Likewise.
17577 (free_ipa_bb_info): Likewise.
17578 (analysis_dom_walker): New class.
17579 (ipa_analyze_node): Handle node-specific forbidden analysis,
17580 initialize and free func_body_info, use dominator walker.
17581 (ipcp_modif_dom_walker): New class.
17582 (ipcp_transform_function): Create and free func_body_info, use
17583 ipcp_modif_dom_walker, moved a lot of functionality there.
17585 2014-05-23 Marek Polacek <polacek@redhat.com>
17586 Jakub Jelinek <jakub@redhat.com>
17588 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17589 * gcc.c (sanitize_spec_function): Likewise.
17590 * convert.c (convert_to_integer): Include "ubsan.h". Add
17591 floating-point to integer instrumentation.
17592 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17593 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17594 SANITIZE_NONDEFAULT.
17595 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17596 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17597 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17598 * ubsan.c: Include "realmpfr.h" and "dfp.h".
17599 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17600 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17601 float/double/long double.
17602 (ubsan_instrument_float_cast): New function.
17603 * ubsan.h (ubsan_instrument_float_cast): Declare.
17605 2014-05-23 Jiong Wang <jiong.wang@arm.com>
17607 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17609 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
17610 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17611 Adjust for tailcalling through registers.
17612 * config/aarch64/aarch64.h (enum reg_class): New caller save
17614 (REG_CLASS_NAMES): Likewise.
17615 (REG_CLASS_CONTENTS): Likewise.
17616 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17617 Allow tailcalling without decls.
17619 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17621 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17622 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17624 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17625 gsi, and variables v_* to v*.
17627 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
17629 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17631 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17633 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17634 * omp-low.c: Update accordingly.
17636 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17637 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17638 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17639 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17640 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17641 GF_OMP_TARGET_KIND_UPDATE.
17643 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17644 Explicitly enumerate the expected region types.
17646 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
17649 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
17650 documentation; the old documentation didn't clearly state the
17651 constraints on the contents of the pointed-to storage.
17653 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17655 Fix bootstrap error on ia64
17656 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17657 Return default value.
17659 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
17661 PR tree-optimization/54733
17662 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17664 (find_bswap_or_nop_load): New.
17665 (find_bswap_1): Renamed to ...
17666 (find_bswap_or_nop_1): This. Also add support for memory source.
17667 (find_bswap): Renamed to ...
17668 (find_bswap_or_nop): This. Also add support for memory source and
17669 detection of bitwise operations equivalent to load in target
17671 (execute_optimize_bswap): Likewise. Also move its leading comment back
17672 in place and split statement transformation into ...
17673 (bswap_replace): This.
17675 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17677 PR rtl-optimization/61215
17678 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17679 simplify_gen_subreg until final substitution.
17681 2014-05-23 Alan Modra <amodra@gmail.com>
17684 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17685 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17686 Use "Y" constraint rather than "m".
17688 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17690 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17692 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17693 New function declaration.
17694 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17695 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17696 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17697 (aarch64_init_builtins) : Initialize builtins
17698 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17699 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17700 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17701 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17702 and __builtins_aarch64_set_fpsr.
17703 (aarch64_atomic_assign_expand_fenv): New function.
17704 * config/aarch64/aarch64.md (set_fpcr): New pattern.
17705 (get_fpcr) : Likewise.
17706 (set_fpsr) : Likewise.
17707 (get_fpsr) : Likewise.
17708 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17709 and UNSPECV_SET_FPSR.
17710 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17711 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17712 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17714 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17716 PR rtl-optimization/60969
17717 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17718 constraints. Set up mem cost for NO_REGS case.
17720 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
17722 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17724 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
17726 * config/darwin.c: Include "lto-section-names.h".
17727 (LTO_SEGMENT_NAME): Don't define.
17728 * config/i386/winnt.c: Include "lto-section-names.h".
17729 * lto-streamer.c: Include "lto-section-names.h".
17730 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17731 * lto-wrapper.c: Include "lto-section-names.h".
17732 (LTO_SECTION_NAME_PREFIX): Don't define.
17733 * lto-section-names.h: New file.
17734 * cgraphunit.c: Include "lto-section-names.h".
17736 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
17738 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17740 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
17743 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17745 2014-05-22 Nick Clifton <nickc@redhat.com>
17747 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17749 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
17751 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17752 -> (T)A transformation to integer types.
17754 2014-05-22 Teresa Johnson <tejohnson@google.com>
17756 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17757 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17758 (gcov_rewrite): Use gcov_nonruntime_assert.
17759 (gcov_open): Ditto.
17760 (gcov_write_words): Ditto.
17761 (gcov_write_length): Ditto.
17762 (gcov_read_words): Use gcov_nonruntime_assert, and remove
17763 gcc_assert from IN_LIBGCOV code.
17764 (gcov_read_summary): Use gcov_error to flag profile corruption.
17765 (gcov_sync): Use gcov_nonruntime_assert.
17766 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17767 (gcov_histo_index): Use gcov_nonruntime_assert.
17768 (static void gcov_histogram_merge): Ditto.
17769 (compute_working_sets): Ditto.
17770 * gcov-io.h (gcov_nonruntime_assert): Define.
17771 (gcov_error): Define for !IN_LIBGCOV
17773 2014-05-22 Richard Biener <rguenther@suse.de>
17775 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17776 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17777 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17778 and deallocation site.
17779 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17780 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17781 passing through the incoming points-to set.
17782 (handle_lhs_call): Use flags argument instead of recomputing it.
17783 (find_func_aliases_for_call): Call handle_lhs_call with proper
17786 2014-05-22 Jakub Jelinek <jakub@redhat.com>
17788 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17789 all padding bits in REAL_VALUE_TYPE are cleared.
17791 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17793 Cleanup and improve multipass_dfa_lookahead_guard
17794 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17795 (core2i7_first_cycle_multipass_begin,)
17796 (core2i7_first_cycle_multipass_issue,)
17797 (core2i7_first_cycle_multipass_backtrack): Update signature.
17798 * config/ia64/ia64.c
17799 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17800 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17801 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17803 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17804 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
17806 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17808 * doc/tm.texi: Regenerate.
17810 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17811 * haifa-sched.c (ready_try): Make signed to allow negative values.
17812 (rebug_ready_list_1): Update.
17813 (choose_ready): Simplify.
17814 (sched_extend_ready_list): Update.
17816 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17818 Remove IA64 speculation tweaking flags
17819 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17820 speculation tuning flags.
17821 (msched-prefer-non-data-spec-insns,)
17822 (msched-prefer-non-control-spec-insns): Obsolete options.
17823 * haifa-sched.c (choose_ready): Remove handling of
17824 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17825 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17826 and PREFER_NON_DATA_SPEC.
17827 * sel-sched.c (process_spec_exprs): Remove handling of
17828 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17830 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17832 Improve scheduling debug output
17833 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17834 (advance_one_cycle): Update.
17835 (schedule_insn, queue_to_ready): Add debug printouts.
17836 (debug_ready_list_1): New static function.
17837 (debug_ready_list): Update.
17838 (max_issue): Add debug printouts.
17839 (dump_insn_stream): New static function.
17840 (schedule_block): Use it. Also better indent printouts.
17842 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17844 Fix sched_insn debug counter
17845 * haifa-sched.c (schedule_insn): Update.
17846 (struct haifa_saved_data): Add nonscheduled_insns_begin.
17847 (save_backtrack_point, restore_backtrack_point): Update.
17848 (first_nonscheduled_insn): New static function.
17849 (queue_to_ready, choose_ready): Use it.
17850 (schedule_block): Init nonscheduled_insns_begin.
17851 (sched_emit_insn): Update.
17854 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17856 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
17858 (aarch64_secondary_reload) : LikeWise.
17859 (aarch64_class_max_nregs) : Remove CORE_REGS.
17860 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
17861 (REG_CLASS_NAMES) : Likewise.
17862 (REG_CLASS_CONTENTS) : LikeWise.
17863 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
17865 2014-05-21 Guozhi Wei <carrot@google.com>
17868 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
17870 (vqdmulhq_n_s16): Likewise.
17872 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17874 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
17876 2014-05-21 Marek Polacek <polacek@redhat.com>
17879 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
17881 2014-05-21 Martin Jambor <mjambor@suse.cz>
17883 * doc/invoke.texi (Optimize Options): Document parameters
17884 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
17885 ipa-cp-array-index-hint-bonus.
17887 2014-05-21 Mark Wielaard <mjw@redhat.com>
17890 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
17891 version >= 3 or not strict DWARF.
17892 * langhooks.h (struct lang_hooks_for_types): Add
17893 enum_underlying_base_type.
17894 * langhooks.c (lhd_enum_underlying_base_type): New function.
17895 * gcc/langhooks.h (struct lang_hooks_for_types): Add
17896 enum_underlying_base_type.
17897 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
17898 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
17899 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
17901 2014-05-21 Richard Biener <rguenther@suse.de>
17903 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
17905 2014-05-21 John Marino <gnugcc@marino.st>
17907 * config.gcc (*-*-dragonfly*): New target.
17908 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
17909 * configure: Regenerate.
17910 * config/dragonfly-stdint.h: New.
17911 * config/dragonfly.h: New.
17912 * config/dragonfly.opt: New.
17913 * config/i386/dragonfly.h: New.
17914 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
17916 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17918 * tree.def (VOID_CST): New.
17919 * tree-core.h (TI_VOID): New.
17920 * tree.h (void_node): New.
17921 * tree.c (tree_node_structure_for_code, tree_code_size)
17922 (iterative_hash_expr): Handle VOID_CST.
17923 (build_common_tree_nodes): Initialize void_node.
17925 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
17927 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
17929 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
17931 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
17934 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
17935 flag_reorder_blocks_and_partition.
17936 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
17938 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
17941 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
17943 (*addc_r_t): Add new insn_and_split.
17945 2014-05-21 Jakub Jelinek <jakub@redhat.com>
17947 PR middle-end/61252
17948 * omp-low.c (handle_simd_reference): New function.
17949 (lower_rec_input_clauses): Use it. Defer adding reference
17950 initialization even for reduction without placeholder if in simd,
17951 handle it properly later on.
17953 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17955 PR tree-optimization/60899
17956 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
17957 assume all static symbols will have definition wile parsing and
17958 check the do have definition later in compilation; check that
17959 variable referring symbol will be output before concluding that
17960 reference is safe; be conservative for referring local statics;
17961 be more precise about when comdat is output in other partition.
17963 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17966 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
17968 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
17969 (ipa_inline): Loop inline_to_all_callers until no more aliases
17972 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
17974 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
17975 set writeonly flag only for vars actually written to.
17977 2014-05-20 Dehao Chen <dehao@google.com>
17979 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
17980 and callee count to get clone count.
17981 * tree-inline.c (expand_call_inline): Use callee count instead of bb
17982 count in copy_body.
17984 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
17986 PR rtl-optimization/61243
17987 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
17989 2014-05-20 Xinliang David Li <davidxl@google.com>
17991 * cgraphunit.c (walk_polymorphic_call_targets): Add
17992 dbgcnt and fopt-info support.
17993 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
17994 * ipa-devirt.c (ipa_devirt): Ditto.
17995 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
17996 * ipa.c (walk_polymorphic_call_targets): Ditto.
17997 * gimple-fold.c (fold_gimple_assign): Ditto.
17998 (gimple_fold_call): Ditto.
17999 * dbgcnt.def: New counter.
18001 2014-05-20 DJ Delorie <dj@redhat.com>
18003 * config/msp430/msp430.md (split): Don't allow subregs when
18004 splitting SImode adds.
18005 (andneghi): Fix subtraction logic.
18006 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18008 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18010 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18012 * except.c (switch_to_exception_section, resolve_unique_section,
18013 get_named_text_section, default_function_rodata_section,
18014 align_variable, get_block_for_decl, default_section_type_flags):
18015 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18016 * symtab.c (symtab_add_to_same_comdat_group,
18017 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18018 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18020 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18021 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18022 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18023 (c6x_function_in_section_p): Likewise.
18024 * config/darwin.c (machopic_select_section): Likewise.
18025 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18026 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18027 * config/mep/mep.c (mep_select_section): LIkewise.
18028 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18030 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18032 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18033 EH region of calls to pure functions that can throw an exception.
18034 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18035 (copy_reference_ops_from_call): Also copy the EH region of the call if
18036 it can throw an exception.
18038 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18040 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18041 nested VEC_SELECTs that are inverses of each other.
18043 2014-05-20 Richard Biener <rguenther@suse.de>
18045 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18046 (extract_and_process_scc_for_name): not here.
18047 (cond_dom_walker::before_dom_children): Only process
18048 stmts that end the BB in interesting ways.
18049 (run_scc_vn): Mark param uses as visited.
18051 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18053 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18056 2014-05-20 Nick Clifton <nickc@redhat.com>
18058 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18059 (msp430_gimplify_va_arg_expr): New function.
18060 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18062 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18063 operand 0 in order to prevent confusion about the number of
18064 registers involved.
18066 2014-05-20 Richard Biener <rguenther@suse.de>
18068 PR tree-optimization/61221
18069 * tree-ssa-pre.c (el_to_update): Remove.
18070 (eliminate_dom_walker::before_dom_children): Handle released
18071 VDEFs by value-numbering them to the associated VUSE. Update
18072 stmt immediately for substituted call address.
18073 (eliminate): Remove delayed stmt updating code.
18074 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18075 possibly late re-numbered vuses.
18076 (vn_reference_lookup_2): Adjust.
18077 (vn_reference_lookup_pieces): Likewise.
18078 (vn_reference_lookup): Likewise.
18080 2014-05-20 Richard Biener <rguenther@suse.de>
18082 * config.gcc: Remove need_64bit_hwint.
18083 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18084 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18086 * config.in: Regenerate.
18087 * configure: Likewise.
18089 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18091 * doc/extend.texi: Create Label Attributes section,
18092 move all label attributes into it and reference it.
18094 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18096 * arm.c (thumb1_reorg): When scanning backwards skip anything
18097 that's not a proper insn.
18099 2014-05-19 Richard Biener <rguenther@suse.de>
18101 PR tree-optimization/61221
18102 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18103 Do nothing for unreachable blocks.
18104 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18105 Improve unreachability detection.
18107 2014-05-19 Richard Biener <rguenther@suse.de>
18109 PR tree-optimization/61209
18110 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18112 2014-05-19 Nick Clifton <nickc@redhat.com>
18114 * except.c (init_eh): Fix computation of builtin setjmp buffer
18115 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18117 2014-05-19 Richard Biener <rguenther@suse.de>
18119 PR tree-optimization/61184
18120 * tree-vrp.c (is_negative_overflow_infinity): Use
18121 TREE_OVERFLOW_P and do that check first.
18122 (is_positive_overflow_infinity): Likewise.
18123 (is_overflow_infinity): Likewise.
18124 (vrp_operand_equal_p): Properly treat operands with
18125 differing overflow as not equal.
18127 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18129 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18130 shift simplification where it was intended.
18132 2014-05-19 Christian Bruel <christian.bruel@st.com>
18135 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18137 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18140 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18143 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18145 * reg-notes.def (CROSSING_JUMP): Likewise.
18146 * rtl.h (rtx_def): Update comment for jump flag.
18147 (CROSSING_JUMP_P): Define.
18148 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18149 of a REG_CROSSING_JUMP note.
18150 * cfghooks.c (tidy_fallthru_edges): Likewise.
18151 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18152 * emit-rtl.c (try_split): Likewise.
18153 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18154 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18155 * jump.c (redirect_jump_2): Likewise.
18156 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18157 (relax_delay_slots): Likewise.
18158 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18159 (bbit_di): Likewise.
18160 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18161 * config/sh/sh.md (jump_compact): Likewise.
18162 * bb-reorder.c (rotate_loop): Likewise.
18163 (pass_duplicate_computed_gotos::execute): Likewise.
18164 (add_reg_crossing_jump_notes): Rename to...
18165 (update_crossing_jump_flags): ...this.
18166 (pass_partition_blocks::execute): Update accordingly.
18168 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18170 * tree.h: Remove extraneous template <>.
18172 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18174 * ipa.c (symtab_remove_unreachable_nodes): Remove
18175 symbol from comdat group if its body was eliminated.
18176 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18177 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18178 (symtab_unregister_node): ... this one.
18179 (verify_symtab_base): More strict checking of comdats.
18180 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18182 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18184 * tree-pass.h (make_pass_ipa_comdats): New pass.
18185 * timevar.def (TV_IPA_COMDATS): New timevar.
18186 * passes.def (pass_ipa_comdats): Add.
18187 * Makefile.in (OBJS): Add ipa-comdats.o
18188 * ipa-comdats.c: New file.
18190 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18192 * ipa.c (update_visibility_by_resolution_info): New function.
18193 (function_and_variable_visibility): Use it.
18195 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18197 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18199 (FOR_EACH_DEFINED_SYMBOL): New macro.
18200 (varpool_first_static_initializer, varpool_next_static_initializer,
18201 varpool_first_defined_variable, varpool_next_defined_variable):
18203 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18205 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18207 * ggc-page.c (ggc_handle_finalizers): Add comment.
18209 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18211 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
18212 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
18213 (ggc_internal_cleared_alloc): Likewise.
18214 * ggc-page.c (finalizer): New class.
18215 (vec_finalizer): Likewise.
18216 (globals::finalizers): New member.
18217 (globals::vec_finalizers): Likewise.
18218 (ggc_internal_alloc): Record the finalizer if any for the block being
18220 (ggc_handle_finalizers): New function.
18221 (ggc_collect): Call ggc_handle_finalizers.
18222 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
18224 (ggc_internal_cleared_alloc): Likewise.
18225 (finalize): New function.
18226 (need_finalization_p): Likewise.
18227 (ggc_alloc): Install the type's destructor as the finalizer if it
18228 might do something.
18229 (ggc_cleared_alloc): Likewise.
18230 (ggc_vec_alloc): Likewise.
18231 (ggc_cleared_vec_alloc): Likewise.
18233 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18235 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
18237 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18239 * alias.c (record_alias_subset): Adjust.
18240 * bitmap.c (bitmap_element_allocate): Likewise.
18241 (bitmap_gc_alloc_stat): Likewise.
18242 * cfg.c (init_flow): Likewise.
18243 (alloc_block): Likewise.
18244 (unchecked_make_edge): Likewise.
18245 * cfgloop.c (alloc_loop): Likewise.
18246 (flow_loops_find): Likewise.
18247 (rescan_loop_exit): Likewise.
18248 * cfgrtl.c (init_rtl_bb_info): Likewise.
18249 * cgraph.c (insert_new_cgraph_node_version): Likewise.
18250 (cgraph_allocate_node): Likewise.
18251 (cgraph_create_edge_1): Likewise.
18252 (cgraph_allocate_init_indirect_info): Likewise.
18253 * cgraphclones.c (cgraph_clone_edge): Likewise.
18254 * cgraphunit.c (add_asm_node): Likewise.
18255 (init_lowered_empty_function): Likewise.
18256 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
18257 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18258 (alpha_use_linkage): Likewise.
18259 * config/arc/arc.c (arc_init_machine_status): Likewise.
18260 * config/arm/arm.c (arm_init_machine_status): Likewise.
18261 * config/avr/avr.c (avr_init_machine_status): Likewise.
18262 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18263 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
18264 * config/cris/cris.c (cris_init_machine_status): Likewise.
18265 * config/darwin.c (machopic_indirection_name): Likewise.
18266 (darwin_build_constant_cfstring): Likewise.
18267 (darwin_enter_string_into_cfstring_table): Likewise.
18268 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
18269 * config/frv/frv.c (frv_init_machine_status): Likewise.
18270 * config/i386/i386.c (get_dllimport_decl): Likewise.
18271 (ix86_init_machine_status): Likewise.
18272 (assign_386_stack_local): Likewise.
18273 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18274 (i386_pe_maybe_record_exported_symbol): Likewise.
18275 (i386_pe_record_stub): Likewise.
18276 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18277 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18278 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18279 (m32c_note_pragma_address): Likewise.
18280 * config/mep/mep.c (mep_init_machine_status): Likewise.
18281 (mep_note_pragma_flag): Likewise.
18282 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18283 (mips16_local_alias): Likewise.
18284 (mips_init_machine_status): Likewise.
18285 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18286 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18287 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
18288 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
18289 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
18290 * config/pa/pa.c (pa_init_machine_status): Likewise.
18291 (pa_get_deferred_plabel): Likewise.
18292 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
18293 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18294 (rs6000_init_machine_status): Likewise.
18295 (output_toc): Likewise.
18296 * config/s390/s390.c (s390_init_machine_status): Likewise.
18297 * config/score/score.c (score_output_external): Likewise.
18298 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18299 * config/spu/spu.c (spu_init_machine_status): Likewise.
18300 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
18301 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
18302 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18303 * coverage.c (coverage_end_function): Likewise.
18304 * dbxout.c (dbxout_init): Likewise.
18305 * doc/gty.texi: Don't mention variable_size attribute.
18306 * dwarf2cfi.c (new_cfi): Adjust.
18307 (new_cfi_row): Likewise.
18308 (copy_cfi_row): Likewise.
18309 (create_cie_data): Likewise.
18310 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
18311 (new_loc_descr): Likewise.
18312 (find_AT_string_in_table): Likewise.
18313 (add_addr_table_entry): Likewise.
18314 (new_die): Likewise.
18315 (add_var_loc_to_decl): Likewise.
18316 (clone_die): Likewise.
18317 (clone_as_declaration): Likewise.
18318 (break_out_comdat_types): Likewise.
18319 (new_loc_list): Likewise.
18320 (add_loc_descr_to_each): Likewise.
18321 (add_location_or_const_value_attribute): Likewise.
18322 (add_linkage_name): Likewise.
18323 (lookup_filename): Likewise.
18324 (dwarf2out_var_location): Likewise.
18325 (new_line_info_table): Likewise.
18326 (dwarf2out_init): Likewise.
18327 (mem_loc_descriptor): Likewise.
18328 (loc_descriptor): Likewise.
18329 (add_const_value_attribute): Likewise.
18330 (tree_add_const_value_attribute): Likewise.
18331 (comp_dir_string): Likewise.
18332 (dwarf2out_vms_debug_main_pointer): Likewise.
18333 (string_cst_pool_decl): Likewise.
18334 * emit-rtl.c (set_mem_attrs): Likewise.
18335 (get_reg_attrs): Likewise.
18336 (start_sequence): Likewise.
18337 (init_emit): Likewise.
18338 (init_emit_regs): Likewise.
18339 * except.c (init_eh_for_function): Likewise.
18340 (gen_eh_region): Likewise.
18341 (gen_eh_region_catch): Likewise.
18342 (gen_eh_landing_pad): Likewise.
18343 (add_call_site): Likewise.
18344 * function.c (add_frame_space): Likewise.
18345 (insert_temp_slot_address): Likewise.
18346 (assign_stack_temp_for_type): Likewise.
18347 (get_hard_reg_initial_val): Likewise.
18348 (allocate_struct_function): Likewise.
18349 (prepare_function_start): Likewise.
18350 (types_used_by_var_decl_insert): Likewise.
18351 * gengtype.c (variable_size_p): Remove function.
18352 (enum alloc_quantity): Remove enum.
18353 (write_typed_alloc_def): Remove function.
18354 (write_typed_struct_alloc_def): Likewise.
18355 (write_typed_typedef_alloc_def): Likewise.
18356 (write_typed_alloc_defns): Likewise.
18358 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
18359 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
18360 * ggc.h (ggc_alloc): new function.
18361 (ggc_cleared_alloc): Likewise.
18362 (ggc_vec_alloc): Template on type of vector element, and remove
18363 element size argument.
18364 (ggc_cleared_vec_alloc): Likewise.
18365 * gimple.c (gimple_build_omp_for): Adjust.
18366 (gimple_copy): Likewise.
18367 * ipa-cp.c (get_replacement_map): Likewise.
18368 (find_aggregate_values_for_callers_subset): Likewise.
18369 (known_aggs_to_agg_replacement_list): Likewise.
18370 * ipa-devirt.c (get_odr_type): Likewise.
18371 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
18372 (read_agg_replacement_chain): Likewise.
18373 * loop-iv.c (get_simple_loop_desc): Likewise.
18374 * lto-cgraph.c (input_node_opt_summary): Likewise.
18375 * lto-section-in.c (lto_new_in_decl_state): Likewise.
18376 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18377 (input_eh_region): Likewise.
18378 (input_eh_lp): Likewise.
18379 (input_cfg): Likewise.
18380 * optabs.c (set_optab_libfunc): Likewise.
18381 (init_tree_optimization_optabs): Likewise.
18382 (set_conv_libfunc): Likewise.
18383 * passes.c (do_per_function_toporder): Likewise.
18384 * rtl.h: Don't use variable_size gty attribute.
18385 * sese.c (if_region_set_false_region): Adjust.
18386 * stringpool.c (gt_pch_save_stringpool): Likewise.
18387 * target-globals.c (save_target_globals): Likewise.
18388 * toplev.c (general_init): Likewise.
18389 * trans-mem.c (record_tm_replacement): Likewise.
18390 (split_bb_make_tm_edge): Likewise.
18391 * tree-cfg.c (move_sese_region_to_fn): Likewise.
18392 * tree-data-ref.h (lambda_vector_new): Likewise.
18393 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18394 * tree-iterator.c (tsi_link_before): Likewise.
18395 (tsi_link_after): Likewise.
18396 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18397 * tree-ssa-loop-niter.c (record_estimate): Likewise.
18398 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18399 * tree-ssa-operands.h: Don't use variable_size gty attribute.
18400 * tree-ssa.c (init_tree_ssa): Adjust.
18401 * tree-ssanames.c (set_range_info): Likewise.
18402 (get_ptr_info): Likewise.
18403 (duplicate_ssa_name_ptr_info): Likewise.
18404 (duplicate_ssa_name_range_info): Likewise.
18405 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
18406 (unpack_ts_fixed_cst_value_fields): Likewise.
18407 * tree.c (build_fixed): Likewise.
18408 (build_real): Likewise.
18409 (build_string): Likewise.
18410 (decl_priority_info): Likewise.
18411 (decl_debug_expr_insert): Likewise.
18412 (decl_value_expr_insert): Likewise.
18413 (decl_debug_args_insert): Likewise.
18414 (type_hash_add): Likewise.
18415 (build_omp_clause): Likewise.
18416 * ubsan.c (decl_for_type_insert): Likewise.
18417 * varasm.c (get_unnamed_section): Likewise.
18418 (get_noswitch_section): Likewise.
18419 (get_section): Likewise.
18420 (get_block_for_section): Likewise.
18421 (create_block_symbol): Likewise.
18422 (build_constant_desc): Likewise.
18423 (create_constant_pool): Likewise.
18424 (force_const_mem): Likewise.
18425 (record_tm_clone_pair): Likewise.
18426 * varpool.c (varpool_create_empty_node): Likewise.
18428 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18430 * dwarf2out.c (tree_add_const_value_attribute): Call
18431 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
18432 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
18433 instead of ggc_internal_<x>alloc_stat.
18434 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
18435 (ggc_realloc): Likewise.
18436 * ggc-none.c (ggc_internal_alloc): Likewise.
18437 (ggc_internal_cleared_alloc): Likewise.
18438 * ggc-page.c: Likewise.
18439 * ggc.h (ggc_internal_alloc_stat): Likewise.
18440 (ggc_internal_alloc): Remove macro.
18441 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
18442 (ggc_internal_cleared_alloc): Remove macro.
18443 (GGC_RESIZEVEC): Adjust.
18444 (ggc_resizevar): Remove macro.
18445 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
18446 (ggc_internal_cleared_vec_alloc_stat): Likewise.
18447 (ggc_internal_vec_cleared_alloc): Remove macro.
18448 (ggc_alloc_atomic_stat): Drop _stat suffix.
18449 (ggc_alloc_atomic): Remove macro.
18450 (ggc_alloc_cleared_atomic): Remove macro.
18451 (ggc_alloc_string_stat): Drop _stat suffix.
18452 (ggc_alloc_string): Remove macro.
18453 (ggc_alloc_rtx_def_stat): Adjust.
18454 (ggc_alloc_tree_node_stat): Likewise.
18455 (ggc_alloc_cleared_tree_node_stat): Likewise.
18456 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
18457 (ggc_alloc_cleared_simd_clone_stat): Likewise.
18458 * gimple.c (gimple_build_omp_for): Likewise.
18459 (gimple_copy): Likewise.
18460 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
18461 * toplev.c (realloc_for_line_map): Adjust.
18462 * tree-data-ref.h (lambda_vector_new): Likewise.
18463 * tree-phinodes.c (allocate_phi_node): Likewise.
18464 * tree.c (grow_tree_vec_stat): Likewise.
18465 * vec.h (va_gc::reserve): Adjust.
18467 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
18469 * config/microblaze/microblaze.c (break_handler): New Declaration.
18470 (microblaze_break_function_p,microblaze_is_break_handler): New.
18471 (compute_frame_size): Use microblaze_break_function_p.
18472 Add the test of break_handler.
18473 (microblaze_function_prologue) : Add the test of variable
18474 break_handler. Check the fnname by BREAK_HANDLER_NAME.
18475 (microblaze_function_epilogue) : Add the test of break_handler.
18476 (microblaze_globalize_label) : Add the test of break_handler.
18477 Check the name by BREAK_HANDLER_NAME.
18479 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
18481 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
18482 microblaze_is_break_handler test.
18483 (call_internal1,call_value_intern): Use microblaze_break_function_p.
18484 Use SYMBOL_REF_DECL.
18486 * config/microblaze/microblaze-protos.h
18487 (microblaze_break_function_p,microblaze_is_break_handler):
18490 * doc/extend.texi (MicroBlaze break_handler Functions): Document
18491 new MicroBlaze break_handler functions.
18493 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18495 * doc/extend.texi (Size of an asm): Move node text according
18496 to its @menu entry position.
18498 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
18500 PR tree-optimization/61140
18501 PR tree-optimization/61150
18502 PR tree-optimization/61197
18503 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18505 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18507 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
18509 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
18511 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18512 __SIZEOF_INT128__ is defined.
18514 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18516 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18517 (rs6000_delegitimize_address): Use it.
18519 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18521 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18522 inplace argument. Store the new address in the original MEM when true.
18523 * emit-rtl.c (change_address_1): Likewise.
18524 (adjust_address_1, adjust_automodify_address_1, offset_address):
18525 Update accordingly.
18526 * rtl.h (plus_constant): Add an inplace argument.
18527 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
18528 when true. Avoid generating (plus X (const_int 0)).
18529 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18530 in-place. Pass true to plus_constant.
18531 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18533 2014-05-16 Dehao Chen <dehao@google.com>
18535 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18537 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18540 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18542 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18544 2014-05-16 Dehao Chen <dehao@google.com>
18546 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18547 optimize_function_for_size_p.
18548 * regs.h (REG_FREQ_FROM_BB): Likewise.
18550 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18553 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18554 negt_reg_operand cases.
18555 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18557 * config/sh/predicates.md (cbranch_treg_value): Simplify.
18559 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18561 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18564 2014-05-16 David Malcolm <dmalcolm@redhat.com>
18567 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18569 * tree-cfg.c (dump_function_to_file): Dump the return type of
18570 functions, in a line to itself before the function body, mimicking
18571 the layout of a C function.
18573 2014-05-16 Dehao Chen <dehao@google.com>
18575 * cfghooks.c (make_forwarder_block): Use direct computation to
18576 get fall-through edge's count and frequency.
18578 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
18580 * config/arc/arc.c (arc_init): Fix typo in error message.
18581 * config/i386/i386.c (ix86_expand_builtin): Likewise.
18582 (split_stack_prologue_scratch_regno): Likewise.
18583 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18584 word from error message.
18586 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18588 * ira-costs.c: Fix typo in comment.
18590 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
18592 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18594 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
18596 * varpool.c (dump_varpool_node): Dump write-only flag.
18597 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18599 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18600 write-only variables.
18601 * ipa.c (process_references): New function.
18602 (set_readonly_bit): New function.
18603 (set_writeonly_bit): New function.
18604 (clear_addressable_bit): New function.
18605 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18606 fix handling of aliases.
18607 * cgraph.h (struct varpool_node): Add writeonly flag.
18609 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
18611 PR rtl-optimization/60969
18612 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18613 Calculate costs for this case.
18615 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
18617 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18618 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18620 2014-05-16 Richard Biener <rguenther@suse.de>
18622 PR tree-optimization/61194
18623 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18624 bool patterns ending in a COND_EXPR.
18626 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18628 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18630 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18632 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18633 where we were unable to cost an RTX.
18635 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18637 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18640 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18641 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18643 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18645 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18646 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18649 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18651 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18652 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18654 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18657 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18658 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18660 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18663 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18664 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18666 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18667 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18669 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18670 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18672 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18673 rotates and shifts.
18675 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18676 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18678 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18679 ZERO_EXTEND and SIGN_EXTEND better.
18681 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18682 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18684 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18685 logical operations.
18687 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18688 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18690 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18691 costs when costing loads and stores to memory.
18693 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18694 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
18696 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18699 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18701 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18703 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18704 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18706 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18708 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18710 (aarch64_rtx_mult_cost): New.
18711 (aarch64_rtx_costs): Use it, refactor as appropriate.
18713 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18714 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18716 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18717 emit instructions, return number of instructions which would
18719 (aarch64_add_constant): Update call to aarch64_build_constant.
18720 (aarch64_output_mi_thunk): Likewise.
18721 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18724 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18726 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18727 (TARGET_RTX_COSTS): Call it.
18729 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18731 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18732 (cortexa57_vector_cost): Likewise.
18733 (cortexa57_tunings): Use them.
18735 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18737 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18738 (cpu_addrcost_table): Use it.
18739 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18740 (aarch64_address_cost): Rewrite using aarch64_classify_address,
18743 2014-05-16 Richard Biener <rguenther@suse.de>
18745 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18746 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18747 (visit_phi): Ignore edges marked as not executable.
18748 (class cond_dom_walker): New.
18749 (cond_dom_walker::before_dom_children): Value-number
18750 control statements and mark successor edges as not
18751 executable if possible.
18752 (run_scc_vn): First walk all control statements in
18753 dominator order, marking edges as not executable.
18754 * tree-inline.c (copy_edges_for_bb): Be not confused
18755 about random edge flags.
18757 2014-05-16 Richard Biener <rguenther@suse.de>
18759 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18761 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
18764 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18765 (__TM_simple_begin): Use it.
18766 (__TM_begin): Likewise.
18768 2014-05-15 Martin Jambor <mjambor@suse.cz>
18771 * ipa-prop.c (update_indirect_edges_after_inlining): Check
18772 type_preserved flag when the indirect edge is polymorphic.
18774 2014-05-15 Martin Jambor <mjambor@suse.cz>
18776 PR tree-optimization/61090
18777 * tree-sra.c (sra_modify_expr): Pass the current gsi to
18778 build_ref_for_model.
18780 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18782 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18783 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18785 2014-05-15 Jakub Jelinek <jakub@redhat.com>
18787 PR tree-optimization/61158
18788 * fold-const.c (fold_binary_loc): If X is zero-extended and
18789 shiftc >= prec, make sure zerobits is all ones instead of
18790 invoking undefined behavior.
18792 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18794 * regcprop.h: New file.
18795 * regcprop.c (skip_debug_insn_p): New decl.
18796 (replace_oldest_value_reg): Check skip_debug_insn_p.
18797 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18798 * shrink-wrap.c: Include regcprop.h.
18799 (prepare_shrink_wrap): Call
18800 copyprop_hardreg_forward_bb_without_debug_insn.
18802 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18804 * shrink-wrap.h: Update comment.
18805 * shrink-wrap.c: Update comment.
18806 (next_block_for_reg): Rename to live_edge_for_reg.
18807 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18808 (move_insn_for_shrink_wrap): Split live_edge.
18809 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18811 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18813 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18815 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18816 * config/sparc/sparc.md (fptype_ut699): New attribute.
18817 (in_branch_delay): Return false if -mfix-ut699 is specified and
18818 fptype_ut699 is set to single.
18819 (truncdfsf2): Add fptype_ut699 attribute.
18820 (fix_truncdfsi2): Likewise.
18821 (floatsisf2): Change fptype attribute.
18822 (fix_truncsfsi2): Likewise.
18823 (negtf2_notv9): Delete.
18824 (negtf2_v9): Likewise.
18825 (negtf2_hq): New instruction.
18826 (negtf2): New instruction and splitter.
18827 (negdf2_notv9): Rewrite.
18828 (abstf2_notv9): Delete.
18829 (abstf2_hq_v9): Likewise.
18830 (abstf2_v9): Likewise.
18831 (abstf2_hq): New instruction.
18832 (abstf2): New instruction and splitter.
18833 (absdf2_notv9): Rewrite.
18835 2014-05-14 Cary Coutant <ccoutant@google.com>
18838 * opts.c (common_handle_option): Don't special-case "-g".
18839 (set_debug_level): Default to at least level 2 with "-g".
18841 2014-05-14 DJ Delorie <dj@redhat.com>
18843 * config/msp430/msp430.c (msp430_builtin): Add
18844 MSP430_BUILTIN_DELAY_CYCLES.
18845 (msp430_init_builtins): Register void __delay_cycles(long long).
18846 (msp430_builtin_decl): Add it.
18847 (cg_magic_constant): New.
18848 (msp430_expand_delay_cycles): New.
18849 (msp430_expand_builtin): Call it.
18850 (msp430_print_operand_raw): Change integer printing from "int" to
18852 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
18853 (delay_cycles_start): New.
18854 (delay_cycles_end): New.
18855 (delay_cycles_32): New.
18856 (delay_cycles_32x): New.
18857 (delay_cycles_16): New.
18858 (delay_cycles_16x): New.
18859 (delay_cycles_2): New.
18860 (delay_cycles_1): New.
18861 * doc/extend.texi: Document __delay_cycles().
18863 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
18865 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
18866 length attribute computation.
18868 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
18871 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
18873 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
18876 * config/sparc/sparc.md: Fix types of low and high in DI constant
18877 splitter. Use gen_int_mode in some other splitters.
18879 2014-05-14 Martin Jambor <mjambor@suse.cz>
18882 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
18884 2014-05-14 James Norris <jnorris@codesourcery.com>
18886 * omp-low.c (expand_parallel_call): Remove shadow variable.
18887 (expand_omp_taskreg): Likewise.
18889 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
18891 * common/config/i386/i386-common.c
18892 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
18893 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
18894 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
18895 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
18896 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
18897 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
18898 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
18899 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
18900 xsavecintrin.h, xsavesintrin.h.
18901 (x86_64-*-*): Ditto.
18902 * config/i386/clflushoptintrin.h: New.
18903 * config/i386/xsavecintrin.h: Ditto.
18904 * config/i386/xsavesintrin.h: Ditto.
18905 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
18906 (bit_XSAVES): Ditto.
18907 (bit_XSAVES): Ditto.
18908 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18909 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
18911 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18912 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
18913 OPTION_MASK_ISA_XSAVES.
18914 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
18915 -mxsavec, -mxsaves.
18916 (PTA_CLFLUSHOPT) Define.
18917 (PTA_XSAVEC): Ditto.
18918 (PTA_XSAVES): Ditto.
18919 (ix86_option_override_internal): Handle new options.
18920 (ix86_valid_target_attribute_inner_p): Ditto.
18921 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
18922 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
18923 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
18924 (bdesc_special_args): Add __builtin_ia32_xsaves,
18925 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
18926 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
18927 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
18928 (ix86_expand_builtin): Handle new builtins.
18929 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
18930 (TARGET_CLFLUSHOPT_P): Ditto.
18931 (TARGET_XSAVEC): Ditto.
18932 (TARGET_XSAVEC_P): Ditto.
18933 (TARGET_XSAVES): Ditto.
18934 (TARGET_XSAVES_P): Ditto.
18935 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
18936 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
18937 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
18939 (ANY_XRSTOR64): Ditto.
18941 (xrstor): Change into <xrstor>.
18942 (xrstor_rex64): Change into <xrstor>_rex64.
18943 (xrstor64): Change into <xrstor>64
18945 * config/i386/i386.opt (mclflushopt): New.
18948 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
18950 * doc/invoke.texi: Document new options.
18952 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
18954 PR rtl-optimization/60866
18955 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
18956 Default it to -1. Pass it down to init_simplejump_data.
18957 (init_simplejump_data): New parameter old_seqno. Pass it down
18958 to get_seqno_for_a_jump.
18959 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
18960 initializing new jump seqno as a last resort. Add comment.
18961 (sel_redirect_edge_and_branch): Save old seqno of the conditional
18962 jump and pass it down to sel_init_new_insn.
18963 (sel_redirect_edge_and_branch_force): Likewise.
18965 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
18967 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
18968 shifted values to avoid build warning.
18970 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18972 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
18973 * cfgrtl.c (rtl_merge_blocks): Fix comment.
18974 (cfg_layout_merge_blocks): Likewise.
18975 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
18977 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
18979 PR rtl-optimization/60901
18980 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
18981 bb predecessor belongs to the same scheduling region. Adjust comment.
18983 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
18985 * doc/sourcebuild.texi: (dfp_hw): Document.
18986 (p8vector_hw): Likewise.
18987 (powerpc_eabi_ok): Likewise.
18988 (powerpc_elfv2): Likewise.
18989 (powerpc_htm_ok): Likewise.
18990 (ppc_recip_hw): Likewise.
18991 (vsx_hw): Likewise.
18993 2014-05-13 Cary Coutant <ccoutant@google.com>
18995 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
18997 2014-05-13 David Malcolm <dmalcolm@redhat.com>
18999 * gengtype-parse.c (require3): Eliminate in favor of...
19001 (require_template_declaration): Update to support optional single *
19004 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19005 (create_user_defined_type): Handle a single level of explicit
19006 pointerness within template arguments.
19007 (struct write_types_data): Add field "kind".
19008 (filter_type_name): Handle "*" character.
19009 (write_user_func_for_structure_ptr): Require a write_types_data
19010 rather than just a prefix string, so that we can look up the kind
19011 of the wtd and use it as an index into wrote_user_func_for_ptr,
19012 ensuring that such functions are written at most once. Support
19013 subclasses by invoking the marking function of the ultimate base class.
19014 (write_user_func_for_structure_body): Require a write_types_data
19015 rather than just a prefix string, so that we can pass this to
19016 write_user_func_for_structure_ptr.
19017 (write_func_for_structure): Likewise.
19018 (ggc_wtd): Add initializer of new "kind" field.
19019 (pch_wtd): Likewise.
19021 * gengtype.h (enum write_types_kinds): New.
19022 (struct type): Add field wrote_user_func_for_ptr to the "s"
19025 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19027 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19028 instead of const_binop.
19029 (fold_binary_loc): Likewise.
19031 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19033 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19034 calculation to match get_ref_base_and_extent.
19036 2014-05-13 Catherine Moore <clm@codesourcery.com>
19037 Sandra Loosemore <sandra@codesourcery.com>
19039 * configure.ac: Fix assembly for explicit JALR relocation check.
19040 * configure: Regenerate.
19042 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19044 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19045 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19046 Remove associated type declarations and initialisations.
19047 (arm_expand_neon_builtin): Likewise.
19048 (neon_emit_pair_result_insn): Delete.
19049 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19050 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19051 (neon_vzip<mode>): Likewise.
19052 (neon_vuzp<mode>): Likewise.
19054 2014-05-13 Richard Biener <rguenther@suse.de>
19057 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19058 it needs revisiting whether the call still may be tail-called.
19060 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19062 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19063 * rtl.h (block_symbol): Reduce number of fields to 2.
19064 (rtx_def): Add u2.symbol_ref_flags.
19065 (SYMBOL_REF_FLAGS): Use it.
19066 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19067 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19068 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19069 Lower index of SYMBOL_REF_DATA.
19070 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19071 Print SYMBOL_REF_FLAGS at the same time.
19072 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19074 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19076 * rtl.def (VAR_LOCATION): Remove "i" field.
19077 * rtl.h (rtx_def): Add u2.var_location_status.
19078 (PAT_VAR_LOCATION_STATUS): Use it.
19079 (gen_rtx_VAR_LOCATION): Declare.
19080 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19081 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19082 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19084 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19086 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19087 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19089 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19091 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19092 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19093 * rtl.h (rtx_def): Add insn_uid to u2 field.
19094 (RTX_FLAG_CHECK8): Delete in favor of...
19095 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19096 (INSN_DELETED_P): Update accordingly.
19097 (INSN_UID): Use u2.insn_uid.
19098 (INSN_CHAIN_CODE_P): Define.
19099 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19100 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19101 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19102 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19103 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19104 indices accordingly.
19105 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19106 Update indices for insn-chain rtxes.
19107 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19108 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19109 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19110 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19111 * combine.c (try_combine): Likewise.
19112 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19114 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19116 * rtl.def (REG): Remove middle field.
19117 * rtl.h (rtx_def): Add orignal_regno to u2.
19118 (ORIGINAL_REGNO): Use it instead of field 1.
19119 (REG_ATTRS): Lower field index accordingly.
19120 * gengtype.c (adjust_field_rtx_def): Remove handling of
19121 ORIGINAL_REGNO. Move REG_ATTRS index down.
19122 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19123 code that prints the REGNO.
19125 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19127 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19130 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19132 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19134 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19136 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19137 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19139 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19141 * config/aarch64/aarch64-protos.h
19142 (aarch64_hard_regno_caller_save_mode): New prototype.
19143 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19145 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19147 2014-05-13 Christian Bruel <christian.bruel@st.com>
19149 * target.def (mode_switching): New hook vector.
19150 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19151 (mode_exit, modepriority_to_mode): Likewise.
19152 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19153 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19154 * target.h: Include tm.h and hard-reg-set.h.
19155 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19156 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19157 * doc/tm.texi Regenerate.
19158 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19159 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19160 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19161 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19162 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19163 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19164 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19165 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19166 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19167 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19168 (ix86_emit_mode_set): Hookify.
19169 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19171 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19172 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19173 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19174 (epiphany_mode_priority_to_mode): Remove declaration.
19175 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19176 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19177 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19179 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19180 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19181 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19183 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19186 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19187 is const0_rtx, return immediately. Don't test count == 0 when
19190 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19192 * Makefile.in: add shrink-wrap.o.
19193 * config/i386/i386.c: include "shrink-wrap.h"
19194 * function.c: Likewise.
19195 (requires_stack_frame_p, next_block_for_reg,
19196 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19197 dup_block_and_redirect): Move to shrink-wrap.c
19198 (thread_prologue_and_epilogue_insns): Extract three code segments
19199 as functions in shrink-wrap.c
19200 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19202 * shrink-wrap.c: New file.
19203 * shrink-wrap.h: New file.
19205 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19207 * doc/extend.texi: Reflect current numbers of pragmas. Remove
19208 reference to Solaris.
19210 2014-05-12 Mike Stump <mikestump@comcast.net>
19213 * genattrtab.c (filename): Add.
19214 (convert_set_attr_alternative): Improve error message.
19215 (check_defs): Restore read_md_filename for error messages.
19216 (gen_insn): Save filename.
19218 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
19220 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
19221 -fno-local-ivars and -fivar-visibility.
19222 * c-family/c.opt: Make -Wshadow also implicitly enable
19225 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19227 * doc/tm.texi: Remove reference to deleted macro.
19228 * doc/tm.texi.in: Likewise.
19230 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19233 * config/avr/avr.c (avr_out_store_psi): Use correct constant
19236 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
19239 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
19240 * config/arm/aout.h (License): Same.
19241 * config/arm/bpabi.h (License): Same.
19242 * config/arm/elf.h (License): Same.
19243 * config/arm/linux-elf.h (License): Same.
19244 * config/arm/linux-gas.h (License): Same.
19245 * config/arm/netbsd-elf.h (License): Same.
19246 * config/arm/uclinux-eabi.h (License): Same.
19247 * config/arm/uclinux-elf.h (License): Same.
19248 * config/arm/vxworks.h (License): Same.
19250 2014-05-11 Jakub Jelinek <jakub@redhat.com>
19252 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
19253 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
19254 number of operands to 3.
19255 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
19256 * tree-nested.c (convert_nonlocal_omp_clauses,
19257 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
19258 * gimplify.c (gimplify_scan_omp_clauses): Handle
19259 OMP_CLAUSE_LINEAR_STMT.
19260 * omp-low.c (lower_rec_input_clauses): Fix typo.
19261 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
19262 cast between Fortran boolean_type_node and C _Bool if
19265 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
19267 PR tree-optimization/61136
19268 * wide-int.h (multiple_of_p): Define a version that doesn't return
19270 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
19271 integer_zerop/const_binop pair.
19272 (multiple_of_p): Likewise, converting both operands to widest_int
19275 2014-05-09 Teresa Johnson <tejohnson@google.com>
19277 * cgraphunit.c (analyze_functions): Use correct dump file.
19279 2014-05-09 Florian Weimer <fweimer@redhat.com>
19281 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
19283 (stack_protect_return_slot_p): New function.
19284 (expand_used_vars): Call stack_protect_decl_p and
19285 stack_protect_return_slot_p for -fstack-protector-strong.
19287 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
19288 Andrew Haley <aph@redhat.com>
19289 Richard Sandiford <rdsandiford@googlemail.com>
19291 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
19294 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19296 PR middle-end/61111
19297 * fold-const.c (fold_binary_loc): Changed width of mask.
19299 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19301 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
19302 unsigned int initializers for regno_in, regno_out.
19304 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19307 * config/avr/avr.md (cc): Add new attribute set_vzn.
19308 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
19309 Set cc insn attribute to set_vzn instead of set_zn for alternatives
19310 with INC, DEC or NEG.
19311 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
19312 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
19313 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
19315 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19318 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19320 * wide-int.cc (UTItype): Define.
19321 (UDWtype): Define for appropriate W_TYPE_SIZE.
19323 2014-05-09 Richard Biener <rguenther@suse.de>
19325 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
19326 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
19327 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
19328 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
19329 ssa_propagate): Adjust.
19331 2014-05-08 Jeff Law <law@redhat.com>
19333 PR tree-optimization/61009
19334 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
19335 tri-state rather than a boolean. When a block is too big to
19336 thread through, inform caller via negative return value.
19337 (thread_across_edge): If a block was too big for normal threading,
19338 then it's too big for a joiner too, so remove temporary equivalences
19339 and return immediately.
19341 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
19342 Matthias Klose <doko@ubuntu.com>
19345 * optc-gen.awk: Fix option handling for -Wunused-parameter.
19347 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19350 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
19352 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19355 * config/alpha/alpha.c: Include gimple-iterator.h.
19356 (alpha_gimple_fold_builtin): New function. Move
19357 ALPHA_BUILTIN_UMULH folding from ...
19358 (alpha_fold_builtin): ... here.
19359 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
19361 2014-05-08 Wei Mi <wmi@google.com>
19364 * config/i386/i386.c (ix86_compute_frame_layout): Update
19365 preferred_stack_boundary for call, expanded from tls descriptor.
19366 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
19367 to depend on SP register.
19368 (*tls_local_dynamic_base_32_gnu): Ditto.
19369 (*tls_local_dynamic_32_once): Ditto.
19370 (tls_global_dynamic_64_<mode>): Set
19371 ix86_tls_descriptor_calls_expanded_in_cfun.
19372 (tls_local_dynamic_base_64_<mode>): Ditto.
19373 (tls_global_dynamic_32): Set
19374 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
19375 to depend on SP register.
19376 (tls_local_dynamic_base_32): Ditto.
19378 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19380 * config/arm/arm_neon.h: Update comment.
19381 * config/arm/neon-docgen.ml: Delete.
19382 * config/arm/neon-gen.ml: Delete.
19383 * doc/arm-neon-intrinsics.texi: Update comment.
19385 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19387 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
19389 (vand, vorr, veor, vorn, vbic): Remove.
19390 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
19392 (neon_vsub_unspec): Likewise.
19393 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
19395 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19397 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
19398 (vadd_s16): Likewise.
19399 (vadd_s32): Likewise.
19400 (vadd_f32): Likewise.
19401 (vadd_u8): Likewise.
19402 (vadd_u16): Likewise.
19403 (vadd_u32): Likewise.
19404 (vadd_s64): Likewise.
19405 (vadd_u64): Likewise.
19406 (vaddq_s8): Likewise.
19407 (vaddq_s16): Likewise.
19408 (vaddq_s32): Likewise.
19409 (vaddq_s64): Likewise.
19410 (vaddq_f32): Likewise.
19411 (vaddq_u8): Likewise.
19412 (vaddq_u16): Likewise.
19413 (vaddq_u32): Likewise.
19414 (vaddq_u64): Likewise.
19415 (vmul_s8): Likewise.
19416 (vmul_s16): Likewise.
19417 (vmul_s32): Likewise.
19418 (vmul_f32): Likewise.
19419 (vmul_u8): Likewise.
19420 (vmul_u16): Likewise.
19421 (vmul_u32): Likewise.
19422 (vmul_p8): Likewise.
19423 (vmulq_s8): Likewise.
19424 (vmulq_s16): Likewise.
19425 (vmulq_s32): Likewise.
19426 (vmulq_f32): Likewise.
19427 (vmulq_u8): Likewise.
19428 (vmulq_u16): Likewise.
19429 (vmulq_u32): Likewise.
19430 (vsub_s8): Likewise.
19431 (vsub_s16): Likewise.
19432 (vsub_s32): Likewise.
19433 (vsub_f32): Likewise.
19434 (vsub_u8): Likewise.
19435 (vsub_u16): Likewise.
19436 (vsub_u32): Likewise.
19437 (vsub_s64): Likewise.
19438 (vsub_u64): Likewise.
19439 (vsubq_s8): Likewise.
19440 (vsubq_s16): Likewise.
19441 (vsubq_s32): Likewise.
19442 (vsubq_s64): Likewise.
19443 (vsubq_f32): Likewise.
19444 (vsubq_u8): Likewise.
19445 (vsubq_u16): Likewise.
19446 (vsubq_u32): Likewise.
19447 (vsubq_u64): Likewise.
19448 (vand_s8): Likewise.
19449 (vand_s16): Likewise.
19450 (vand_s32): Likewise.
19451 (vand_u8): Likewise.
19452 (vand_u16): Likewise.
19453 (vand_u32): Likewise.
19454 (vand_s64): Likewise.
19455 (vand_u64): Likewise.
19456 (vandq_s8): Likewise.
19457 (vandq_s16): Likewise.
19458 (vandq_s32): Likewise.
19459 (vandq_s64): Likewise.
19460 (vandq_u8): Likewise.
19461 (vandq_u16): Likewise.
19462 (vandq_u32): Likewise.
19463 (vandq_u64): Likewise.
19464 (vorr_s8): Likewise.
19465 (vorr_s16): Likewise.
19466 (vorr_s32): Likewise.
19467 (vorr_u8): Likewise.
19468 (vorr_u16): Likewise.
19469 (vorr_u32): Likewise.
19470 (vorr_s64): Likewise.
19471 (vorr_u64): Likewise.
19472 (vorrq_s8): Likewise.
19473 (vorrq_s16): Likewise.
19474 (vorrq_s32): Likewise.
19475 (vorrq_s64): Likewise.
19476 (vorrq_u8): Likewise.
19477 (vorrq_u16): Likewise.
19478 (vorrq_u32): Likewise.
19479 (vorrq_u64): Likewise.
19480 (veor_s8): Likewise.
19481 (veor_s16): Likewise.
19482 (veor_s32): Likewise.
19483 (veor_u8): Likewise.
19484 (veor_u16): Likewise.
19485 (veor_u32): Likewise.
19486 (veor_s64): Likewise.
19487 (veor_u64): Likewise.
19488 (veorq_s8): Likewise.
19489 (veorq_s16): Likewise.
19490 (veorq_s32): Likewise.
19491 (veorq_s64): Likewise.
19492 (veorq_u8): Likewise.
19493 (veorq_u16): Likewise.
19494 (veorq_u32): Likewise.
19495 (veorq_u64): Likewise.
19496 (vbic_s8): Likewise.
19497 (vbic_s16): Likewise.
19498 (vbic_s32): Likewise.
19499 (vbic_u8): Likewise.
19500 (vbic_u16): Likewise.
19501 (vbic_u32): Likewise.
19502 (vbic_s64): Likewise.
19503 (vbic_u64): Likewise.
19504 (vbicq_s8): Likewise.
19505 (vbicq_s16): Likewise.
19506 (vbicq_s32): Likewise.
19507 (vbicq_s64): Likewise.
19508 (vbicq_u8): Likewise.
19509 (vbicq_u16): Likewise.
19510 (vbicq_u32): Likewise.
19511 (vbicq_u64): Likewise.
19512 (vorn_s8): Likewise.
19513 (vorn_s16): Likewise.
19514 (vorn_s32): Likewise.
19515 (vorn_u8): Likewise.
19516 (vorn_u16): Likewise.
19517 (vorn_u32): Likewise.
19518 (vorn_s64): Likewise.
19519 (vorn_u64): Likewise.
19520 (vornq_s8): Likewise.
19521 (vornq_s16): Likewise.
19522 (vornq_s32): Likewise.
19523 (vornq_s64): Likewise.
19524 (vornq_u8): Likewise.
19525 (vornq_u16): Likewise.
19526 (vornq_u32): Likewise.
19527 (vornq_u64): Likewise.
19529 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19531 * wide-int.cc (UTItype): Define.
19532 (UDWtype): Define for appropriate W_TYPE_SIZE.
19534 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
19536 PR tree-optimization/59100
19537 * tree-ssa-phiopt.c: Include tree-inline.h.
19538 (neutral_element_p, absorbing_element_p): New functions.
19539 (value_replacement): Handle conditional binary operations with a
19540 neutral or absorbing element.
19542 2014-05-08 Richard Biener <rguenther@suse.de>
19544 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19545 folding the expression.
19546 (valueize_expr): Remove.
19547 (visit_reference_op_load): Do not valueize the result of
19549 (simplify_binary_expression): Likewise.
19550 (simplify_unary_expression): Likewise.
19552 2014-05-08 Richard Biener <rguenther@suse.de>
19554 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19555 looking at TYPE_ARG_TYPES.
19557 2014-05-08 Richard Biener <rguenther@suse.de>
19559 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19560 pointer propagation special-case.
19562 2014-05-08 Bin Cheng <bin.cheng@arm.com>
19564 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19565 core part of address expressions.
19567 2014-05-08 Alan Modra <amodra@gmail.com>
19570 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19571 loads and stores when -mno-strict-align at any alignment.
19572 (expand_block_clear): Similarly. Also correct calculation of
19575 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
19577 PR middle-end/39246
19578 * tree-complex.c (expand_complex_move): Keep line info when expanding
19580 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19581 of complex expression. Use new argument to display correct location
19582 for values coming from phi statement.
19583 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19584 (warn_uninitialized_phi): Pass location of phi argument to
19586 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19587 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19589 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19591 * config/rs6000/predicates.md (indexed_address_mem): New.
19592 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19593 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19594 fpstore_ux, fpstore_u.
19595 (sign_extend, indexed, update): New.
19596 (cell_micro): Adjust.
19597 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19598 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19599 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19600 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19601 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19602 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19603 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19604 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19605 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19606 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19607 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19608 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19609 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19610 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19611 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19613 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19614 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19615 *vsx_extract_<mode>_store): Adjust.
19616 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19617 is_cracked_insn, insn_must_be_first_in_group,
19618 insn_must_be_last_in_group): Adjust.
19620 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19622 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19623 ppc440-fpstore): Adjust.
19624 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19625 ppc476-fpstore): Adjust.
19626 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19627 ppc601-fpstore): Adjust.
19628 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19630 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19632 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19633 ppc7450-fpstore): Adjust.
19634 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19635 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19636 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19638 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19639 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19640 cell-fpstore, cell-fpstore-update): Adjust.
19641 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19642 ppce300c3_store, ppce300c3_fpstore): Adjust.
19643 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19644 e500mc_fpstore): Adjust.
19645 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19646 e500mc64_store, e500mc64_fpstore): Adjust.
19647 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19648 e5500_fpstore): Adjust.
19649 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19650 e6500_fpstore): Adjust.
19651 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19653 * config/rs6000/power4.md (power4-load, power4-load-ext,
19654 power4-load-ext-update, power4-load-ext-update-indexed,
19655 power4-load-update-indexed, power4-load-update, power4-fpload,
19656 power4-fpload-update, power4-store, power4-store-update,
19657 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19659 * config/rs6000/power5.md (power5-load, power5-load-ext,
19660 power5-load-ext-update, power5-load-ext-update-indexed,
19661 power5-load-update-indexed, power5-load-update, power5-fpload,
19662 power5-fpload-update, power5-store, power5-store-update,
19663 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19665 * config/rs6000/power6.md (power6-load, power6-load-ext,
19666 power6-load-update, power6-load-update-indexed,
19667 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19668 power6-fpload-update, power6-store, power6-store-update,
19669 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19671 * config/rs6000/power7.md (power7-load, power7-load-ext,
19672 power7-load-update, power7-load-update-indexed,
19673 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19674 power7-fpload-update, power7-store, power7-store-update,
19675 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19677 * config/rs6000/power8.md (power8-load, power8-load-update,
19678 power8-load-ext, power8-load-ext-update, power8-fpload,
19679 power8-fpload-update, power8-store, power8-store-update-indexed,
19680 power8-fpstore, power8-fpstore-update): Adjust.
19681 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19683 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19684 titan_lsu_store, titan_lsu_fpstore): Adjust.
19685 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19687 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
19690 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19691 unrolled byte insns. Emit address increments after move insns.
19693 2014-05-07 David Malcolm <dmalcolm@redhat.com>
19695 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19696 const_gimple, rather than a gimple.
19697 (gimple_call_builtin_p): Likewise, for the three variants.
19699 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19700 (gimple_call_builtin_p): Likewise, for the three variants.
19702 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19704 PR tree-optimization/61095
19705 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19707 2014-05-07 Richard Biener <rguenther@suse.de>
19709 PR tree-optimization/61034
19710 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19711 (maybe_skip_until): Use translate to take into account
19712 lattices when trying to do disambiguations.
19713 (get_continuation_for_phi_1): Likewise.
19714 (get_continuation_for_phi): Adjust for added translate arguments.
19715 (walk_non_aliased_vuses): Likewise.
19716 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19717 (walk_non_aliased_vuses): Likewise.
19718 (call_may_clobber_ref_p_1): Declare.
19719 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19720 calls. Stop early if we are only supposed to disambiguate.
19721 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19723 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
19725 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19726 Emit an error when the function has arguments.
19728 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19730 * cfgloop.h (unswitch_loops): Remove.
19731 * doc/passes.texi: Remove references to loop-unswitch.c
19732 * timevar.def (TV_LOOP_UNSWITCH): Remove.
19734 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
19736 * tree-vect-data-refs.c (vect_grouped_load_supported): New
19737 check for loads group of length 3.
19738 (vect_permute_load_chain): New permutations for loads group of
19740 * tree-vect-stmts.c (vect_model_load_cost): Change cost
19741 of vec_perm_shuffle for the new permutations.
19743 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
19745 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19746 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19747 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19748 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19749 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19750 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19751 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19752 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19754 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19756 * loop-unswitch.c: Delete.
19758 2014-05-07 Richard Biener <rguenther@suse.de>
19760 * config.gcc: Always set need_64bit_hwint to yes.
19762 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
19764 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19765 of using optimize_size.
19767 2014-05-06 Mike Stump <mikestump@comcast.net>
19769 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19771 2014-05-06 Joseph Myers <joseph@codesourcery.com>
19773 * config/i386/sse.md (*mov<mode>_internal)
19774 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19775 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19776 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19777 (*<code><mode>3, *andnot<mode>3<mask_name>)
19778 (<mask_codefor><code><mode>3<mask_name>): Only consider
19779 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19781 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19784 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19786 * lra-constraints.c (valid_address_p): Move earlier in file.
19787 Add a constraint argument to the address_info version.
19788 (satisfies_memory_constraint_p): New function.
19789 (satisfies_address_constraint_p): Likewise.
19790 (process_alt_operands, curr_insn_transform): Use them.
19791 (process_address): Pass the constraint to valid_address_p when
19792 checking address operands.
19794 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
19796 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19797 to their respective blocks. Fix inadvertent use of "node".
19799 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19801 * emit-rtl.c (init_derived_machine_modes): New functionm, split
19803 (init_emit_once): ...here.
19804 * rtl.h (init_derived_machine_modes): Declare.
19805 * toplev.c (do_compile): Call it even if no_backend.
19807 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
19808 Mike Stump <mikestump@comcast.net>
19809 Richard Sandiford <rdsandiford@googlemail.com>
19810 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19812 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19813 (rtx_equal_for_memref_p): Update comment.
19814 (adjust_offset_for_component_ref): Use wide-int interfaces.
19815 * builtins.c (get_object_alignment_2): Likewise.
19816 (c_readstr): Likewise.
19817 (target_char_cast): Add comment.
19818 (determine_block_size): Use wide-int interfaces.
19819 (expand_builtin_signbit): Likewise.
19820 (fold_builtin_int_roundingfn): Likewise.
19821 (fold_builtin_bitop): Likewise.
19822 (fold_builtin_bswap): Likewise.
19823 (fold_builtin_logarithm): Use signop.
19824 (fold_builtin_pow): Likewise.
19825 (fold_builtin_memory_op): Use wide-int interfaces.
19826 (fold_builtin_object_size): Likewise.
19827 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19828 nb_iterations_estimate.
19829 (record_niter_bound): Use wide-int interfaces.
19830 (get_estimated_loop_iterations_int): Likewise.
19831 (get_estimated_loop_iterations): Likewise.
19832 (get_max_loop_iterations): Likewise.
19833 * cfgloop.h: Include wide-int.h.
19834 (struct nb_iter_bound): Change bound to widest_int.
19835 (struct loop): Change nb_iterations_upper_bound and
19836 nb_iterations_estimate to widest_int.
19837 (record_niter_bound): Switch to use widest_int.
19838 (get_estimated_loop_iterations): Likewise.
19839 (get_max_loop_iterations): Likewise.
19840 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
19841 update for wide-int.
19842 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
19843 * combine.c (try_combine): Likewise.
19844 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
19845 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
19847 (aarch64_float_const_representable_p): Likewise.
19848 * config/arc/arc.c: Include wide-int.h.
19849 (arc_can_use_doloop_p): Use wide-int interfaces.
19850 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
19851 (vfp3_const_double_index): Likewise.
19852 * config/avr/avr.c (avr_out_round): Likewise.
19853 (avr_fold_builtin): Likewise.
19854 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
19855 (bfin_can_use_doloop_p): Likewise.
19856 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
19857 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
19858 * config/i386/i386.c: Include wide-int.h.
19859 (ix86_data_alignment): Use wide-int interfaces.
19860 (ix86_local_alignment): Likewise.
19861 (ix86_emit_swsqrtsf): Update real_from_integer.
19862 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
19863 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19864 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
19865 (zero_constant): Likewise.
19866 (input_operand): Likewise.
19867 (splat_input_operand): Likewise.
19868 (non_logical_cint_operand): Change const_double to const_wide_int.
19869 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
19870 (easy_altivec_constant): Remove comment.
19871 (paired_expand_vector_init): Use CONSTANT_P.
19872 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
19873 (rs6000_emit_move): Update checks.
19874 (rs6000_aggregate_candidate): Use wide-int interfaces.
19875 (rs6000_expand_ternop_builtin): Likewise.
19876 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
19877 (rs6000_assemble_integer): Likewise.
19878 (rs6000_hash_constant): Likewise.
19879 (output_toc): Likewise.
19880 (rs6000_rtx_costs): Likewise.
19881 (rs6000_emit_swrsqrt); Update call to real_from_integer.
19882 * config/rs6000/rs6000-c.c: Include wide-int.h.
19883 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
19884 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
19885 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
19886 Handle CONST_WIDE_INT.
19887 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
19888 Use tree_fits_uhwi_p.
19889 * config/sparc/sparc.c: Include wide-int.h.
19890 (sparc_fold_builtin): Use wide-int interfaces.
19891 * config/vax/vax.c: Include wide-int.h.
19892 (vax_float_literal): Use real_from_integer.
19893 * coretypes.h (struct hwivec_def): New.
19895 (const_hwivec): New.
19896 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
19897 (equiv_constant): Handle CONST_WIDE_INT.
19898 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
19899 (cselib_hash_rtx): Handle CONST_WIDE_INT.
19900 * dbxout.c (stabstr_U): Use wide-int interfaces.
19901 (dbxout_type): Update to use cst_fits_shwi_p.
19902 * defaults.h (LOG2_BITS_PER_UNIT): Define.
19903 (TARGET_SUPPORTS_WIDE_INT): Add default.
19904 * dfp.c: Include wide-int.h.
19905 (decimal_real_to_integer2): Use wide-int interfaces and rename to
19906 decimal_real_to_integer.
19907 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
19908 decimal_real_to_integer.
19909 * doc/generic.texi (Constant expressions): Update for wide_int.
19910 * doc/rtl.texi (const_double): Likewise.
19911 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
19912 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
19913 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
19914 (REAL_VALUE_FROM_INT): Remove.
19915 (TARGET_SUPPORTS_WIDE_INT): New.
19916 * doc/tm.texi: Regenerate.
19917 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
19918 * double-int.h: Include wide-int.h.
19919 (struct wi::int_traits): New.
19920 * dwarf2out.c (get_full_len): New.
19921 (dw_val_equal_p): Add case dw_val_class_wide_int.
19922 (size_of_loc_descr): Likewise.
19923 (output_loc_operands): Likewise.
19924 (insert_double): Remove.
19925 (insert_wide_int): New.
19926 (add_AT_wide): New.
19927 (print_die): Add case dw_val_class_wide_int.
19928 (attr_checksum): Likewise.
19929 (attr_checksum_ordered): Likewise.
19930 (same_dw_val_p): Likewise.
19931 (size_of_die): Likewise.
19932 (value_format): Likewise.
19933 (output_die): Likewise.
19934 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
19936 (clz_loc_descriptor): Use wide-int interfaces.
19937 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
19938 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
19939 (round_up_to_align): Use wide-int interfaces.
19940 (field_byte_offset): Likewise.
19941 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
19942 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
19943 CONST_DOUBLE handling. Use wide-int interfaces.
19944 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
19945 (gen_enumeration_type_die): Use add_AT_wide.
19946 (hash_loc_operands): Add case dw_val_class_wide_int.
19947 (compare_loc_operands): Likewise.
19948 * dwarf2out.h: Include wide-int.h.
19949 (wide_int_ptr): New.
19950 (enum dw_val_class): Add dw_val_class_wide_int.
19951 (struct dw_val_struct): Add val_wide.
19952 * emit-rtl.c (const_wide_int_htab): New.
19953 (const_wide_int_htab_hash): New.
19954 (const_wide_int_htab_eq): New.
19955 (lookup_const_wide_int): New.
19956 (const_double_htab_hash): Use wide-int interfaces.
19957 (const_double_htab_eq): Likewise.
19958 (rtx_to_double_int): Conditionally compile for wide-int.
19959 (immed_double_int_const): Rename to immed_wide_int_const and
19960 update for wide-int.
19961 (immed_double_const): Conditionally compile for wide-int.
19962 (init_emit_once): Use wide-int interfaces.
19963 * explow.c (plus_constant): Likewise.
19964 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
19965 (lshift_value): Use wide-int interfaces.
19966 (expand_mult): Likewise.
19967 (choose_multiplier): Likewise.
19968 (expand_smod_pow2): Likewise.
19969 (make_tree): Likewise.
19970 * expr.c (convert_modes): Consolidate handling of constants.
19971 Use wide-int interfaces.
19972 (emit_group_load_1): Add note.
19973 (store_expr): Update comment.
19974 (get_inner_reference): Use wide-int interfaces.
19975 (expand_constructor): Update comment.
19976 (expand_expr_real_2): Use wide-int interfaces.
19977 (expand_expr_real_1): Likewise.
19978 (reduce_to_bit_field_precision): Likewise.
19979 (const_vector_from_tree): Likewise.
19980 * final.c: Include wide-int-print.h.
19981 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
19982 * fixed-value.c: Include wide-int.h.
19983 (fixed_from_string): Use wide-int interfaces.
19984 (fixed_to_decimal): Likewise.
19985 (fixed_convert_from_real): Likewise.
19986 (real_convert_from_fixed): Likewise.
19987 * fold-const.h (mem_ref_offset): Return an offset_int.
19988 (div_if_zero_remainder): Remove code parameter.
19989 * fold-const.c (div_if_zero_remainder): Remove code parameter.
19990 Use wide-int interfaces.
19991 (may_negate_without_overflow_p): Use wide-int interfaces.
19992 (negate_expr_p): Likewise.
19993 (fold_negate_expr): Likewise.
19994 (int_const_binop_1): Likewise.
19995 (const_binop): Likewise.
19996 (fold_convert_const_int_from_int): Likewise.
19997 (fold_convert_const_int_from_real): Likewise.
19998 (fold_convert_const_int_from_fixed): Likewise.
19999 (fold_convert_const_fixed_from_int): Likewise.
20000 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20001 (sign_bit_p): Use wide-int interfaces.
20002 (make_range_step): Likewise.
20003 (build_range_check): Likewise. Pass an integer of the correct type
20004 instead of using integer_one_node.
20005 (range_predecessor): Pass an integer of the correct type instead
20006 of using integer_one_node.
20007 (range_successor): Likewise.
20008 (merge_ranges): Likewise.
20009 (unextend): Use wide-int interfaces.
20010 (extract_muldiv_1): Likewise.
20011 (fold_div_compare): Likewise.
20012 (fold_single_bit_test): Likewise.
20013 (fold_sign_changed_comparison): Likewise.
20014 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20015 (fold_plusminus_mult_expr): Use wide-int interfaces.
20016 (native_encode_int): Likewise.
20017 (native_interpret_int): Likewise.
20018 (fold_unary_loc): Likewise.
20019 (pointer_may_wrap_p): Likewise.
20020 (size_low_cst): Likewise.
20021 (mask_with_tz): Likewise.
20022 (fold_binary_loc): Likewise.
20023 (fold_ternary_loc): Likewise.
20024 (multiple_of_p): Likewise.
20025 (tree_call_nonnegative_warnv_p): Update calls to
20026 tree_int_cst_min_precision and real_from_integer.
20027 (fold_negate_const): Use wide-int interfaces.
20028 (fold_abs_const): Likewise.
20029 (fold_relational_const): Use tree_int_cst_lt.
20030 (round_up_loc): Use wide-int interfaces.
20031 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20032 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20033 * gengtype.c: Remove include of double-int.h.
20034 (do_typedef): Use wide-int interfaces.
20035 (open_base_files): Add wide-int.h.
20036 (main): Add offset_int and widest_int typedefs.
20037 * gengtype-lex.l: Handle "^".
20038 (CXX_KEYWORD): Add "static".
20039 * gengtype-parse.c (require3): New.
20040 (require_template_declaration): Handle constant template arguments
20041 and nested templates.
20042 * gengtype-state.c: Don't include "double-int.h".
20043 * genpreds.c (write_one_predicate_function): Update comment.
20044 (write_tm_constrs_h): Add check for hval and lval use in
20046 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20047 (add_to_sequence): Likewise.
20048 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20049 and const_double_operand.
20050 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20052 * gimple-fold.c (get_base_constructor): Likewise.
20053 (fold_array_ctor_reference): Likewise.
20054 (fold_nonarray_ctor_reference): Likewise.
20055 (fold_const_aggregate_ref_1): Likewise.
20056 (gimple_val_nonnegative_real_p): Likewise.
20057 (gimple_fold_indirect_ref): Likewise.
20058 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20059 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20060 (struct slsr_cand_d): Change index to be widest_int.
20061 (struct incr_info_d): Change incr to be widest_int.
20062 (alloc_cand_and_find_basis): Use wide-int interfaces.
20063 (slsr_process_phi): Likewise.
20064 (backtrace_base_for_ref): Likewise. Return a widest_int.
20065 (restructure_reference): Take a widest_int instead of a double_int.
20066 (slsr_process_ref): Use wide-int interfaces.
20067 (create_mul_ssa_cand): Likewise.
20068 (create_mul_imm_cand): Likewise.
20069 (create_add_ssa_cand): Likewise.
20070 (create_add_imm_cand): Take a widest_int instead of a double_int.
20071 (slsr_process_add): Use wide-int interfaces.
20072 (slsr_process_cast): Likewise.
20073 (slsr_process_copy): Likewise.
20074 (dump_candidate): Likewise.
20075 (dump_incr_vec): Likewise.
20076 (replace_ref): Likewise.
20077 (cand_increment): Likewise. Return a widest_int.
20078 (cand_abs_increment): Likewise.
20079 (replace_mult_candidate): Take a widest_int instead of a double_int.
20080 (replace_unconditional_candidate): Use wide-int interfaces.
20081 (incr_vec_index): Take a widest_int instead of a double_int.
20082 (create_add_on_incoming_edge): Likewise.
20083 (create_phi_basis): Use wide-int interfaces.
20084 (replace_conditional_candidate): Likewise.
20085 (record_increment): Take a widest_int instead of a double_int.
20086 (record_phi_increments): Use wide-int interfaces.
20087 (phi_incr_cost): Take a widest_int instead of a double_int.
20088 (lowest_cost_path): Likewise.
20089 (total_savings): Likewise.
20090 (analyze_increments): Use wide-int interfaces.
20091 (ncd_with_phi): Take a widest_int instead of a double_int.
20092 (ncd_of_cand_and_phis): Likewise.
20093 (nearest_common_dominator_for_cands): Likewise.
20094 (insert_initializers): Use wide-int interfaces.
20095 (all_phi_incrs_profitable): Likewise.
20096 (replace_one_candidate): Likewise.
20097 (replace_profitable_candidates): Likewise.
20098 * godump.c: Include wide-int-print.h.
20099 (go_output_typedef): Use wide-int interfaces.
20100 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20101 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20102 (build_loop_iteration_domains): Likewise.
20103 * hooks.h: Include wide-int.h rather than double-int.h.
20104 (hook_bool_dint_dint_uint_bool_true): Delete.
20105 (hook_bool_wint_wint_uint_bool_true): Declare.
20106 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20107 (hook_bool_wint_wint_uint_bool_true): New.
20108 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20110 (ubsan_expand_si_overflow_mul_check): Likewise.
20111 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20112 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20113 (get_ancestor_addr_info): Likewise.
20114 (ipa_modify_call_arguments): Likewise.
20115 * loop-doloop.c (doloop_modify): Likewise.
20116 (doloop_optimize): Likewise.
20117 * loop-iv.c (iv_number_of_iterations): Likewise.
20118 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20119 (unroll_loop_constant_iterations): Likewise.
20120 (decide_unroll_runtime_iterations): Likewise.
20121 (unroll_loop_runtime_iterations): Likewise.
20122 (decide_peel_simple): Likewise.
20123 (decide_unroll_stupid): Likewise.
20124 * lto-streamer-in.c (streamer_read_wi): Add.
20125 (input_cfg): Use wide-int interfaces.
20126 (lto_input_tree_1): Likewise.
20127 * lto-streamer-out.c (streamer_write_wi): Add.
20128 (hash_tree): Use wide-int interfaces.
20129 (output_cfg): Likewise.
20130 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20131 (GTFILES): Add wide-int.h and signop.h.
20132 (TAGS): Look for .cc files too.
20133 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20134 * optabs.c (expand_subword_shift): Likewise.
20135 (expand_doubleword_shift): Likewise.
20136 (expand_absneg_bit): Likewise.
20137 (expand_copysign_absneg): Likewise.
20138 (expand_copysign_bit): Likewise.
20139 * postreload.c (reload_cse_simplify_set): Likewise.
20140 * predict.c (predict_iv_comparison): Likewise.
20141 * pretty-print.h: Include wide-int-print.h.
20143 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20144 * print-tree.c: Include wide-int-print.h.
20145 (print_node_brief): Use wide-int interfaces.
20146 (print_node): Likewise.
20147 * read-rtl.c (validate_const_wide_int): New.
20148 (read_rtx_code): Add CONST_WIDE_INT case.
20149 * real.c: Include wide-int.h.
20150 (real_to_integer2): Delete.
20151 (real_to_integer): New function, returning a wide_int.
20152 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20153 (ten_to_ptwo): Update call to real_from_integer.
20154 (real_digit): Likewise.
20155 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20156 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20157 (REAL_VALUE_TO_INT): Delete.
20158 (real_to_integer): Declare a wide-int form.
20159 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20160 * recog.c (const_int_operand): Improve comment.
20161 (const_scalar_int_operand): New.
20162 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20163 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20164 (split_double): Likewise.
20165 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20166 (rtx_size): Likewise.
20167 (rtx_alloc_stat_v): New.
20168 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20169 (cwi_output_hex): New.
20170 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20171 (cwi_check_failed_bounds): New.
20172 * rtl.def (CONST_WIDE_INT): New.
20173 * rtl.h: Include <utility> and wide-int.h.
20174 (struct hwivec_def): New.
20175 (CWI_GET_NUM_ELEM): New.
20176 (CWI_PUT_NUM_ELEM): New.
20177 (struct rtx_def): Add num_elem and hwiv.
20178 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20179 (CASE_CONST_UNIQUE): Likewise.
20180 (CASE_CONST_ANY): Likewise.
20181 (CONST_SCALAR_INT_P): Likewise.
20182 (CONST_WIDE_INT_P): New.
20184 (HWIVEC_CHECK): New.
20185 (cwi_check_failed_bounds): New.
20187 (HWIVEC_CHECK): New.
20188 (CONST_WIDE_INT_VEC) New.
20189 (CONST_WIDE_INT_NUNITS) New.
20190 (CONST_WIDE_INT_ELT) New.
20191 (rtx_mode_t): New type.
20192 (wi::int_traits <rtx_mode_t>): New.
20194 (wi::min_value): New.
20195 (wi::max_value): New.
20197 (const_wide_int_alloc): New.
20198 (immed_wide_int_const): New.
20199 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20200 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20201 * signop.h: New file.
20202 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20203 (simplify_const_unary_operation): Use wide-int interfaces.
20204 (simplify_binary_operation_1): Likewise.
20205 (simplify_const_binary_operation): Likewise.
20206 (simplify_const_relational_operation): Likewise.
20207 (simplify_immed_subreg): Likewise.
20208 * stmt.c (expand_case): Likewise.
20209 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
20210 signop rather than a bool.
20211 * stor-layout.c (layout_type): Use wide-int interfaces.
20212 (initialize_sizetypes): Update calls to
20213 set_min_and_max_values_for_integral_type.
20214 (set_min_and_max_values_for_integral_type): Take a signop rather
20215 than a bool. Use wide-int interfaces.
20216 (fixup_signed_type): Update accordingly. Remove
20217 HOST_BITS_PER_DOUBLE_INT limit.
20218 (fixup_unsigned_type): Likewise.
20219 * system.h (STATIC_CONSTANT_P): New.
20220 (STATIC_ASSERT): New.
20221 * target.def (can_use_doloop_p): Take widest_ints rather than
20223 * target.h: Include wide-int.h rather than double-int.h.
20224 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
20226 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
20227 rather than INT_CST_LT_UNSIGNED.
20228 (can_use_doloop_if_innermost): Take widest_ints rather than
20230 * tree-affine.c: Include wide-int-print.h.
20231 (double_int_ext_for_comb): Delete.
20232 (wide_int_ext_for_comb): New.
20233 (aff_combination_zero): Use wide-int interfaces.
20234 (aff_combination_const): Take a widest_int instead of a double_int.
20235 (aff_combination_elt): Use wide-int interfaces.
20236 (aff_combination_scale): Take a widest_int instead of a double_int.
20237 (aff_combination_add_elt): Likewise.
20238 (aff_combination_add_cst): Likewise.
20239 (aff_combination_add): Use wide-int interfaces.
20240 (aff_combination_convert): Likewise.
20241 (tree_to_aff_combination): Likewise.
20242 (add_elt_to_tree): Take a widest_int instead of a double_int.
20243 (aff_combination_to_tree): Use wide-int interfaces.
20244 (aff_combination_remove_elt): Likewise.
20245 (aff_combination_add_product): Take a widest_int instead of
20247 (aff_combination_mult): Use wide-int interfaces.
20248 (aff_combination_expand): Likewise.
20249 (double_int_constant_multiple_p): Delete.
20250 (wide_int_constant_multiple_p): New.
20251 (aff_combination_constant_multiple_p): Take a widest_int pointer
20252 instead of a double_int pointer.
20253 (print_aff): Use wide-int interfaces.
20254 (get_inner_reference_aff): Take a widest_int pointer
20255 instead of a double_int pointer.
20256 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
20257 * tree-affine.h: Include wide-int.h.
20258 (struct aff_comb_elt): Change type of coef to widest_int.
20259 (struct affine_tree_combination): Change type of offset to widest_int.
20260 (double_int_ext_for_comb): Delete.
20261 (wide_int_ext_for_comb): New.
20262 (aff_combination_const): Use widest_int instead of double_int.
20263 (aff_combination_scale): Likewise.
20264 (aff_combination_add_elt): Likewise.
20265 (aff_combination_constant_multiple_p): Likewise.
20266 (get_inner_reference_aff): Likewise.
20267 (aff_comb_cannot_overlap_p): Likewise.
20268 (aff_combination_zero_p): Use wide-int interfaces.
20269 * tree.c: Include tree.h.
20270 (init_ttree): Use make_int_cst.
20271 (tree_code_size): Removed code for INTEGER_CST case.
20272 (tree_size): Add INTEGER_CST case.
20273 (make_node_stat): Update comment.
20274 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
20275 (build_int_cst_type): Use wide-int interfaces.
20276 (double_int_to_tree): Likewise.
20277 (double_int_fits_to_tree_p): Delete.
20278 (force_fit_type_double): Delete.
20279 (force_fit_type): New.
20280 (int_cst_hash_hash): Use wide-int interfaces.
20281 (int_cst_hash_eq): Likewise.
20282 (build_int_cst_wide): Delete.
20283 (wide_int_to_tree): New.
20284 (cache_integer_cst): Use wide-int interfaces.
20285 (build_low_bits_mask): Likewise.
20286 (cst_and_fits_in_hwi): Likewise.
20287 (real_value_from_int_cst): Likewise.
20288 (make_int_cst_stat): New.
20289 (integer_zerop): Use wide_int interfaces.
20290 (integer_onep): Likewise.
20291 (integer_all_onesp): Likewise.
20292 (integer_pow2p): Likewise.
20293 (integer_nonzerop): Likewise.
20294 (tree_log2): Likewise.
20295 (tree_floor_log2): Likewise.
20296 (tree_ctz): Likewise.
20297 (int_size_in_bytes): Likewise.
20298 (mem_ref_offset): Return an offset_int rather than a double_int.
20299 (build_type_attribute_qual_variant): Use wide_int interfaces.
20300 (type_hash_eq): Likewise
20301 (tree_int_cst_equal): Likewise.
20302 (tree_int_cst_lt): Delete.
20303 (tree_int_cst_compare): Likewise.
20304 (tree_fits_shwi_p): Use wide_int interfaces.
20305 (tree_fits_uhwi_p): Likewise.
20306 (tree_int_cst_sign_bit): Likewise.
20307 (tree_int_cst_sgn): Likewise.
20308 (tree_int_cst_min_precision): Take a signop rather than a bool.
20309 (simple_cst_equal): Use wide_int interfaces.
20310 (compare_tree_int): Likewise.
20311 (iterative_hash_expr): Likewise.
20312 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
20314 (get_type_static_bounds): Use wide_int interfaces.
20315 (tree_int_cst_elt_check_failed): New.
20316 (build_common_tree_nodes): Reordered to set prec before filling in
20318 (int_cst_value): Check cst_and_fits_in_hwi.
20319 (widest_int_cst_value): Use wide_int interfaces.
20320 (upper_bound_in_type): Likewise.
20321 (lower_bound_in_type): Likewise.
20322 (num_ending_zeros): Likewise.
20323 (drop_tree_overflow): Likewise.
20324 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
20325 (gen_conditions_for_pow_cst_base): Likewise.
20326 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
20327 (group_case_labels_stmt): Use wide-int interfaces.
20328 (verify_gimple_assign_binary): Likewise.
20329 (print_loop): Likewise.
20330 * tree-chrec.c (tree_fold_binomial): Likewise.
20331 * tree-core.h (struct tree_base): Add int_length.
20332 (struct tree_int_cst): Change rep of value.
20333 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
20334 (dr_may_alias_p): Likewise.
20335 (max_stmt_executions_tree): Likewise.
20336 * tree.def (INTEGER_CST): Update comment.
20337 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
20338 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
20339 * tree-dump.c: Include wide-int.h and wide-int-print.h.
20340 (dequeue_and_dump): Use wide-int interfaces.
20341 * tree.h: Include wide-int.h.
20342 (NULL_TREE): Moved to earlier loc in file.
20343 (TREE_INT_CST_ELT_CHECK): New.
20344 (tree_int_cst_elt_check_failed): New.
20346 (TREE_INT_CST): Delete.
20347 (TREE_INT_CST_LOW): Use wide-int interfaces.
20348 (TREE_INT_CST_HIGH): Delete.
20349 (TREE_INT_CST_NUNITS): New.
20350 (TREE_INT_CST_EXT_NUNITS): Likewise.
20351 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
20352 (TREE_INT_CST_ELT): Likewise.
20353 (INT_CST_LT): Delete.
20354 (tree_int_cst_elt_check): New (two forms).
20355 (type_code_size): Update comment.
20356 (make_int_cst_stat, make_int_cst): New.
20357 (tree_to_double_int): Delete.
20358 (double_int_fits_to_tree_p): Delete.
20359 (force_fit_type_double): Delete.
20360 (build_int_cstu): Replace with out-of-line function.
20361 (build_int_cst_wide): Delete.
20362 (tree_int_cst_lt): Define inline.
20363 (tree_int_cst_le): New.
20364 (tree_int_cst_compare): Define inline.
20365 (tree_int_cst_min_precision): Take a signop rather than a bool.
20366 (wi::int_traits <const_tree>): New.
20367 (wi::int_traits <tree>): New.
20368 (wi::extended_tree): New.
20369 (wi::int_traits <wi::extended_tree>): New.
20370 (wi::to_widest): New.
20371 (wi::to_offset): New.
20372 (wi::fits_to_tree_p): New.
20373 (wi::min_value): New.
20374 (wi::max_value): New.
20375 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
20376 (copy_tree_body_r): Likewise.
20377 * tree-object-size.c (compute_object_offset): Likewise.
20378 (addr_object_size): Likewise.
20379 * tree-predcom.c: Include wide-int-print.h.
20380 (struct dref_d): Change type of offset to widest_int.
20381 (dump_dref): Call wide-int printer.
20382 (aff_combination_dr_offset): Use wide-int interfaces.
20383 (determine_offset): Take a widest_int pointer rather than a
20384 double_int pointer.
20385 (split_data_refs_to_components): Use wide-int interfaces.
20386 (suitable_component_p): Likewise.
20387 (order_drefs): Likewise.
20388 (add_ref_to_chain): Likewise.
20389 (valid_initializer_p): Likewise.
20390 (determine_roots_comp): Likewise.
20391 * tree-pretty-print.c: Include wide-int-print.h.
20392 (dump_generic_node): Use wide-int interfaces.
20393 * tree-sra.c (sra_ipa_modify_expr): Likewise.
20394 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
20395 (move_fixed_address_to_symbol): Likewise.
20396 (move_hint_to_base): Likewise.
20397 (move_pointer_to_base): Likewise.
20398 (move_variant_to_index): Likewise.
20399 (most_expensive_mult_to_index): Likewise.
20400 (addr_to_parts): Likewise.
20401 (copy_ref_info): Likewise.
20402 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20403 (indirect_refs_may_alias_p): Likewise.
20404 (stmt_kills_ref_p_1): Likewise.
20405 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
20406 * tree-ssa-ccp.c: Update comment at top of file. Include
20408 (struct prop_value_d): Change type of mask to widest_int.
20409 (extend_mask): New function.
20410 (dump_lattice_value): Use wide-int interfaces.
20411 (get_default_value): Likewise.
20412 (set_constant_value): Likewise.
20413 (set_value_varying): Likewise.
20414 (valid_lattice_transition): Likewise.
20415 (set_lattice_value): Likewise.
20416 (value_to_double_int): Delete.
20417 (value_to_wide_int): New.
20418 (get_value_from_alignment): Use wide-int interfaces.
20419 (get_value_for_expr): Likewise.
20420 (do_dbg_cnt): Likewise.
20421 (ccp_finalize): Likewise.
20422 (ccp_lattice_meet): Likewise.
20423 (bit_value_unop_1): Use widest_ints rather than double_ints.
20424 (bit_value_binop_1): Likewise.
20425 (bit_value_unop): Use wide-int interfaces.
20426 (bit_value_binop): Likewise.
20427 (bit_value_assume_aligned): Likewise.
20428 (evaluate_stmt): Likewise.
20429 (ccp_fold_stmt): Likewise.
20430 (visit_cond_stmt): Likewise.
20431 (ccp_visit_stmt): Likewise.
20432 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20433 (constant_pointer_difference): Likewise.
20434 (associate_pointerplus): Likewise.
20435 (combine_conversions): Likewise.
20436 * tree-ssa-loop.h: Include wide-int.h.
20437 (struct tree_niter_desc): Change type of max to widest_int.
20438 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
20439 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
20440 (remove_redundant_iv_tests): Likewise.
20441 (canonicalize_loop_induction_variables): Likewise.
20442 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
20443 (constant_multiple_of): Take a widest_int pointer instead of
20444 a double_int pointer.
20445 (get_computation_aff): Use wide-int interfaces.
20446 (ptr_difference_cost): Likewise.
20447 (difference_cost): Likewise.
20448 (get_loop_invariant_expr_id): Likewise.
20449 (get_computation_cost_at): Likewise.
20450 (iv_elimination_compare_lt): Likewise.
20451 (may_eliminate_iv): Likewise.
20452 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
20453 instead of double_int.
20454 (max_loop_iterations): Likewise.
20455 (max_stmt_executions): Likewise.
20456 (estimated_stmt_executions): Likewise.
20457 * tree-ssa-loop-niter.c: Include wide-int-print.h.
20458 (split_to_var_and_offset): Use wide-int interfaces.
20459 (determine_value_range): Likewise.
20460 (bound_difference_of_offsetted_base): Likewise.
20461 (bounds_add): Take a widest_int instead of a double_int.
20462 (number_of_iterations_ne_max): Use wide-int interfaces.
20463 (number_of_iterations_ne): Likewise.
20464 (number_of_iterations_lt_to_ne): Likewise.
20465 (assert_loop_rolls_lt): Likewise.
20466 (number_of_iterations_lt): Likewise.
20467 (number_of_iterations_le): Likewise.
20468 (number_of_iterations_cond): Likewise.
20469 (number_of_iterations_exit): Likewise.
20470 (finite_loop_p): Likewise.
20471 (derive_constant_upper_bound_assign): Likewise.
20472 (derive_constant_upper_bound): Return a widest_int.
20473 (derive_constant_upper_bound_ops): Likewise.
20474 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
20475 (record_estimate): Take a widest_int rather than a double_int.
20476 (record_nonwrapping_iv): Use wide-int interfaces.
20477 (double_int_cmp): Delete.
20478 (wide_int_cmp): New.
20479 (bound_index): Take a widest_int rather than a double_int.
20480 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
20481 (maybe_lower_iteration_bound): Likewise.
20482 (estimate_numbers_of_iterations_loop): Likewise.
20483 (estimated_loop_iterations): Take a widest_int pointer than than
20484 a double_int pointer.
20485 (estimated_loop_iterations_int): Use wide-int interfaces.
20486 (max_loop_iterations): Take a widest_int pointer than than
20487 a double_int pointer.
20488 (max_loop_iterations_int): Use wide-int interfaces.
20489 (max_stmt_executions): Take a widest_int pointer than than
20490 a double_int pointer.
20491 (estimated_stmt_executions): Likewise.
20492 (n_of_executions_at_most): Use wide-int interfaces.
20493 (scev_probably_wraps_p): Likewise.
20494 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20495 to real_to_integer.
20496 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20498 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20499 double_ints. Adjust for trailing_wide_ints <3> representation.
20500 (set_nonzero_bits): Likewise.
20501 (get_range_info): Return wide_ints rather than double_ints.
20502 Adjust for trailing_wide_ints <3> representation.
20503 (get_nonzero_bits): Likewise.
20504 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20506 * tree-ssanames.h (struct range_info_def): Replace min, max and
20507 nonzero_bits with a trailing_wide_ints <3>.
20508 (set_range_info): Use wide_int_refs rather than double_ints.
20509 (set_nonzero_bits): Likewise.
20510 (get_range_info): Return wide_ints rather than double_ints.
20511 (get_nonzero_bits): Likewise.
20512 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20513 * tree-ssa-pre.c (phi_translate_1): Likewise.
20514 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20515 (acceptable_pow_call): Likewise.
20516 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20518 (vn_reference_fold_indirect): Likewise.
20519 (vn_reference_maybe_forwprop_address): Likewise.
20520 (valueize_refs_1): Likewise.
20521 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20522 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20523 tree_int_cst_lt and tree_int_cst_le.
20524 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20526 (streamer_alloc_tree): Likewise.
20527 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20528 (streamer_write_tree_header): Likewise.
20529 (streamer_write_integer_cst): Likewise.
20530 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20531 (build_constructors): Likewise.
20532 (array_value_type): Likewise.
20533 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20534 (vect_check_gather): Likewise.
20535 * tree-vect-generic.c (build_replicated_const): Likewise.
20536 (expand_vector_divmod): Likewise.
20537 * tree-vect-loop.c (vect_transform_loop): Likewise.
20538 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20539 (vect_do_peeling_for_alignment): Likewise.
20540 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20541 * tree-vrp.c: Include wide-int.h.
20542 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20543 (extract_range_from_assert): Use wide-int interfaces.
20544 (vrp_int_const_binop): Likewise.
20545 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20546 double_int pointers.
20547 (ranges_from_anti_range): Use wide-int interfaces.
20548 (quad_int_cmp): Delete.
20549 (quad_int_pair_sort): Likewise.
20550 (extract_range_from_binary_expr_1): Use wide-int interfaces.
20551 (extract_range_from_unary_expr_1): Likewise.
20552 (adjust_range_with_scev): Likewise.
20553 (masked_increment): Take and return wide_ints rather than double_ints.
20554 (register_edge_assert_for_2): Use wide-int interfaces.
20555 (check_array_ref): Likewise.
20556 (search_for_addr_array): Likewise.
20557 (maybe_set_nonzero_bits): Likewise.
20558 (union_ranges): Pass an integer of the correct type instead of
20559 using integer_one_node.
20560 (intersect_ranges): Likewise.
20561 (simplify_truth_ops_using_ranges): Likewise.
20562 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20563 (range_fits_type_p): Likewise.
20564 (simplify_cond_using_ranges): Likewise. Take a signop rather than
20566 (simplify_conversion_using_ranges): Use wide-int interfaces.
20567 (simplify_float_conversion_using_ranges): Likewise.
20568 (vrp_finalize): Likewise.
20569 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20570 (gimple_stringops_transform): Likewise.
20571 * varasm.c (decode_addr_const): Likewise.
20572 (const_hash_1): Likewise.
20573 (const_rtx_hash_1): Likewise
20574 (output_constant): Likewise.
20575 (array_size_for_constructor): Likewise.
20576 (output_constructor_regular_field): Likewise.
20577 (output_constructor_bitfield): Likewise.
20578 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20579 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20581 * gencheck.c: Define BITS_PER_UNIT.
20582 * wide-int.cc: New.
20584 * wide-int-print.cc: New.
20585 * wide-int-print.h: New.
20587 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20589 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20591 2014-05-06 Richard Biener <rguenther@suse.de>
20593 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20594 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20595 (TODO_verify_all): Adjust.
20596 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20597 TODO_verify_stmts and TODO_verify_rtl_sharing.
20598 * bb-reorder.c: Likewise.
20599 * cfgexpand.c: Likewise.
20600 * cprop.c: Likewise.
20602 * function.c: Likewise.
20603 * fwprop.c: Likewise.
20604 * gcse.c: Likewise.
20605 * gimple-ssa-isolate-paths.c: Likewise.
20606 * gimple-ssa-strength-reduction.c: Likewise.
20607 * ipa-split.c: Likewise.
20608 * loop-init.c: Likewise.
20609 * loop-unroll.c: Likewise.
20610 * lower-subreg.c: Likewise.
20611 * modulo-sched.c: Likewise.
20612 * postreload-gcse.c: Likewise.
20613 * predict.c: Likewise.
20614 * recog.c: Likewise.
20615 * sched-rgn.c: Likewise.
20616 * store-motion.c: Likewise.
20617 * tracer.c: Likewise.
20618 * trans-mem.c: Likewise.
20619 * tree-call-cdce.c: Likewise.
20620 * tree-cfg.c: Likewise.
20621 * tree-cfgcleanup.c: Likewise.
20622 * tree-complex.c: Likewise.
20623 * tree-eh.c: Likewise.
20624 * tree-emutls.c: Likewise.
20625 * tree-if-conv.c: Likewise.
20626 * tree-into-ssa.c: Likewise.
20627 * tree-loop-distribution.c: Likewise.
20628 * tree-object-size.c: Likewise.
20629 * tree-parloops.c: Likewise.
20630 * tree-pass.h: Likewise.
20631 * tree-sra.c: Likewise.
20632 * tree-ssa-ccp.c: Likewise.
20633 * tree-ssa-copy.c: Likewise.
20634 * tree-ssa-copyrename.c: Likewise.
20635 * tree-ssa-dce.c: Likewise.
20636 * tree-ssa-dom.c: Likewise.
20637 * tree-ssa-dse.c: Likewise.
20638 * tree-ssa-forwprop.c: Likewise.
20639 * tree-ssa-ifcombine.c: Likewise.
20640 * tree-ssa-loop-ch.c: Likewise.
20641 * tree-ssa-loop-ivcanon.c: Likewise.
20642 * tree-ssa-loop.c: Likewise.
20643 * tree-ssa-math-opts.c: Likewise.
20644 * tree-ssa-phiopt.c: Likewise.
20645 * tree-ssa-phiprop.c: Likewise.
20646 * tree-ssa-pre.c: Likewise.
20647 * tree-ssa-reassoc.c: Likewise.
20648 * tree-ssa-sink.c: Likewise.
20649 * tree-ssa-strlen.c: Likewise.
20650 * tree-ssa-tail-merge.c: Likewise.
20651 * tree-ssa-uncprop.c: Likewise.
20652 * tree-switch-conversion.c: Likewise.
20653 * tree-tailcall.c: Likewise.
20654 * tree-vect-generic.c: Likewise.
20655 * tree-vectorizer.c: Likewise.
20656 * tree-vrp.c: Likewise.
20657 * tsan.c: Likewise.
20658 * var-tracking.c: Likewise.
20659 * bt-load.c: Likewise.
20660 * cfgcleanup.c: Likewise.
20661 * combine-stack-adj.c: Likewise.
20662 * combine.c: Likewise.
20663 * compare-elim.c: Likewise.
20664 * config/epiphany/resolve-sw-modes.c: Likewise.
20665 * config/i386/i386.c: Likewise.
20666 * config/mips/mips.c: Likewise.
20667 * config/s390/s390.c: Likewise.
20668 * config/sh/sh_treg_combine.cc: Likewise.
20669 * config/sparc/sparc.c: Likewise.
20672 * final.c: Likewise.
20673 * ifcvt.c: Likewise.
20674 * mode-switching.c: Likewise.
20675 * passes.c: Likewise.
20676 * postreload.c: Likewise.
20678 * reg-stack.c: Likewise.
20679 * regcprop.c: Likewise.
20680 * regrename.c: Likewise.
20683 2014-05-06 Richard Biener <rguenther@suse.de>
20685 PR middle-end/61070
20686 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20687 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20689 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
20692 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20694 2014-05-05 Radovan Obradovic <robradovic@mips.com>
20695 Tom de Vries <tom@codesourcery.com>
20697 * target.def (call_fusage_contains_non_callee_clobbers): New
20699 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20701 (@node Miscellaneous Register Hooks): New node.
20702 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20703 * doc/tm.texi: Regenerate.
20705 2014-05-05 Marek Polacek <polacek@redhat.com>
20708 * opts.c (common_handle_option): Call error_at instead of warning_at.
20710 2014-05-05 Richard Biener <rguenther@suse.de>
20712 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20713 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
20714 under the TODO_verify_il umbrella.
20716 2014-05-05 Richard Biener <rguenther@suse.de>
20718 * passes.c (execute_function_todo): Move TODO_verify_flow under
20719 the TODO_verify_ul umbrella.
20721 2014-05-05 Richard Biener <rguenther@suse.de>
20723 PR middle-end/61010
20724 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20725 X & CST away from a CST that is the mask of a mode.
20727 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20729 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20730 int argument to enum machine_mode.
20731 (picochip_class_max_nregs): Ditto.
20732 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20733 (picochip_class_max_nregs): Ditto.
20735 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20737 * target.def: Add new target hook.
20738 * doc/tm.texi: Regenerate.
20739 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20740 * targhooks.c (default_keep_leaf_when_profiled): New function.
20742 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20743 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20745 2014-05-05 Bin Cheng <bin.cheng@arm.com>
20747 PR tree-optimization/60363
20748 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20749 (copy_phi_args): New parameters. Call get_value_locus_in_path.
20750 (update_destination_phis): New parameter.
20751 (create_edge_and_update_destination_phis): Ditto.
20752 (ssa_fix_duplicate_block_edges): Pass new arguments.
20753 (thread_single_edge): Ditto.
20755 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
20757 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20758 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20759 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20760 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20761 Use RS6000_BTM_HARD_FLOAT.
20762 (BU_MISC_2): Likewise.
20763 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20764 RS6000_BTM_HARD_FLOAT.
20765 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20766 is explicitly used.
20767 (rs6000_invalid_builtin): Add hard floating builtin support.
20768 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20769 hard float builtins.
20770 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20772 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20774 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20775 Add missing function* argument.
20777 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20779 * lra-constraints.c (valid_address_p): Move earlier in file.
20780 Add a constraint argument to the address_info version.
20781 (satisfies_memory_constraint_p): New function.
20782 (satisfies_address_constraint_p): Likewise.
20783 (process_alt_operands, curr_insn_transform): Use them.
20784 (process_address): Pass the constraint to valid_address_p when
20785 checking address operands.
20787 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20789 * config/mips/mips.c (mips_isa_rev): New variable.
20790 (mips_set_architecture): Set it.
20791 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20793 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20794 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20795 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20796 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20797 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20798 conditions in terms of mips_isa_rev.
20799 (mips_isa_rev): Declare.
20801 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20803 * config/sh/sh-mem.cc: Use tabs instead of spaces.
20804 (prob_unlikely, prob_likely): Make variables const.
20806 2014-05-03 Denis Chertykov <chertykov@gmail.com>
20808 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20810 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20812 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20814 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20816 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20817 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20818 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20820 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20821 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20823 Replace usage of ROUND_REG with sh_round_reg.
20824 Use CEIL instead of ROUND_ADVANCE.
20826 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20829 * config/sh/sh.c: Include stdlib headers before everything else.
20831 2014-05-02 Jakub Jelinek <jakub@redhat.com>
20833 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20834 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20835 (gimplify_adjust_omp_clauses): Simd region is never
20836 directly nested in combined parallel. Instead, for linear
20837 with copyin/copyout, if in combined for simd loop, make decl
20838 firstprivate/lastprivate on OMP_FOR.
20839 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20840 expand_omp_for_static_chunk): When setting endvar, also set
20841 fd->loop.v to the same value.
20843 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20845 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
20847 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
20849 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
20852 2014-05-02 Marek Polacek <polacek@redhat.com>
20854 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
20856 2014-05-02 Kito Cheng <kito@0xlab.org>
20858 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
20859 to a C expression marco.
20860 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
20861 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
20862 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
20863 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
20864 HONOR_REG_ALLOC_ORDER.
20865 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
20867 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20869 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
20871 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20873 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
20875 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20877 * tree-if-conv.c (is_cond_scalar_reduction): New function.
20878 (convert_scalar_cond_reduction): Likewise.
20879 (predicate_scalar_phi): Add recognition and transformation
20880 of simple conditioanl reduction to be vectorizable.
20882 2014-05-01 Marek Polacek <polacek@redhat.com>
20885 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
20887 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
20889 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
20890 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
20891 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
20892 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
20893 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
20894 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
20895 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
20896 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
20898 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
20900 * config/arc/arc.opt (mlra): Move comment above option name
20901 to avoid mis-parsing as language options.
20903 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20905 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
20906 * config/sol2.h: ... here.
20907 * config/sol2-10.h: Remove.
20909 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
20910 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
20911 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
20912 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
20913 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
20914 * config/sol2.h: ... here.
20915 (SECTION_NAME_FORMAT): Don't redefine.
20916 (STARTFILE_ARCH32_SPEC): Rename to ...
20917 (STARTFILE_ARCH_SPEC): ... this.
20918 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20919 * config/sparc/sol2.h: ... here.
20920 (SECTION_NAME_FORMAT): Don't undef.
20921 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
20922 (SUBTARGET_EXTRA_SPECS): Remove.
20923 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
20925 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
20926 (MD_STARTFILE_PREFIX): Remove.
20927 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
20928 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
20929 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
20930 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
20931 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
20932 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
20933 * config/i386/sol2.h: ... here.
20934 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
20935 * config/i386/sol2-bi.h: Remove.
20936 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
20937 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
20939 * config/i386/t-sol2-64: Rename to ...
20940 * config/i386/t-sol2: ... this.
20941 * config/sparc/t-sol2-64: Rename to ...
20942 * config/sparc/t-sol2: ... this.
20944 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
20945 sol2_tm_file_head, sol2_tm_file_tail.
20946 Include ${cpu_type}/sol2.h before sol2.h.
20948 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
20949 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
20950 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
20951 Reflect i386/t-sol2-64 renaming.
20952 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
20953 Reflect sparc/t-sol2-64 renaming.
20955 2014-04-30 Richard Biener <rguenther@suse.de>
20957 * passes.c (execute_function_todo): Move TODO_verify_stmts
20958 and TODO_verify_ssa under the TODO_verify_il umbrella.
20959 * tree-ssa.h (verify_ssa): Adjust prototype.
20960 * tree-ssa.c (verify_ssa): Add parameter to tell whether
20961 we should verify SSA operands.
20962 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
20963 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
20964 whether we should verify whether not throwing stmts have EH info.
20965 * graphite-scop-detection.c (create_sese_edges): Adjust.
20966 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
20967 * tree-eh.c (lower_try_finally_switch): Do not add the
20968 default case label twice.
20970 2014-04-30 Marek Polacek <polacek@redhat.com>
20972 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
20973 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
20974 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
20975 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
20977 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
20979 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
20980 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
20981 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
20982 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
20983 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
20984 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
20985 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
20986 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
20988 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20990 * tree-cfg.c (dump_function_to_file): Dump the return type of
20991 functions, in a line to itself before the function body, mimicking
20992 the layout of a C function.
20994 2014-04-29 Jakub Jelinek <jakub@redhat.com>
20996 PR tree-optimization/60971
20997 * tree-tailcall.c (process_assignment): Reject conversions which
21000 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21002 * calls.c (initialize_argument_information): Always treat
21003 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21004 (expand_call): Likewise.
21005 (emit_library_call_calue_1): Likewise.
21006 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21007 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21010 2014-04-29 Nick Clifton <nickc@redhat.com>
21012 * config/msp430/msp430.md (umulsidi): Fix typo.
21013 (mulhisi3): Enable even inside interrupt handlers.
21014 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21015 bigger return address pushed in large mode.
21017 2014-04-29 Nick Clifton <nickc@redhat.com>
21019 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21020 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21022 * config/m32r/m32r.c (init_reg_tables): Likewise.
21023 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21024 enum to hold the modes.
21026 2014-04-29 Richard Biener <rguenther@suse.de>
21028 * dominance.c (free_dominance_info): Add overload with
21029 function parameter.
21030 (dom_info_state): Likewise.
21031 (dom_info_available_p): Likewise.
21032 * basic-block.h (free_dominance_info, dom_info_state,
21033 dom_info_available_p): Declare overloads.
21034 * passes.c (execute_function_todo): Verify that verifiers
21035 don't change dominator info state. Drop dominator info
21036 for IPA pass invocations.
21037 * cgraph.c (release_function_body): Restore asserts that
21038 dominator information is released.
21040 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21042 * doc/invoke.texi: Fix typo.
21043 * tree-vrp.c: Fix typos.
21044 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21046 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21048 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21050 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21052 * config/aarch64/aarch64-builtins.c
21053 (aarch64_types_storestruct_lane_qualifiers): New.
21054 (TYPES_STORESTRUCT_LANE): Likewise.
21055 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21056 (st3_lane): Likewise.
21057 (st4_lane): Likewise.
21058 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21059 (vec_store_lanesci_lane<mode>): Likewise.
21060 (vec_store_lanesxi_lane<mode>): Likewise.
21061 (aarch64_st2_lane<VQ:mode>): Likewise.
21062 (aarch64_st3_lane<VQ:mode>): Likewise.
21063 (aarch64_st4_lane<VQ:mode>): Likewise.
21064 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21065 * config/aarch64/arm_neon.h
21066 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21067 use new macro arguments.
21068 (__ST3_LANE_FUNC): Likewise.
21069 (__ST4_LANE_FUNC): Likewise.
21070 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21071 (V_THREE_ELEM): Likewise.
21072 (V_FOUR_ELEM): Likewise.
21074 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21076 * doc/gimple.texi: Replace the description of the now-defunct
21077 union gimple_statement_d with a diagram showing the
21078 gimple_statement_base class hierarchy and its relationships to
21079 the GSS_ and GIMPLE_ enums.
21081 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21083 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21084 * config/aarch64/aarch64.c
21085 (aarch64_cannot_change_mode_class): Weaken conditions.
21086 (aarch64_modes_tieable_p): New.
21087 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21089 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21091 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21092 (loadsync_<mode>): Change mode.
21093 (load_quadpti, store_quadpti): New.
21094 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21095 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21097 2014-04-28 Martin Jambor <mjambor@suse.cz>
21099 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21100 same alias type as the original statement.
21101 (subreplacement_assignment_data): New type.
21102 (handle_unscalarized_data_in_subtree): New type of parameter,
21103 generate new memory accesses with same alias type as the original
21105 (load_assign_lhs_subreplacements): Likewise.
21106 (sra_modify_constructor_assign): Generate new memory accesses with
21107 same alias type as the original statement.
21109 2014-04-28 Richard Biener <rguenther@suse.de>
21111 * tree-pass.h (TODO_verify_il): Define.
21112 (TODO_verify_all): Complete properly.
21113 * passes.c (execute_function_todo): Move existing loop-closed
21114 SSA verification under TODO_verify_il.
21115 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21116 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21117 Fix tree sharing issue.
21119 2014-04-28 Richard Biener <rguenther@suse.de>
21121 PR middle-end/60092
21122 * builtins.def (DEF_C11_BUILTIN): Add.
21123 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21124 * coretypes.h (enum function_class): Add function_c11_misc.
21125 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21126 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21127 (call_may_clobber_ref_p_1): Likewise.
21128 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21129 (mark_all_reaching_defs_necessary_1): Likewise.
21130 (propagate_necessity): Likewise.
21131 (eliminate_unnecessary_stmts): Likewise.
21132 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21134 2014-04-28 Richard Biener <rguenther@suse.de>
21136 * tree-vrp.c (vrp_var_may_overflow): Remove.
21137 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21138 with overflow immediately bump to one before that value and
21139 let iteration figure out overflow status.
21141 2014-04-28 Richard Biener <rguenther@suse.de>
21143 * configure.ac: Do valgrind header checks unconditionally.
21144 Add --enable-valgrind-annotations.
21145 * system.h: Guard valgrind header inclusion with
21146 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21147 * alloc-pool.c (pool_alloc, pool_free): Use
21148 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21149 to guard possibly dead code.
21150 * config.in: Regenerated.
21151 * configure: Likewise.
21153 2014-04-28 Jeff Law <law@redhat.com>
21155 PR tree-optimization/60902
21156 * tree-ssa-threadedge.c
21157 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21158 over real defs when invalidating outputs from statements that do not
21159 produce useful outputs for threading.
21161 2014-04-28 Richard Biener <rguenther@suse.de>
21163 PR tree-optimization/60979
21164 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21165 SCOPs that end in a block with a successor with abnormal
21168 2014-04-28 Richard Biener <rguenther@suse.de>
21170 * tree-pass.h (execute_pass_list): Adjust prototype.
21171 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21172 (do_per_function): Change callback signature, push all actual
21173 work to the callbals.
21174 (do_per_function_toporder): Likewise.
21175 (execute_function_dump): Adjust.
21176 (execute_function_todo): Likewise.
21177 (clear_last_verified): Likewise.
21178 (verify_curr_properties): Likewise.
21179 (update_properties_after_pass): Likewise.
21180 (execute_pass_list_1): Split out from ...
21181 (execute_pass_list): ... here. Adjust.
21182 (execute_ipa_pass_list): Likewise.
21183 * cgraphunit.c (cgraph_add_new_function): Adjust.
21184 (analyze_function): Likewise.
21185 (expand_function): Likewise.
21186 * cgraph.c (release_function_body): Free dominance info
21187 here instead of asserting it was magically freed elsewhere.
21189 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21191 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21192 * configure: Regenerate.
21193 * config/sparc/sparc.opt (muser-mode): New option.
21194 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21196 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21197 * doc/invoke.texi (SPARC options): Document -muser-mode.
21199 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21201 * cselib.c (find_slot_memmode): Delete.
21202 (cselib_hasher): Change compare_type to a struct.
21203 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21205 (preserve_constants_and_equivs): Adjust for new compare_type.
21206 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
21207 (wrap_constant): Delete.
21208 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
21210 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21212 * doc/install.texi (Building with profile feedback): Remove
21215 2014-04-26 Tom de Vries <tom@codesourcery.com>
21217 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
21220 2014-04-25 Cary Coutant <ccoutant@google.com>
21223 * dwarf2out.c (should_move_die_to_comdat): A type definition
21224 can contain a subprogram definition, but don't move it to a
21226 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
21227 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
21229 (clone_tree_hash): Rename to...
21230 (clone_tree_partial): ...this; change callers. Copy
21231 DW_TAG_subprogram DIEs as declarations.
21232 (copy_decls_walk): Don't copy children of a declaration into a
21235 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
21238 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
21241 2014-04-25 Jiong Wang <jiong.wang@arm.com>
21243 * config/arm/predicates.md (call_insn_operand): Add long_call check.
21244 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
21246 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
21249 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21251 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
21253 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21255 PR tree-optimization/60930
21256 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
21257 creating a multiply candidate by folding two constant
21258 multiplicands when the result overflows.
21260 2014-04-25 Jakub Jelinek <jakub@redhat.com>
21262 PR tree-optimization/60960
21263 * tree-vect-generic.c (expand_vector_operation): Only call
21264 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
21266 2014-04-25 Tom de Vries <tom@codesourcery.com>
21268 * expr.c (clobber_reg_mode): New function.
21269 * expr.h (clobber_reg): New function.
21271 2014-04-25 Tom de Vries <tom@codesourcery.com>
21273 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
21276 2014-04-25 Radovan Obradovic <robradovic@mips.com>
21277 Tom de Vries <tom@codesourcery.com>
21279 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
21281 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
21282 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
21283 new argument to find_all_hard_reg_sets call.
21285 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21287 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
21288 Use HOST_WIDE_INT_C for mask literal.
21289 (aarch_rev16_shleft_mask_imm_p): Likewise.
21291 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
21294 * config/sparc/sparc.md (ashlsi3_extend): Delete.
21296 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
21298 PR preprocessor/56540
21299 * config/i386/i386-c.c (ix86_target_macros): Define
21300 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
21302 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21304 * configure.ac (tga_func): Remove.
21305 (LIB_TLS_SPEC): Remove.
21306 * configure: Regenerate.
21307 * config.in: Regenerate.
21308 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
21310 2014-04-25 Richard Biener <rguenther@suse.de>
21313 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
21314 call stmt use/clobber sets during stmt walk instead of
21315 walking the possibly incomplete set of caller edges.
21317 2014-04-25 Richard Biener <rguenther@suse.de>
21320 * passes.c (apply_ipa_transforms): Inline into only caller ...
21321 (execute_one_pass): ... here. Properly bring in function
21322 bodies for nodes we want to apply IPA transforms to.
21324 2014-04-24 Cong Hou <congh@google.com>
21326 PR tree-optimization/60896
21327 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
21328 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
21329 (vect_mark_pattern_stmts): Set the def type of all statements in
21330 PATTERN_DEF_SEQ as vect_internal_def.
21332 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21334 * doc/extend.texi (PowerPC Built-in Functions): Document new
21335 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
21336 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
21338 * config/rs6000/predicates.md (const_0_to_3_operand): New
21339 predicate to match 0..3 integer constants.
21341 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
21342 to support adding miscellaneous builtin functions.
21343 (BU_DFP_MISC_2): Likewise.
21344 (BU_P7_MISC_1): Likewise.
21345 (BU_P7_MISC_2): Likewise.
21346 (BU_P8V_MISC_3): Likewise.
21347 (BU_MISC_1): Likewise.
21348 (BU_MISC_2): Likewise.
21349 (DIVWE): Add extended divide builtin functions.
21350 (DIVWEO): Likewise.
21351 (DIVWEU): Likewise.
21352 (DIVWEUO): Likewise.
21354 (DIVDEO): Likewise.
21355 (DIVDEU): Likewise.
21356 (DIVDEUO): Likewise.
21357 (DXEX): Add decimal floating-point builtin functions.
21359 (DDEDPD): Likewise.
21360 (DDEDPDQ): Likewise.
21361 (DENBCD): Likewise.
21362 (DENBCDQ): Likewise.
21366 (DSCLIQ): Likewise.
21368 (DSCRIQ): Likewise.
21369 (CDTBCD): Add new BCD builtin functions.
21370 (CBCDTD): Likewise.
21371 (ADDG6S): Likewise.
21372 (BCDADD): Likewise.
21373 (BCDADD_LT): Likewise.
21374 (BCDADD_EQ): Likewise.
21375 (BCDADD_GT): Likewise.
21376 (BCDADD_OV): Likewise.
21377 (BCDSUB): Likewise.
21378 (BCDSUB_LT): Likewise.
21379 (BCDSUB_EQ): Likewise.
21380 (BCDSUB_GT): Likewise.
21381 (BCDSUB_OV): Likewise.
21382 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
21383 (UNPACK_TD): Likewise.
21384 (PACK_TF): Likewise.
21385 (UNPACK_TF): Likewise.
21386 (UNPACK_TF_0): Likewise.
21387 (UNPACK_TF_1): Likewise.
21388 (PACK_V1TI): Likewise.
21389 (UNPACK_V1TI): Likewise.
21391 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21392 support for decimal floating point builtin functions.
21393 (rs6000_expand_ternop_builtin): Add checks for the new builtin
21394 functions that take constant arguments.
21395 (rs6000_invalid_builtin): Add decimal floating point builtin support.
21396 (rs6000_init_builtins): Setup long double, _Decimal64, and
21397 _Decimal128 types for new builtin functions.
21398 (builtin_function_type): Set the unsigned flags appropriately for
21399 the new builtin functions.
21400 (rs6000_opt_masks): Add support for decimal floating point builtin
21403 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
21404 floating point builtin functions.
21405 (RS6000_BTM_COMMON): Likewise.
21406 (RS6000_BTI_long_double): Likewise.
21407 (RS6000_BTI_dfloat64): Likewise.
21408 (RS6000_BTI_dfloat128): Likewise.
21409 (long_double_type_internal_node): Likewise.
21410 (dfloat64_type_internal_node): Likewise.
21411 (dfloat128_type_internal_node): Likewise.
21413 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
21414 2.07 bcd arithmetic instructions.
21415 (UNSPEC_BCDSUB): Likewise.
21416 (UNSPEC_BCD_OVERFLOW): Likewise.
21417 (UNSPEC_BCD_ADD_SUB): Likewise.
21418 (bcd_add_sub): Likewise.
21419 (BCD_TEST): Likewise.
21420 (bcd<bcd_add_sub>): Likewise.
21421 (bcd<bcd_add_sub>_test): Likewise.
21422 (bcd<bcd_add_sub>_test2): Likewise.
21423 (bcd<bcd_add_sub>_<code>): Likewise.
21424 (peephole2 for combined bcd ops): Likewise.
21426 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
21427 decimal floating point builtin functions.
21428 (UNSPEC_DENBCD): Likewise.
21429 (UNSPEC_DXEX): Likewise.
21430 (UNSPEC_DIEX): Likewise.
21431 (UNSPEC_DSCLI): Likewise.
21432 (UNSPEC_DSCRI): Likewise.
21433 (D64_D128): Likewise.
21434 (dfp_suffix): Likewise.
21435 (dfp_ddedpd_<mode>): Likewise.
21436 (dfp_denbcd_<mode>): Likewise.
21437 (dfp_dxex_<mode>): Likewise.
21438 (dfp_diex_<mode>): Likewise.
21439 (dfp_dscli_<mode>): Likewise.
21440 (dfp_dscri_<mode>): Likewise.
21442 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
21444 (UNSPEC_CDTBCD): Likewise.
21445 (UNSPEC_CBCDTD): Likewise.
21446 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
21447 (UNSPEC_DIVEO): Likewise.
21448 (UNSPEC_DIVEU): Likewise.
21449 (UNSPEC_DIVEUO): Likewise.
21450 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
21451 pack/unpack 128-bit types.
21452 (UNSPEC_PACK_128BIT): Likewise.
21453 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
21454 (udiv<mode>3): Use idiv_ldiv mode attribute.
21455 (div<mode>3): Likewise.
21456 (addg6s): Add new BCD builtin functions.
21457 (cdtbcd): Likewise.
21458 (cbcdtd): Likewise.
21459 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
21460 (div_extend): Likewise.
21461 (div<div_extend>_<mode>"): Likewise.
21462 (FP128_64): Add support for new builtin functions to pack/unpack
21464 (unpack<mode>): Likewise.
21465 (unpacktf_0): Likewise.
21466 (unpacktf_1): Likewise.
21467 (unpack<mode>_dm): Likewise.
21468 (unpack<mode>_nodm): Likewise.
21469 (pack<mode>): Likewise.
21470 (unpackv1ti): Likewise.
21471 (packv1ti): Likewise.
21473 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
21475 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
21478 2014-04-24 Jakub Jelinek <jakub@redhat.com>
21480 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
21481 * gimplify.c (omp_is_private): Change last argument's type to int.
21482 Only diagnose lastprivate if the simd argument is 1, only diagnose
21483 linear if the simd argument is 2.
21484 (gimplify_omp_for): Adjust omp_is_private callers. When adding
21485 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
21486 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
21487 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21488 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21489 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21490 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21491 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21492 * tree-nested.c (convert_nonlocal_omp_clauses,
21493 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21495 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
21498 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21501 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
21503 * flag-types.h (enum ivar_visibility): Add.
21505 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
21507 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21508 function * argument.
21510 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
21512 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21514 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21515 Tom de Vries <tom@codesourcery.com>
21517 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21518 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21520 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21521 * emit-rtl.c (try_split): Same.
21523 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21524 Tom de Vries <tom@codesourcery.com>
21526 * common.opt (fuse-caller-save): New option.
21528 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
21530 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21531 elements for big-endian.
21533 2014-04-24 Richard Biener <rguenther@suse.de>
21535 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21536 during TER and instead use the sepops interface for expanding
21537 non-GIMPLE_SINGLE_RHS.
21539 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21541 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21542 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21544 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21546 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21547 assembler 64-bit option.
21548 * configure: Regenerate.
21550 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21552 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21553 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21554 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21555 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21556 (TARGET_CRYPTO): Take TARGET_SIMD into account.
21558 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21560 * config/aarch64/aarch64-builtins.c
21561 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21562 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21563 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21564 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21566 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21567 (Vrevsuff): New mode attribute.
21569 2014-04-24 Terry Guo <terry.guo@arm.com>
21571 * config/arm/arm.h (machine_function): Define variable
21572 after_arm_reorg here.
21573 * config/arm/arm.c (after_arm_reorg): Remove the definition.
21574 (arm_split_constant): Update the way to access variable
21576 (arm_reorg): Ditto.
21577 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21579 2014-04-23 Tom de Vries <tom@codesourcery.com>
21581 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21583 2014-04-23 David Malcolm <dmalcolm@redhat.com>
21585 * is-a.h: Update comments to reflect the following changes to the
21586 "pointerness" of the API, making the template parameter match the
21587 return type, allowing use of is-a.h with typedefs of pointers.
21588 (is_a_helper::cast): Return a T rather then a pointer to a T, so
21589 that the return type matches the parameter to the is_a_helper.
21591 (dyn_cast): Likewise.
21593 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21594 pointer from the is-a.h API.
21596 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21597 (is_a_helper <cgraph_node *>::test): ...this, matching change to
21599 (is_a_helper <varpool_node>::test): Likewise, convert to...
21600 (is_a_helper <varpool_node *>::test): ...this.
21602 (varpool_first_variable): Update for removal of implicit pointer
21603 from the is-a.h API.
21604 (varpool_next_variable): Likewise.
21605 (varpool_first_static_initializer): Likewise.
21606 (varpool_next_static_initializer): Likewise.
21607 (varpool_first_defined_variable): Likewise.
21608 (varpool_next_defined_variable): Likewise.
21609 (cgraph_first_defined_function): Likewise.
21610 (cgraph_next_defined_function): Likewise.
21611 (cgraph_first_function): Likewise.
21612 (cgraph_next_function): Likewise.
21613 (cgraph_first_function_with_gimple_body): Likewise.
21614 (cgraph_next_function_with_gimple_body): Likewise.
21615 (cgraph_alias_target): Likewise.
21616 (varpool_alias_target): Likewise.
21617 (cgraph_function_or_thunk_node): Likewise.
21618 (varpool_variable_node): Likewise.
21619 (symtab_real_symbol_p): Likewise.
21620 * cgraphunit.c (referred_to_p): Likewise.
21621 (analyze_functions): Likewise.
21622 (handle_alias_pairs): Likewise.
21623 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21624 * gimple-ssa.h (gimple_vuse_op): Likewise.
21625 (gimple_vdef_op): Likewise.
21626 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21627 * gimple.c (gimple_build_asm_1): Likewise.
21628 (gimple_build_try): Likewise.
21629 (gimple_build_resx): Likewise.
21630 (gimple_build_eh_dispatch): Likewise.
21631 (gimple_build_omp_for): Likewise.
21632 (gimple_omp_for_set_clauses): Likewise.
21634 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21635 (is_a_helper <gimple_statement_asm *>::test): ...this.
21636 (is_a_helper <gimple_statement_bind>::test): Convert to...
21637 (is_a_helper <gimple_statement_bind *>::test): ...this.
21638 (is_a_helper <gimple_statement_call>::test): Convert to...
21639 (is_a_helper <gimple_statement_call *>::test): ...this.
21640 (is_a_helper <gimple_statement_catch>::test): Convert to...
21641 (is_a_helper <gimple_statement_catch *>::test): ...this.
21642 (is_a_helper <gimple_statement_resx>::test): Convert to...
21643 (is_a_helper <gimple_statement_resx *>::test): ...this.
21644 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21645 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21646 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21647 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21648 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21649 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21650 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21651 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21652 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21653 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21654 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21655 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21656 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21657 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21658 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21659 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21660 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21661 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21662 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21663 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21664 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21665 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21666 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21667 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21668 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21669 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21670 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21671 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21672 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21673 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21674 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21675 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21676 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21677 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21678 (is_a_helper <gimple_statement_phi>::test): Convert to...
21679 (is_a_helper <gimple_statement_phi *>::test): ...this.
21680 (is_a_helper <gimple_statement_transaction>::test): Convert to...
21681 (is_a_helper <gimple_statement_transaction *>::test): ...this.
21682 (is_a_helper <gimple_statement_try>::test): Convert to...
21683 (is_a_helper <gimple_statement_try *>::test): ...this.
21684 (is_a_helper <gimple_statement_wce>::test): Convert to...
21685 (is_a_helper <gimple_statement_wce *>::test): ...this.
21686 (is_a_helper <const gimple_statement_asm>::test): Convert to...
21687 (is_a_helper <const gimple_statement_asm *>::test): ...this.
21688 (is_a_helper <const gimple_statement_bind>::test): Convert to...
21689 (is_a_helper <const gimple_statement_bind *>::test): ...this.
21690 (is_a_helper <const gimple_statement_call>::test): Convert to...
21691 (is_a_helper <const gimple_statement_call *>::test): ...this.
21692 (is_a_helper <const gimple_statement_catch>::test): Convert to...
21693 (is_a_helper <const gimple_statement_catch *>::test): ...this.
21694 (is_a_helper <const gimple_statement_resx>::test): Convert to...
21695 (is_a_helper <const gimple_statement_resx *>::test): ...this.
21696 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21697 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21698 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21699 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21700 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21702 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21704 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21706 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21708 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21709 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21710 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21712 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21713 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21715 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21716 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21717 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21718 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21719 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21720 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21722 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21723 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21724 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21725 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21727 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21728 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21729 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21730 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21731 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21732 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21733 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21734 (is_a_helper <const gimple_statement_phi>::test): Convert to...
21735 (is_a_helper <const gimple_statement_phi *>::test): ...this.
21736 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21737 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21738 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21739 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21740 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21741 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21742 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21744 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21746 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21747 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21749 (gimple_use_ops): Update for removal of implicit pointer from the
21751 (gimple_set_use_ops): Likewise.
21752 (gimple_vuse): Likewise.
21753 (gimple_vdef): Likewise.
21754 (gimple_vuse_ptr): Likewise.
21755 (gimple_vdef_ptr): Likewise.
21756 (gimple_set_vuse): Likewise.
21757 (gimple_set_vdef): Likewise.
21758 (gimple_omp_return_set_lhs): Likewise.
21759 (gimple_omp_return_lhs): Likewise.
21760 (gimple_omp_return_lhs_ptr): Likewise.
21761 (gimple_call_fntype): Likewise.
21762 (gimple_call_set_fntype): Likewise.
21763 (gimple_call_set_internal_fn): Likewise.
21764 (gimple_call_use_set): Likewise.
21765 (gimple_call_clobber_set): Likewise.
21766 (gimple_bind_vars): Likewise.
21767 (gimple_bind_set_vars): Likewise.
21768 (gimple_bind_body_ptr): Likewise.
21769 (gimple_bind_set_body): Likewise.
21770 (gimple_bind_add_stmt): Likewise.
21771 (gimple_bind_block): Likewise.
21772 (gimple_bind_set_block): Likewise.
21773 (gimple_asm_ninputs): Likewise.
21774 (gimple_asm_noutputs): Likewise.
21775 (gimple_asm_nclobbers): Likewise.
21776 (gimple_asm_nlabels): Likewise.
21777 (gimple_asm_input_op): Likewise.
21778 (gimple_asm_input_op_ptr): Likewise.
21779 (gimple_asm_output_op): Likewise.
21780 (gimple_asm_output_op_ptr): Likewise.
21781 (gimple_asm_set_output_op): Likewise.
21782 (gimple_asm_clobber_op): Likewise.
21783 (gimple_asm_set_clobber_op): Likewise.
21784 (gimple_asm_label_op): Likewise.
21785 (gimple_asm_set_label_op): Likewise.
21786 (gimple_asm_string): Likewise.
21787 (gimple_catch_types): Likewise.
21788 (gimple_catch_types_ptr): Likewise.
21789 (gimple_catch_handler_ptr): Likewise.
21790 (gimple_catch_set_types): Likewise.
21791 (gimple_catch_set_handler): Likewise.
21792 (gimple_eh_filter_types): Likewise.
21793 (gimple_eh_filter_types_ptr): Likewise.
21794 (gimple_eh_filter_failure_ptr): Likewise.
21795 (gimple_eh_filter_set_types): Likewise.
21796 (gimple_eh_filter_set_failure): Likewise.
21797 (gimple_eh_must_not_throw_fndecl): Likewise.
21798 (gimple_eh_must_not_throw_set_fndecl): Likewise.
21799 (gimple_eh_else_n_body_ptr): Likewise.
21800 (gimple_eh_else_e_body_ptr): Likewise.
21801 (gimple_eh_else_set_n_body): Likewise.
21802 (gimple_eh_else_set_e_body): Likewise.
21803 (gimple_try_eval_ptr): Likewise.
21804 (gimple_try_cleanup_ptr): Likewise.
21805 (gimple_try_set_eval): Likewise.
21806 (gimple_try_set_cleanup): Likewise.
21807 (gimple_wce_cleanup_ptr): Likewise.
21808 (gimple_wce_set_cleanup): Likewise.
21809 (gimple_phi_capacity): Likewise.
21810 (gimple_phi_num_args): Likewise.
21811 (gimple_phi_result): Likewise.
21812 (gimple_phi_result_ptr): Likewise.
21813 (gimple_phi_set_result): Likewise.
21814 (gimple_phi_arg): Likewise.
21815 (gimple_phi_set_arg): Likewise.
21816 (gimple_resx_region): Likewise.
21817 (gimple_resx_set_region): Likewise.
21818 (gimple_eh_dispatch_region): Likewise.
21819 (gimple_eh_dispatch_set_region): Likewise.
21820 (gimple_omp_critical_name): Likewise.
21821 (gimple_omp_critical_name_ptr): Likewise.
21822 (gimple_omp_critical_set_name): Likewise.
21823 (gimple_omp_for_clauses): Likewise.
21824 (gimple_omp_for_clauses_ptr): Likewise.
21825 (gimple_omp_for_set_clauses): Likewise.
21826 (gimple_omp_for_collapse): Likewise.
21827 (gimple_omp_for_index): Likewise.
21828 (gimple_omp_for_index_ptr): Likewise.
21829 (gimple_omp_for_set_index): Likewise.
21830 (gimple_omp_for_initial): Likewise.
21831 (gimple_omp_for_initial_ptr): Likewise.
21832 (gimple_omp_for_set_initial): Likewise.
21833 (gimple_omp_for_final): Likewise.
21834 (gimple_omp_for_final_ptr): Likewise.
21835 (gimple_omp_for_set_final): Likewise.
21836 (gimple_omp_for_incr): Likewise.
21837 (gimple_omp_for_incr_ptr): Likewise.
21838 (gimple_omp_for_set_incr): Likewise.
21839 (gimple_omp_for_pre_body_ptr): Likewise.
21840 (gimple_omp_for_set_pre_body): Likewise.
21841 (gimple_omp_parallel_clauses): Likewise.
21842 (gimple_omp_parallel_clauses_ptr): Likewise.
21843 (gimple_omp_parallel_set_clauses): Likewise.
21844 (gimple_omp_parallel_child_fn): Likewise.
21845 (gimple_omp_parallel_child_fn_ptr): Likewise.
21846 (gimple_omp_parallel_set_child_fn): Likewise.
21847 (gimple_omp_parallel_data_arg): Likewise.
21848 (gimple_omp_parallel_data_arg_ptr): Likewise.
21849 (gimple_omp_parallel_set_data_arg): Likewise.
21850 (gimple_omp_task_clauses): Likewise.
21851 (gimple_omp_task_clauses_ptr): Likewise.
21852 (gimple_omp_task_set_clauses): Likewise.
21853 (gimple_omp_task_child_fn): Likewise.
21854 (gimple_omp_task_child_fn_ptr): Likewise.
21855 (gimple_omp_task_set_child_fn): Likewise.
21856 (gimple_omp_task_data_arg): Likewise.
21857 (gimple_omp_task_data_arg_ptr): Likewise.
21858 (gimple_omp_task_set_data_arg): Likewise.
21859 (gimple_omp_taskreg_clauses): Likewise.
21860 (gimple_omp_taskreg_clauses_ptr): Likewise.
21861 (gimple_omp_taskreg_set_clauses): Likewise.
21862 (gimple_omp_taskreg_child_fn): Likewise.
21863 (gimple_omp_taskreg_child_fn_ptr): Likewise.
21864 (gimple_omp_taskreg_set_child_fn): Likewise.
21865 (gimple_omp_taskreg_data_arg): Likewise.
21866 (gimple_omp_taskreg_data_arg_ptr): Likewise.
21867 (gimple_omp_taskreg_set_data_arg): Likewise.
21868 (gimple_omp_task_copy_fn): Likewise.
21869 (gimple_omp_task_copy_fn_ptr): Likewise.
21870 (gimple_omp_task_set_copy_fn): Likewise.
21871 (gimple_omp_task_arg_size): Likewise.
21872 (gimple_omp_task_arg_size_ptr): Likewise.
21873 (gimple_omp_task_set_arg_size): Likewise.
21874 (gimple_omp_task_arg_align): Likewise.
21875 (gimple_omp_task_arg_align_ptr): Likewise.
21876 (gimple_omp_task_set_arg_align): Likewise.
21877 (gimple_omp_single_clauses): Likewise.
21878 (gimple_omp_single_clauses_ptr): Likewise.
21879 (gimple_omp_single_set_clauses): Likewise.
21880 (gimple_omp_target_clauses): Likewise.
21881 (gimple_omp_target_clauses_ptr): Likewise.
21882 (gimple_omp_target_set_clauses): Likewise.
21883 (gimple_omp_target_child_fn): Likewise.
21884 (gimple_omp_target_child_fn_ptr): Likewise.
21885 (gimple_omp_target_set_child_fn): Likewise.
21886 (gimple_omp_target_data_arg): Likewise.
21887 (gimple_omp_target_data_arg_ptr): Likewise.
21888 (gimple_omp_target_set_data_arg): Likewise.
21889 (gimple_omp_teams_clauses): Likewise.
21890 (gimple_omp_teams_clauses_ptr): Likewise.
21891 (gimple_omp_teams_set_clauses): Likewise.
21892 (gimple_omp_sections_clauses): Likewise.
21893 (gimple_omp_sections_clauses_ptr): Likewise.
21894 (gimple_omp_sections_set_clauses): Likewise.
21895 (gimple_omp_sections_control): Likewise.
21896 (gimple_omp_sections_control_ptr): Likewise.
21897 (gimple_omp_sections_set_control): Likewise.
21898 (gimple_omp_for_set_cond): Likewise.
21899 (gimple_omp_for_cond): Likewise.
21900 (gimple_omp_atomic_store_set_val): Likewise.
21901 (gimple_omp_atomic_store_val): Likewise.
21902 (gimple_omp_atomic_store_val_ptr): Likewise.
21903 (gimple_omp_atomic_load_set_lhs): Likewise.
21904 (gimple_omp_atomic_load_lhs): Likewise.
21905 (gimple_omp_atomic_load_lhs_ptr): Likewise.
21906 (gimple_omp_atomic_load_set_rhs): Likewise.
21907 (gimple_omp_atomic_load_rhs): Likewise.
21908 (gimple_omp_atomic_load_rhs_ptr): Likewise.
21909 (gimple_omp_continue_control_def): Likewise.
21910 (gimple_omp_continue_control_def_ptr): Likewise.
21911 (gimple_omp_continue_set_control_def): Likewise.
21912 (gimple_omp_continue_control_use): Likewise.
21913 (gimple_omp_continue_control_use_ptr): Likewise.
21914 (gimple_omp_continue_set_control_use): Likewise.
21915 (gimple_transaction_body_ptr): Likewise.
21916 (gimple_transaction_label): Likewise.
21917 (gimple_transaction_label_ptr): Likewise.
21918 (gimple_transaction_set_body): Likewise.
21919 (gimple_transaction_set_label): Likewise.
21921 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
21922 * ipa-inline-analysis.c (inline_write_summary): Likewise.
21923 * ipa-ref.c (ipa_record_reference): Likewise.
21924 * ipa-reference.c (analyze_function): Likewise.
21925 (ipa_reference_write_optimization_summary): Likewise.
21926 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
21927 (address_taken_from_non_vtable_p): Likewise.
21928 (comdat_can_be_unshared_p_1): Likewise.
21929 * lto-cgraph.c (lto_output_ref): Likewise.
21930 (add_references): Likewise.
21931 (compute_ltrans_boundary): Likewise.
21932 (output_symtab): Likewise.
21933 (input_ref): Likewise.
21934 (input_cgraph_1): Likewise.
21935 (output_cgraph_opt_summary): Likewise.
21936 * lto-streamer-out.c (lto_output): Likewise.
21937 (output_symbol_p): Likewise.
21938 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
21939 (lsei_start_function_in_partition): Likewise.
21940 (lsei_next_variable_in_partition): Likewise.
21941 (lsei_start_variable_in_partition): Likewise.
21942 * symtab.c (insert_to_assembler_name_hash): Likewise.
21943 (unlink_from_assembler_name_hash): Likewise.
21944 (symtab_unregister_node): Likewise.
21945 (symtab_remove_node): Likewise.
21946 (dump_symtab_node): Likewise.
21947 (verify_symtab_base): Likewise.
21948 (verify_symtab_node): Likewise.
21949 (symtab_make_decl_local): Likewise.
21950 (symtab_alias_ultimate_target): Likewise.
21951 (symtab_resolve_alias): Likewise.
21952 (symtab_get_symbol_partitioning_class): Likewise.
21953 * tree-phinodes.c (allocate_phi_node): Likewise.
21954 (reserve_phi_args_for_new_edge): Likewise.
21955 (remove_phi_args): Likewise.
21956 * varpool.c (varpool_node_for_asm): Likewise.
21957 (varpool_remove_unreferenced_decls): Likewise.
21959 2014-04-23 Jeff Law <law@redhat.com>
21961 PR tree-optimization/60902
21962 * tree-ssa-threadedge.c
21963 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
21964 invalidate outputs from statements that do not produce useful
21965 outputs for threading.
21967 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
21969 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
21970 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
21971 machine descriptions for Stack Smashing Protector.
21973 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
21975 * aarch64.md (<optab>_rol<mode>3): New pattern.
21976 (<optab>_rolsi3_uxtw): Likewise.
21977 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
21979 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
21981 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
21982 (arm_cortex_a12_tune): Likewise.
21984 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21986 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
21988 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21990 * config/arm/arm.md (arm_rev16si2): New pattern.
21991 (arm_rev16si2_alt): Likewise.
21992 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
21994 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21996 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
21997 (rev16<mode>2_alt): Likewise.
21998 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
21999 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22000 (aarch_rev16_shleft_mask_imm_p): Likewise.
22001 (aarch_rev16_p_1): Likewise.
22002 (aarch_rev16_p): Likewise.
22003 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22004 (aarch_rev16_shright_mask_imm_p): Likewise.
22005 (aarch_rev16_shleft_mask_imm_p): Likewise.
22007 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22009 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22010 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22012 (cortex_a53_extra_costs): Likewise.
22013 (cortex_a57_extra_costs): Likewise.
22014 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22015 (cortexa7_extra_costs): Likewise.
22016 (cortexa8_extra_costs): Likewise.
22017 (cortexa12_extra_costs): Likewise.
22018 (cortexa15_extra_costs): Likewise.
22019 (v7m_extra_costs): Likewise.
22020 (arm_new_rtx_costs): Handle BSWAP.
22022 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22024 * config/arm/arm.c (cortexa8_extra_costs): New table.
22025 (arm_cortex_a8_tune): New tuning struct.
22026 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22028 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22030 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22032 2014-04-23 Richard Biener <rguenther@suse.de>
22034 * Makefile.in (OBJS): Remove loop-unswitch.o.
22035 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22036 * passes.def (pass_rtl_unswitch): Likewise.
22037 * loop-init.c (gate_rtl_unswitch): Likewise.
22038 (rtl_unswitch): Likewise.
22039 (pass_data_rtl_unswitch): Likewise.
22040 (pass_rtl_unswitch): Likewise.
22041 (make_pass_rtl_unswitch): Likewise.
22042 * rtl.h (reversed_condition): Likewise.
22043 (compare_and_jump_seq): Likewise.
22044 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22046 * loop-unroll.c (compare_and_jump_seq): Likewise.
22048 2014-04-23 Richard Biener <rguenther@suse.de>
22050 PR tree-optimization/60903
22051 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22052 commented code block.
22053 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22054 loop flags to newly created BBs and edges.
22056 2014-04-23 Nick Clifton <nickc@redhat.com>
22058 * config/msp430/msp430.c (msp430_handle_option): Move function
22060 (msp430_option_override): Simplify mcu and mcpu option handling.
22061 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22062 support for -mhwmult command line option.
22063 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22064 -mhwmult command line option.
22065 (msp430_hwmult_enabled): Delete.
22066 (msp43o_output_labelref): Add support for -mhwmult command line option.
22067 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22068 (umulsidi3): Likewise.
22069 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22070 (mcpu, mlarge, msmall): Likewise.
22071 (mhwmult): New option.
22072 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22074 (msp430_is_f5_mcu): Remove prototype.
22075 (msp430_use_f5_series_hwmult): Add prototype.
22076 * config/msp430/msp430-opts.h: New file.
22077 * common/config/msp430: New directory.
22078 * common/config/msp430/msp430-common.c: New file.
22079 * config.gcc (msp430): Remove target_has_targetm_common.
22080 * doc/invoke.texi: Document -mhwmult command line option.
22082 2014-04-23 Nick Clifton <nickc@redhat.com>
22084 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22085 default-manifest.o if it can be found in the search path.
22086 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22088 2014-04-23 Terry Guo <terry.guo@arm.com>
22090 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22092 2014-04-23 Richard Biener <rguenther@suse.de>
22094 PR middle-end/60895
22095 * tree-inline.c (declare_return_variable): Use mark_addressable.
22097 2014-04-23 Richard Biener <rguenther@suse.de>
22099 PR middle-end/60891
22100 * loop-init.c (loop_optimizer_init): Make sure to apply
22101 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22103 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22106 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22108 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22109 if flag_sanitize_undefined_trap_on_error.
22110 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22111 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22112 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22113 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22114 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22115 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22116 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22117 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22118 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22119 * ubsan.c (ubsan_instrument_unreachable): Return
22120 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22121 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22122 if flag_sanitize_undefined_trap_on_error and
22123 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22124 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22125 instrument_bool_enum_load): Emit __builtin_trap () if
22126 flag_sanitize_undefined_trap_on_error and
22127 __builtin_handle_*_abort () if !flag_sanitize_recover.
22128 * doc/invoke.texi (-fsanitize-recover,
22129 -fsanitize-undefined-trap-on-error): Document.
22131 2014-04-22 Christian Bruel <christian.bruel@st.com>
22133 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22134 Force immediates to SImode.
22136 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22138 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22139 (lroundsfsi2): New.
22140 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22141 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22142 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22143 (nios2_fpu_insn): Add entry for round.
22144 (N2FPU_NO_ERRNO_P): Define.
22145 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22147 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22149 2014-04-22 Richard Henderson <rth@redhat.com>
22151 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22152 (add<GPI>3_compare0): Remove leading * from name.
22153 (add<GPI>3_carryin): Likewise.
22154 (sub<GPI>3_compare0): Likewise.
22155 (sub<GPI>3_carryin): Likewise.
22156 (<su_optab>mulditi3): New expander.
22157 (multi3): New expander.
22158 (madd<GPI>): Remove leading * from name.
22160 2014-04-22 Martin Jambor <mjambor@suse.cz>
22162 * cgraphclones.c (cgraph_function_versioning): Copy
22163 ipa_transforms_to_apply instead of asserting it is empty.
22165 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22168 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22169 on count_exp to get mode.
22171 2014-04-22 Andrew Pinski <apinski@cavium.com>
22173 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22174 Handle TLS for ILP32.
22175 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22176 (tlsie_small_<mode>): this and handle PTR.
22177 (tlsie_small_sidi): New pattern.
22178 (tlsle_small): Change to an expand to handle ILP32.
22179 (tlsle_small_<mode>): New pattern.
22180 (tlsdesc_small): Rename to ...
22181 (tlsdesc_small_<mode>): this and handle PTR.
22183 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22185 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22187 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22189 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22190 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22191 (aarch64_types_signed_poly_qualifiers): Likewise.
22192 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22193 (aarch64_types_poly_signed_qualifiers): Likewise.
22194 (TYPES_REINTERP_SS): Type macro added.
22195 (TYPES_REINTERP_SU): Likewise.
22196 (TYPES_REINTERP_SP): Likewise.
22197 (TYPES_REINTERP_US): Likewise.
22198 (TYPES_REINTERP_PS): Likewise.
22199 (aarch64_fold_builtin): New expression folding added.
22200 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22201 Declarations removed.
22202 (REINTERP_SS): Declarations added.
22203 (REINTERP_US): Likewise.
22204 (REINTERP_PS): Likewise.
22205 (REINTERP_SU): Likewise.
22206 (REINTERP_SP): Likewise.
22207 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
22208 (vreinterpretq_p8_f64): Likewise.
22209 (vreinterpret_p16_f64): Likewise.
22210 (vreinterpretq_p16_f64): Likewise.
22211 (vreinterpret_f32_f64): Likewise.
22212 (vreinterpretq_f32_f64): Likewise.
22213 (vreinterpret_f64_f32): Likewise.
22214 (vreinterpret_f64_p8): Likewise.
22215 (vreinterpret_f64_p16): Likewise.
22216 (vreinterpret_f64_s8): Likewise.
22217 (vreinterpret_f64_s16): Likewise.
22218 (vreinterpret_f64_s32): Likewise.
22219 (vreinterpret_f64_s64): Likewise.
22220 (vreinterpret_f64_u8): Likewise.
22221 (vreinterpret_f64_u16): Likewise.
22222 (vreinterpret_f64_u32): Likewise.
22223 (vreinterpret_f64_u64): Likewise.
22224 (vreinterpretq_f64_f32): Likewise.
22225 (vreinterpretq_f64_p8): Likewise.
22226 (vreinterpretq_f64_p16): Likewise.
22227 (vreinterpretq_f64_s8): Likewise.
22228 (vreinterpretq_f64_s16): Likewise.
22229 (vreinterpretq_f64_s32): Likewise.
22230 (vreinterpretq_f64_s64): Likewise.
22231 (vreinterpretq_f64_u8): Likewise.
22232 (vreinterpretq_f64_u16): Likewise.
22233 (vreinterpretq_f64_u32): Likewise.
22234 (vreinterpretq_f64_u64): Likewise.
22235 (vreinterpret_s64_f64): Likewise.
22236 (vreinterpretq_s64_f64): Likewise.
22237 (vreinterpret_u64_f64): Likewise.
22238 (vreinterpretq_u64_f64): Likewise.
22239 (vreinterpret_s8_f64): Likewise.
22240 (vreinterpretq_s8_f64): Likewise.
22241 (vreinterpret_s16_f64): Likewise.
22242 (vreinterpretq_s16_f64): Likewise.
22243 (vreinterpret_s32_f64): Likewise.
22244 (vreinterpretq_s32_f64): Likewise.
22245 (vreinterpret_u8_f64): Likewise.
22246 (vreinterpretq_u8_f64): Likewise.
22247 (vreinterpret_u16_f64): Likewise.
22248 (vreinterpretq_u16_f64): Likewise.
22249 (vreinterpret_u32_f64): Likewise.
22250 (vreinterpretq_u32_f64): Likewise.
22252 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22254 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22255 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
22256 (vreinterpret_p8_s8): Likewise.
22257 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
22258 (vreinterpret_p8_s16): Likewise.
22259 (vreinterpret_p8_s32): Likewise.
22260 (vreinterpret_p8_s64): Likewise.
22261 (vreinterpret_p8_f32): Likewise.
22262 (vreinterpret_p8_u8): Likewise.
22263 (vreinterpret_p8_u16): Likewise.
22264 (vreinterpret_p8_u32): Likewise.
22265 (vreinterpret_p8_u64): Likewise.
22266 (vreinterpret_p8_p16): Likewise.
22267 (vreinterpretq_p8_s8): Likewise.
22268 (vreinterpretq_p8_s16): Likewise.
22269 (vreinterpretq_p8_s32): Likewise.
22270 (vreinterpretq_p8_s64): Likewise.
22271 (vreinterpretq_p8_f32): Likewise.
22272 (vreinterpretq_p8_u8): Likewise.
22273 (vreinterpretq_p8_u16): Likewise.
22274 (vreinterpretq_p8_u32): Likewise.
22275 (vreinterpretq_p8_u64): Likewise.
22276 (vreinterpretq_p8_p16): Likewise.
22277 (vreinterpret_p16_s8): Likewise.
22278 (vreinterpret_p16_s16): Likewise.
22279 (vreinterpret_p16_s32): Likewise.
22280 (vreinterpret_p16_s64): Likewise.
22281 (vreinterpret_p16_f32): Likewise.
22282 (vreinterpret_p16_u8): Likewise.
22283 (vreinterpret_p16_u16): Likewise.
22284 (vreinterpret_p16_u32): Likewise.
22285 (vreinterpret_p16_u64): Likewise.
22286 (vreinterpret_p16_p8): Likewise.
22287 (vreinterpretq_p16_s8): Likewise.
22288 (vreinterpretq_p16_s16): Likewise.
22289 (vreinterpretq_p16_s32): Likewise.
22290 (vreinterpretq_p16_s64): Likewise.
22291 (vreinterpretq_p16_f32): Likewise.
22292 (vreinterpretq_p16_u8): Likewise.
22293 (vreinterpretq_p16_u16): Likewise.
22294 (vreinterpretq_p16_u32): Likewise.
22295 (vreinterpretq_p16_u64): Likewise.
22296 (vreinterpretq_p16_p8): Likewise.
22297 (vreinterpret_f32_s8): Likewise.
22298 (vreinterpret_f32_s16): Likewise.
22299 (vreinterpret_f32_s32): Likewise.
22300 (vreinterpret_f32_s64): Likewise.
22301 (vreinterpret_f32_u8): Likewise.
22302 (vreinterpret_f32_u16): Likewise.
22303 (vreinterpret_f32_u32): Likewise.
22304 (vreinterpret_f32_u64): Likewise.
22305 (vreinterpret_f32_p8): Likewise.
22306 (vreinterpret_f32_p16): Likewise.
22307 (vreinterpretq_f32_s8): Likewise.
22308 (vreinterpretq_f32_s16): Likewise.
22309 (vreinterpretq_f32_s32): Likewise.
22310 (vreinterpretq_f32_s64): Likewise.
22311 (vreinterpretq_f32_u8): Likewise.
22312 (vreinterpretq_f32_u16): Likewise.
22313 (vreinterpretq_f32_u32): Likewise.
22314 (vreinterpretq_f32_u64): Likewise.
22315 (vreinterpretq_f32_p8): Likewise.
22316 (vreinterpretq_f32_p16): Likewise.
22317 (vreinterpret_s64_s8): Likewise.
22318 (vreinterpret_s64_s16): Likewise.
22319 (vreinterpret_s64_s32): Likewise.
22320 (vreinterpret_s64_f32): Likewise.
22321 (vreinterpret_s64_u8): Likewise.
22322 (vreinterpret_s64_u16): Likewise.
22323 (vreinterpret_s64_u32): Likewise.
22324 (vreinterpret_s64_u64): Likewise.
22325 (vreinterpret_s64_p8): Likewise.
22326 (vreinterpret_s64_p16): Likewise.
22327 (vreinterpretq_s64_s8): Likewise.
22328 (vreinterpretq_s64_s16): Likewise.
22329 (vreinterpretq_s64_s32): Likewise.
22330 (vreinterpretq_s64_f32): Likewise.
22331 (vreinterpretq_s64_u8): Likewise.
22332 (vreinterpretq_s64_u16): Likewise.
22333 (vreinterpretq_s64_u32): Likewise.
22334 (vreinterpretq_s64_u64): Likewise.
22335 (vreinterpretq_s64_p8): Likewise.
22336 (vreinterpretq_s64_p16): Likewise.
22337 (vreinterpret_u64_s8): Likewise.
22338 (vreinterpret_u64_s16): Likewise.
22339 (vreinterpret_u64_s32): Likewise.
22340 (vreinterpret_u64_s64): Likewise.
22341 (vreinterpret_u64_f32): Likewise.
22342 (vreinterpret_u64_u8): Likewise.
22343 (vreinterpret_u64_u16): Likewise.
22344 (vreinterpret_u64_u32): Likewise.
22345 (vreinterpret_u64_p8): Likewise.
22346 (vreinterpret_u64_p16): Likewise.
22347 (vreinterpretq_u64_s8): Likewise.
22348 (vreinterpretq_u64_s16): Likewise.
22349 (vreinterpretq_u64_s32): Likewise.
22350 (vreinterpretq_u64_s64): Likewise.
22351 (vreinterpretq_u64_f32): Likewise.
22352 (vreinterpretq_u64_u8): Likewise.
22353 (vreinterpretq_u64_u16): Likewise.
22354 (vreinterpretq_u64_u32): Likewise.
22355 (vreinterpretq_u64_p8): Likewise.
22356 (vreinterpretq_u64_p16): Likewise.
22357 (vreinterpret_s8_s16): Likewise.
22358 (vreinterpret_s8_s32): Likewise.
22359 (vreinterpret_s8_s64): Likewise.
22360 (vreinterpret_s8_f32): Likewise.
22361 (vreinterpret_s8_u8): Likewise.
22362 (vreinterpret_s8_u16): Likewise.
22363 (vreinterpret_s8_u32): Likewise.
22364 (vreinterpret_s8_u64): Likewise.
22365 (vreinterpret_s8_p8): Likewise.
22366 (vreinterpret_s8_p16): Likewise.
22367 (vreinterpretq_s8_s16): Likewise.
22368 (vreinterpretq_s8_s32): Likewise.
22369 (vreinterpretq_s8_s64): Likewise.
22370 (vreinterpretq_s8_f32): Likewise.
22371 (vreinterpretq_s8_u8): Likewise.
22372 (vreinterpretq_s8_u16): Likewise.
22373 (vreinterpretq_s8_u32): Likewise.
22374 (vreinterpretq_s8_u64): Likewise.
22375 (vreinterpretq_s8_p8): Likewise.
22376 (vreinterpretq_s8_p16): Likewise.
22377 (vreinterpret_s16_s8): Likewise.
22378 (vreinterpret_s16_s32): Likewise.
22379 (vreinterpret_s16_s64): Likewise.
22380 (vreinterpret_s16_f32): Likewise.
22381 (vreinterpret_s16_u8): Likewise.
22382 (vreinterpret_s16_u16): Likewise.
22383 (vreinterpret_s16_u32): Likewise.
22384 (vreinterpret_s16_u64): Likewise.
22385 (vreinterpret_s16_p8): Likewise.
22386 (vreinterpret_s16_p16): Likewise.
22387 (vreinterpretq_s16_s8): Likewise.
22388 (vreinterpretq_s16_s32): Likewise.
22389 (vreinterpretq_s16_s64): Likewise.
22390 (vreinterpretq_s16_f32): Likewise.
22391 (vreinterpretq_s16_u8): Likewise.
22392 (vreinterpretq_s16_u16): Likewise.
22393 (vreinterpretq_s16_u32): Likewise.
22394 (vreinterpretq_s16_u64): Likewise.
22395 (vreinterpretq_s16_p8): Likewise.
22396 (vreinterpretq_s16_p16): Likewise.
22397 (vreinterpret_s32_s8): Likewise.
22398 (vreinterpret_s32_s16): Likewise.
22399 (vreinterpret_s32_s64): Likewise.
22400 (vreinterpret_s32_f32): Likewise.
22401 (vreinterpret_s32_u8): Likewise.
22402 (vreinterpret_s32_u16): Likewise.
22403 (vreinterpret_s32_u32): Likewise.
22404 (vreinterpret_s32_u64): Likewise.
22405 (vreinterpret_s32_p8): Likewise.
22406 (vreinterpret_s32_p16): Likewise.
22407 (vreinterpretq_s32_s8): Likewise.
22408 (vreinterpretq_s32_s16): Likewise.
22409 (vreinterpretq_s32_s64): Likewise.
22410 (vreinterpretq_s32_f32): Likewise.
22411 (vreinterpretq_s32_u8): Likewise.
22412 (vreinterpretq_s32_u16): Likewise.
22413 (vreinterpretq_s32_u32): Likewise.
22414 (vreinterpretq_s32_u64): Likewise.
22415 (vreinterpretq_s32_p8): Likewise.
22416 (vreinterpretq_s32_p16): Likewise.
22417 (vreinterpret_u8_s8): Likewise.
22418 (vreinterpret_u8_s16): Likewise.
22419 (vreinterpret_u8_s32): Likewise.
22420 (vreinterpret_u8_s64): Likewise.
22421 (vreinterpret_u8_f32): Likewise.
22422 (vreinterpret_u8_u16): Likewise.
22423 (vreinterpret_u8_u32): Likewise.
22424 (vreinterpret_u8_u64): Likewise.
22425 (vreinterpret_u8_p8): Likewise.
22426 (vreinterpret_u8_p16): Likewise.
22427 (vreinterpretq_u8_s8): Likewise.
22428 (vreinterpretq_u8_s16): Likewise.
22429 (vreinterpretq_u8_s32): Likewise.
22430 (vreinterpretq_u8_s64): Likewise.
22431 (vreinterpretq_u8_f32): Likewise.
22432 (vreinterpretq_u8_u16): Likewise.
22433 (vreinterpretq_u8_u32): Likewise.
22434 (vreinterpretq_u8_u64): Likewise.
22435 (vreinterpretq_u8_p8): Likewise.
22436 (vreinterpretq_u8_p16): Likewise.
22437 (vreinterpret_u16_s8): Likewise.
22438 (vreinterpret_u16_s16): Likewise.
22439 (vreinterpret_u16_s32): Likewise.
22440 (vreinterpret_u16_s64): Likewise.
22441 (vreinterpret_u16_f32): Likewise.
22442 (vreinterpret_u16_u8): Likewise.
22443 (vreinterpret_u16_u32): Likewise.
22444 (vreinterpret_u16_u64): Likewise.
22445 (vreinterpret_u16_p8): Likewise.
22446 (vreinterpret_u16_p16): Likewise.
22447 (vreinterpretq_u16_s8): Likewise.
22448 (vreinterpretq_u16_s16): Likewise.
22449 (vreinterpretq_u16_s32): Likewise.
22450 (vreinterpretq_u16_s64): Likewise.
22451 (vreinterpretq_u16_f32): Likewise.
22452 (vreinterpretq_u16_u8): Likewise.
22453 (vreinterpretq_u16_u32): Likewise.
22454 (vreinterpretq_u16_u64): Likewise.
22455 (vreinterpretq_u16_p8): Likewise.
22456 (vreinterpretq_u16_p16): Likewise.
22457 (vreinterpret_u32_s8): Likewise.
22458 (vreinterpret_u32_s16): Likewise.
22459 (vreinterpret_u32_s32): Likewise.
22460 (vreinterpret_u32_s64): Likewise.
22461 (vreinterpret_u32_f32): Likewise.
22462 (vreinterpret_u32_u8): Likewise.
22463 (vreinterpret_u32_u16): Likewise.
22464 (vreinterpret_u32_u64): Likewise.
22465 (vreinterpret_u32_p8): Likewise.
22466 (vreinterpret_u32_p16): Likewise.
22467 (vreinterpretq_u32_s8): Likewise.
22468 (vreinterpretq_u32_s16): Likewise.
22469 (vreinterpretq_u32_s32): Likewise.
22470 (vreinterpretq_u32_s64): Likewise.
22471 (vreinterpretq_u32_f32): Likewise.
22472 (vreinterpretq_u32_u8): Likewise.
22473 (vreinterpretq_u32_u16): Likewise.
22474 (vreinterpretq_u32_u64): Likewise.
22475 (vreinterpretq_u32_p8): Likewise.
22476 (vreinterpretq_u32_p16): Likewise.
22478 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22480 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
22482 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
22484 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22485 (vqnegd_s64): Likewise.
22486 (vqabs_s64): Likewise.
22487 (vqabsd_s64): Likewise.
22489 2014-04-22 Richard Henderson <rth@redhat.com>
22491 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22492 computation to the top of the loop.
22494 2014-04-22 Renlin <renlin.li@arm.com>
22495 Jiong Wang <jiong.wang@arm.com>
22497 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22498 * config/aarch64/aarch64.c (aarch64_layout_frame)
22499 (aarch64_initial_elimination_offset): Likewise.
22501 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
22503 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22506 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
22508 * machmode.h (bitwise_mode_for_mode): Declare.
22509 * stor-layout.h (bitwise_type_for_mode): Likewise.
22510 * stor-layout.c (bitwise_mode_for_mode): New function.
22511 (bitwise_type_for_mode): Likewise.
22512 * builtins.c (fold_builtin_memory_op): Use it instead of
22513 int_mode_for_mode and build_nonstandard_integer_type.
22515 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22517 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22518 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22519 (*-*-solaris2*): Simplify.
22520 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22521 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22522 *-*-solaris2.9* handling.
22524 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22526 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22527 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22528 handling, simplify.
22529 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22530 * configure: Regenerate.
22532 * config/i386/sol2-9.h: Remove.
22534 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22535 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22536 Remove Solaris 9 references.
22538 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
22540 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22541 (floatuns<GPI:mode><GPF:mode>2): Remove.
22542 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22543 and floatuns conversions.
22544 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22545 and floatuns conversions.
22546 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22547 (w1,w2): New mode attributes for inequal width conversions.
22549 2014-04-22 Renlin Li <Renlin.Li@arm.com>
22551 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22552 the output asm format.
22554 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
22556 * config/aarch64/aarch64-simd.md
22557 (aarch64_cm<optab>di): Always split.
22558 (*aarch64_cm<optab>di): New.
22559 (aarch64_cmtstdi): Always split.
22560 (*aarch64_cmtstdi): New.
22562 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22564 PR tree-optimization/60823
22565 * omp-low.c (ipa_simd_modify_function_body): Go through
22566 all SSA_NAMEs and for those refering to vector arguments
22567 which are going to be replaced adjust SSA_NAME_VAR and,
22568 if it is a default definition, change it into a non-default
22569 definition assigned at the beginning of function from new_decl.
22570 (ipa_simd_modify_stmt_ops): Rewritten.
22571 * tree-dfa.c (set_ssa_default_def): When removing default def,
22572 check for NULL loc instead of NULL *loc.
22574 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22576 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22577 restrictions on core registers for DImode values in Thumb2.
22579 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22581 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22582 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22584 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22586 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22587 (*iordi_notzesidi_di): Likewise.
22588 (*iordi_notsesidi_di): Likewise.
22590 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22592 * config/arm/arm-protos.h (tune_params): New struct members.
22593 * config/arm/arm.c: Initialise tune_params per processor.
22594 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22595 for speed, based on new tune_params.
22597 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22599 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22600 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22601 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22602 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22603 * config/aarch64/arm_neon.h (vrnd_f64): Added.
22604 (vrnda_f64): Likewise.
22605 (vrndi_f64): Likewise.
22606 (vrndm_f64): Likewise.
22607 (vrndn_f64): Likewise.
22608 (vrndp_f64): Likewise.
22609 (vrndx_f64): Likewise.
22611 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22613 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22614 GET_MODE_SIZE argument is enum machine_mode.
22616 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22619 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22620 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22622 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
22624 PR middle-end/60281
22625 * asan.c (asan_emit_stack_protection): Force the base to align to
22626 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
22627 appropriate bits if STRICT_ALIGNMENT.
22628 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22630 (expand_used_vars): Leave a space in the stack frame for alignment
22631 if STRICT_ALIGNMENT.
22633 2014-04-21 David Malcolm <dmalcolm@redhat.com>
22635 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22637 (gimple_store_p): Likewise.
22638 (gimple_assign_load_p): Likewise.
22639 (gimple_assign_cast_p): Likewise.
22640 (gimple_clobber_p): Likewise.
22642 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22643 rather than a gimple.
22644 (gimple_assign_cast_p): Likewise.
22646 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22649 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22650 If mode is DDmode and TARGET_E500_DOUBLE allow move.
22652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22653 more debug information for E500 if -mdebug=reg.
22655 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
22658 * config/i386/i386.c (ix86_expand_builtin)
22659 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22660 register for target RTX.
22661 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22663 2014-04-18 Cong Hou <congh@google.com>
22665 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22666 the widen-mult pattern by handling two operands with different sizes,
22667 and operands whose size is smaller than half of the result type.
22669 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22671 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22672 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22673 (do_estimate_edge_time): Compute it.
22674 * ipa-inline.c (want_inline_small_function_p): Bypass
22675 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22677 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22679 * ipa-inline.c (spec_rem): New static variable.
22680 (dump_overall_stats): New function.
22681 (dump_inline_stats): New function.
22683 2014-04-18 Richard Henderson <rth@redhat.com>
22685 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22686 to GET_MODE_SIZE, not a reg_class_t.
22688 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22690 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22691 (vsx_xxmrglw_<mode>): Likewise.
22693 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
22696 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22697 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22698 (rs6000_init_hard_regno_mode_ok): Likewise.
22700 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
22702 * ipa-inline.c (inline_small_functions): Account only non-cold
22704 * doc/invoke.texi (inline-unit-growth): Update documentation.
22706 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
22708 * config/rs6000/rs6000.md (addti3, subti3): New.
22710 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
22713 * config/i386/i386.c (ix86_expand_clear): Remove outdated
22714 comment. Check optimize_insn_for_size_p instead of
22715 optimize_insn_for_speed_p.
22717 2014-04-17 Martin Jambor <mjambor@suse.cz>
22719 * gimple-iterator.c (gsi_start_edge): New function.
22720 * gimple-iterator.h (gsi_start_edge): Declare.
22721 * tree-sra.c (single_non_eh_succ): New function.
22722 (disqualify_ops_if_throwing_stmt): Renamed to
22723 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
22724 having one non-EH successor BB.
22725 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22726 generate loads into replacements.
22727 (sra_modify_assign): Likewise and and also use the simple path for
22729 (sra_modify_function_body): Commit statements on edges.
22731 2014-04-17 Richard Biener <rguenther@suse.de>
22733 PR middle-end/60849
22734 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22735 comparison results and add clarifying comment.
22737 2014-04-17 Jakub Jelinek <jakub@redhat.com>
22739 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22740 (blank_mode): Initialize it.
22741 (emit_mode_size_inline, emit_mode_nunits_inline,
22742 emit_mode_inner_inline): New functions.
22743 (emit_insn_modes_h): Call them and surround their output with
22744 #if GCC_VERSION >= 4001 ... #endif.
22745 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22746 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22747 mode_* arrays if the argument is __builtin_constant_p.
22748 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22749 is enum machine_mode.
22751 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22753 * passes.c (opt_pass::execute): Adjust.
22754 (pass_manager::execute_pass_mode_switching): Likewise.
22755 (early_local_passes::execute): Likewise.
22756 (execute_one_pass): Pass cfun to the pass's execute method.
22757 * tree-pass.h (opt_pass::execute): Add function * argument.
22758 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22759 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22760 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22761 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22762 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22763 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22764 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22765 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22766 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22767 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22768 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22769 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22770 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22771 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22772 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22773 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22774 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22775 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22776 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22777 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22778 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22779 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22780 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22781 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22782 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22783 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22784 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22785 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22786 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22789 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22791 * passes.c (opt_pass::gate): Take function * argument.
22792 (gate_all_early_local_passes): Merge into
22793 (early_local_passes::gate): this.
22794 (gate_all_early_optimizations): Merge into
22795 (all_early_optimizations::gate): this.
22796 (gate_all_optimizations): Mege into
22797 (all_optimizations::gate): this.
22798 (gate_all_optimizations_g): Merge into
22799 (all_optimizations_g::gate): this.
22800 (gate_rest_of_compilation): Mege into
22801 (rest_of_compilation::gate): this.
22802 (gate_postreload): Merge into
22803 (postreload::gate): this.
22804 (dump_one_pass): Pass cfun to the pass's gate method.
22805 (execute_ipa_summary_passes): Likewise.
22806 (execute_one_pass): Likewise.
22807 (ipa_write_summaries_2): Likewise.
22808 (ipa_write_optimization_summaries_1): Likewise.
22809 (ipa_read_summaries_1): Likewise.
22810 (ipa_read_optimization_summaries_1): Likewise.
22811 (execute_ipa_stmt_fixups): Likewise.
22812 * tree-pass.h (opt_pass::gate): Add function * argument.
22813 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22814 combine-stack-adj.c, combine.c, compare-elim.c,
22815 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22816 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22817 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22818 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
22819 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22820 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22821 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22822 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22823 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22824 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22825 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22826 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22827 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22828 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22829 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22830 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22831 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22832 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22833 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22834 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22835 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22836 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22837 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22838 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
22839 var-tracking.c, vtable-verify.c, web.c: Adjust.
22841 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22843 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
22844 * configure: Regenerate.
22846 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22848 * passes.c (dump_one_pass): don't check pass->has_gate.
22849 (execute_ipa_summary_passes): Likewise.
22850 (execute_one_pass): Likewise.
22851 (ipa_write_summaries_2): Likewise.
22852 (ipa_write_optimization_summaries_1): Likewise.
22853 (ipa_read_optimization_summaries_1): Likewise.
22854 (execute_ipa_stmt_fixups): Likewise.
22855 * tree-pass.h (pass_data::has_gate): Remove.
22856 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22857 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22858 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22859 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22860 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22861 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22862 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22863 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22864 gimple-low.c, gimple-ssa-isolate-paths.c,
22865 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22866 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
22867 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22868 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
22869 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
22870 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
22871 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
22872 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
22873 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
22874 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22875 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22876 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22877 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22878 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22879 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22880 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22881 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22882 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22883 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22884 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22885 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22886 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22889 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22891 * pass_manager.h (pass_manager::register_dump_files_1): Remove
22893 * passes.c (pass_manager::register_dump_files_1): Merge into
22894 (pass_manager::register_dump_files): this, and remove its handling of
22895 properties since the pass always has the properties anyway.
22896 (pass_manager::pass_manager): Adjust.
22898 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22900 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
22901 * passes.c (pass_manager::register_dump_files_1): Remove dead code
22902 dealing with properties.
22903 (pass_manager::register_dump_files): Adjust.
22905 2014-03-20 Mark Wielaard <mjw@redhat.com>
22907 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
22908 then represent the bound as normal constant value.
22910 2014-04-17 Jakub Jelinek <jakub@redhat.com>
22913 Forward port from 4.8 branch
22914 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
22916 * config/i386/bmiintrin.h (_blsi_u32): New.
22917 (_blsi_u64): Ditto.
22918 (_blsr_u32): Ditto.
22919 (_blsr_u64): Ditto.
22920 (_blsmsk_u32): Ditto.
22921 (_blsmsk_u64): Ditto.
22922 (_tzcnt_u32): Ditto.
22923 (_tzcnt_u64): Ditto.
22925 2014-04-17 Kito Cheng <kito@0xlab.org>
22927 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
22929 2014-04-17 Richard Biener <rguenther@suse.de>
22931 PR middle-end/60849
22932 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
22933 boolean results for comparisons.
22935 2014-04-17 Richard Biener <rguenther@suse.de>
22937 PR tree-optimization/60836
22938 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
22939 initial PHI args to be gimple values.
22941 2014-04-17 Richard Biener <rguenther@suse.de>
22943 PR tree-optimization/60841
22944 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
22945 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
22946 of stmts to SLP build.
22947 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
22948 (vect_analyze_slp): Likewise.
22949 (vect_analyze_slp_instance): Likewise.
22950 (vect_build_slp_tree): Limit overall SLP tree growth.
22951 * tree-vectorizer.h (vect_analyze_data_refs,
22952 vect_analyze_slp): Adjust prototypes.
22954 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22956 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
22959 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22961 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
22962 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
22963 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
22964 for TARGET_SLOW_PSHUFB
22966 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
22968 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
22969 * config/i386/i386.c (intel_cost): Ditto.
22971 2014-04-17 Joey Ye <joey.ye@arm.com>
22973 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
22975 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22977 * opts.c (common_handle_option): Disable -fipa-reference coorectly
22978 with -fuse-profile.
22980 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
22982 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
22983 (type_all_derivations_known_p): New predicate.
22984 (type_all_ctors_visible_p): New predicate.
22985 (type_possibly_instantiated_p): New predicate.
22986 (get_odr_type): Compute all_derivations_known.
22987 (dump_odr_type): Dump the flag.
22988 (maybe_record_type): Cleanup.
22989 (record_target_from_binfo): Add bases_to_consider array;
22990 record bases for types w/o instances and skip CXX destructor.
22991 (possible_polymorphic_call_targets_1): Add bases_to_consider
22992 and consider_construction parameters; check if type may have instance.
22993 (get_polymorphic_call_info): Set maybe_in_construction to true
22994 when we know nothing.
22995 (record_targets_from_bases): Skip CXX destructors; they are
22996 never called for types in construction.
22997 (possible_polymorphic_call_targets): Do not record target when
22998 type may not have instance.
23000 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23003 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23004 external aliases alive, too.
23006 2014-04-16 Andrew Pinski <apinski@cavium.com>
23008 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23011 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23013 * final.c (compute_alignments): Do not apply loop alignment to a block
23014 falling through to the exit.
23016 2014-04-16 Catherine Moore <clm@codesourcery.com>
23018 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23019 Adjust constraints for microMIPS store patterns.
23021 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23023 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23025 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23027 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23028 (append_use): Run at -O0.
23029 (append_vdef): Likewise.
23030 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23031 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23033 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23035 PR tree-optimization/60844
23036 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23037 (propagate_op_to_single_use, remove_visited_stmt_chain,
23038 linearize_expr, repropagate_negates, reassociate_bb): Use it
23039 instead of gsi_remove.
23041 2014-04-16 Martin Jambor <mjambor@suse.cz>
23043 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23044 ipa_transforms_to_apply.
23045 (cgraph_function_versioning): Assert that old_node has empty
23046 ipa_transforms_to_apply.
23047 * trans-mem.c (ipa_tm_create_version): Likewise.
23048 * tree-inline.c (tree_function_versioning): Do not duplicate
23049 ipa_transforms_to_apply.
23051 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23054 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23056 Pass necessary as flags on 64-bit Solaris/x86.
23057 Use lowercase relocs for x86_64-*-*.
23058 * configure: Regenerate.
23060 2014-04-15 Jan Hubicka <jh@suse.cz>
23062 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23063 (maybe_record_node, likely_target_p): Use it.
23065 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23068 Revert following patch
23070 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23073 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23074 software floating point or no floating point registers, do not
23075 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23076 in GPRs that occurs after we tested for GPRs that would never be
23079 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23080 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23081 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23082 specifically allow DDmode, since that does not use the SPE SIMD
23085 2014-03-21 Mark Wielaard <mjw@redhat.com>
23087 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23088 as unsigned or int depending on type and value used.
23090 2014-04-15 Richard Biener <rguenther@suse.de>
23092 PR rtl-optimization/56965
23093 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23094 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23096 * alias.c (true_dependence_1): Do not call
23097 nonoverlapping_component_refs_p.
23098 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23099 nonoverlapping_component_refs_p.
23100 (indirect_refs_may_alias_p): Likewise.
23102 2014-04-15 Teresa Johnson <tejohnson@google.com>
23104 * cfg.c (dump_bb_info): Fix flags check.
23105 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23107 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23109 PR rtl-optimization/60663
23110 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23113 2014-04-15 Richard Biener <rguenther@suse.de>
23115 * lto-streamer.h (LTO_major_version): Bump to 4.
23117 2014-04-15 Richard Biener <rguenther@suse.de>
23119 * common.opt (lto_partition_model): New enum.
23120 (flto-partition=): Merge separate options with a single with argument,
23121 add -flto-partition=one support.
23122 * flag-types.h (enum lto_partition_model): Declare.
23123 * opts.c (finish_options): Remove duplicate -flto-partition=
23125 * lto-wrapper.c (run_gcc): Adjust.
23127 2014-04-15 Richard Biener <rguenther@suse.de>
23129 * alias.c (ncr_compar): New function.
23130 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23132 2014-04-15 Richard Biener <rguenther@suse.de>
23134 * alias.c (record_component_aliases): Do not walk BINFOs.
23136 2014-04-15 Richard Biener <rguenther@suse.de>
23138 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23139 Add struct function argument and adjust.
23140 (find_func_aliases_for_call): Likewise.
23141 (find_func_aliases): Likewise.
23142 (find_func_clobbers): Likewise.
23143 (intra_create_variable_infos): Likewise.
23144 (compute_points_to_sets): Likewise.
23145 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23147 2014-04-15 Richard Biener <rguenther@suse.de>
23149 * tree.c (iterative_hash_expr): Use enum tree_code_class
23150 to store TREE_CODE_CLASS.
23151 (tree_block): Likewise.
23152 (tree_set_block): Likewise.
23153 * tree.h (fold_build_pointer_plus_loc): Use
23154 convert_to_ptrofftype_loc.
23156 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23159 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23162 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23164 * cfgloop.h (struct loop): Move force_vectorize down.
23165 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23166 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23167 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23168 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23169 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23170 * tree-core.h (enum annot_expr_kind): Add new kind values.
23171 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23172 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23174 * tree.def (ANNOTATE_EXPR): Tweak comment.
23176 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23178 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23181 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23183 * tree.h (TYPE_IDENTIFIER): Declare.
23184 * tree.c (subrange_type_for_debug_p): Use it.
23185 * godump.c (go_format_type): Likewise.
23186 * dwarf2out.c (is_cxx_auto, modified_type_die,
23187 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23188 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23190 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23193 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23195 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23197 * config/i386/i386.c (examine_argument): Return bool. Return true if
23198 parameter should be passed in memory.
23199 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23200 (construct_container): Update calls to examine_argument.
23201 (function_arg_advance_64): Ditto.
23202 (return_in_memory_32): Merge with ix86_return_in_memory.
23203 (return_in_memory_64): Ditto.
23204 (return_in_memory_ms_64): Ditto.
23206 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23208 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
23209 * coverage.c (coverage_compute_profile_id): Handle externally visible
23212 2014-04-14 Martin Jambor <mjambor@suse.cz>
23214 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
23215 DECL_DISREGARD_INLINE_LIMITS functions.
23217 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23220 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
23222 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23225 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
23226 optimize_insn_for_speed_p instead of
23227 optimize_function_for_speed_p.
23229 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
23231 * doc/invoke.texi (free): Document AArch64.
23233 2014-04-14 Richard Biener <rguenther@suse.de>
23235 PR tree-optimization/60042
23236 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
23237 (insert_into_preds_of_block): Do not prevent PHI insertion
23238 for REFERENCE exprs here ...
23239 (eliminate_dom_walker::before_dom_children): ... but prevent
23240 their use here under similar conditions when applied to the
23241 IL after PRE optimizations.
23243 2014-04-14 Richard Biener <rguenther@suse.de>
23245 * passes.def: Move early points-to after early SRA.
23247 2014-04-14 Richard Biener <rguenther@suse.de>
23249 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
23250 check for which sign-changes we allow when forwarding
23251 a converted value into a switch.
23253 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23255 * stor-layout.c (place_field): Finalize non-constant offset for the
23258 2014-04-14 Richard Biener <rguenther@suse.de>
23260 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
23262 (expand_switch_using_bit_tests_p): Likewise.
23263 (process_switch): Compute and pass on speed_p based on the
23265 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
23266 optimize_bb_for_speed_p.
23268 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23270 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
23271 * function.h (struct function): Rename has_force_vect_loops into
23272 has_force_vectorize_loops.
23273 * lto-streamer-in.c (input_cfg): Adjust for renaming.
23274 (input_struct_function_base): Likewise.
23275 * lto-streamer-out.c (output_cfg): Likewise.
23276 (output_struct_function_base): Likewise.
23277 * omp-low.c (expand_omp_simd): Likewise.
23278 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23279 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
23280 (version_loop_for_if_conversion): Likewise.
23281 (tree_if_conversion): Likewise.
23282 (main_tree_if_conversion): Likewise.
23283 (gate_tree_if_conversion): Likewise.
23284 * tree-inline.c (copy_loops): Likewise.
23285 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
23286 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
23287 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23288 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
23289 * tree-vectorizer.c (vectorize_loops): Likewise.
23290 * tree-vectorizer.h (unlimited_cost_model): Likewise.
23292 2014-04-14 Richard Biener <rguenther@suse.de>
23295 * lto-streamer-out.c (wrap_refs): New function.
23296 (lto_output): Wrap symbol references in global initializes in
23297 type-preserving MEM_REFs.
23299 2014-04-14 Christian Bruel <christian.bruel@st.com>
23301 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
23303 2014-04-14 Christian Bruel <christian.bruel@st.com>
23305 * config/sh/sh.md (setmemqi): New expand pattern.
23306 * config/sh/sh.h (CLEAR_RATIO): Define.
23307 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
23308 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
23310 2014-04-14 Richard Biener <rguenther@suse.de>
23312 PR middle-end/55022
23313 * fold-const.c (negate_expr_p): Don't negate directional rounding
23315 (fold_negate_expr): Likewise.
23317 2014-04-14 Richard Biener <rguenther@suse.de>
23319 PR tree-optimization/59817
23320 PR tree-optimization/60453
23321 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
23322 recursion to catch all CHRECs in the scalar evolution and restrict
23323 the predicate for the remains appropriately.
23325 2014-04-12 Catherine Moore <clm@codesourcery.com>
23327 * config/mips/constraints.md: Add new register constraint "kb".
23328 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
23329 (*movhi_internal): Likewise.
23330 (*movqi_internal): Likewise.
23331 * config/mips/mips.h (M16_STORE_REGS): New register class.
23332 (REG_CLASS_NAMES): Add M16_STORE_REGS.
23333 (REG_CLASS_CONTENTS): Likewise.
23334 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
23336 2014-04-11 Tobias Burnus <burnus@net-b.de>
23339 * doc/invoke.texi (-Wformat-signedness): Document it.
23340 (Wformat=2): Mention that this enables -Wformat-signedness.
23342 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23344 * common/config/epiphany/epiphany-common.c
23345 (epiphany_option_optimization_table): Enable section anchors by
23346 default at -O1 or higher.
23347 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
23348 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
23349 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
23350 carries no extra cost.
23351 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
23352 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
23353 * config/epiphany/predicates.md (memclob_operand): New predicate.
23354 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
23355 Use memclob_operand predicate and X constraint for operand 3.
23357 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23359 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
23360 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
23363 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23365 PR rtl-optimization/60651
23366 * mode-switching.c (optimize_mode_switching): Make sure to emit
23367 sets of a lower numbered entity before sets of a higher numbered
23368 entity to a mode of the same or lower priority.
23369 When creating a seginfo for a basic block that starts with a code
23370 label, move the insertion point past the code label.
23371 (new_seginfo): Document and enforce requirement that
23372 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
23373 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
23374 * doc/tm.texi: Regenerate.
23376 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
23379 * config/arc/arc.c (arc_save_restore): Fix assert typo.
23381 2013-04-11 Jakub Jelinek <jakub@redhat.com>
23383 * BASE-VER: Set to 4.10.0.
23385 2014-04-11 Tobias Burnus <burnus@net-b.de>
23388 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
23389 * doc/gcc.texi (Service): Update description in the @menu
23390 * doc/invoke.texi (Option Summary): Remove misplaced and
23393 2014-04-11 Steve Ellcey <sellcey@mips.com>
23394 Jakub Jelinek <jakub@redhat.com>
23396 PR middle-end/60556
23397 * expr.c (convert_move): Use emit_store_flag_force instead of
23398 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
23401 2014-04-11 Richard Biener <rguenther@suse.de>
23403 PR middle-end/60797
23404 * varasm.c (assemble_alias): Avoid endless error reporting
23405 recursion by setting TREE_ASM_WRITTEN.
23407 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23409 * config/s390/s390.md: Add a splitter for NOT rtx.
23411 2014-04-11 Jakub Jelinek <jakub@redhat.com>
23413 PR rtl-optimization/60663
23414 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
23416 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
23417 Jakub Jelinek <jakub@redhat.com>
23420 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
23421 flag from decl_node to node.
23423 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23426 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
23427 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
23428 ameliorating the cases where it can be.
23430 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
23433 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23435 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23436 (loadsync_<mode>): Change mode.
23437 (load_quadpti, store_quadpti): New.
23438 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23439 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23440 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
23442 2014-04-09 Cong Hou <congh@google.com>
23445 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
23448 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23450 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
23451 instead of vnor to exploit possible fusion opportunity in the
23453 (altivec_expand_vec_perm_const_le): Likewise.
23455 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23457 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23458 (loadsync_<mode>): Change mode.
23459 (load_quadpti, store_quadpti): New.
23460 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23461 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23463 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
23466 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
23467 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
23468 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
23470 2014-04-08 Richard Biener <rguenther@suse.de>
23472 PR middle-end/60706
23473 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
23474 a 64bit widest int print double-int similar to on HWI64 hosts.
23476 2014-04-08 Richard Biener <rguenther@suse.de>
23478 PR tree-optimization/60785
23479 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
23480 default defs properly.
23482 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
23484 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23485 (Weffc++): Likewise.
23487 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
23489 * ipa-devirt.c (maybe_record_node): When node is not recorded,
23490 set completep to false rather than true.
23492 2014-04-07 Douglas B Rupp <rupp@adacore.com>
23495 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23496 ARM_TARGET2_DWARF_FORMAT.
23498 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
23501 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23502 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23505 2014-04-07 Richard Biener <rguenther@suse.de>
23507 PR tree-optimization/60766
23508 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23509 (may_eliminate_iv): Convert cand_value_at result to desired type.
23511 2014-04-07 Jason Merrill <jason@redhat.com>
23514 * common.opt (-fno-gnu-unique): Add.
23515 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23517 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23519 * haifa-sched.c: Fix outdated function reference and minor
23520 grammar errors in introductory comment.
23522 2014-04-07 Richard Biener <rguenther@suse.de>
23524 PR middle-end/60750
23525 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23526 for noreturn calls.
23527 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23529 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
23532 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23533 size accounting for thunks.
23534 (pa_asm_output_mi_thunk): Use final_start_function() and
23535 final_end_function() to output function start and end directives.
23537 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23539 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23540 device specific ISA/ feature information. Remove short_sp and
23541 errata_skip ds. Add avr_device_specific_features enum to have device
23543 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23544 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23545 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23546 updated device specific info.
23547 * config/avr/avr-mcus.def: Merge device specific details to
23548 dev_attribute field.
23549 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23551 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23552 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23553 assembler if RMW isa supported by current device.
23554 * config/avr/genmultilib.awk: Update as device info structure changed.
23555 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23557 2014-04-04 Cong Hou <congh@google.com>
23559 PR tree-optimization/60656
23560 * tree-vect-stmts.c (supportable_widening_operation):
23561 Fix a bug that elements in a vector with vect_used_by_reduction
23562 property are incorrectly reordered when the operation on it is not
23563 consistant with the one in reduction operation.
23565 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
23567 PR rtl-optimization/60155
23568 * gcse.c (record_set_data): New function.
23569 (single_set_gcse): New function.
23570 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23571 (hoist_code): Likewise.
23572 (get_pressure_class_and_nregs): Likewise.
23574 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
23576 * explow.c (probe_stack_range): Emit a final optimization blockage.
23578 2014-04-04 Anthony Green <green@moxielogic.com>
23580 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23583 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
23586 * lto-cgraph.c (input_overwrite_node): Check that partitioning
23587 flags are set only during streaming.
23588 * ipa.c (process_references, walk_polymorphic_call_targets,
23589 symtab_remove_unreachable_nodes): Drop bodies of always inline
23590 after early inlining.
23591 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23593 2014-04-04 Jakub Jelinek <jakub@redhat.com>
23594 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23597 * dwarf2out.c (const_ok_for_output_1): Reject expressions
23600 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23603 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23605 (cortex_a53_fdivd): Likewise.
23607 2014-04-04 Martin Jambor <mjambor@suse.cz>
23610 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23611 Adjust all callers.
23612 * cgraph.c (clone_of_p): Also return true if thunks match.
23613 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23614 cgraph_function_or_thunk_node and an obsolete comment.
23615 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23617 (build_function_decl_skip_args): Likewise.
23618 (set_new_clone_decl_and_node_flags): New function.
23619 (duplicate_thunk_for_node): Likewise.
23620 (redirect_edge_duplicating_thunks): Likewise.
23621 (cgraph_clone_node): New parameter args_to_skip, pass it to
23622 redirect_edge_duplicating_thunks which is called instead of
23623 cgraph_redirect_edge_callee.
23624 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23625 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23627 2014-04-04 Jeff Law <law@redhat.com>
23630 * config/arm/predicates.md (const_int_I_operand): New predicate.
23631 (const_int_M_operand): Similarly.
23632 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23634 (insv_t2, extv_reg, extzv_t2): Likewise.
23635 (load_multiple_with_writeback): Similarly for const_int_I_operand.
23636 (pop_multiple_with_writeback_and_return): Likewise.
23637 (vfp_pop_multiple_with_writeback): Likewise
23639 2014-04-04 Richard Biener <rguenther@suse.de>
23642 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23643 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23645 * gimplify.h (gimple_add_tmp_var_fn): Declare.
23646 * gimplify.c (gimple_add_tmp_var_fn): New function.
23647 * gimple-expr.h (create_tmp_reg_fn): Declare.
23648 * gimple-expr.c (create_tmp_reg_fn): New function.
23649 * gimple-low.c (record_vars_into): Don't change cfun.
23650 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23651 code generation without cfun.
23653 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
23656 * Makefile.in (install-driver): Fix shell scripting.
23658 2014-04-03 Cong Hou <congh@google.com>
23660 PR tree-optimization/60505
23661 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23662 threshold of number of iterations below which no vectorization
23664 * tree-vect-loop.c (new_loop_vec_info):
23665 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23666 * tree-vect-loop.c (vect_analyze_loop_operations):
23667 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23668 * tree-vect-loop.c (vect_transform_loop):
23669 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23670 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23671 of iterations of the loop and see if we should build the epilogue.
23673 2014-04-03 Richard Biener <rguenther@suse.de>
23675 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23676 (streamer_tree_cache_create): Adjust.
23677 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23678 to allow optional nodes array.
23679 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23680 (streamer_tree_cache_append): Likewise.
23681 (streamer_tree_cache_create): Create nodes array optionally
23682 as specified by parameter.
23683 * lto-streamer-out.c (create_output_block): Avoid maintaining
23684 the node array in the writer cache.
23685 (DFS_write_tree): Remove assertion.
23686 (produce_asm_for_decls): Free the out decl state hash table early.
23687 * lto-streamer-in.c (lto_data_in_create): Adjust for
23688 streamer_tree_cache_create prototype change.
23690 2014-04-03 Richard Biener <rguenther@suse.de>
23692 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23693 set TREE_CHAIN to NULL_TREE.
23695 2014-04-03 Richard Biener <rguenther@suse.de>
23697 PR tree-optimization/60740
23698 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23699 over all GIMPLE_COND operands.
23701 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
23703 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23704 (Weffc++): Remove Scott's numbering, merge lists and reference
23707 2014-04-03 Nick Clifton <nickc@redhat.com>
23709 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23712 2014-04-03 Martin Jambor <mjambor@suse.cz>
23714 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23715 mention gcc_unreachable before failing.
23716 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23719 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
23722 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23723 inconsistent code and instead mark the context inconsistent.
23724 (possible_polymorphic_call_targets): For inconsistent contexts
23725 return empty complete list.
23727 2014-04-02 Anthony Green <green@moxielogic.com>
23729 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23730 (extendqisi2, extendhisi2): Define.
23731 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23732 (WCHAR_TYPE): Change to unsigned int.
23734 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23736 PR tree-optimization/60733
23737 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23738 insertion point for PHI candidates to be the end of the feeding
23739 block for the PHI argument.
23741 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
23743 PR rtl-optimization/60650
23744 * lra-constraints.c (process_alt_operands): Decrease reject for
23745 earlyclobber matching.
23747 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23749 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23751 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23753 * config/spu/spu.c (pad_bb): Do not crash when the last
23754 insn is CODE_FOR_blockage.
23756 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23758 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23759 lies outside the target mode.
23761 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23764 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23765 software floating point or no floating point registers, do not
23766 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23767 in GPRs that occurs after we tested for GPRs that would never be
23770 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23771 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23772 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23773 specifically allow DDmode, since that does not use the SPE SIMD
23776 2014-04-02 Richard Biener <rguenther@suse.de>
23778 PR middle-end/60729
23779 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23780 MODE_INTs. Properly use negv_optab.
23781 (expand_abs): Likewise.
23783 2014-04-02 Richard Biener <rguenther@suse.de>
23786 * Makefile.in (install-driver): Guard extra installs with special
23789 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23791 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23792 Document vec_vgbbd.
23794 2014-04-01 Richard Henderson <rth@redhat.com>
23797 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23798 alternative enabled before register allocation.
23800 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
23802 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23803 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23805 (nios2_large_got_address): Remove unneeded 'sym' parameter.
23806 (nios2_got_address): Update nios2_large_got_address call site.
23807 (nios2_delegitimize_address): New function.
23808 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23809 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23810 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23812 2014-04-01 Martin Husemann <martin@duskware.de>
23814 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23817 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
23819 PR rtl-optimization/60604
23820 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23821 check from register_operand.
23822 (register_operand): Redefine in terms of general_operand.
23823 (nonmemory_operand): Use register_operand for the non-constant cases.
23825 2014-04-01 Richard Biener <rguenther@suse.de>
23827 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23829 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
23831 * doc/invoke.texi (mapp-regs): Clarify.
23833 2014-03-31 Ulrich Drepper <drepper@gmail.com>
23835 * config/i386/avx512fintrin.h (__v32hi): Define type.
23836 (__v64qi): Likewise.
23837 (_mm512_set1_epi8): Define.
23838 (_mm512_set1_epi16): Define.
23839 (_mm512_set4_epi32): Define.
23840 (_mm512_set4_epi64): Define.
23841 (_mm512_set4_pd): Define.
23842 (_mm512_set4_ps): Define.
23843 (_mm512_setr4_epi64): Define.
23844 (_mm512_setr4_epi32): Define.
23845 (_mm512_setr4_pd): Define.
23846 (_mm512_setr4_ps): Define.
23847 (_mm512_setzero_epi32): Define.
23849 2014-03-31 Martin Jambor <mjambor@suse.cz>
23851 PR middle-end/60647
23852 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
23853 callsite_arguments_match_p. Updated all callers. Also check types of
23854 corresponding formal parameters and actual arguments.
23855 (not_all_callers_have_enough_arguments_p) Renamed to
23856 some_callers_have_mismatched_arguments_p.
23858 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
23860 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
23862 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
23865 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
23868 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
23870 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
23871 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
23873 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
23874 Use FMAMODE_NOVF512 mode iterator.
23875 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
23876 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
23877 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
23878 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
23880 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
23881 Use VF_128_256 mode iterator.
23882 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
23885 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
23887 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
23888 static chain if needed.
23890 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
23893 * lra-constraints.c (index_part_to_reg): New.
23894 (process_address): Use it.
23896 2014-03-27 Jeff Law <law@redhat.com>
23897 Jakub Jelinek <jakub@redhat.com>
23900 * expr.c (do_tablejump): Use simplify_gen_binary rather than
23901 gen_rtx_{PLUS,MULT} to build up the address expression.
23903 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
23904 creating non-canonical RTL.
23906 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
23909 * ipa-inline.c (want_inline_small_function_p): Short circuit large
23910 functions; reorganize to make cheap checks first.
23911 (inline_small_functions): Do not estimate growth when dumping;
23913 * ipa-inline.h (inline_summary): Add min_size.
23914 (growth_likely_positive): New function.
23915 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
23916 (set_cond_stmt_execution_predicate): Cleanup.
23917 (estimate_edge_size_and_time): Compute min_size.
23918 (estimate_calls_size_and_time): Likewise.
23919 (estimate_node_size_and_time): Likewise.
23920 (inline_update_overall_summary): Update min_size.
23921 (do_estimate_edge_time): Likewise.
23922 (do_estimate_edge_size): Update.
23923 (do_estimate_edge_hints): Update.
23924 (growth_likely_positive): New function.
23926 2014-03-28 Jakub Jelinek <jakub@redhat.com>
23929 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
23930 also if addr has VOIDmode.
23932 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23934 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
23935 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
23937 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
23938 instructions as well as AdvancedSIMD loads.
23940 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23942 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
23943 Use crypto_aese type.
23944 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
23945 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
23946 crypto_aese, crypto_aesmc. Move to types.md.
23947 * config/arm/types.md (crypto_aes): Split into crypto_aese,
23949 * config/arm/iterators.md (crypto_type): Likewise.
23951 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
23953 * cgraph.c: Include expr.h and tree-dfa.h.
23954 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
23957 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
23960 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
23961 regs from checking multi-reg pseudos.
23963 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23965 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
23967 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23969 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
23970 if it would clobber the stack pointer, even temporarily.
23972 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
23974 * mode-switching.c: Make small adjustments to the top comment.
23976 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
23978 * config/rs6000/constraints.md (wD constraint): New constraint to
23979 match the constant integer to get the top DImode/DFmode out of a
23980 vector in a VSX register.
23982 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
23983 match the constant integer to get the top DImode/DFmode out of a
23984 vector in a VSX register.
23986 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
23989 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23992 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
23993 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
23995 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
23996 Optimize vec_extract of 64-bit values, where the value being
23997 extracted is in the top word, where we can use scalar
23998 instructions. Add direct move and store support. Combine the big
23999 endian/little endian vector select load support into a single insn.
24000 (vsx_extract_<mode>_internal1): Likewise.
24001 (vsx_extract_<mode>_internal2): Likewise.
24002 (vsx_extract_<mode>_load): Likewise.
24003 (vsx_extract_<mode>_store): Likewise.
24004 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24005 combined into vsx_extract_<mode>_load.
24006 (vsx_extract_<mode>_one_le): Likewise.
24008 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24009 define the top 64-bit vector element.
24011 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24014 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24015 Document vec_vbpermq builtin.
24018 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24019 enable use of xxsldwi and xxpermdi builtin functions.
24020 (vec_xxpermdi): Likewise.
24022 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24023 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24025 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24027 PR rtl-optimization/60650
24028 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24030 (find_spills_for): New.
24031 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24032 Spill all pseudos on the second iteration.
24034 2014-03-27 Marek Polacek <polacek@redhat.com>
24037 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24040 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24042 * config/s390/s390.c (s390_can_use_return_insn): Check for
24043 call-saved FPRs on 31 bit.
24045 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24047 PR middle-end/60682
24048 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24049 if they need regimplification, just drop them instead of
24050 calling gimple_regimplify_operands on them.
24052 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24055 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24056 (aarch64_frame_pointer_required): Adjust logic.
24057 (aarch64_can_eliminate): Adjust logic.
24058 (aarch64_override_options_after_change): Adjust logic.
24060 2014-03-27 Dehao Chen <dehao@google.com>
24062 * ipa-inline.c (early_inliner): Update node's inline info.
24064 2014-03-26 Dehao Chen <dehao@google.com>
24066 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24067 compiler inserted conditional jumps for NAN float check.
24069 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24071 * ubsan.h (ubsan_create_data): Change second argument's type
24072 to const location_t *.
24073 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24075 (ubsan_create_data): Change second argument to const location_t *PLOC.
24076 Create Loc field whenever PLOC is non-NULL.
24077 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24078 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24082 * real.c (real_to_integer2): Change type of low to UHWI.
24084 2014-03-26 Tobias Burnus <burnus@net-b.de>
24086 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24087 (CILK_SELF_SPECS): New define.
24088 (driver_self_specs): Use it.
24090 2014-03-26 Richard Biener <rguenther@suse.de>
24092 * tree-pretty-print.c (percent_K_format): Implement special
24093 case for LTO and its stripped down BLOCK tree.
24095 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24098 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24100 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24101 one range is range_int_cst_p, but not both, at least optimize
24102 addition/subtraction of 0 and multiplication by 0 or 1.
24103 * gimple-fold.c (gimple_fold_call): Fold
24104 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24105 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24106 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24108 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24110 PR rtl-optimization/60452
24111 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24112 <case REG>: Return 1 for invalid offsets from the frame pointer.
24114 2014-03-26 Marek Polacek <polacek@redhat.com>
24117 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24120 2014-03-26 Marek Polacek <polacek@redhat.com>
24123 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24126 2014-03-26 Marek Polacek <polacek@redhat.com>
24129 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24130 multiplication in unsigned type.
24132 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24134 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24136 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24138 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24140 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24143 * cif-code.def (UNREACHABLE) New code.
24144 * ipa-inline.c (inline_small_functions): Skip edges to
24145 __builtlin_unreachable.
24146 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24147 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24148 predicate to __bulitin_unreachable.
24149 (set_cond_stmt_execution_predicate): Fix issue when
24150 invert_tree_comparison returns ERROR_MARK.
24151 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24152 propagate to inline clones.
24153 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24155 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24156 * cgraphclones.c (cgraph_clone_node): If call destination is already
24157 ureachable, do not redirect it back.
24158 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24161 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24163 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24164 Do not modify inline clones.
24166 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24168 * config/i386/i386.md (general_sext_operand): New mode attr.
24169 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24170 don't generate (sign_extend (const_int)).
24171 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24172 operands[2]. Use We constraint instead of <i> and
24173 <general_sext_operand> predicate instead of <general_operand>.
24174 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24175 * config/i386/constraints.md (We): New constraint.
24176 * config/i386/predicates.md (x86_64_sext_operand,
24177 sext_operand): New predicates.
24179 2014-03-25 Martin Jambor <mjambor@suse.cz>
24182 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24183 inconsistent devirtualizations to __builtin_unreachable.
24185 2014-03-25 Marek Polacek <polacek@redhat.com>
24188 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24190 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24192 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24193 order of elements for big-endian.
24195 2014-03-25 Richard Biener <rguenther@suse.de>
24197 PR middle-end/60635
24198 * gimplify-me.c (gimple_regimplify_operands): Update the
24201 2014-03-25 Martin Jambor <mjambor@suse.cz>
24204 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24205 (lto_output_varpool_node): Likewise.
24206 (input_overwrite_node): Likewise.
24207 (input_varpool_node): Likewise.
24209 2014-03-25 Richard Biener <rguenther@suse.de>
24211 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
24212 (run_gcc): Likewise.
24214 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24216 * combine.c (simplify_compare_const): Add MODE argument.
24217 Handle mode_width 0 as very large mode_width.
24218 (try_combine, simplify_comparison): Adjust callers.
24220 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
24221 type to avoid signed integer overflow.
24222 * explow.c (plus_constant): Likewise.
24224 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
24226 * doc/generic.texi: Correct typos.
24228 2014-03-24 Tobias Burnus <burnus@net-b.de>
24230 * doc/invoke.texi (-flto): Expand section about
24231 using static libraries with LTO.
24233 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24235 PR rtl-optimization/60501
24236 * optabs.def (addptr3_optab): New optab.
24237 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
24238 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
24239 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
24241 * lra.c (emit_add3_insn): Use the addptr pattern if available.
24243 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
24245 2014-03-24 Ulrich Drepper <drepper@gmail.com>
24247 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
24250 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
24251 (_mm256_undefined_ps): Define.
24252 (_mm256_undefined_pd): Define.
24253 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
24254 (_mm_undefined_pd): Define.
24255 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
24256 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
24257 (_mm512_undefined_ps): Define.
24258 (_mm512_undefined_pd): Define.
24259 Use _mm*_undefined_*.
24260 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
24262 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
24264 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
24265 (lshr_simd): DI mode added.
24266 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
24267 (aarch64_ushr_simddi): Likewise.
24268 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
24269 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
24270 (vshrd_n_u64): Likewise.
24272 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24274 * Makefile.in (s-macro_list): Depend on cc1.
24276 2014-03-23 Teresa Johnson <tejohnson@google.com>
24278 * ipa-utils.c (ipa_print_order): Use specified dump file.
24280 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
24282 PR rtl-optimization/60601
24283 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
24285 * gcc.c (eval_spec_function): Initialize save_growing_value.
24287 2014-03-22 Jakub Jelinek <jakub@redhat.com>
24290 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
24291 code == MINUS_EXPR, never swap op0 with op1.
24293 * toplev.c (init_local_tick): Avoid signed integer multiplication
24295 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
24296 shift by first operand's bitsize.
24298 2014-03-21 Jakub Jelinek <jakub@redhat.com>
24301 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
24302 redefine to 1 or 0.
24303 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
24304 TARGET_ISA_64BIT_P(x).
24306 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24308 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
24309 pattern for vector nor instead of subtract from splat(-1).
24310 (altivec_expand_vec_perm_const_le): Likewise.
24312 2014-03-21 Richard Henderson <rth@twiddle.net>
24315 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
24316 related insns after epilogue_completed.
24318 2014-03-21 Martin Jambor <mjambor@suse.cz>
24321 * cgraph.h (symtab_node): New flag body_removed.
24322 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
24323 when removing bodies.
24324 * symtab.c (dump_symtab_base): Dump body_removed flag.
24325 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
24326 had their bodies removed.
24328 2014-03-21 Martin Jambor <mjambor@suse.cz>
24331 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
24334 2014-03-21 Richard Biener <rguenther@suse.de>
24336 PR tree-optimization/60577
24337 * tree-core.h (struct tree_base): Document nothrow_flag use
24338 in DECL_NONALIASED.
24339 * tree.h (DECL_NONALIASED): New.
24340 (may_be_aliased): Adjust.
24341 * coverage.c (build_var): Set DECL_NONALIASED.
24343 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24345 * expr.c (expand_expr_real_1): Remove outdated comment.
24347 2014-03-20 Jakub Jelinek <jakub@redhat.com>
24349 PR middle-end/60597
24350 * ira.c (adjust_cleared_regs): Call copy_rtx on
24351 *reg_equiv[REGNO (loc)].src_p before passing it to
24352 simplify_replace_fn_rtx.
24355 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
24356 into CONST, put pic register as first operand of PLUS. Use
24357 gen_const_mem for both 32-bit and 64-bit PIC got loads.
24359 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24361 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
24363 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24365 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
24366 around for store forwarding issue in the FPU on the UT699.
24367 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
24368 loads and operations if -mfix-ut699 is specified.
24369 (divtf3_hq): Tweak attribute.
24370 (sqrttf2_hq): Likewise.
24372 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24374 * calls.c (store_one_arg): Remove incorrect const qualification on the
24375 type of the temporary.
24376 * cfgexpand.c (expand_return): Likewise.
24377 * expr.c (expand_constructor): Likewise.
24378 (expand_expr_real_1): Likewise.
24380 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24382 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
24385 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24388 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
24390 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
24392 * config/arm/aarch-common-protos.h
24393 (alu_cost_table): Fix spelling of "extend".
24394 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
24396 2014-03-19 Richard Biener <rguenther@suse.de>
24398 PR middle-end/60553
24399 * tree-core.h (tree_type_common): Re-order pointer members
24400 to reduce recursion depth during GC walks.
24402 2014-03-19 Marek Polacek <polacek@redhat.com>
24405 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
24406 before accessing it.
24408 2014-03-19 Richard Biener <rguenther@suse.de>
24411 * lto-streamer-in.c (input_function): In WPA stage do not drop
24414 2014-03-19 Jakub Jelinek <jakub@redhat.com>
24416 PR tree-optimization/60559
24417 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
24418 with build_zero_cst assignment.
24420 2014-03-18 Kai Tietz <ktietz@redhat.com>
24422 PR rtl-optimization/56356
24423 * sdbout.c (sdbout_parms): Verify that parms'
24424 incoming argument is valid.
24425 (sdbout_reg_parms): Likewise.
24427 2014-03-18 Richard Henderson <rth@redhat.com>
24430 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
24431 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
24432 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
24434 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
24436 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
24437 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
24438 Italicize plugin event names in description. Explain that
24439 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
24440 Remind that no GCC functions should be called after PLUGIN_FINISH.
24441 Explain what pragmas with expansion are.
24443 2014-03-18 Martin Liska <mliska@suse.cz>
24445 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
24446 gimple call statement is update.
24447 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
24448 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
24450 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24453 * ubsan.c (ubsan_instrument_unreachable): Call
24454 initialize_sanitizer_builtins.
24455 (ubsan_pass): Likewise.
24458 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
24459 varpool_finalize_decl instead of rest_of_decl_compilation.
24461 2014-03-18 Richard Biener <rguenther@suse.de>
24463 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
24464 by using bitmap_and_compl instead of bitmap_and_compl_into.
24465 (df_rd_transfer_function): Likewise.
24467 2014-03-18 Richard Biener <rguenther@suse.de>
24469 * doc/lto.texi (fresolution): Fix typo.
24471 2014-03-18 Richard Biener <rguenther@suse.de>
24473 * doc/invoke.texi (flto): Update for changes in 4.9.
24475 2014-03-18 Richard Biener <rguenther@suse.de>
24477 * doc/loop.texi: Remove section on the removed lambda framework.
24478 Update loop docs with recent changes in preserving loop structure.
24480 2014-03-18 Richard Biener <rguenther@suse.de>
24482 * doc/lto.texi (-fresolution): Document.
24484 2014-03-18 Richard Biener <rguenther@suse.de>
24486 * doc/contrib.texi: Adjust my name.
24488 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24491 * internal-fn.c: Include diagnostic-core.h.
24492 (expand_BUILTIN_EXPECT): New function.
24493 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24494 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24495 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24496 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24497 IFN_BUILTIN_EXPECT.
24498 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24499 Revert 3 argument __builtin_expect code.
24500 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24501 * gimple-fold.c (gimple_fold_call): Likewise.
24502 * tree.h (fold_builtin_expect): New prototype.
24503 * builtins.c (build_builtin_expect_predicate): Add predictor
24504 argument, if non-NULL, create 3 argument __builtin_expect.
24505 (fold_builtin_expect): No longer static. Add ARG2 argument,
24506 pass it through to build_builtin_expect_predicate.
24507 (fold_builtin_2): Adjust caller.
24508 (fold_builtin_3): Handle BUILT_IN_EXPECT.
24509 * internal-fn.def (BUILTIN_EXPECT): New.
24511 2014-03-18 Tobias Burnus <burnus@net-b.de>
24514 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24515 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24516 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24518 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
24521 * predict.c (combine_predictions_for_bb): Fix up formatting.
24522 (expr_expected_value_1, expr_expected_value): Add predictor argument,
24523 fill what it points to if non-NULL.
24524 (tree_predict_by_opcode): Adjust caller, use the predictor.
24525 * predict.def (PRED_COMPARE_AND_SWAP): Add.
24527 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
24529 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24530 proper constant for the store mode.
24532 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
24534 * symtab.c (change_decl_assembler_name): Fix transparent alias
24535 chain construction.
24537 2014-03-16 Renlin Li <Renlin.Li@arm.com>
24539 * config/aarch64/aarch64.c: Correct the comments about the
24540 aarch64 stack layout.
24542 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
24544 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24545 check for GF_OMP_FOR_KIND_FOR.
24547 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
24549 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24550 ymm and zmm register names.
24552 2014-03-17 Jakub Jelinek <jakub@redhat.com>
24555 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24556 note creation for the 2010-08-31 changes.
24558 2014-03-17 Marek Polacek <polacek@redhat.com>
24560 PR middle-end/60534
24561 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24562 as -fno-tree-loop-vectorize.
24563 (expand_omp_simd): Likewise.
24565 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
24567 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24568 (eligible_for_call_delay): New prototype.
24569 * config/sparc/sparc.c (tls_call_delay): Rename into...
24570 (eligible_for_call_delay): ...this. Return false if the instruction
24571 cannot be put in the delay slot of a branch.
24572 (eligible_for_restore_insn): Simplify.
24573 (eligible_for_return_delay): Return false if the instruction cannot be
24574 put in the delay slot of a branch and simplify.
24575 (eligible_for_sibcall_delay): Return false if the instruction cannot be
24576 put in the delay slot of a branch.
24577 * config/sparc/sparc.md (fix_ut699): New attribute.
24578 (tls_call_delay): Delete.
24579 (in_call_delay): Reimplement.
24580 (eligible_for_sibcall_delay): Rename into...
24581 (in_sibcall_delay): ...this.
24582 (eligible_for_return_delay): Rename into...
24583 (in_return_delay): ...this.
24584 (in_branch_delay): Reimplement.
24585 (in_uncond_branch_delay): Delete.
24586 (in_annul_branch_delay): Delete.
24588 2014-03-14 Richard Henderson <rth@redhat.com>
24591 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24592 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24593 (*floathi<X87MODEF>2_i387_with_temp): Remove.
24594 (floathi splitters): Remove.
24595 (float<SWI48x>xf2): New pattern.
24596 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
24597 code that tried to handle DImode for 32-bit, but which was excluded
24598 by the pattern's condition. Drop allocation of stack temporary.
24599 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24600 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24601 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24602 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24603 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24604 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24605 (*float<SWI48><MODEF>2_sse_interunit): Remove.
24606 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24607 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24608 (*float<SWI48x><X87MODEF>2_i387): Remove.
24609 (all float _with_temp splitters): Remove.
24610 (*float<SWI48x><MODEF>2_i387): New pattern.
24611 (*float<SWI48><MODEF>2_sse): New pattern.
24612 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24613 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24615 2014-03-14 Jakub Jelinek <jakub@redhat.com>
24616 Marek Polacek <polacek@redhat.com>
24618 PR middle-end/60484
24619 * common.opt (dump_base_name_prefixed): New Variable.
24620 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24621 if x_dump_base_name_prefixed is already set, set it at the end.
24623 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
24625 PR rtl-optimization/60508
24626 * lra-constraints.c (get_reload_reg): Add new parameter
24628 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24629 Pass the new parameter values.
24631 2014-03-14 Richard Biener <rguenther@suse.de>
24633 * common.opt: Revert unintented changes from r205065.
24634 * opts.c: Likewise.
24636 2014-03-14 Richard Biener <rguenther@suse.de>
24638 PR middle-end/60518
24639 * cfghooks.c (split_block): Properly adjust all loops the
24640 block was a latch of.
24642 2014-03-14 Martin Jambor <mjambor@suse.cz>
24645 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24648 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
24651 * config/avr/avr.c (avr_set_current_function): Pass function name
24652 through default_strip_name_encoding before sanity checking instead
24653 of skipping the first char of the assembler name.
24655 2014-03-13 Richard Henderson <rth@redhat.com>
24658 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24659 (ix86_force_to_memory, ix86_free_from_memory): Remove.
24660 * config/i386/i386-protos.h: Likewise.
24661 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24662 in the expander instead of a splitter.
24663 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24664 any possibility of requiring a memory.
24665 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24666 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24667 (fp branch splitters): Update for ix86_split_fp_branch.
24668 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24669 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24670 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24671 (*fop_<MODEF>_2_i387): Remove f/r alternative.
24672 (*fop_<MODEF>_3_i387): Likewise.
24673 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24674 (splitters for the fop_* register patterns): Remove.
24675 (fscalexf4_i387): Rename from *fscalexf4_i387.
24676 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24678 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24680 PR tree-optimization/59779
24681 * tree-dfa.c (get_ref_base_and_extent): Use double_int
24682 type for bitsize and maxsize instead of HOST_WIDE_INT.
24684 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
24686 PR rtl-optimization/57320
24687 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24688 the CFG after thread_prologue_and_epilogue_insns.
24690 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
24692 PR rtl-optimization/57189
24693 * lra-constraints.c (process_alt_operands): Disfavor spilling
24696 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
24698 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24700 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24702 PR tree-optimization/59025
24703 PR middle-end/60418
24704 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24705 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24707 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
24710 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24711 calls of avr_out_plus_1.
24713 2014-03-13 Bin Cheng <bin.cheng@arm.com>
24715 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24716 BB's single pred and update the father loop's latch info later.
24718 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24720 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24724 (VEC_base): Likewise.
24725 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24726 registers, we need to swap double words in little endian mode.
24728 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24729 to be a container mode for 128-bit integer operations added in ISA
24730 2.07. Unlike TImode and PTImode, the preferred register set is
24731 the Altivec/VMX registers for the 128-bit operations.
24733 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24735 (rs6000_split_128bit_ok_p): Likewise.
24737 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24738 macros for creating ISA 2.07 normal and overloaded builtin
24739 functions with 3 arguments.
24740 (BU_P8V_OVERLOAD_3): Likewise.
24741 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24742 for use as overloaded functions.
24743 (VPERM_1TI_UNS): Likewise.
24744 (VSEL_1TI): Likewise.
24745 (VSEL_1TI_UNS): Likewise.
24746 (ST_INTERNAL_1ti): Likewise.
24747 (LD_INTERNAL_1ti): Likewise.
24748 (XXSEL_1TI): Likewise.
24749 (XXSEL_1TI_UNS): Likewise.
24750 (VPERM_1TI): Likewise.
24751 (VPERM_1TI_UNS): Likewise.
24752 (XXPERMDI_1TI): Likewise.
24753 (SET_1TI): Likewise.
24754 (LXVD2X_V1TI): Likewise.
24755 (STXVD2X_V1TI): Likewise.
24756 (VEC_INIT_V1TI): Likewise.
24757 (VEC_SET_V1TI): Likewise.
24758 (VEC_EXT_V1TI): Likewise.
24759 (EQV_V1TI): Likewise.
24760 (NAND_V1TI): Likewise.
24761 (ORC_V1TI): Likewise.
24762 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24763 added in ISA 2.07. Add both normal 'altivec' builtins, and the
24764 overloaded builtin.
24765 (VADDUQM): Likewise.
24766 (VSUBCUQ): Likewise.
24767 (VADDEUQM): Likewise.
24768 (VADDECUQ): Likewise.
24769 (VSUBEUQM): Likewise.
24770 (VSUBECUQ): Likewise.
24772 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24773 __int128_t and __uint128_t types.
24774 (__uint128_type): Likewise.
24775 (altivec_categorize_keyword): Add support for vector __int128_t,
24776 vector __uint128_t, vector __int128, and vector unsigned __int128
24777 as a container type for TImode operations that need to be done in
24778 VSX/Altivec registers.
24779 (rs6000_macro_to_expand): Likewise.
24780 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24781 to support 128-bit integer instructions vaddcuq, vadduqm,
24782 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24783 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24785 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24786 for V1TImode, and set up preferences to use VSX/Altivec registers.
24787 Setup VSX reload handlers.
24788 (rs6000_debug_reg_global): Likewise.
24789 (rs6000_init_hard_regno_mode_ok): Likewise.
24790 (rs6000_preferred_simd_mode): Likewise.
24791 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24792 (easy_altivec_constant): Likewise.
24793 (output_vec_const_move): Likewise.
24794 (rs6000_expand_vector_set): Convert V1TImode set and extract to
24796 (rs6000_expand_vector_extract): Likewise.
24797 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24799 (rs6000_const_vec): Add support for V1TImode.
24800 (rs6000_emit_le_vsx_load): Swap double words when loading or
24801 storing TImode/V1TImode.
24802 (rs6000_emit_le_vsx_store): Likewise.
24803 (rs6000_emit_le_vsx_move): Likewise.
24804 (rs6000_emit_move): Add support for V1TImode.
24805 (altivec_expand_ld_builtin): Likewise.
24806 (altivec_expand_st_builtin): Likewise.
24807 (altivec_expand_vec_init_builtin): Likewise.
24808 (altivec_expand_builtin): Likewise.
24809 (rs6000_init_builtins): Add support for V1TImode type. Add
24810 support for ISA 2.07 128-bit integer builtins. Define type names
24811 for the VSX/Altivec vector types.
24812 (altivec_init_builtins): Add support for overloaded vector
24813 functions with V1TImode type.
24814 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24815 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24817 (rs6000_split_128bit_ok_p): Likewise.
24818 (rs6000_handle_altivec_attribute): Create V1TImode from vector
24819 __int128_t and vector __uint128_t.
24821 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24822 and mode attributes.
24824 (VSX_M2): Likewise.
24829 (VS_scalar): Likewise.
24830 (VS_double): Likewise.
24831 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24833 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24834 we support the ISA 2.07 128-bit integer arithmetic instructions.
24835 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24836 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24837 and TImode types for use with the builtin functions.
24838 (V1TI_type_node): Likewise.
24839 (unsigned_V1TI_type_node): Likewise.
24840 (intTI_type_internal_node): Likewise.
24841 (uintTI_type_internal_node): Likewise.
24843 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
24844 128-bit builtin functions.
24845 (UNSPEC_VADDEUQM): Likewise.
24846 (UNSPEC_VADDECUQ): Likewise.
24847 (UNSPEC_VSUBCUQ): Likewise.
24848 (UNSPEC_VSUBEUQM): Likewise.
24849 (UNSPEC_VSUBECUQ): Likewise.
24850 (VM): Add V1TImode to vector mode iterators.
24852 (VI_unit): Likewise.
24853 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
24854 (altivec_vaddcuq): Likewise.
24855 (altivec_vsubuqm): Likewise.
24856 (altivec_vsubcuq): Likewise.
24857 (altivec_vaddeuqm): Likewise.
24858 (altivec_vaddecuq): Likewise.
24859 (altivec_vsubeuqm): Likewise.
24860 (altivec_vsubecuq): Likewise.
24862 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
24864 (BOOL_128): Likewise.
24865 (BOOL_REGS_OUTPUT): Likewise.
24866 (BOOL_REGS_OP1): Likewise.
24867 (BOOL_REGS_OP2): Likewise.
24868 (BOOL_REGS_UNARY): Likewise.
24869 (BOOL_REGS_AND_CR0): Likewise.
24871 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
24872 128-bit integer builtin support.
24873 (vec_vadduqm): Likewise.
24874 (vec_vaddecuq): Likewise.
24875 (vec_vaddeuqm): Likewise.
24876 (vec_vsubecuq): Likewise.
24877 (vec_vsubeuqm): Likewise.
24878 (vec_vsubcuq): Likewise.
24879 (vec_vsubuqm): Likewise.
24881 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24882 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
24883 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
24884 128-bit integer add/subtract to ISA 2.07.
24886 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
24888 * config/arc/arc.c (arc_predicate_delay_insns):
24889 Fix third argument passed to conditionalize_nonjump.
24891 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
24893 * config/aarch64/aarch64-builtins.c
24894 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
24895 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
24896 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
24897 instead of __builtin_lfloor.
24898 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
24900 2014-03-12 Jakub Jelinek <jakub@redhat.com>
24902 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
24903 (tree_ssa_ifcombine_bb_1): New function.
24904 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
24905 is an empty forwarder block to then_bb or vice versa and then_bb
24906 and else_bb are effectively swapped.
24908 2014-03-12 Christian Bruel <christian.bruel@st.com>
24911 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
24912 REG_CFA_DEF_CFA note.
24913 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
24914 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
24916 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24918 PR tree-optimization/60454
24919 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
24921 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24923 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
24924 Do not define target_cpu_default2 to generic.
24925 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
24926 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
24927 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
24929 2014-03-12 Jakub Jelinek <jakub@redhat.com>
24930 Marc Glisse <marc.glisse@inria.fr>
24932 PR tree-optimization/60502
24933 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
24934 instead of build_low_bits_mask.
24936 2014-03-12 Jakub Jelinek <jakub@redhat.com>
24938 PR middle-end/60482
24939 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
24940 if there are multiple uses, but op doesn't live on E edge.
24941 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
24942 clobber stmts before __builtin_unreachable.
24944 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
24946 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
24947 hard_frame_pointer_rtx.
24948 * cse.c (cse_insn): Remove volatile check.
24949 * cselib.c (cselib_process_insn): Likewise.
24950 * dse.c (scan_insn): Likewise.
24952 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
24954 * config/arc/arc.c (conditionalize_nonjump): New function,
24956 (arc_ifcvt): ... this.
24957 (arc_predicate_delay_insns): Use it.
24959 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
24961 * config/arc/predicates.md (extend_operand): During/after reload,
24962 allow const_int_operand.
24963 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
24964 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
24965 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
24967 (umulsi3_highpart_i): Likewise.
24969 2014-03-11 Richard Biener <rguenther@suse.de>
24971 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
24972 Add asserts to guard possible wrong-code bugs.
24974 2014-03-11 Richard Biener <rguenther@suse.de>
24976 PR tree-optimization/60429
24977 PR tree-optimization/60485
24978 * tree-ssa-structalias.c (set_union_with_increment): Properly
24979 take into account all fields that overlap the shifted vars.
24980 (do_sd_constraint): Likewise.
24981 (do_ds_constraint): Likewise.
24982 (get_constraint_for_ptr_offset): Likewise.
24984 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
24986 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
24987 (nios2_compute_frame_layout):
24988 Add calculation of cfun->machine->fp_save_offset.
24989 (nios2_expand_prologue): Correct setting of frame pointer register
24991 (nios2_expand_epilogue): Update recovery of stack pointer from
24992 frame pointer accordingly.
24993 (nios2_initial_elimination_offset): Update calculation of offset
24994 for eliminating to HARD_FRAME_POINTER_REGNUM.
24996 2014-03-10 Jakub Jelinek <jakub@redhat.com>
24999 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25000 cgraph_get_create_node on VAR_DECLs.
25002 2014-03-10 Richard Biener <rguenther@suse.de>
25004 PR middle-end/60474
25005 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25007 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25009 * config/vms/vms.opt (vms_float_format): New variable.
25011 2014-03-08 Tobias Burnus <burnus@net-b.de>
25013 * doc/invoke.texi (-fcilkplus): Update implementation status.
25015 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25016 Richard Biener <rguenther@suse.de>
25018 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25019 consistently accross all TUs.
25020 (run_gcc): Enable -fshort-double automatically at link at link-time
25021 and disallow override.
25023 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25026 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25027 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25028 if they can't be used.
25030 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25032 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25033 for Solaris 11/x86 ld.
25034 * configure: Regenerate.
25036 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25038 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25039 (LIB_TLS_SPEC): Save as ld_tls_libs.
25040 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25041 (HAVE_AS_IX86_TLSLDM): New test.
25042 * configure, config.in: Regenerate.
25043 * config/i386/i386.c (legitimize_tls_address): Fall back to
25044 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25045 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25046 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25047 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25049 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25051 * common.opt (fira-loop-pressure): Mark as optimization.
25053 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25055 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25056 an OpenMP mappable type.
25058 2014-03-06 Matthias Klose <doko@ubuntu.com>
25060 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25061 MULTILIB_OSDIRNAMES is not defined.
25063 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25064 Meador Inge <meadori@codesourcery.com>
25067 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25068 (arm_legitimize_address): Call legitimize_tls_address for any
25069 arm_tls_referenced_p expression, handle constant addend. Call it
25070 before testing for !TARGET_ARM.
25071 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25073 2014-03-06 Richard Biener <rguenther@suse.de>
25075 PR middle-end/60445
25079 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25081 * tree-streamer.c (record_common_node): Assert we don't record
25082 nodes with type double.
25083 (preload_common_node): Skip type double, complex double and double
25084 pointer since it is now frontend dependent due to fshort-double option.
25086 2014-03-06 Richard Biener <rguenther@suse.de>
25088 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25089 or -fno-lto is specified and the linker has full plugin support.
25090 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25091 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25092 * lto-wrapper.c (merge_and_complain): Merge compile-time
25093 optimization levels.
25094 (run_gcc): And pass it through to the link options.
25096 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25100 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25102 * cselib.c (remove_useless_values): Skip to avoid quadratic
25103 behavior if the condition moved from...
25104 (cselib_process_insn): ... here holds.
25106 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25109 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25110 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25113 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25114 (TM_H): Add x86-tune.def.
25116 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25118 * config/aarch64/aarch64.c (generic_tunings):
25119 Use cortexa57_extra_costs.
25121 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25124 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25125 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25126 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25129 2014-03-04 Heiher <r@hev.cc>
25131 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25132 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25134 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25136 * config/i386/predicates.md (const2356_operand): Change to ...
25137 (const2367_operand): ... this.
25138 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25140 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25141 (*avx512pf_scatterpf<mode>sf): Ditto.
25142 (avx512pf_scatterpf<mode>df): Ditto.
25143 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25144 (*avx512pf_scatterpf<mode>df): Ditto.
25145 * config/i386/i386.c (ix86_expand_builtin): Update
25146 incorrect hint operand error message.
25148 2014-03-04 Richard Biener <rguenther@suse.de>
25150 * lto-section-in.c (lto_get_section_data): Fix const cast.
25152 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25154 * tree-streamer.c (record_common_node): Assert we don't record
25155 nodes with type double.
25156 (preload_common_node): Skip type double, complex double and double
25157 pointer since it is now frontend dependent due to fshort-double option.
25159 2014-03-04 Richard Biener <rguenther@suse.de>
25162 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25163 (lto_input_toplevel_asms): Likewise.
25164 * lto-section-in.c (lto_get_section_data): Instead do it here
25167 2014-03-04 Richard Biener <rguenther@suse.de>
25169 PR tree-optimization/60382
25170 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25171 dead PHIs a reduction.
25173 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25175 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25177 (_mm_prefetch): Move out of GCC target("sse") pragma.
25178 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25179 GCC target("prfchw") pragma.
25180 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25182 * config/i386/i386.c (ix86_option_override_internal): Enable
25183 -mprfchw with -mprefetchwt1.
25185 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25187 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25190 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25192 * opts.h (CL_PCH_IGNORE): Define.
25193 * targhooks.c (option_affects_pch_p):
25194 Return false for options that have CL_PCH_IGNORE set.
25195 * opt-functions.awk: Process PchIgnore.
25196 * doc/options.texi: Document PchIgnore.
25198 * config/arc/arc.opt (misize): Add PchIgnore property.
25200 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25202 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25203 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25204 constraint on constants to permit them being loaded into
25205 GENERAL_REGS or BASE_REGS.
25207 2014-03-03 Nick Clifton <nickc@redhat.com>
25209 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
25210 anti-cacnonical alternatives.
25211 (negandhi3_real): New pattern.
25212 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
25214 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25216 * config/avr/avr-mcus.def: Remove atxmega16x1.
25217 * config/avr/avr-tables.opt: Regenerate.
25218 * config/avr/t-multilib: Regenerate.
25219 * doc/avr-mmcu.texi: Regenerate.
25221 2014-03-03 Tobias Grosser <tobias@grosser.es>
25222 Mircea Namolaru <mircea.namolaru@inria.fr>
25224 PR tree-optimization/58028
25225 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
25228 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25230 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
25231 not handled by recognizers.
25233 2014-03-03 Jakub Jelinek <jakub@redhat.com>
25235 PR middle-end/60175
25236 * function.c (expand_function_end): Don't emit
25237 clobber_return_register sequence if clobber_after is a BARRIER.
25238 * cfgexpand.c (construct_exit_block): Append instructions before
25239 return_label to prev_bb.
25241 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25243 * config/rs6000/constraints.md: Document reserved use of "wc".
25245 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25248 * ipa.c (function_and_variable_visibility): When dissolving comdat
25249 group, also set all symbols to local.
25251 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25256 2013-12-14 Jan Hubicka <jh@suse.cz>
25257 PR middle-end/58477
25258 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
25260 2014-03-02 Jon Beniston <jon@beniston.com>
25266 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
25267 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
25268 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
25269 (simple_return, *simple_return): New patterns
25270 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
25271 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
25273 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
25275 * dwarf2out.c (gen_subprogram_die): Tidy.
25277 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
25280 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
25281 (*mov_t_msb_neg_negc): ... this new insn.
25283 2014-02-28 Jason Merrill <jason@redhat.com>
25286 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
25289 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
25292 * dwarf2out.c (decltype_auto_die): New static.
25293 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
25294 (gen_type_die_with_usage): Handle 'decltype(auto)'.
25295 (is_cxx_auto): Likewise.
25297 2014-02-28 Ian Bolton <ian.bolton@arm.com>
25299 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
25300 we are not using general regs only.
25302 2014-02-28 Richard Biener <rguenther@suse.de>
25305 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
25306 previous fix and only allow to remove trivial pre-headers
25307 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
25308 (remove_forwarder_block): Properly update the latch of a loop.
25310 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25313 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
25314 (cselib_preserved_hash_table): New.
25315 (preserve_constants_and_equivs): Move preserved vals to it.
25316 (cselib_find_slot): Look it up first.
25317 (cselib_init): Initialize it.
25318 (cselib_finish): Release it.
25319 (dump_cselib_table): Dump it.
25321 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25324 * cselib.c (remove_useless_values): Skip to avoid quadratic
25325 behavior if the condition moved from...
25326 (cselib_process_insn): ... here holds.
25328 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25331 * var-tracking.c (vt_initialize): Apply the same condition to
25332 preserve the CFA base value.
25334 2014-02-28 Joey Ye <joey.ye@arm.com>
25337 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
25338 if reload in progress or completed.
25340 2014-02-28 Tobias Burnus <burnus@net-b.de>
25342 PR middle-end/60147
25343 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
25346 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
25348 * doc/tm.texi.in (Condition Code Status): Update documention for
25349 relative locations of cc0-setter and cc0-user.
25351 2014-02-27 Jeff Law <law@redhat.com>
25353 PR rtl-optimization/52714
25354 * combine.c (try_combine): When splitting an unrecognized PARALLEL
25355 into two independent simple sets, if I3 is a jump, ensure the
25356 pattern we place into I3 is a (set (pc) ...).
25358 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
25359 Jeff Law <law@redhat.com>
25361 PR rtl-optimization/49847
25362 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
25363 are in different blocks.
25364 * doc/tm.texi (Condition Code Status): Update documention for
25365 relative locations of cc0-setter and cc0-user.
25367 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
25370 * lra.c (lra_emit_add): Check SUBREG too.
25372 2014-02-27 Andreas Schwab <schwab@suse.de>
25374 * config/m68k/m68k.c (m68k_option_override): Disable
25375 -flive-range-shrinkage for classic m68k.
25376 (m68k_override_options_after_change): Likewise.
25378 2014-02-27 Marek Polacek <polacek@redhat.com>
25380 PR middle-end/59223
25381 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
25382 -Wmaybe-uninitialized.
25384 2014-02-27 Alan Modra <amodra@gmail.com>
25387 * reload1.c (emit_input_reload_insns): When reload_override_in,
25388 set old to rl->in_reg when rl->in_reg is a subreg.
25390 2014-02-26 Richard Biener <rguenther@suse.de>
25393 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
25395 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25397 * common/config/i386/predicates.md (const1256_operand): Remove.
25398 (const2356_operand): New.
25399 (const_1_to_2_operand): Remove.
25400 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25401 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25402 (*avx512pf_gatherpf<mode>sf): Ditto.
25403 (avx512pf_gatherpf<mode>df): Ditto.
25404 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25405 (*avx512pf_gatherpf<mode>df): Ditto.
25406 (avx512pf_scatterpf<mode>sf): Ditto.
25407 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25408 (*avx512pf_scatterpf<mode>sf): Ditto.
25409 (avx512pf_scatterpf<mode>df): Ditto.
25410 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25411 (*avx512pf_scatterpf<mode>df): Ditto.
25412 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
25414 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
25416 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
25417 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
25418 (_mm512_mask_testn_epi64_mask): Move to ...
25419 * config/i386/avx512cdintrin.h: Here.
25420 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
25421 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
25422 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
25423 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
25424 TARGET_AVX512F from TARGET_AVX512CD.
25426 2014-02-26 Richard Biener <rguenther@suse.de>
25429 * ipa.c (walk_polymorphic_call_targets): Properly guard
25430 call to inline_update_overall_summary.
25432 2014-02-26 Bin Cheng <bin.cheng@arm.com>
25435 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
25436 and latches only if requested. Fix latch if it is removed.
25437 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
25438 LOOPS_HAVE_PREHEADERS.
25440 2014-02-25 Andrew Pinski <apinski@cavium.com>
25442 * builtins.c (expand_builtin_thread_pointer): Create a new target
25443 when the target is NULL.
25445 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
25447 PR rtl-optimization/60317
25448 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25449 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25450 * lra-assigns.c: Include params.h.
25451 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
25452 other reload pseudos considerations.
25454 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25456 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
25457 to use canonical form for nor<mode>3.
25459 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25462 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
25465 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25467 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
25468 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
25469 (ix86_handle_option): Handle OPT_mprefetchwt1.
25470 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
25471 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25473 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25474 OPTION_MASK_ISA_PREFETCHWT1.
25475 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
25476 (PTA_PREFETCHWT1): New.
25477 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
25478 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
25479 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
25480 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
25481 (*prefetch_avx512pf_<mode>_: Change into ...
25482 (*prefetch_prefetchwt1_<mode>: This.
25483 * config/i386/i386.opt (mprefetchwt1): New.
25484 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25485 (_mm_prefetch): Handle intent to write.
25486 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25488 2014-02-25 Richard Biener <rguenther@suse.de>
25490 PR middle-end/60291
25491 * emit-rtl.c (mem_attrs_htab): Remove.
25492 (mem_attrs_htab_hash): Likewise.
25493 (mem_attrs_htab_eq): Likewise.
25494 (set_mem_attrs): Always allocate new mem-attrs when something changed.
25495 (init_emit_once): Do not allocate mem_attrs_htab.
25497 2014-02-25 Richard Biener <rguenther@suse.de>
25500 * lto-opts.c (lto_write_options): Output non-explicit conservative
25501 -fwrapv, -fno-trapv and -fno-strict-overflow.
25502 * lto-wrapper.c (merge_and_complain): Handle merging those options.
25503 (run_gcc): And pass them through.
25505 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25507 * sel-sched.c (calculate_new_fences): New parameter ptime.
25508 Calculate it as a maximum over all fence cycles.
25509 (sel_sched_region_2): Adjust the call to calculate_new_fences.
25510 Print the final schedule timing when sched_verbose.
25512 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25514 PR rtl-optimization/60292
25515 * sel-sched.c (fill_vec_av_set): Do not reset target availability
25516 bit fot the fence instruction.
25518 2014-02-24 Alangi Derick <alangiderick@gmail.com>
25520 * calls.h: Fix typo in comment.
25522 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
25524 * config/pa/pa.c (pa_output_move_double): Don't valididate when
25525 adjusting offsetable addresses.
25527 2014-02-24 Guozhi Wei <carrot@google.com>
25529 * sparseset.h (sparseset_pop): Fix the wrong index.
25531 2014-02-24 Walter Lee <walt@tilera.com>
25533 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25534 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25536 * common/config/tilegx/tilegx-common.c
25537 (TARGET_DEFAULT_TARGET_FLAGS): Define.
25538 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25539 (LINK_SPEC): Ditto.
25540 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25541 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25542 (tilegx_gimplify_va_arg_expr): Handle big endian.
25543 (tilegx_expand_unaligned_load): Ditto.
25544 (tilegx_expand_unaligned_store): Ditto.
25545 (TARGET_RETURN_IN_MSB): New.
25546 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25547 (TARGET_ENDIAN_DEFAULT): New.
25548 (TARGET_BIG_ENDIAN): Handle big endian.
25549 (BYTES_BIG_ENDIAN): Ditto.
25550 (WORDS_BIG_ENDIAN): Ditto.
25551 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25552 (ENDIAN_SPEC): New.
25553 (EXTRA_SPECS): New.
25554 * config/tilegx/tilegx.md (extv): Handle big endian.
25556 (insn_st<n>): Ditto.
25557 (insn_st<n>_add<bitsuffix>): Ditto.
25558 (insn_stnt<n>): Ditto.
25559 (insn_stnt<n>_add<bitsuffix>):Ditto.
25560 (vec_interleave_highv8qi): Handle big endian.
25561 (vec_interleave_highv8qi_be): New.
25562 (vec_interleave_highv8qi_le): New.
25563 (insn_v1int_h): Handle big endian.
25564 (vec_interleave_lowv8qi): Handle big endian.
25565 (vec_interleave_lowv8qi_be): New.
25566 (vec_interleave_lowv8qi_le): New.
25567 (insn_v1int_l): Handle big endian.
25568 (vec_interleave_highv4hi): Handle big endian.
25569 (vec_interleave_highv4hi_be): New.
25570 (vec_interleave_highv4hi_le): New.
25571 (insn_v2int_h): Handle big endian.
25572 (vec_interleave_lowv4hi): Handle big endian.
25573 (vec_interleave_lowv4hi_be): New.
25574 (vec_interleave_lowv4hi_le): New.
25575 (insn_v2int_l): Handle big endian.
25576 (vec_interleave_highv2si): Handle big endian.
25577 (vec_interleave_highv2si_be): New.
25578 (vec_interleave_highv2si_le): New.
25579 (insn_v4int_h): Handle big endian.
25580 (vec_interleave_lowv2si): Handle big endian.
25581 (vec_interleave_lowv2si_be): New.
25582 (vec_interleave_lowv2si_le): New.
25583 (insn_v4int_l): Handle big endian.
25584 * config/tilegx/tilegx.opt (mbig-endian): New option.
25585 (mlittle-endian): New option.
25586 * doc/install.texi: Document tilegxbe-linux.
25587 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25589 2014-02-24 Martin Jambor <mjambor@suse.cz>
25592 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25593 there are no parameter descriptors.
25595 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
25597 PR rtl-optimization/60268
25598 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25599 initialization to ...
25600 (sched_rgn_init): ... here.
25601 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25603 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25605 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25608 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
25610 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25613 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25615 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25616 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25618 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25620 * config/microblaze/predicates.md: Add cmp_op predicate.
25621 * config/microblaze/microblaze.md: Add branch_compare instruction
25622 which uses cmp_op predicate and emits cmp insn before branch.
25623 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25624 to microblaze_expand_conditional_branch and consolidate logic.
25625 (microblaze_expand_conditional_branch): emit branch_compare
25626 insn instead of handling cmp op separate from branch insn.
25628 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25630 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25633 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25635 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25636 define_insn with define_expand and new define_insn
25637 *altivec_lve<VI_char>x_internal.
25638 (altivec_stve<VI_char>x): Replace define_insn with define_expand
25639 and new define_insn *altivec_stve<VI_char>x_internal.
25640 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25642 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25644 (altivec_expand_stvex_be): New function.
25646 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
25648 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25649 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25650 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25651 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25653 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
25656 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25657 instead of emit_move_insn.
25659 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25661 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25662 vspltw with vsldoi.
25663 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25664 gen_altivec_vsumsws.
25666 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25668 * config/rs6000/altivec.md (altivec_lvxl): Rename as
25669 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25670 (altivec_lvxl_<mode>): New define_expand incorporating
25671 -maltivec=be semantics where needed.
25672 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25673 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25674 semantics where needed.
25675 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25676 (altivec_stvx_<mode>): New define_expand incorporating
25677 -maltivec=be semantics where needed.
25678 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25679 VM2 iterator instead of V4SI.
25680 (altivec_stvxl_<mode>): New define_expand incorporating
25681 -maltivec=be semantics where needed.
25682 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25683 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25684 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25685 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25686 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25687 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25688 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25689 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25690 ALTIVEC_BUILTIN_STVXL.
25691 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25692 (altivec_expand_stvx_be): Likewise.
25693 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25694 (altivec_expand_lvx_be): Likewise.
25695 (altivec_expand_stvx_be): Likewise.
25696 (altivec_expand_builtin): Add cases for
25697 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25698 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25699 (altivec_init_builtins): Add definitions for
25700 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25701 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25703 2014-02-21 Catherine Moore <clm@codesourcery.com>
25705 * doc/invoke.texi (mvirt, mno-virt): Document.
25706 * config/mips/mips.opt (mvirt): New option.
25707 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25709 2014-02-21 Richard Biener <rguenther@suse.de>
25711 PR tree-optimization/60276
25712 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25713 (STMT_VINFO_MIN_NEG_DIST): New macro.
25714 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25715 STMT_VINFO_MIN_NEG_DIST.
25716 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25717 made for negative dependence distances still hold.
25719 2014-02-21 Richard Biener <rguenther@suse.de>
25721 PR middle-end/60291
25722 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25723 DECL_INITIAL for globals not in the current function context.
25725 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25727 PR tree-optimization/56490
25728 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25729 * tree-ssa-uninit.c: Include params.h.
25730 (compute_control_dep_chain): Add num_calls argument, return false
25731 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25732 num_calls to recursive call.
25733 (find_predicates): Change dep_chain into normal array,
25734 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25735 variable and adjust compute_control_dep_chain caller.
25736 (find_def_preds): Likewise.
25738 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
25740 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25741 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25743 2014-02-21 Nick Clifton <nickc@redhat.com>
25745 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25746 (pushhi1): Likewise.
25747 (popqi1): Add mode to pre_dec.
25748 (pophi1): Likewise.
25750 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25752 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25753 mode for mask of V8SFmode permutation.
25755 2014-02-20 Richard Henderson <rth@redhat.com>
25758 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25759 a new pseudo for OLDVAL.
25761 2014-02-20 Jakub Jelinek <jakub@redhat.com>
25764 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25765 gen_reg_rtx if d->testing_p.
25766 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25767 if d->testing_p and we will certainly return true.
25768 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
25771 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
25773 * emit-rtl.c (gen_reg_rtx): Assert that
25774 crtl->emit.regno_pointer_align_length is non-zero.
25776 2014-02-20 Richard Henderson <rth@redhat.com>
25779 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25780 on failure the store back into EXPECT.
25782 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
25783 Sandra Loosemore <sandra@codesourcery.com>
25785 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25786 * config/nios2/nios2.c (nios2_function_profiler): Add
25787 -fPIC (flag_pic == 2) support.
25788 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25789 (nios2_large_offset_p): New function.
25790 (nios2_unspec_reloc_p): Move up position, update to use
25791 nios2_large_offset_p.
25792 (nios2_unspec_address): Remove function.
25793 (nios2_unspec_offset): New function.
25794 (nios2_large_got_address): New function.
25795 (nios2_got_address): Add large offset support.
25796 (nios2_legitimize_tls_address): Update usage of removed and new
25798 (nios2_symbol_binds_local_p): New function.
25799 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25800 (nios2_legitimize_address): Update to use nios2_large_offset_p.
25801 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25802 (nios2_print_operand): Merge H/L processing, add hiadj/lo
25803 processing for (const (unspec ...)).
25804 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25806 2014-02-20 Richard Biener <rguenther@suse.de>
25808 * tree-cfg.c (replace_uses_by): Mark altered BBs before
25809 doing the substitution.
25810 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25812 2014-02-20 Martin Jambor <mjambor@suse.cz>
25815 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25816 info when checking whether lattices are bottom.
25818 2014-02-20 Richard Biener <rguenther@suse.de>
25820 PR middle-end/60221
25821 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25824 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
25827 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25828 parameter specifying the scaling.
25829 (inline_call): Update.
25830 (want_inline_recursively): Guard division by zero.
25831 (recursive_inlining): Update.
25832 * ipa-inline.h (clone_inlined_nodes): Update.
25834 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25837 * config/i386/i386.c (classify_argument): Pass structures of size
25838 64 bytes or less in register.
25840 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25841 Kirill Yukhin <kirill.yukhin@intel.com>
25843 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
25844 (_mm_rcp28_round_ss): Ditto.
25845 (_mm_rsqrt28_round_sd): Ditto.
25846 (_mm_rsqrt28_round_ss): Ditto.
25847 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
25848 (_mm_rcp14_round_ss): Ditto.
25849 (_mm_rsqrt14_round_sd): Ditto.
25850 (_mm_rsqrt14_round_ss): Ditto.
25851 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
25852 the first input operand, get rid of match_dup.
25853 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
25855 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25857 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
25858 operand as the first input operand, set type attribute.
25859 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25860 Set type attribute.
25861 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
25862 operand as the first input operand, set type attribute.
25864 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25866 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
25869 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
25872 * config/i386/i386.c (construct_container): Remove TFmode check
25873 for X86_64_INTEGER_CLASS.
25875 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
25878 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
25879 only when -Wpsabi is enabled.
25881 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
25884 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
25885 passing arrays in registers are the same as for structs, so remove the
25886 special case for them.
25888 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
25890 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
25891 destination type, extract only the valid bits if the source type is not
25892 integral and has a different mode.
25894 2014-02-19 Richard Biener <rguenther@suse.de>
25897 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
25900 2014-02-19 Richard Biener <rguenther@suse.de>
25903 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
25904 (ipa_modify_call_arguments): Emit an argument load explicitely and
25905 preserve virtual SSA form there and for the replacement call.
25906 Do not update SSA form nor free dominance info.
25908 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
25910 * ipa.c (function_and_variable_visibility): Also clear WEAK
25911 flag when disolving COMDAT_GROUP.
25913 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
25915 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
25916 * ipa-prop.c (ipa_set_jf_known_type): Return early when
25917 not devirtualizing.
25918 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
25919 do more sanity checks.
25920 (detect_type_change): Return true when giving up early.
25921 (compute_complex_assign_jump_func): Fix type parameter of
25922 ipa_set_ancestor_jf.
25923 (compute_complex_ancestor_jump_func): Likewise.
25924 (update_jump_functions_after_inlining): Fix updating of
25926 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
25928 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
25930 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
25931 inline clones when edge disappears.
25933 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
25936 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
25937 Split 64-bit moves into 2 patterns. Do not allow the use of
25938 direct move for TDmode in little endian, since the decimal value
25939 has little endian bytes within a word, but the 64-bit pieces are
25940 ordered in a big endian fashion, and normal subreg's of TDmode are
25942 (mov<mode>_64bit_dm): Likewise.
25943 (movtd_64bit_nodm): Likewise.
25945 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
25947 PR tree-optimization/60174
25948 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
25949 statement of an SSA_NAME that occurs in an abnormal PHI node.
25951 2014-02-18 Jakub Jelinek <jakub@redhat.com>
25954 * final.c (SEEN_BB): Remove.
25955 (SEEN_NOTE, SEEN_EMITTED): Renumber.
25956 (final_scan_insn): Don't force_source_line on second
25957 NOTE_INSN_BASIC_BLOCK.
25959 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
25962 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
25963 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
25964 (type_natural_mode): Warn ABI change when %zmm register is not
25965 available for AVX512F vector value passing.
25967 2014-02-18 Kai Tietz <ktietz@redhat.com>
25970 * config/i386/i386.c (ix86_expand_prologue): Use value in
25971 rax register as displacement when restoring %r10 or %rax.
25972 Fix wrong offset when restoring both registers.
25974 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
25976 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
25977 assertion with conditional return.
25979 2014-02-18 Jakub Jelinek <jakub@redhat.com>
25980 Uros Bizjak <ubizjak@gmail.com>
25983 * config/i386/driver-i386.c (host_detect_local_cpu): If
25984 YMM state is not saved by the OS, also clear has_f16c. Move
25985 CPUID 0x80000001 handling before YMM state saving checking.
25987 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
25989 PR rtl-optimization/58960
25990 * haifa-sched.c (alloc_global_sched_pressure_data): New,
25991 factored out from ...
25992 (sched_init): ... here.
25993 (free_global_sched_pressure_data): New, factored out from ...
25994 (sched_finish): ... here.
25995 * sched-int.h (free_global_sched_pressure_data): Declare.
25996 * sched-rgn.c (nr_regions_initial): New static global.
25997 (haifa_find_rgns): Initialize it.
25998 (schedule_region): Disable sched-pressure for the newly
26001 2014-02-17 Richard Biener <rguenther@suse.de>
26003 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26004 release SSA defs of pattern stmts.
26006 2014-02-17 Richard Biener <rguenther@suse.de>
26008 * tree-inline.c (expand_call_inline): Release the virtual
26009 operand defined by the call we are about to inline.
26011 2014-02-17 Richard Biener <rguenther@suse.de>
26013 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26015 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26016 Ilya Tocar <ilya.tocar@intel.com>
26018 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26019 arguments order in builtin.
26020 (_mm512_permutexvar_epi64): Ditto.
26021 (_mm512_mask_permutexvar_epi64): Ditto
26022 (_mm512_maskz_permutexvar_epi32): Ditto
26023 (_mm512_permutexvar_epi32): Ditto
26024 (_mm512_mask_permutexvar_epi32): Ditto
26026 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26028 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26029 (p8_vmrgow): Likewise.
26031 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26033 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26036 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26039 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26040 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26041 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26042 using direct move instructions on ISA 2.07. Also adjust
26043 instruction length for 64-bit.
26044 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26045 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26047 2014-02-15 Alan Modra <amodra@gmail.com>
26051 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26052 find_replacement on parts of insn rtl that might be reloaded.
26054 2014-02-15 Richard Biener <rguenther@suse.de>
26056 PR tree-optimization/60183
26057 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26058 (tree_ssa_phiprop): Calculate and free post-dominators.
26060 2014-02-14 Jeff Law <law@redhat.com>
26062 PR rtl-optimization/60131
26063 * ree.c (get_extended_src_reg): New function.
26064 (combine_reaching_defs): Use it rather than assuming location of REG.
26065 (find_and_remove_re): Verify first operand of extension is
26066 a REG before adding the insns to the copy list.
26068 2014-02-14 Roland McGrath <mcgrathr@google.com>
26070 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26071 * configure: Regenerated.
26072 * config.in: Regenerated.
26073 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26074 instead of ASM_SHORT.
26076 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26077 Richard Earnshaw <rearnsha@arm.com>
26079 PR rtl-optimization/59535
26080 * lra-constraints.c (process_alt_operands): Encourage alternative
26081 when unassigned pseudo class is superset of the alternative class.
26082 (inherit_reload_reg): Don't inherit when optimizing for code size.
26083 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26084 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26085 modes not less than 4 for Thumb1.
26087 2014-02-14 Kyle McMartin <kyle@redhat.com>
26090 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26092 2014-02-14 Richard Biener <rguenther@suse.de>
26094 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26095 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26096 Do not strip INDIRECT_REFs.
26098 2014-02-14 Richard Biener <rguenther@suse.de>
26101 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26102 DECL_FUNCTION_SPECIFIC_TARGET.
26103 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26104 * tree-streamer-out.c (pack_ts_target_option): Remove.
26105 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26106 (write_ts_function_decl_tree_pointers): Do not stream
26107 DECL_FUNCTION_SPECIFIC_TARGET.
26108 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26109 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26110 (lto_input_ts_function_decl_tree_pointers): Do not stream
26111 DECL_FUNCTION_SPECIFIC_TARGET.
26113 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26115 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26116 (get_initial_def_for_induction, vectorizable_induction): Ignore
26117 debug stmts when looking for exit_phi.
26118 (vectorizable_live_operation): Fix up condition.
26120 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26122 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26123 nreverse() because it changes the content of original tree list.
26125 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26127 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26128 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26130 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26132 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26133 GNU coding standards.
26135 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26138 * dwarf2out.c (gen_subprogram_die): Don't call
26139 add_calling_convention_attribute if subr_die is old_die.
26141 2014-02-13 Sharad Singhai <singhai@google.com>
26143 * doc/optinfo.texi: Fix order of nodes.
26145 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26147 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26148 operands[2], not operands[3].
26150 2014-02-13 Richard Biener <rguenther@suse.de>
26153 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26154 mention the possibility of an in-tree build.
26155 (CLooG): Update recommended version to 0.18.1, mention the
26156 possibility of an in-tree build and clarify that the ISL
26157 bundled with CLooG does not work.
26159 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26162 * expr.c (compress_float_constant): If x is a hard register,
26163 extend into a pseudo and then move to x.
26165 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26167 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26168 caused by bad second argument to warning_at() with -mhotpatch and
26169 nested functions (e.g. with gfortran).
26171 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26173 * opts.c (option_name): Remove "enabled by default" rider.
26175 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26177 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26179 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26180 Uros Bizjak <ubizjak@gmail.com>
26183 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26184 * configure: Regenerated.
26186 2014-02-12 Richard Biener <rguenther@suse.de>
26188 * vec.c (vec_prefix::calculate_allocation): Move as
26189 inline variant to vec.h.
26190 (vec_prefix::calculate_allocation_1): New out-of-line version.
26191 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26192 (vec_prefix::m_has_auto_buf): Rename to ...
26193 (vec_prefix::m_using_auto_storage): ... this.
26194 (vec_prefix::calculate_allocation): Inline the easy cases
26195 and dispatch to calculate_allocation_1 which doesn't need the
26197 (va_heap::reserve): Use gcc_checking_assert.
26198 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26199 m_using_auto_storage.
26200 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26202 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26203 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26204 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26206 2014-02-12 Richard Biener <rguenther@suse.de>
26208 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
26209 when we found a dependence.
26211 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
26213 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
26215 (maybe_fold_stmt): ... into this new function.
26216 * omp-low.c (lower_omp): Update comment.
26218 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
26221 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
26224 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
26226 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
26227 identifiers in comments.
26228 (cortexa53_extra_costs): Likewise.
26229 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
26230 (cortexa7_extra_costs): Likewise.
26231 (cortexa12_extra_costs): Likewise.
26232 (cortexa15_extra_costs): Likewise.
26233 (v7m_extra_costs): Likewise.
26235 2014-02-12 Richard Biener <rguenther@suse.de>
26237 PR middle-end/60092
26238 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
26239 of posix_memalign being successful.
26240 (lower_stmt): Restrict lowering of posix_memalign to when
26241 -ftree-bit-ccp is enabled.
26243 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26245 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
26247 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26249 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
26251 PR rtl-optimization/60116
26252 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
26253 other_insn once the combination has been validated.
26255 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
26258 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
26260 * ipa-devirt.c: Include demangle.h
26261 (odr_violation_reported): New static variable.
26262 (add_type_duplicate): Update odr_violations.
26263 (maybe_record_node): Add completep parameter; update it.
26264 (record_target_from_binfo): Add COMPLETEP parameter;
26265 update it as needed.
26266 (possible_polymorphic_call_targets_1): Likewise.
26267 (struct polymorphic_call_target_d): Add nonconstruction_targets;
26268 rename FINAL to COMPLETE.
26269 (record_targets_from_bases): Sanity check we found the binfo;
26270 fix COMPLETEP updating.
26271 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
26272 parameter, fix computing of COMPLETEP.
26273 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
26274 at LTO time do demangling.
26275 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
26276 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
26278 (gimple_get_virt_method_for_binfo): Likewise.
26279 * gimple-fold.h (gimple_get_virt_method_for_binfo,
26280 gimple_get_virt_method_for_vtable): Update prototypes.
26282 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
26285 * genautomata.c (add_presence_absence): Fix typo with
26286 {final_}presence_list.
26288 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26291 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
26292 for VSX/Altivec vectors that land in GPR registers.
26294 2014-02-11 Richard Henderson <rth@redhat.com>
26295 Jakub Jelinek <jakub@redhat.com>
26298 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
26299 around drhs if type conversion to lacc->type is not useless.
26301 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26303 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
26305 (cortex-a57.cortex-a53): Likewise.
26306 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
26308 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26310 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
26313 2014-02-11 Renlin Li <Renlin.Li@arm.com>
26315 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
26316 add_options_for_arm_vfp3.
26318 2014-02-11 Jeff Law <law@redhat.com>
26320 PR middle-end/54041
26321 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
26322 object with an undesirable mode.
26324 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26327 * config/i386/sol2-9.h: New file.
26328 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
26329 *-*-solaris2.9*): Use it.
26331 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26333 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
26334 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
26336 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26338 * config/microblaze/microblaze.c: Extend mcpu version format
26340 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
26342 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
26344 2014-02-10 Richard Henderson <rth@redhat.com>
26347 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
26348 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
26349 ms-abi vs -mno-accumulate-outgoing-args.
26350 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
26351 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
26354 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
26356 PR middle-end/60080
26357 * cfgexpand.c (expand_asm_operands): Attach source location to
26358 ASM_INPUT rtx objects.
26359 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
26361 2014-02-10 Nick Clifton <nickc@redhat.com>
26363 * config/mn10300/mn10300.c (popcount): New function.
26364 (mn10300_expand_prologue): Include saved registers in stack usage
26367 2014-02-10 Jeff Law <law@redhat.com>
26369 PR middle-end/52306
26370 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
26371 when changing the SET_DEST of a prior insn to avoid an input reload.
26373 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26375 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
26376 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
26377 -mcall-openbsd, or -mcall-linux.
26378 (CC1_ENDIAN_BIG_SPEC): Remove.
26379 (CC1_ENDIAN_LITTLE_SPEC): Remove.
26380 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26381 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
26382 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
26383 and %cc1_endian_default.
26384 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26386 2014-02-10 Richard Biener <rguenther@suse.de>
26388 PR tree-optimization/60115
26389 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
26390 MEM_REF handling. Properly verify that the accesses are not
26391 out of the objects bound.
26393 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26395 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
26398 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
26400 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
26401 proper constants and fix formatting.
26402 (possible_polymorphic_call_targets): Fix formatting.
26404 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
26405 Ilya Tocar <ilya.tocar@intel.com>
26407 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
26408 (_mm512_loadu_epi32): Renamed into...
26409 (_mm512_loadu_si512): This.
26410 (_mm512_storeu_epi32): Renamed into...
26411 (_mm512_storeu_si512): This.
26412 (_mm512_maskz_ceil_ps): Removed.
26413 (_mm512_maskz_ceil_pd): Ditto.
26414 (_mm512_maskz_floor_ps): Ditto.
26415 (_mm512_maskz_floor_pd): Ditto.
26416 (_mm512_floor_round_ps): Ditto.
26417 (_mm512_floor_round_pd): Ditto.
26418 (_mm512_ceil_round_ps): Ditto.
26419 (_mm512_ceil_round_pd): Ditto.
26420 (_mm512_mask_floor_round_ps): Ditto.
26421 (_mm512_mask_floor_round_pd): Ditto.
26422 (_mm512_mask_ceil_round_ps): Ditto.
26423 (_mm512_mask_ceil_round_pd): Ditto.
26424 (_mm512_maskz_floor_round_ps): Ditto.
26425 (_mm512_maskz_floor_round_pd): Ditto.
26426 (_mm512_maskz_ceil_round_ps): Ditto.
26427 (_mm512_maskz_ceil_round_pd): Ditto.
26428 (_mm512_expand_pd): Ditto.
26429 (_mm512_expand_ps): Ditto.
26430 * config/i386/i386.c (ix86_builtins): Remove
26431 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
26432 (bdesc_args): Ditto.
26433 * config/i386/predicates.md (const1256_operand): New.
26434 (const_1_to_2_operand): Ditto.
26435 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26436 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26437 (*avx512pf_gatherpf<mode>sf): Ditto.
26438 (avx512pf_gatherpf<mode>df): Ditto.
26439 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26440 (*avx512pf_gatherpf<mode>df): Ditto.
26441 (avx512pf_scatterpf<mode>sf): Ditto.
26442 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26443 (*avx512pf_scatterpf<mode>sf): Ditto.
26444 (avx512pf_scatterpf<mode>df): Ditto.
26445 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26446 (*avx512pf_scatterpf<mode>df): Ditto.
26447 (avx512f_expand<mode>): Removed.
26448 (<shift_insn><mode>3<mask_name>): Change predicate type.
26450 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26452 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
26453 not at the end of datarefs vector use ordered_remove to avoid
26454 reordering datarefs vector.
26457 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
26458 mark local addressable non-static vars as GOVD_PRIVATE
26459 instead of GOVD_LOCAL.
26460 * omp-low.c (lower_omp_for): Move gimple_bind_vars
26461 and BLOCK_VARS of gimple_bind_block to new_stmt rather
26464 PR middle-end/60092
26465 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
26466 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
26467 assume_aligned or alloc_align attributes.
26468 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
26469 arguments. Handle also assume_aligned and alloc_align attributes.
26470 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
26471 calls to functions with assume_aligned or alloc_align attributes.
26472 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
26474 2014-02-08 Terry Guo <terry.guo@arm.com>
26476 * doc/invoke.texi: Document ARM -march=armv7e-m.
26478 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26480 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
26481 flag on __cilkrts_rethrow builtin.
26484 * ipa-cp.c (determine_versionability): Fail at -O0
26485 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26486 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26489 2014-02-04 Jakub Jelinek <jakub@redhat.com>
26492 * tree-inline.c (copy_forbidden): Fail for
26493 __attribute__((optimize (0))) functions.
26495 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26497 * varpool.c: Include pointer-set.h.
26498 (varpool_remove_unreferenced_decls): Variables in other partitions
26499 will not be output; be however careful to not lose information
26500 about partitioning.
26502 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26504 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26505 lookup in the vtable constructor.
26507 2014-02-07 Jeff Law <law@redhat.com>
26510 * config/m68k/m68k.md (ashldi_extsi): Turn into a
26511 define_insn_and_split.
26513 * ipa-inline.c (inline_small_functions): Fix typos.
26515 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26517 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26518 (s390_can_use_return_insn): Declare.
26519 * config/s390/s390.h (EPILOGUE_USES): Define.
26520 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26522 (s390_chunkify_start): Handle return JUMP_LABELs.
26523 (s390_early_mach): Emit a main_pool instruction on the entry edge.
26524 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26525 (s390_can_use_return_insn): New functions.
26526 (s390_fix_long_loop_prediction): Handle conditional returns.
26527 (TARGET_SET_UP_BY_PROLOGUE): Define.
26528 * config/s390/s390.md (ANY_RETURN): New code iterator.
26529 (*creturn, *csimple_return, return, simple_return): New patterns.
26531 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26533 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26534 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
26535 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
26536 REG_CFA_RESTORE list when deciding not to restore a register.
26538 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26540 * config/s390/s390.c: Include tree-pass.h and context.h.
26541 (s390_early_mach): New function, split out from...
26542 (s390_emit_prologue): ...here.
26543 (pass_data_s390_early_mach): New pass structure.
26544 (pass_s390_early_mach): New class.
26545 (s390_option_override): Create and register early_mach pass.
26546 Move to end of file.
26548 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26550 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26551 to match for the exit block.
26553 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26555 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26556 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26557 Reject misaligned operands.
26559 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26561 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26563 2014-02-07 Richard Biener <rguenther@suse.de>
26565 PR middle-end/60092
26566 * gimple-low.c (lower_builtin_posix_memalign): New function.
26567 (lower_stmt): Call it to lower posix_memalign in a way
26568 to make alignment info accessible.
26570 2014-02-07 Jakub Jelinek <jakub@redhat.com>
26573 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26574 __builtin_setjmp_receiver.
26576 2014-02-07 Richard Biener <rguenther@suse.de>
26578 PR middle-end/60092
26579 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26580 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26581 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26582 Handle BUILT_IN_POSIX_MEMALIGN.
26583 (find_func_clobbers): Likewise.
26584 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26585 (call_may_clobber_ref_p_1): Likewise.
26587 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26590 * ipa-devirt.c (record_target_from_binfo): Remove overactive
26593 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26596 * lto-cgraph.c (lto_output_node): Use
26597 symtab_get_symbol_partitioning_class.
26598 (lto_output_varpool_node): likewise.
26599 (symtab_get_symbol_partitioning_class): Move here from
26600 lto/lto-partition.c
26601 * cgraph.h (symbol_partitioning_class): Likewise.
26602 (symtab_get_symbol_partitioning_class): Declare.
26604 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26606 * ggc.h (ggc_internal_cleared_alloc): New macro.
26607 * vec.h (vec_safe_copy): Handle memory stats.
26608 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26609 * target-globals.c (save_target_globals): Likewise.
26611 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26614 * expr.c (emit_move_resolve_push): Export; be bit more selective
26615 on when to clear alias set.
26616 * expr.h (emit_move_resolve_push): Declare.
26617 * function.h (struct function): Add tail_call_marked.
26618 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26619 * config/i386/i386-protos.h (ix86_expand_push): Remove.
26620 * config/i386/i386.md (TImode move expander): De not call
26622 (FP push expanders): Preserve memory attributes.
26623 * config/i386/sse.md (push<mode>1): Remove.
26624 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26625 (ix86_expand_push): Remove.
26626 * config/i386/mmx.md (push<mode>1): Remove.
26628 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26630 PR rtl-optimization/60030
26631 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26632 lopart with paradoxical subreg before shifting it up by hprec.
26634 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26636 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26637 Remove extra newline at end of file.
26638 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26639 (arm_issue_rate): Handle cortexa57.
26640 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26641 (cortex-a57.cortex-a53): Likewise.
26643 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26646 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26647 don't record in REG_FRAME_RELATED_EXPR registers not set in that
26649 (arm_expand_prologue): Adjust all callers.
26650 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26651 info, registers also at the lowest numbered registers side. Use
26652 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26656 * var-tracking.c (adjust_mems): Before adding a SET to
26657 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26659 2014-02-06 Alan Modra <amodra@gmail.com>
26662 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26663 change SDmode to DDmode when lra_in_progress.
26665 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26667 PR middle-end/59150
26668 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26669 free_data_ref on the dr first, and before goto again also set dr
26670 to the next dr. For simd_lane_access, free old datarefs[i] before
26671 overwriting it. For get_vectype_for_scalar_type failure, don't
26672 free_data_ref if simd_lane_access.
26674 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26677 * tree.h (opts_for_fn): New inline function.
26678 (opt_for_fn): Define.
26679 * config/i386/i386.c (ix86_function_regparm): Use
26680 opt_for_fn (decl, optimize) instead of optimize.
26682 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
26684 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26685 for SYMBOL_REF in large memory model.
26687 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26689 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26690 and crypto support.
26691 (cortex-a57): Likewise.
26692 (cortex-a57.cortex-a53): Likewise.
26694 2014-02-06 Yury Gribov <y.gribov@samsung.com>
26695 Kugan Vivekanandarajah <kuganv@linaro.org>
26697 * config/arm/arm.c (arm_vector_alignment_reachable): Check
26699 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26701 2014-02-06 Richard Biener <rguenther@suse.de>
26703 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26704 set_loop_copy and initialize_original_copy_tables.
26706 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
26708 * config/aarch64/aarch64-simd.md
26709 (aarch64_ashr_simddi): Change QI to SI.
26711 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26712 Jakub Jelinek <jakub@redhat.com>
26714 PR middle-end/60013
26715 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26718 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26720 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26721 CODE_FOR_altivec_vpku[hw]um to
26722 CODE_FOR_altivec_vpku[hw]um_direct.
26723 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26724 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26725 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26726 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26728 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26730 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26731 generation for -maltivec=be.
26732 (altivec_vsumsws): Simplify redundant test.
26734 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26736 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26737 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26738 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26739 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26740 gen_altivec_vpkuwum.
26741 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26743 (altivec_vpks<VI_char>ss): Likewise.
26744 (altivec_vpks<VI_char>us): Likewise.
26745 (altivec_vpku<VI_char>us): Likewise.
26746 (altivec_vpku<VI_char>um): Likewise.
26747 (altivec_vpku<VI_char>um_direct): New (copy of
26748 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26750 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26751 target is little endian and -maltivec=be is not specified.
26752 (*altivec_vupkhs<VU_char>_direct): New (copy of
26753 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26754 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26755 target is little endian and -maltivec=be is not specified.
26756 (*altivec_vupkls<VU_char>_direct): New (copy of
26757 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26758 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26759 little endian and -maltivec=be is not specified.
26760 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26761 little endian and -maltivec=be is not specified.
26763 2014-02-05 Richard Henderson <rth@redhat.com>
26766 * combine-stack-adj.c: Revert r206943.
26767 * sched-int.h (struct deps_desc): Add last_args_size.
26768 * sched-deps.c (init_deps): Initialize it.
26769 (sched_analyze_insn): Add OUTPUT dependencies between insns that
26770 contain REG_ARGS_SIZE notes.
26772 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26774 * lto-cgraph.c (asm_nodes_output): Make global.
26775 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26776 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26777 (driver_handle_option): Handle OPT_fwpa.
26779 2014-02-05 Jakub Jelinek <jakub@redhat.com>
26782 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26783 a comment typo and formatting issue. If odr_hash hasn't been
26784 created, return vNULL and set *completep to false.
26786 PR middle-end/57499
26787 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26788 bb with no successors.
26790 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
26793 * doc/invoke.texi (-march): Clarify documentation for ARM.
26794 (-mtune): Likewise.
26797 2014-02-05 Richard Biener <rguenther@suse.de>
26799 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26800 when not vectorizing because of too many alias checks.
26801 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26802 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26804 2014-02-05 Nick Clifton <nickc@redhat.com>
26806 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26807 accept extended registers in any mode when compiling for the MN10300.
26809 2014-02-05 Yury Gribov <y.gribov@samsung.com>
26811 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26812 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26813 sanitization attributes.
26814 (can_inline_edge_p): Likewise.
26815 (sanitize_attrs_match_for_inline_p): New function.
26817 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26819 * ipa-prop.c (detect_type_change): Shor circuit testing of
26820 type changes on THIS pointer.
26822 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
26825 * config/pa/pa.c (legitimize_tls_address): Return original address
26826 if not passed a SYMBOL_REF rtx.
26827 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26829 (pa_emit_move_sequence): Simplify TLS source operands.
26830 (pa_legitimate_constant_p): Reject all TLS constants.
26831 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26832 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26834 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26836 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26837 groups when we know they are controlled by LTO.
26838 * varasm.c (default_binds_local_p_1): If object is in other partition,
26839 it will be resolved locally.
26841 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26843 * config/host-linux.c (linux_gt_pch_use_address): Don't
26844 use SSIZE_MAX because it is not always defined.
26846 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
26849 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
26850 threshold for pseudo splitting.
26851 (update_ebb_live_info): Process call argument hard registers and
26852 hard registers from insn definition too.
26853 (max_small_class_regs_num): New constant.
26854 (inherit_in_ebb): Update live hard regs through EBBs. Update
26855 reloads_num only for small register classes. Don't split for
26858 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
26861 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
26864 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26866 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
26867 visibility is safe.
26869 2014-02-04 Marek Polacek <polacek@redhat.com>
26871 * gdbinit.in (pel): Define.
26873 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26875 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
26878 2014-02-04 Richard Biener <rguenther@suse.de>
26881 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
26882 in function context local.
26883 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
26884 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
26885 similar to LTO_imported_decl_ref.
26887 2014-02-04 Jakub Jelinek <jakub@redhat.com>
26889 PR tree-optimization/60002
26890 * cgraphclones.c (build_function_decl_skip_args): Clear
26891 DECL_LANG_SPECIFIC.
26893 PR tree-optimization/60023
26894 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
26895 false to gsi_replace.
26896 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
26897 has been in some EH region and vec_stmt could throw, add
26898 vec_stmt into the same EH region.
26899 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
26900 has no lhs, ignore it.
26901 * internal-fn.c (expand_MASK_LOAD): Likewise.
26904 * tree-inline.c (copy_forbidden): Fail for
26905 __attribute__((optimize (0))) functions.
26908 * omp-low.c (simd_clone_struct_copy): If from->inbranch
26909 is set, copy one less argument.
26910 (expand_simd_clones): Don't subtract clone_info->inbranch
26911 from simd_clone_struct_alloc argument.
26913 PR rtl-optimization/57915
26914 * recog.c (simplify_while_replacing): If all unary/binary/relational
26915 operation arguments are constant, attempt to simplify those.
26917 PR middle-end/59261
26918 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
26919 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
26921 2014-02-04 Richard Biener <rguenther@suse.de>
26923 PR tree-optimization/60012
26924 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
26925 TBAA disambiguation to all DDRs.
26927 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26930 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
26931 (LINK_SPEC): Use it for -shared, -shared-libgcc.
26933 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26936 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
26938 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26940 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
26941 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
26943 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26946 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
26947 to figure out targets of polymorphic calls with known decl.
26948 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26949 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
26950 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
26951 (get_polymorphic_call_info): ... here.
26952 (get_polymorphic_call_info_from_invariant): New function.
26954 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26956 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
26957 lookup via vtable pointer; check for type consistency
26958 and turn inconsitent facts into UNREACHABLE.
26959 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26960 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
26961 type inconsistent querries; return UNREACHABLE instead.
26963 2014-02-03 Richard Henderson <rth@twiddle.net>
26966 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
26967 already processed this node.
26968 (normalize_one_pred_1): Pass along mark_set.
26969 (normalize_one_pred): Create and destroy a pointer_set_t.
26970 (normalize_one_pred_chain): Likewise.
26972 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
26974 PR gcov-profile/58602
26975 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
26977 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
26980 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
26981 -fno-devirtualize; try to devirtualize by the knowledge of
26982 virtual table pointer given by aggregate propagation.
26983 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26984 (ipa_print_node_jump_functions): Dump also offset that
26985 is relevant for polymorphic calls.
26986 (determine_known_aggregate_parts): Add arg_type parameter; use it
26987 instead of determining the type from pointer type.
26988 (ipa_compute_jump_functions_for_edge): Update call of
26989 determine_known_aggregate_parts.
26990 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
26991 (gimple_get_virt_method_for_binfo): ... here; simplify using
26992 vtable_pointer_value_to_vtable.
26993 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
26994 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
26995 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
26996 (vtable_pointer_value_to_vtable): Break out from ...; handle also
26998 (vtable_pointer_value_to_binfo): ... here.
26999 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27001 2014-02-03 Teresa Johnson <tejohnson@google.com>
27003 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27004 redef of outer loop index variable.
27006 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27010 * doc/extend.texi (Function Attributes): Typo.
27012 2014-02-03 Cong Hou <congh@google.com>
27014 PR tree-optimization/60000
27015 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27016 if the vectorized statement is a store. A store statement can only
27017 appear at the end of pattern statements.
27019 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27021 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27022 (ix86_option_override_internal): Default long double to 64-bit for
27023 32-bit Bionic and to 128-bit for 64-bit Bionic.
27025 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27026 TARGET_LONG_DOUBLE_128 is true.
27027 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27029 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27030 (mlong-double-64): Negate -mlong-double-128.
27031 (mlong-double-128): New option.
27033 * config/i386/i386-c.c (ix86_target_macros): Define
27034 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27036 * doc/invoke.texi: Document -mlong-double-128.
27038 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27040 PR rtl-optimization/60024
27041 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27043 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27045 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27047 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27049 PR rtl-optimization/57662
27050 * sel-sched.c (code_motion_path_driver): Do not mark already not
27051 existing blocks in the visiting bitmap.
27053 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27055 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27056 on the insn being emitted.
27058 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27059 Will Deacon <will.deacon@arm.com>
27061 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27063 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27065 * config/arm/arm-tables.opt: Regenerate.
27067 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27069 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27070 for vector types other than V16QImode.
27071 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27072 define_expand, and call altivec_expand_vec_perm_le when producing
27073 code with little endian element order.
27074 (*altivec_vperm_<mode>_internal): New insn having previous
27075 behavior of altivec_vperm_<mode>.
27076 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27077 altivec_expand_vec_perm_le when producing code with little endian
27079 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27080 behavior of altivec_vperm_<mode>_uns.
27082 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27084 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27085 (altivec_vsumsws): Add handling for -maltivec=be with a little
27087 (altivec_vsumsws_direct): New.
27088 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27089 gen_altivec_vsumsws.
27091 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27093 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27094 vtable_pointer_value_to_binfo): New functions.
27095 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27096 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27098 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27100 * config/nios2/nios2.md (load_got_register): Initialize GOT
27101 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27102 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27104 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27106 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27107 preserverd by passthrough, do not propagate the type.
27109 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27111 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27112 (mips_atomic_assign_expand_fenv): New function.
27113 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27115 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27117 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27118 (__builtin_mips_set_fcsr): Likewise.
27119 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27120 MIPS_USI_FTYPE_VOID.
27121 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27122 (mips16_expand_set_fcsr): Likewise.
27123 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27124 (mips16_set_fcsr_stub): Likewise.
27125 (mips16_get_fcsr_one_only_stub): New class.
27126 (mips16_set_fcsr_one_only_stub): Likewise.
27127 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27128 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27129 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27130 (hard_float): New availability predicate.
27131 (mips_builtins): Add get_fcsr and set_fcsr.
27132 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27133 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27134 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27135 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27136 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27139 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27141 * config/mips/mips.c (mips_one_only_stub): New class.
27142 (mips_need_mips16_rdhwr_p): Replace with...
27143 (mips16_rdhwr_stub): ...this new variable.
27144 (mips16_stub_call_address): New function.
27145 (mips16_rdhwr_one_only_stub): New class.
27146 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27147 (mips_output_mips16_rdhwr): Delete.
27148 (mips_finish_stub): New function.
27149 (mips_code_end): Use it to handle rdhwr stubs.
27151 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27154 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27155 when calculating size of integer atomic types.
27157 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27159 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27161 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27163 PR tree-optimization/60003
27164 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27165 * profile.c (branch_prob): Use gimple_call_builtin_p
27166 to check for BUILT_IN_SETJMP_RECEIVER.
27167 * tree-inline.c (copy_bb): Call notice_special_calls.
27169 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27172 * lra-constraints.c (process_alt_operands): Update reload_sum only
27175 2014-01-31 Richard Henderson <rth@redhat.com>
27177 PR middle-end/60004
27178 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27179 until after else_eh is processed.
27181 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27183 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27184 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27185 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27186 in smmintrin.h, remove them.
27187 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27188 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27189 * config/i386/i386.md (ROUND_SAE): Fix value.
27190 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27191 (const48_operand): New.
27192 * config/i386/subst.md (round), (round_expand): Use
27193 const_4_or_8_to_11_operand.
27194 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27196 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27198 * config/i386/constraints.md (Yk): Swap meaning with k.
27199 * config/i386/i386.md (movhi_internal): Change Yk to k.
27200 (movqi_internal): Ditto.
27201 (*k<logic><mode>): Ditto.
27204 (kandn<mode>): Ditto.
27205 (*<code>hi_1): Ditto.
27206 (*<code>qi_1): Ditto.
27207 (kxnor<mode>): Ditto.
27208 (kortestzhi): Ditto.
27209 (kortestchi): Ditto.
27211 (*one_cmplhi2_1): Ditto.
27212 (*one_cmplqi2_1): Ditto.
27213 * config/i386/sse.md (): Change k to Yk.
27214 (avx512f_load<mode>_mask): Ditto.
27215 (avx512f_blendm<mode>): Ditto.
27216 (avx512f_store<mode>_mask): Ditto.
27217 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
27218 (avx512f_storedqu<mode>_mask): Ditto.
27219 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
27221 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
27222 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
27223 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
27224 (avx512f_maskcmp<mode>3): Ditto.
27225 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
27226 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
27227 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
27228 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
27229 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
27230 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
27231 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
27232 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
27233 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
27234 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
27235 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
27236 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
27237 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
27238 (vec_extract_lo_<mode>_maskm): Ditto.
27239 (vec_extract_hi_<mode>_maskm): Ditto.
27240 (avx512f_vternlog<mode>_mask): Ditto.
27241 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
27242 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
27243 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
27244 (avx512f_<code>v8div16qi2_mask): Ditto.
27245 (avx512f_<code>v8div16qi2_mask_store): Ditto.
27246 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
27247 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
27248 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
27249 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
27250 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27251 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27252 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27253 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27254 (avx512cd_maskb_vec_dupv8di): Ditto.
27255 (avx512cd_maskw_vec_dupv16si): Ditto.
27256 (avx512f_vpermi2var<mode>3_maskz): Ditto.
27257 (avx512f_vpermi2var<mode>3_mask): Ditto.
27258 (avx512f_vpermi2var<mode>3_mask): Ditto.
27259 (avx512f_vpermt2var<mode>3_maskz): Ditto.
27260 (*avx512f_gathersi<mode>): Ditto.
27261 (*avx512f_gathersi<mode>_2): Ditto.
27262 (*avx512f_gatherdi<mode>): Ditto.
27263 (*avx512f_gatherdi<mode>_2): Ditto.
27264 (*avx512f_scattersi<mode>): Ditto.
27265 (*avx512f_scatterdi<mode>): Ditto.
27266 (avx512f_compress<mode>_mask): Ditto.
27267 (avx512f_compressstore<mode>_mask): Ditto.
27268 (avx512f_expand<mode>_mask): Ditto.
27269 * config/i386/subst.md (mask): Change k to Yk.
27270 (mask_scalar_merge): Ditto.
27273 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
27275 * doc/extend.texi (Vector Extensions): Document ?: in C++.
27277 2014-01-31 Richard Biener <rguenther@suse.de>
27279 PR middle-end/59990
27280 * builtins.c (fold_builtin_memory_op): Make sure to not
27281 use a floating-point mode or a boolean or enumeral type for
27282 the copy operation.
27284 2014-01-30 DJ Delorie <dj@redhat.com>
27286 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
27287 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
27288 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
27289 whenever main() has an epilogue.
27291 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27293 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
27294 unused variable "field".
27295 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
27296 (vsx_mergeh_<mode>): Likewise.
27297 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
27298 (altivec_vmrghh): Likewise.
27299 (altivec_vmrghw): Likewise.
27300 (altivec_vmrglb): Likewise.
27301 (altivec_vmrglh): Likewise.
27302 (altivec_vmrglw): Likewise.
27303 (altivec_vspltb): Add missing uses.
27304 (altivec_vsplth): Likewise.
27305 (altivec_vspltw): Likewise.
27306 (altivec_vspltsf): Likewise.
27308 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27311 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
27312 frame related instructions.
27314 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
27316 PR rtl-optimization/59959
27317 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
27318 any reload of register whose subreg is invalid.
27320 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27322 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
27323 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
27324 Add missing return type - void.
27326 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27328 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
27329 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
27330 remove element index adjustment for endian (now handled in vsx.md
27332 (altivec_expand_vec_perm_const): Use
27333 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
27334 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
27335 (vsx_xxspltw_<mode>): Adjust element index for little endian.
27336 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
27337 define_expand and a new define_insn *altivec_vspltb_internal;
27338 adjust for -maltivec=be on a little endian target.
27339 (altivec_vspltb_direct): New.
27340 (altivec_vsplth): Divide into a define_expand and a new
27341 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
27342 little endian target.
27343 (altivec_vsplth_direct): New.
27344 (altivec_vspltw): Divide into a define_expand and a new
27345 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
27346 little endian target.
27347 (altivec_vspltw_direct): New.
27348 (altivec_vspltsf): Divide into a define_expand and a new
27349 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
27350 a little endian target.
27352 2014-01-30 Richard Biener <rguenther@suse.de>
27354 PR tree-optimization/59993
27355 * tree-ssa-forwprop.c (associate_pointerplus): Check we
27356 can propagate form the earlier stmt and avoid the transform
27357 when the intermediate result is needed.
27359 2014-01-30 Alangi Derick <alangiderick@gmail.com>
27361 * README.Portability: Fix typo.
27363 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
27365 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
27366 comparison_operator with ordered_comparison_operator.
27368 2014-01-30 Nick Clifton <nickc@redhat.com>
27370 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
27371 Rename to mn10300_store_multiple_regs.
27372 * config/mn10300/mn10300.c: Likewise.
27373 * config/mn10300/mn10300.md (store_movm): Fix typo: call
27374 store_multiple_regs.
27375 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
27376 Call mn10300_store_multiple_regs.
27378 2014-01-30 Nick Clifton <nickc@redhat.com>
27379 DJ Delorie <dj@redhat.com>
27381 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
27382 %fp 2 to keep registers after it properly word-aligned.
27383 (rl78_alloc_physical_registers_umul): Handle the case where both
27384 input operands are the same.
27386 2014-01-30 Richard Biener <rguenther@suse.de>
27388 PR tree-optimization/59903
27389 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
27392 2014-01-30 Jason Merrill <jason@redhat.com>
27395 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
27398 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
27400 2014-01-30 Richard Biener <rguenther@suse.de>
27402 PR tree-optimization/59951
27403 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
27405 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
27408 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
27409 SFmode to DFmode case.
27411 2014-01-29 DJ Delorie <dj@redhat.com>
27413 * config/msp430/msp430.opt (-minrt): New.
27414 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
27416 (ENDFILE_SPEC): Likewise.
27418 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
27420 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
27421 (estimate_function_body_sizes): Use it.
27423 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
27426 * dwarf2out.c (is_cxx_auto): New.
27427 (is_base_type): Use it.
27428 (gen_type_die_with_usage): Likewise.
27430 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27432 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
27433 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
27434 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
27435 -maltivec=be with LE targets.
27436 (vsx_mergeh_<mode>): Likewise.
27437 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
27438 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
27439 (altivec_vmrghb): Replace with define_expand and new
27440 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
27441 (altivec_vmrghb_direct): New define_insn.
27442 (altivec_vmrghh): Replace with define_expand and new
27443 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
27444 (altivec_vmrghh_direct): New define_insn.
27445 (altivec_vmrghw): Replace with define_expand and new
27446 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
27447 (altivec_vmrghw_direct): New define_insn.
27448 (*altivec_vmrghsf): Adjust for endianness.
27449 (altivec_vmrglb): Replace with define_expand and new
27450 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
27451 (altivec_vmrglb_direct): New define_insn.
27452 (altivec_vmrglh): Replace with define_expand and new
27453 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
27454 (altivec_vmrglh_direct): New define_insn.
27455 (altivec_vmrglw): Replace with define_expand and new
27456 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
27457 (altivec_vmrglw_direct): New define_insn.
27458 (*altivec_vmrglsf): Adjust for endianness.
27459 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27460 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27461 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27462 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27463 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27464 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27465 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27466 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27468 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
27470 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
27471 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
27474 2014-01-29 Richard Biener <rguenther@suse.de>
27476 PR tree-optimization/58742
27477 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
27478 associate_pointerplus_align.
27479 (associate_pointerplus_diff): New function.
27480 (associate_pointerplus): Likewise. Call associate_pointerplus_align
27481 and associate_pointerplus_diff.
27483 2014-01-29 Richard Biener <rguenther@suse.de>
27485 * lto-streamer.h (LTO_major_version): Bump to 3.
27486 (LTO_minor_version): Reset to 0.
27488 2014-01-29 Renlin Li <Renlin.Li@arm.com>
27490 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27491 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27492 (arm_file_start): Generate correct asm header for armv7ve.
27493 * config/arm/bpabi.h: Add multilib support for armv7ve.
27494 * config/arm/driver-arm.c: Change the architectures of cortex-a7
27495 and cortex-a15 to armv7ve.
27496 * config/arm/t-aprofile: Add multilib support for armv7ve.
27497 * doc/invoke.texi: Document -march=armv7ve.
27499 2014-01-29 Richard Biener <rguenther@suse.de>
27501 PR tree-optimization/58742
27502 * tree-ssa-forwprop.c (associate_plusminus): Return true
27503 if we changed sth, defer EH cleanup to ...
27504 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
27505 (simplify_mult): New function.
27507 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27509 PR middle-end/59917
27510 PR tree-optimization/59920
27511 * tree.c (build_common_builtin_nodes): Remove
27512 __builtin_setjmp_dispatcher initialization.
27513 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27514 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27515 instead of gsi_after_labels + manually skipping debug stmts.
27516 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27517 ignore bbs with IFN_ABNORMAL_DISPATCHER.
27518 * tree-inline.c (copy_edges_for_bb): Remove
27519 can_make_abnormal_goto argument, instead add abnormal_goto_dest
27520 argument. Ignore computed_goto_p stmts. Don't call
27521 make_abnormal_goto_edges. If a call might need abnormal edges
27522 for non-local gotos, see if it already has an edge to
27523 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27524 with true argument, don't do anything then, otherwise add
27525 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27526 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27528 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27529 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27530 (lower_stmt): Don't set data->calls_builtin_setjmp.
27531 (lower_builtin_setjmp): Adjust comment.
27532 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27533 * tree-cfg.c (found_computed_goto): Remove.
27534 (factor_computed_gotos): Remove.
27535 (make_goto_expr_edges): Return bool, true for computed gotos.
27536 Don't call make_abnormal_goto_edges.
27537 (build_gimple_cfg): Don't set found_computed_goto, don't call
27538 factor_computed_gotos.
27539 (computed_goto_p): No longer static.
27540 (make_blocks): Don't set found_computed_goto.
27541 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27542 (make_edges): If make_goto_expr_edges returns true, push bb
27543 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27544 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27545 vector. Record mapping between bbs and OpenMP regions if there
27546 are any, adjust make_gimple_omp_edges caller. Call
27547 handle_abnormal_edges.
27548 (make_abnormal_goto_edges): Remove.
27549 * tree-cfg.h (make_abnormal_goto_edges): Remove.
27550 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27551 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27552 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27553 * internal-fn.def (ABNORMAL_DISPATCHER): New.
27554 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27555 filling *region also set *region_idx to (*region)->entry->index.
27558 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27559 For REGs set ORIGINAL_REGNO.
27561 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
27563 * doc/md.texi: Mention that a target shouldn't implement
27564 vec_widen_(s|u)mul_even/odd pair if it is less efficient
27567 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27569 PR tree-optimization/59594
27570 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27571 a copy of the datarefs vector rather than the vector itself.
27573 2014-01-28 Jason Merrill <jason@redhat.com>
27576 * dwarf2out.c (auto_die): New static.
27577 (gen_type_die_with_usage): Handle C++1y 'auto'.
27578 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27581 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
27584 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27585 (SPEC_X32): Likewise.
27586 (SPEC_64): Likewise.
27587 * config/i386/i386.c (ix86_option_override_internal): Turn off
27588 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27590 (x86_file_start): Output .code16gcc for TARGET_16BIT.
27591 * config/i386/i386.h (TARGET_16BIT): New macro.
27592 (TARGET_16BIT_P): Likewise.
27593 * config/i386/i386.opt: Add m16.
27594 * doc/invoke.texi: Document -m16.
27596 2014-01-28 Jakub Jelinek <jakub@redhat.com>
27598 PR preprocessor/59935
27599 * input.c (location_get_source_line): Bail out on when line number
27600 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27602 2014-01-28 Richard Biener <rguenther@suse.de>
27604 PR tree-optimization/58742
27605 * tree-ssa-forwprop.c (associate_plusminus): Handle
27606 pointer subtraction of the form (T)(P + A) - (T)P.
27608 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27610 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27613 2014-01-28 Richard Biener <rguenther@suse.de>
27616 2014-01-28 Richard Biener <rguenther@suse.de>
27618 PR rtl-optimization/45364
27619 PR rtl-optimization/59890
27620 * var-tracking.c (local_get_addr_clear_given_value): Handle
27621 already cleared slot.
27622 (val_reset): Handle not allocated local_get_addr_cache.
27623 (vt_find_locations): Use post-order on the inverted CFG.
27625 2014-01-28 Richard Biener <rguenther@suse.de>
27627 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27629 2014-01-28 Richard Biener <rguenther@suse.de>
27631 PR rtl-optimization/45364
27632 PR rtl-optimization/59890
27633 * var-tracking.c (local_get_addr_clear_given_value): Handle
27634 already cleared slot.
27635 (val_reset): Handle not allocated local_get_addr_cache.
27636 (vt_find_locations): Use post-order on the inverted CFG.
27638 2014-01-28 Alan Modra <amodra@gmail.com>
27640 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27641 * configure.ac <recursive call for build != host>: Define
27642 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27643 and LD_FOR_BUILD too.
27644 * configure: Regenerate.
27646 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
27648 * config/i386/i386.c (get_builtin_code_for_version): Separate
27649 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27650 Broadwell from Haswell.
27652 2014-01-27 Steve Ellcey <sellcey@mips.com>
27654 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27655 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27656 * config/mips/mips.c (mips_option_override): Change setting
27658 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27659 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27660 Change from Mask to Var.
27662 2014-01-27 Jeff Law <law@redhat.com>
27664 * ipa-inline.c (inline_small_functions): Fix typo.
27666 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
27668 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27669 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27670 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27671 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27672 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27673 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27674 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27675 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27676 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27677 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27678 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27679 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27680 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27681 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27682 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27683 (_mm512_storeu_epi64): Ditto.
27684 (_mm512_cmpge_epi32_mask): Ditto.
27685 (_mm512_cmpge_epu32_mask): Ditto.
27686 (_mm512_cmpge_epi64_mask): Ditto.
27687 (_mm512_cmpge_epu64_mask): Ditto.
27688 (_mm512_cmple_epi32_mask): Ditto.
27689 (_mm512_cmple_epu32_mask): Ditto.
27690 (_mm512_cmple_epi64_mask): Ditto.
27691 (_mm512_cmple_epu64_mask): Ditto.
27692 (_mm512_cmplt_epi32_mask): Ditto.
27693 (_mm512_cmplt_epu32_mask): Ditto.
27694 (_mm512_cmplt_epi64_mask): Ditto.
27695 (_mm512_cmplt_epu64_mask): Ditto.
27696 (_mm512_cmpneq_epi32_mask): Ditto.
27697 (_mm512_cmpneq_epu32_mask): Ditto.
27698 (_mm512_cmpneq_epi64_mask): Ditto.
27699 (_mm512_cmpneq_epu64_mask): Ditto.
27700 (_mm512_expand_pd): Ditto.
27701 (_mm512_expand_ps): Ditto.
27702 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27703 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27704 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27705 * config/i386/i386.c (ix86_builtins): Add
27706 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27707 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27708 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27709 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27710 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27711 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27712 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27713 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27714 IX86_BUILTIN_PMOVUSQW512_MEM.
27715 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27716 __builtin_ia32_pmovsqd512mem_mask,
27717 __builtin_ia32_pmovqd512mem_mask,
27718 __builtin_ia32_pmovusqw512mem_mask,
27719 __builtin_ia32_pmovsqw512mem_mask,
27720 __builtin_ia32_pmovqw512mem_mask,
27721 __builtin_ia32_pmovusdw512mem_mask,
27722 __builtin_ia32_pmovsdw512mem_mask,
27723 __builtin_ia32_pmovdw512mem_mask,
27724 __builtin_ia32_pmovqb512mem_mask,
27725 __builtin_ia32_pmovusqb512mem_mask,
27726 __builtin_ia32_pmovsqb512mem_mask,
27727 __builtin_ia32_pmovusdb512mem_mask,
27728 __builtin_ia32_pmovsdb512mem_mask,
27729 __builtin_ia32_pmovdb512mem_mask.
27730 (bdesc_args): Add __builtin_ia32_expanddf512,
27731 __builtin_ia32_expandsf512.
27732 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27733 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27734 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27735 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27736 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27737 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27738 (avx512f_<code>v8div16qi2_mask_store): This.
27739 (avx512f_expand<mode>): New.
27741 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
27743 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27745 (_mm512_mask_prefetch_i64gather_pd): Ditto.
27746 (_mm512_prefetch_i32scatter_pd): Ditto.
27747 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27748 (_mm512_prefetch_i64scatter_pd): Ditto.
27749 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27750 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27751 (_mm512_mask_prefetch_i64gather_ps): Ditto.
27752 (_mm512_prefetch_i32scatter_ps): Ditto.
27753 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27754 (_mm512_prefetch_i64scatter_ps): Ditto.
27755 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27756 * config/i386/i386-builtin-types.def: Define
27757 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27758 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27759 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27760 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27761 IX86_BUILTIN_SCATTERPFQPD.
27762 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27763 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27764 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27765 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27766 __builtin_ia32_scatterpfqps.
27767 (ix86_expand_builtin): Expand new built-ins.
27768 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27769 fix memory access data type.
27770 (*avx512pf_gatherpf<mode>_mask): Ditto.
27771 (*avx512pf_gatherpf<mode>): Ditto.
27772 (avx512pf_scatterpf<mode>): Ditto.
27773 (*avx512pf_scatterpf<mode>_mask): Ditto.
27774 (*avx512pf_scatterpf<mode>): Ditto.
27775 (GATHER_SCATTER_SF_MEM_MODE): New.
27776 (avx512pf_gatherpf<mode>df): Ditto.
27777 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27778 (*avx512pf_scatterpf<mode>df): Ditto.
27780 2014-01-27 Jakub Jelinek <jakub@redhat.com>
27783 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27784 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27787 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27789 * common/config/arm/arm-common.c
27790 (arm_rewrite_mcpu): Handle multiple names.
27792 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27794 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27796 * gimple-builder.h (create_gimple_tmp): Delete.
27798 2014-01-27 Christian Bruel <christian.bruel@st.com>
27800 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27803 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
27805 * config/pa/pa.md (call): Generate indirect long calls to non-local
27806 functions when outputing 32-bit code.
27807 (call_value): Likewise except for special call to buggy powf function.
27809 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27810 portable runtime and PIC indirect calls.
27811 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27812 and PIC call sequences. Use ldo instead of blr to set return register
27813 in PIC call sequence.
27815 2014-01-25 Walter Lee <walt@tilera.com>
27817 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27818 avoid clobbering a live register.
27820 2014-01-25 Walter Lee <walt@tilera.com>
27822 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27823 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27824 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27825 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27827 2014-01-25 Walter Lee <walt@tilera.com>
27829 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27830 arguments on even registers.
27831 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27833 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27834 (BIGGEST_ALIGNMENT): Ditto.
27835 (BIGGEST_FIELD_ALIGNMENT): Ditto.
27837 2014-01-25 Walter Lee <walt@tilera.com>
27839 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
27840 insns before bundling.
27841 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
27843 2014-01-25 Walter Lee <walt@tilera.com>
27845 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
27846 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
27847 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
27849 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
27851 * config/mips/constraints.md (kl): Delete.
27852 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
27853 define expands, using...
27854 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
27855 instructions for MIPS16.
27856 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
27857 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
27859 2014-01-25 Walter Lee <walt@tilera.com>
27861 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
27865 2014-01-25 Walter Lee <walt@tilera.com>
27867 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
27868 (TARGET_EXPAND_TO_RTL_HOOK): Define.
27870 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
27872 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
27875 2014-01-25 Jakub Jelinek <jakub@redhat.com>
27877 * print-rtl.c (in_call_function_usage): New var.
27878 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
27879 EXPR_LIST mode as mode and not as reg note name.
27881 PR middle-end/59561
27882 * cfgloopmanip.c (copy_loop_info): If
27883 loop->warned_aggressive_loop_optimizations, make sure
27884 the flag is set in target loop too.
27886 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
27888 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
27890 * builtins.def: Likewise.
27891 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
27892 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
27893 * ira.c (ira_setup_eliminable_regset): Likewise.
27894 * omp-low.c (gate_expand_omp): Likewise.
27895 (execute_lower_omp): Likewise.
27896 (diagnose_sb_0): Likewise.
27897 (gate_diagnose_omp_blocks): Likewise.
27898 (simd_clone_clauses_extract): Likewise.
27901 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27903 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
27904 correction for little endian...
27905 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
27908 2014-01-24 Jeff Law <law@redhat.com>
27910 PR tree-optimization/59919
27911 * tree-vrp.c (find_assert_locations_1): Do not register asserts
27912 for non-returning calls.
27914 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
27916 * common/config/aarch64/aarch64-common.c
27917 (aarch64_rewrite_mcpu): Handle multiple names.
27918 * config/aarch64/aarch64.h
27919 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27921 2014-01-24 Dodji Seketeli <dodji@redhat.com>
27923 * input.c (add_file_to_cache_tab): Handle the case where fopen
27926 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
27929 * config/i386/i386.md (pushsf splitter): Get stack adjustment
27930 from push operand if code of push isn't PRE_DEC.
27932 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
27935 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
27936 -mquad-memory-atomic. Update -mquad-memory documentation to say
27937 it is only used for non-atomic loads/stores.
27939 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
27940 -mquad-memory or -mquad-memory-atomic switches.
27942 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
27943 -mquad-memory-atomic to ISA 2.07 support.
27945 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
27946 to separate support of normal quad word memory operations (ldq, stq)
27947 from the atomic quad word memory operations.
27949 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
27950 support to separate non-atomic quad word operations from atomic
27951 quad word operations. Disable non-atomic quad word operations in
27952 little endian mode so that we don't have to swap words after the
27953 load and before the store.
27954 (quad_load_store_p): Add comment about atomic quad word support.
27955 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
27956 options printed with -mdebug=reg.
27958 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
27959 -mquad-memory-atomic as the test for whether we have quad word
27960 atomic instructions.
27961 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
27962 or -mp8-vector are used, allow byte/half-word atomic operations.
27964 * config/rs6000/sync.md (load_lockedti): Insure that the address
27965 is a proper indexed or indirect address for the lqarx instruction.
27966 On little endian systems, swap the hi/lo registers after the lqarx
27968 (load_lockedpti): Use indexed_or_indirect_operand predicate to
27969 insure the address is valid for the lqarx instruction.
27970 (store_conditionalti): Insure that the address is a proper indexed
27971 or indirect address for the stqcrx. instruction. On little endian
27972 systems, swap the hi/lo registers before doing the stqcrx.
27974 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
27975 insure the address is valid for the stqcrx. instruction.
27977 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27978 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
27979 type of quad memory support is available.
27981 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
27983 PR regression/59915
27984 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
27985 there is a danger of looping.
27987 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
27989 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27990 force flag_ira_loop_pressure if set via command line.
27992 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
27994 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
27995 (ashr_simd): New builtin handling DI mode.
27996 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
27997 (aarch64_sshr_simddi): New match pattern.
27998 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
27999 (vshrd_n_s64): Likewise.
28000 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28002 2014-01-23 Nick Clifton <nickc@redhat.com>
28004 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28005 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28006 favour of mcu specific scripts.
28007 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28010 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28011 Alex Velenko <Alex.Velenko@arm.com>
28013 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28014 (vaddv_s16): Likewise.
28015 (vaddv_s32): Likewise.
28016 (vaddv_u8): Likewise.
28017 (vaddv_u16): Likewise.
28018 (vaddv_u32): Likewise.
28019 (vaddvq_s8): Likewise.
28020 (vaddvq_s16): Likewise.
28021 (vaddvq_s32): Likewise.
28022 (vaddvq_s64): Likewise.
28023 (vaddvq_u8): Likewise.
28024 (vaddvq_u16): Likewise.
28025 (vaddvq_u32): Likewise.
28026 (vaddvq_u64): Likewise.
28027 (vaddv_f32): Likewise.
28028 (vaddvq_f32): Likewise.
28029 (vaddvq_f64): Likewise.
28030 (vmaxv_f32): Likewise.
28031 (vmaxv_s8): Likewise.
28032 (vmaxv_s16): Likewise.
28033 (vmaxv_s32): Likewise.
28034 (vmaxv_u8): Likewise.
28035 (vmaxv_u16): Likewise.
28036 (vmaxv_u32): Likewise.
28037 (vmaxvq_f32): Likewise.
28038 (vmaxvq_f64): Likewise.
28039 (vmaxvq_s8): Likewise.
28040 (vmaxvq_s16): Likewise.
28041 (vmaxvq_s32): Likewise.
28042 (vmaxvq_u8): Likewise.
28043 (vmaxvq_u16): Likewise.
28044 (vmaxvq_u32): Likewise.
28045 (vmaxnmv_f32): Likewise.
28046 (vmaxnmvq_f32): Likewise.
28047 (vmaxnmvq_f64): Likewise.
28048 (vminv_f32): Likewise.
28049 (vminv_s8): Likewise.
28050 (vminv_s16): Likewise.
28051 (vminv_s32): Likewise.
28052 (vminv_u8): Likewise.
28053 (vminv_u16): Likewise.
28054 (vminv_u32): Likewise.
28055 (vminvq_f32): Likewise.
28056 (vminvq_f64): Likewise.
28057 (vminvq_s8): Likewise.
28058 (vminvq_s16): Likewise.
28059 (vminvq_s32): Likewise.
28060 (vminvq_u8): Likewise.
28061 (vminvq_u16): Likewise.
28062 (vminvq_u32): Likewise.
28063 (vminnmv_f32): Likewise.
28064 (vminnmvq_f32): Likewise.
28065 (vminnmvq_f64): Likewise.
28067 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28069 * config/aarch64/aarch64-simd.md
28070 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28071 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28072 (*aarch64_mul3_elt<mode>): Likewise.
28073 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28074 (*aarch64_mul3_elt_to_64v2df): Likewise.
28075 (*aarch64_mla_elt<mode>): Likewise.
28076 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28077 (*aarch64_mls_elt<mode>): Likewise.
28078 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28079 (*aarch64_fma4_elt<mode>): Likewise.
28080 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28081 (*aarch64_fma4_elt_to_64v2df): Likewise.
28082 (*aarch64_fnma4_elt<mode>): Likewise.
28083 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28084 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28085 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28086 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28087 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28088 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28089 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28090 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28091 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28093 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28095 * config/aarch64/aarch64-simd.md
28096 (aarch64_be_checked_get_lane<mode>): New define_expand.
28097 * config/aarch64/aarch64-simd-builtins.def
28098 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28099 New builtin definition.
28100 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28101 Use new safe be builtin.
28103 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28105 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28107 (aarch64_be_st1<mode>): Likewise.
28108 (aarch_ld1<VALL:mode>): Define_expand modified.
28109 (aarch_st1<VALL:mode>): Likewise.
28110 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28111 (UNSPEC_ST1): Likewise.
28113 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28115 * config/microblaze/microblaze.md: Add trap insn and attribute
28117 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28119 PR preprocessor/58580
28120 * input.h (location_get_source_line): Take an additional line_size
28122 (void diagnostics_file_cache_fini): Declare new function.
28123 * input.c (struct fcache): New type.
28124 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28125 New static constants.
28126 (diagnostic_file_cache_init, total_lines_num)
28127 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28128 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28129 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28130 (get_next_line, read_next_line, goto_next_line, read_line_num):
28131 New static function definitions.
28132 (diagnostic_file_cache_fini): New function.
28133 (location_get_source_line): Take an additional output line_len
28134 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28136 * diagnostic.c (diagnostic_finish): Call
28137 diagnostic_file_cache_fini.
28138 (adjust_line): Take an additional input parameter for the length
28139 of the line, rather than calculating it with strlen.
28140 (diagnostic_show_locus): Adjust the use of
28141 location_get_source_line and adjust_line with respect to their new
28142 signature. While displaying a line now, do not stop at the first
28143 null byte. Rather, display the zero byte as a space and keep
28144 going until we reach the size of the line.
28145 * Makefile.in: Add vec.o to OBJS-libcommon
28147 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28148 Ilya Tocar <ilya.tocar@intel.com>
28150 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28151 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28152 (__builtin_ia32_kmov16): Ditto.
28153 * config/i386/i386.md (UNSPEC_KMOV): New.
28156 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28158 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28159 (_mm512_storeu_si512): Ditto.
28161 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28164 * rtl.h (get_referenced_operands): Declare.
28165 * recog.c (get_referenced_operands): New function.
28166 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28167 operands have been referenced when recording LO_SUM references.
28169 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28171 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28173 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28175 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28176 Enable for generic and recent AMD targets.
28178 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28180 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28181 ARG_SIZE note when adjustment was eliminated.
28183 2014-01-22 Jeff Law <law@redhat.com>
28185 PR tree-optimization/59597
28186 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28187 in file. Accept new argument REGISTERING and use it to modify
28188 dump output appropriately.
28189 (register_jump_thread): Corresponding changes.
28190 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28191 thread paths involving joiner blocks. Add code to dump cancelled
28192 jump threading paths.
28194 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28196 PR rtl-optimization/59477
28197 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28198 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28200 2014-01-22 Tom Tromey <tromey@redhat.com>
28202 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28204 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28206 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28208 PR rtl-optimization/59896
28209 * lra-constraints.c (process_alt_operands): Check unused note for
28210 matched operands of insn with no output reloads.
28212 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
28214 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
28215 (mips_move_from_gpr_cost): Likewise.
28217 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28219 PR rtl-optimization/59858
28220 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
28221 ira_class_hard_regs_num.
28222 (process_alt_operands): Increase reject for dying matched operand.
28224 2014-01-21 Jakub Jelinek <jakub@redhat.com>
28227 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
28228 smaller than size, perform several stores or loads and stores
28229 at dst + count - size to store or copy all of size bytes, rather
28230 than just last modesize bytes.
28232 2014-01-20 DJ Delorie <dj@redhat.com>
28234 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
28235 that CLOBBERs are REGs before propogating their values.
28237 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
28239 PR middle-end/59789
28240 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
28241 (cgraph_inline_failed_type): New function.
28242 * cgraph.h (DEFCIFCODE): Add type.
28243 (cgraph_inline_failed_type_t): New enum.
28244 (cgraph_inline_failed_type): New prototype.
28245 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
28246 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28247 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
28248 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
28249 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
28250 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
28251 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
28252 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
28253 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
28254 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
28255 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
28256 OPTIMIZATION_MISMATCH.
28257 * tree-inline.c (expand_call_inline): Emit errors during
28258 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
28260 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28263 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
28264 mode attribute in insn output.
28266 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
28268 * output.h (output_constant): Delete.
28269 * varasm.c (output_constant): Make private.
28271 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
28273 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
28275 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28277 PR middle-end/59860
28278 * tree.h (fold_builtin_strcat): New prototype.
28279 * builtins.c (fold_builtin_strcat): No longer static. Add len
28280 argument, if non-NULL, don't call c_strlen. Optimize
28281 directly into __builtin_memcpy instead of __builtin_strcpy.
28282 (fold_builtin_2): Adjust fold_builtin_strcat caller.
28283 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
28285 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28287 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28288 for SImode_address_operand operands, having only a REG argument.
28290 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
28292 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
28293 loader name using mbig-endian.
28294 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
28296 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28298 * doc/invoke.texi (-march): Clarify documentation for AArch64.
28299 (-mtune): Likewise.
28302 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
28304 * config/aarch64/aarch64-protos.h
28305 (aarch64_cannot_change_mode_class_ptr): Declare.
28306 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
28307 aarch64_cannot_change_mode_class_ptr): New.
28308 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
28309 backend hook aarch64_cannot_change_mode_class.
28311 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28313 * common/config/aarch64/aarch64-common.c
28314 (aarch64_handle_option): Don't handle any option order logic here.
28315 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
28316 selected_cpu, warn on architecture version mismatch.
28317 (aarch64_override_options): Fix parsing order for option strings.
28319 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28320 Iain Sandoe <iain@codesourcery.com>
28323 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
28324 warning. Amend comment to reflect current functionality.
28326 2014-01-20 Richard Biener <rguenther@suse.de>
28328 PR middle-end/59860
28329 * builtins.c (fold_builtin_strcat): Remove case better handled
28330 by tree-ssa-strlen.c.
28332 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
28334 * config/aarch64/aarch64.opt
28335 (mcpu, march, mtune): Make case-insensitive.
28337 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28340 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28341 if operands[1] is a REG or ZERO_EXTEND of a REG.
28343 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
28345 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
28347 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
28349 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
28350 long non-pic millicode calls.
28352 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28354 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
28356 2014-01-19 Kito Cheng <kito@0xlab.org>
28358 * builtins.c (expand_movstr): Check movstr expand done or fail.
28360 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28361 H.J. Lu <hongjiu.lu@intel.com>
28364 * config/i386/i386.md (*lea<mode>): Zero-extend return register
28365 to DImode for zero-extended addresses.
28367 2014-01-19 Jakub Jelinek <jakub@redhat.com>
28369 PR rtl-optimization/57763
28370 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
28371 on the new indirect jump_insn and increment LABEL_NUSES (label).
28373 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
28377 * config.gcc (x86_archs): New variable.
28378 (x86_64_archs): Likewise.
28379 (x86_cpus): Likewise.
28380 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
28381 --with-arch/--with-cpu= options.
28382 Support --with-arch=/--with-cpu={nehalem,westmere,
28383 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
28385 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28387 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
28388 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
28390 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28392 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
28394 2014-01-18 Jakub Jelinek <jakub@redhat.com>
28397 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
28398 clear cpp_get_options (parse_in)->warn_unused_macros for
28399 ix86_target_macros_internal with cpp_define.
28401 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
28403 * jump.c (delete_related_insns): Keep (use (insn))s.
28404 * reorg.c (redundant_insn): Check for barriers too.
28406 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28408 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
28410 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
28412 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
28413 call to $$dyncall when TARGET_LONG_CALLS is true.
28415 2014-01-17 Jeff Law <law@redhat.com>
28417 * ree.c (combine_set_extension): Temporarily disable test for
28418 changing number of hard registers.
28420 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28422 PR middle-end/58125
28423 * ipa-inline-analysis.c (inline_free_summary):
28424 Do not free summary of aliases.
28426 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28428 PR middle-end/59706
28429 * gimplify.c (gimplify_expr): Use create_tmp_var
28430 instead of create_tmp_var_raw. If cond doesn't have
28431 integral type, don't add the IFN_ANNOTATE builtin at all.
28433 2014-01-17 Martin Jambor <mjambor@suse.cz>
28436 * ipa-cp.c (prev_edge_clone): New variable.
28437 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
28438 Also resize prev_edge_clone vector.
28439 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
28440 (ipcp_edge_removal_hook): New function.
28441 (ipcp_driver): Register ipcp_edge_removal_hook.
28443 2014-01-17 Andrew Pinski <apinski@cavium.com>
28444 Steve Ellcey <sellcey@mips.com>
28447 * config/mips/mips.c (mips_print_operand): Check operand mode instead
28450 2014-01-17 Jeff Law <law@redhat.com>
28452 PR middle-end/57904
28453 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
28454 so that pass_ccp runs first.
28456 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28458 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
28459 (ix86_adjust_cost): Use !TARGET_XXX.
28460 (do_reorder_for_imul): Likewise.
28461 (swap_top_of_ready_list): Likewise.
28462 (ix86_sched_reorder): Likewise.
28464 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28466 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28467 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
28468 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
28469 (intel_memset): New. Duplicate slm_memset.
28470 (intel_cost): New. Duplicate slm_cost.
28471 (m_INTEL): New macro.
28472 (processor_target_table): Add "intel".
28473 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
28474 with PROCESSOR_INTEL for "intel".
28475 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
28476 PROCESSOR_SILVERMONT.
28477 (ix86_issue_rate): Likewise.
28478 (ix86_adjust_cost): Likewise.
28479 (ia32_multipass_dfa_lookahead): Likewise.
28480 (swap_top_of_ready_list): Likewise.
28481 (ix86_sched_reorder): Likewise.
28482 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
28483 instead of TARGET_OPT_AGU.
28484 * config/i386/i386.h (TARGET_INTEL): New.
28485 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28486 (processor_type): Add PROCESSOR_INTEL.
28487 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28488 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28490 2014-01-17 Marek Polacek <polacek@redhat.com>
28493 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28496 2014-01-17 Richard Biener <rguenther@suse.de>
28498 PR tree-optimization/46590
28499 * opts.c (default_options_table): Add entries for
28500 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28501 all enabled at -O1 but not for -Og.
28502 * common.opt (fbranch-count-reg): Remove Init(1).
28503 (fmove-loop-invariants): Likewise.
28504 (ftree-pta): Likewise.
28506 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28508 * config/i386/i386.c (ix86_data_alignment): For compatibility with
28509 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28510 decls to at least the GCC 4.8 used alignments.
28513 * tree-nested.c (convert_nonlocal_reference_stmt,
28514 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28515 of GIMPLE_BIND stmts, adjust associated decls.
28517 2014-01-17 Richard Biener <rguenther@suse.de>
28519 PR tree-optimization/46590
28520 * vec.h (vec<>::bseach): New member function implementing
28521 binary search according to C89 bsearch.
28522 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28523 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28524 bitmap pointer again. Make accesses_in_loop a flat array.
28525 (mem_ref_obstack): New global.
28526 (outermost_indep_loop): Adjust for mem_ref->stored changes.
28527 (mark_ref_stored): Likewise.
28528 (ref_indep_loop_p_2): Likewise.
28529 (set_ref_stored_in_loop): New helper function.
28530 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28531 (memref_free): Adjust.
28532 (record_mem_ref_loc): Simplify.
28533 (gather_mem_refs_stmt): Adjust.
28534 (sort_locs_in_loop_postorder_cmp): New function.
28535 (analyze_memory_references): Sort accesses_in_loop after
28536 loop postorder number.
28537 (find_ref_loc_in_loop_cmp): New function.
28538 (for_all_locs_in_loop): Find relevant cluster of locs in
28539 accesses_in_loop and iterate without recursion.
28540 (execute_sm): Avoid uninit warning.
28541 (struct ref_always_accessed): Simplify.
28542 (ref_always_accessed::operator ()): Likewise.
28543 (ref_always_accessed_p): Likewise.
28544 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28545 loop postorder numbers here.
28546 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28549 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28552 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28553 on decls for which assemble_alias has been called.
28555 2014-01-17 Nick Clifton <nickc@redhat.com>
28557 * config/msp430/msp430.opt: (mcpu): New option.
28558 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28559 (msp430_option_override): Parse target_cpu. If the MCU name
28560 matches a generic string, clear target_mcu.
28561 (msp430_attr): Allow numeric interrupt values up to 63.
28562 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28563 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28565 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28567 * config/msp430/msp430.md (popm): Use %J rather than %I.
28568 (addsi3): Use msp430_nonimmediate_operand for operand 2.
28569 (addhi_cy_i): Use immediate_operand for operand 2.
28570 * doc/invoke.texi: Document -mcpu option.
28572 2014-01-17 Richard Biener <rguenther@suse.de>
28574 PR rtl-optimization/38518
28575 * df.h (df_analyze_loop): Declare.
28576 * df-core.c: Include cfgloop.h.
28577 (df_analyze_1): Split out main part of df_analyze.
28578 (df_analyze): Adjust.
28579 (loop_inverted_post_order_compute): New function.
28580 (loop_post_order_compute): Likewise.
28581 (df_analyze_loop): New function avoiding whole-function
28582 postorder computes.
28583 * loop-invariant.c (find_defs): Use df_analyze_loop.
28584 (find_invariants): Adjust.
28585 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28587 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
28589 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28590 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28592 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28594 * ipa-ref.c (ipa_remove_stmt_references): Fix references
28595 traversal when removing references.
28597 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
28600 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28602 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
28604 PR middle-end/56791
28605 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28606 pushing a reload for an autoinc when we had previously reloaded an
28607 inner part of the address.
28609 2014-01-16 Jakub Jelinek <jakub@redhat.com>
28611 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28613 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28614 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28615 when not giving up or versioning for alias only because of
28617 (vect_analyze_data_ref_dependences): Set to true.
28618 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28620 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28621 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28624 PR middle-end/58344
28625 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28628 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28629 operand 0 predicate for gathers, use a new pseudo as subtarget.
28631 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28633 PR middle-end/59609
28634 * lra-constraints.c (process_alt_operands): Add printing debug info.
28635 Check absence of input/output reloads for matched operands too.
28637 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28639 PR rtl-optimization/59835
28640 * ira.c (ira_init_register_move_cost): Increase cost for
28643 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
28645 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28647 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
28650 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28651 non-register objects. Use gen_(high/low)part more consistently.
28654 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
28657 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28658 endian support, remove tests for WORDS_BIG_ENDIAN.
28659 (p8_mfvsrd_3_<mode>): Likewise.
28660 (reload_gpr_from_vsx<mode>): Likewise.
28661 (reload_gpr_from_vsxsf): Likewise.
28662 (p8_mfvsrd_4_disf): Likewise.
28664 2014-01-16 Richard Biener <rguenther@suse.de>
28666 PR rtl-optimization/46590
28667 * lcm.c (compute_antinout_edge): Use postorder iteration.
28668 (compute_laterin): Use inverted postorder iteration.
28670 2014-01-16 Nick Clifton <nickc@redhat.com>
28672 PR middle-end/28865
28673 * varasm.c (output_constant): Return the number of bytes actually
28675 (output_constructor_array_range): Update the field size with the
28676 number of bytes emitted by output_constant.
28677 (output_constructor_regular_field): Likewise. Also do not
28678 complain if the total number of bytes emitted is now greater
28679 than the expected fieldpos.
28680 * output.h (output_constant): Update prototype and descriptive comment.
28682 2014-01-16 Marek Polacek <polacek@redhat.com>
28684 PR middle-end/59827
28685 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28686 it is error_mark_node.
28688 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
28690 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28691 VALID_AVX256_REG_OR_OI_MODE.
28693 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
28695 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28696 current procedure should be profiled.
28698 2014-01-15 Andrew Pinski <apinski@cavium.com>
28700 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28701 of moving from/to the STACK_REG register class.
28703 2014-01-15 Richard Henderson <rth@redhat.com>
28706 * reginfo.c (global_regs_decl): Globalize.
28707 * rtl.h (global_regs_decl): Declare.
28708 * ira.c (do_reload): Diagnose frame_pointer_needed and it
28709 reserved via global_regs.
28711 2014-01-15 Teresa Johnson <tejohnson@google.com>
28713 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28715 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
28717 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28718 and vmulosh rather than call gen_vec_widen_smult_*.
28719 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28720 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28721 (vec_widen_smult_even_v16qi): Likewise.
28722 (vec_widen_umult_even_v8hi): Likewise.
28723 (vec_widen_smult_even_v8hi): Likewise.
28724 (vec_widen_umult_odd_v16qi): Likewise.
28725 (vec_widen_smult_odd_v16qi): Likewise.
28726 (vec_widen_umult_odd_v8hi): Likewise.
28727 (vec_widen_smult_odd_v8hi): Likewise.
28728 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28729 vmuloub rather than call gen_vec_widen_umult_*.
28730 (vec_widen_umult_lo_v16qi): Likewise.
28731 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28732 vmulosb rather than call gen_vec_widen_smult_*.
28733 (vec_widen_smult_lo_v16qi): Likewise.
28734 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28735 rather than call gen_vec_widen_umult_*.
28736 (vec_widen_umult_lo_v8hi): Likewise.
28737 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28738 rather than call gen_vec_widen_smult_*.
28739 (vec_widen_smult_lo_v8hi): Likewise.
28741 2014-01-15 Jeff Law <law@redhat.com>
28743 PR tree-optimization/59747
28744 * ree.c (find_and_remove_re): Properly handle case where a second
28745 eliminated extension requires widening a copy created for elimination
28746 of a prior extension.
28747 (combine_set_extension): Ensure that the number of hard regs needed
28748 for a destination register does not change when we widen it.
28750 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
28752 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28753 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28754 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28755 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28756 (avr-*-rtems*): Likewise.
28757 (bfin*-rtems*): Likewise.
28758 (moxie-*-rtems*): Likewise.
28759 (h8300-*-rtems*): Likewise.
28760 (i[34567]86-*-rtems*): Likewise.
28761 (lm32-*-rtems*): Likewise.
28762 (m32r-*-rtems*): Likewise.
28763 (m68k-*-rtems*): Likewise.
28764 (microblaze*-*-rtems*): Likewise.
28765 (mips*-*-rtems*): Likewise.
28766 (powerpc-*-rtems*): Likewise.
28767 (sh-*-rtems*): Likewise.
28768 (sparc-*-rtems*): Likewise.
28769 (sparc64-*-rtems*): Likewise.
28770 (v850-*-rtems*): Likewise.
28771 (m32c-*-rtems*): Likewise.
28773 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
28775 PR rtl-optimization/59511
28776 * ira.c (ira_init_register_move_cost): Use memory costs for some
28777 cases of register move cost calculations.
28778 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28779 instead of BB frequency.
28780 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28781 * lra-assigns.c (find_hard_regno_for): Ditto.
28783 2014-01-15 Richard Biener <rguenther@suse.de>
28785 PR tree-optimization/59822
28786 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28787 (vectorizable_load): Use it to hoist defs of uses of invariant
28788 loads out of the loop.
28790 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
28791 Kugan Vivekanandarajah <kuganv@linaro.org>
28794 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28797 2014-01-15 Richard Biener <rguenther@suse.de>
28799 PR rtl-optimization/59802
28800 * lcm.c (compute_available): Use inverted postorder to seed
28801 the initial worklist.
28803 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28806 * config/s390/s390.c (s390_preferred_reload_class): Don't return
28807 ADDR_REGS for invalid symrefs in non-PIC code.
28809 2014-01-15 Jakub Jelinek <jakub@redhat.com>
28812 * builtins.c (determine_block_size): Initialize *probable_max_size
28813 even if len_rtx is CONST_INT.
28815 2014-01-14 Andrew Pinski <apinski@cavium.com>
28817 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28818 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28819 (cortexa53_tunings): Likewise.
28820 (aarch64_sched_issue_rate): New function.
28821 (TARGET_SCHED_ISSUE_RATE): Define.
28823 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28825 * ira-costs.c (find_costs_and_classes): Add missed
28826 ira_init_register_move_cost_if_necessary.
28828 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28831 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28833 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
28836 * config/i386/i386.c (type_natural_mode): Add a bool parameter
28837 to indicate if type is used for function return value. Warn ABI
28838 change if the vector mode isn't available for function return value.
28839 (ix86_function_arg_advance): Pass false to type_natural_mode.
28840 (ix86_function_arg): Likewise.
28841 (ix86_gimplify_va_arg): Likewise.
28842 (function_arg_32): Don't warn ABI change.
28843 (ix86_function_value): Pass true to type_natural_mode.
28844 (ix86_return_in_memory): Likewise.
28845 (ix86_struct_value_rtx): Removed.
28846 (TARGET_STRUCT_VALUE_RTX): Likewise.
28848 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28850 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
28851 converting a conditional jump into a conditional return.
28853 2014-01-14 Richard Biener <rguenther@suse.de>
28855 PR tree-optimization/58921
28856 PR tree-optimization/59006
28857 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
28858 hoisting invariant stmts.
28859 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
28860 invariant loads on the preheader edge if possible.
28862 2014-01-14 Joey Ye <joey.ye@arm.com>
28864 * doc/plugin.texi (Building GCC plugins): Update to C++.
28866 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
28868 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
28869 (_mm_rcp28_round_ss): Ditto.
28870 (_mm_rsqrt28_round_sd): Ditto.
28871 (_mm_rsqrt28_round_ss): Ditto.
28872 (_mm_rcp28_sd): Ditto.
28873 (_mm_rcp28_ss): Ditto.
28874 (_mm_rsqrt28_sd): Ditto.
28875 (_mm_rsqrt28_ss): Ditto.
28876 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
28877 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
28878 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
28879 (IX86_BUILTIN_RCP28SD): Ditto.
28880 (IX86_BUILTIN_RCP28SS): Ditto.
28881 (IX86_BUILTIN_RSQRT28SD): Ditto.
28882 (IX86_BUILTIN_RSQRT28SS): Ditto.
28883 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
28884 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
28885 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
28886 (ix86_expand_special_args_builtin): Expand new FTYPE.
28887 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
28888 (srcp14<mode>): Make insn unary.
28889 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
28890 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
28891 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
28892 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
28893 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
28894 Fix rounding: make it SAE only.
28895 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28897 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28899 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
28900 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
28901 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
28902 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
28903 (round_saeonly_mask_scalar_operand4): Ditto.
28904 (round_saeonly_mask_scalar_op3): Ditto.
28905 (round_saeonly_mask_scalar_op4): Ditto.
28907 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28909 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28910 Implement -maltivec=be for vec_insert and vec_extract.
28912 2014-01-10 DJ Delorie <dj@redhat.com>
28914 * config/msp430/msp430.md (call_internal): Don't allow memory
28915 references with SP as the base register.
28916 (call_value_internal): Likewise.
28917 * config/msp430/constraints.md (Yc): New. For memory references
28918 that don't use SP as a base register.
28920 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
28921 "an integer without a # prefix"
28922 * config/msp430/msp430.md (epilogue_helper): Use it.
28924 2014-01-13 Jakub Jelinek <jakub@redhat.com>
28927 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
28928 AVX512F gather builtins.
28929 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
28930 on gather decls with INTEGER_TYPE masktype.
28931 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
28932 directly into the builtin rather than hoisting it before loop.
28934 PR tree-optimization/59387
28935 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
28936 (scev_const_prop): If folded_casts and type has undefined overflow,
28937 use force_gimple_operand instead of force_gimple_operand_gsi and
28938 for each added stmt if it is assign with
28939 arith_code_with_undefined_signed_overflow, call
28940 rewrite_to_defined_overflow.
28941 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
28942 gimple-fold.h instead.
28943 (arith_code_with_undefined_signed_overflow,
28944 rewrite_to_defined_overflow): Moved to ...
28945 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
28946 rewrite_to_defined_overflow): ... here. No longer static.
28947 Include gimplify-me.h.
28948 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
28949 rewrite_to_defined_overflow): New prototypes.
28951 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28953 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
28955 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
28957 * builtins.c (get_object_alignment_2): Minor tweak.
28958 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
28960 2014-01-13 Christian Bruel <christian.bruel@st.com>
28962 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
28963 optimized non constant lengths.
28965 2014-01-13 Jakub Jelinek <jakub@redhat.com>
28968 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
28969 load as __atomic_load_N if possible.
28971 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
28973 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
28975 (rs6000_expand_builtin): Adjust call.
28977 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
28980 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
28981 * config/rs6000/rs6000.c: Include target-globals.h.
28982 (rs6000_set_current_function): Instead of doing target_reinit
28983 unconditionally, use save_target_globals_default_opts and
28984 restore_target_globals.
28986 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
28988 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
28989 (rs6000_expand_builtin): Handle mffs and mtfsf.
28990 (rs6000_init_builtins): Define mffs and mtfsf.
28991 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
28992 (rs6000_mffs): New pattern.
28993 (rs6000_mtfsf): New pattern.
28995 2014-01-11 Bin Cheng <bin.cheng@arm.com>
28997 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
28998 Start narrowing with START. Apply candidate-use pair
28999 and check overall cost in narrowing.
29000 (iv_ca_prune): Pass new argument.
29002 2014-01-10 Jeff Law <law@redhat.com>
29004 PR middle-end/59743
29005 * ree.c (combine_reaching_defs): Ensure the defining statement
29006 occurs before the extension when optimizing extensions with
29007 different source and destination hard registers.
29009 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29012 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29013 vtables into the type inheritance graph.
29015 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29017 PR rtl-optimization/59754
29018 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29019 modes in the REGNO != REGNO case.
29021 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29023 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29025 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29027 PR tree-optimization/59745
29028 * tree-predcom.c (tree_predictive_commoning_loop): Call
29029 free_affine_expand_cache if giving up because components is NULL.
29031 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29032 GC in payload of target_globals struct instead of allocating them on
29033 the heap and the larger structs separately using GC.
29034 * target-globals.h (struct target_globals): Make regs, hard_regs,
29035 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29036 of GTY((skip)) and change type to void *.
29037 (reset_target_globals): Cast loads from those fields to corresponding
29040 2014-01-10 Steve Ellcey <sellcey@mips.com>
29043 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29044 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29045 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29047 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29050 * aarch64-modes.def (CC_Zmode): New flags mode.
29051 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29052 represents an equality.
29053 (aarch64_get_condition_code): Handle CC_Zmode.
29054 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29056 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29058 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29059 extraction in good case.
29061 2014-01-10 Richard Biener <rguenther@suse.de>
29063 PR tree-optimization/59374
29064 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29065 checking after SLP discovery. Mark stmts not participating
29066 in any SLP instance properly.
29068 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29070 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29071 when handling a SET rtx.
29073 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29075 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29076 (cortex-a57): Likewise.
29077 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29079 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29081 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29082 non-iwmmxt builtins.
29084 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29088 * ipa-devirt.c record_target_from_binfo): Take as argument
29089 stack of binfos and lookup matching one for virtual inheritance.
29090 (possible_polymorphic_call_targets_1): Update.
29092 2014-01-10 Huacai Chen <chenhc@lemote.com>
29094 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29095 kernel strings for Loongson-2E/2F/3A.
29097 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29099 PR middle-end/59670
29100 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29101 is_gimple_call before calling gimple_call_internal_p.
29103 2014-01-09 Steve Ellcey <sellcey@mips.com>
29105 * Makefile.in (TREE_FLOW_H): Remove.
29106 (TREE_SSA_H): Add file names from tree-flow.h.
29107 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29108 * tree.h: Remove tree-flow.h reference.
29109 * hash-table.h: Remove tree-flow.h reference.
29110 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29111 reference with tree-ssa-loop.h.
29113 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29115 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29116 default element-order behavior for -maltivec.
29117 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29118 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29119 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29120 when targeting big endian, at least for now.
29121 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29123 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29125 PR middle-end/47735
29126 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29127 var satisfies use_register_for_decl, just take into account type
29128 alignment, rather than decl alignment.
29130 PR tree-optimization/59622
29131 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29132 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29133 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29134 Don't devirtualize for inplace at all. For targets.length () == 1,
29135 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29137 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29139 * config/i386/i386.md (cpu): Remove the unused btver1.
29141 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29143 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29145 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29148 * tree-core.h (struct target_globals): New forward declaration.
29149 (struct tree_target_option): Add globals field.
29150 * tree.h (TREE_TARGET_GLOBALS): Define.
29151 (prepare_target_option_nodes_for_pch): New prototype.
29152 * target-globals.h (struct target_globals): Define even if
29153 !SWITCHABLE_TARGET.
29154 * tree.c (prepare_target_option_node_for_pch,
29155 prepare_target_option_nodes_for_pch): New functions.
29156 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29157 * config/i386/i386.c: Include target-globals.h.
29158 (ix86_set_current_function): Instead of doing target_reinit
29159 unconditionally, use save_target_globals_default_opts and
29160 restore_target_globals.
29162 2014-01-09 Richard Biener <rguenther@suse.de>
29164 PR tree-optimization/59715
29165 * tree-cfg.h (split_critical_edges): Declare.
29166 * tree-cfg.c (split_critical_edges): Export.
29167 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29169 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29171 * cfgexpand.c (expand_stack_vars): Optionally disable
29172 asan stack protection.
29173 (expand_used_vars): Likewise.
29174 (partition_stack_vars): Likewise.
29175 * asan.c (asan_emit_stack_protection): Optionally disable
29176 after return stack usage.
29177 (instrument_derefs): Optionally disable memory access instrumentation.
29178 (instrument_builtin_call): Likewise.
29179 (instrument_strlen_call): Likewise.
29180 (asan_protect_global): Optionally disable global variables protection.
29181 * doc/invoke.texi: Added doc for new options.
29182 * params.def: Added new options.
29183 * params.h: Likewise.
29185 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29187 PR rtl-optimization/59724
29188 * ifcvt.c (cond_exec_process_if_block): Don't call
29189 flow_find_head_matching_sequence with 0 longest_match.
29190 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29191 non-active insns if !stop_after.
29192 (try_head_merge_bb): Revert 2014-01-07 changes.
29194 2014-01-08 Jeff Law <law@redhat.com>
29196 * ree.c (get_sub_rtx): New function, extracted from...
29197 (merge_def_and_ext): Here.
29198 (combine_reaching_defs): Use get_sub_rtx.
29200 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29202 * cgraph.h (varpool_variable_node): Do not choke on null node.
29204 2014-01-08 Catherine Moore <clm@codesourcery.com>
29206 * config/mips/mips.md (simple_return): Attempt to use JRC
29208 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
29210 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29212 PR rtl-optimization/59137
29213 * reorg.c (steal_delay_list_from_target): Call update_block for
29215 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
29217 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29219 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
29220 two duplicate entries.
29222 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29225 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
29227 * config/mips/mips.c (mips_truncated_op_cost): New function.
29228 (mips_rtx_costs): Adjust test for BADDU.
29229 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
29231 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
29233 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
29234 (*baddu_si): ...this new pattern.
29236 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29239 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
29241 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
29243 PR middle-end/57748
29244 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
29246 (expand_expr, expand_normal): Adjust.
29247 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
29248 inner_reference_p. Use inner_reference_p to expand inner references.
29249 (store_expr): Adjust.
29250 * cfgexpand.c (expand_call_stmt): Adjust.
29252 2014-01-08 Rong Xu <xur@google.com>
29254 * gcov-io.c (gcov_var): Move from gcov-io.h.
29255 (gcov_position): Ditto.
29256 (gcov_is_error): Ditto.
29257 (gcov_rewrite): Ditto.
29258 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
29259 only part to libgcc/libgcov.h.
29261 2014-01-08 Marek Polacek <polacek@redhat.com>
29263 PR middle-end/59669
29264 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
29266 2014-01-08 Marek Polacek <polacek@redhat.com>
29269 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
29271 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29273 PR rtl-optimization/59649
29274 * stor-layout.c (get_mode_bounds): For BImode return
29275 0 and STORE_FLAG_VALUE.
29277 2014-01-08 Richard Biener <rguenther@suse.de>
29279 PR middle-end/59630
29280 * gimple.h (is_gimple_builtin_call): Remove.
29281 (gimple_builtin_call_types_compatible_p): New.
29282 (gimple_call_builtin_p): New overload.
29283 * gimple.c (is_gimple_builtin_call): Remove.
29284 (validate_call): Rename to ...
29285 (gimple_builtin_call_types_compatible_p): ... this and export. Also
29286 check return types.
29287 (validate_type): New static function.
29288 (gimple_call_builtin_p): New overload and adjust.
29289 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
29290 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
29291 (gimple_fold_stmt_to_constant_1): Likewise.
29292 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
29294 2014-01-08 Richard Biener <rguenther@suse.de>
29296 PR middle-end/59471
29297 * gimplify.c (gimplify_expr): Gimplify register-register type
29298 VIEW_CONVERT_EXPRs to separate stmts.
29300 2014-01-07 Jeff Law <law@redhat.com>
29302 PR middle-end/53623
29303 * ree.c (combine_set_extension): Handle case where source
29304 and destination registers in an extension insn are different.
29305 (combine_reaching_defs): Allow source and destination registers
29306 in extension to be different under limited circumstances.
29307 (add_removable_extension): Remove restriction that the
29308 source and destination registers in the extension are the same.
29309 (find_and_remove_re): Emit a copy from the extension's
29310 destination to its source after the defining insn if
29311 the source and destination registers are different.
29313 PR middle-end/59285
29314 * ifcvt.c (merge_if_block): If we are merging a block with more than
29315 one successor with a block with no successors, remove any BARRIER
29316 after the second block.
29318 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
29320 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
29322 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
29325 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
29326 for 14-bit register offsets when INT14_OK_STRICT is false.
29328 2014-01-07 Roland Stigge <stigge@antcom.de>
29329 Michael Meissner <meissner@linux.vnet.ibm.com>
29332 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
29333 Only check TFmode for SPE constants. Don't check TImode or TDmode.
29335 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
29337 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
29340 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
29342 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
29343 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
29344 rtx is const0_rtx or not.
29346 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
29349 * target-globals.c (save_target_globals): Remove this_fn_optab
29351 * toplev.c: Include optabs.h.
29352 (target_reinit): Temporarily restore the global options if another
29353 set of options are in force.
29355 2014-01-07 Jakub Jelinek <jakub@redhat.com>
29357 PR rtl-optimization/58668
29358 * cfgcleanup.c (flow_find_cross_jump): Don't count
29359 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
29360 to determine what is counted.
29361 (flow_find_head_matching_sequence): Use active_insn_p to determine
29363 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
29365 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
29366 determine what is counted.
29368 PR tree-optimization/59643
29369 * tree-predcom.c (split_data_refs_to_components): If one dr is
29370 read and one write, determine_offset fails and the write isn't
29371 in the bad component, just put the read into the bad component.
29373 2014-01-07 Mike Stump <mikestump@comcast.net>
29374 Jakub Jelinek <jakub@redhat.com>
29377 * tree-core.h (struct tree_optimization_option): Change optabs
29378 type from unsigned char * to void *.
29379 * optabs.c (init_tree_optimization_optabs): Adjust
29380 TREE_OPTIMIZATION_OPTABS initialization.
29382 2014-01-06 Jakub Jelinek <jakub@redhat.com>
29385 * config/i386/i386.h (struct machine_function): Add
29386 no_drap_save_restore field.
29387 * config/i386/i386.c (ix86_save_reg): Use
29388 !cfun->machine->no_drap_save_restore instead of
29389 crtl->stack_realign_needed.
29390 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
29391 this function clears frame_pointer_needed. Set
29392 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
29393 and DRAP reg is needed.
29395 2014-01-06 Marek Polacek <polacek@redhat.com>
29398 * doc/implement-c.texi: Mention that other integer types are
29399 permitted as bit-field types in strictly conforming mode.
29401 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
29403 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
29404 is newly allocated.
29406 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
29408 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
29410 2014-01-06 Martin Jambor <mjambor@suse.cz>
29413 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
29415 * ipa-prop.c (ipa_print_node_params): Fix indentation.
29417 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
29421 * var-tracking.c (add_stores): Preserve the value of the source even if
29422 we don't record the store.
29424 2014-01-06 Terry Guo <terry.guo@arm.com>
29426 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
29428 2014-01-05 Iain Sandoe <iain@codesourcery.com>
29431 * config/darwin.c (darwin_function_section): Adjust return values to
29432 correspond to optimisation changes made in r206070.
29434 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
29436 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
29437 from prefetch_block tune setting.
29438 (nocona_cost): Correct size of prefetch block to 64.
29440 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
29442 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
29443 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
29444 used to save the static chain register in the computation of the offset
29445 from which the FP registers need to be restored.
29447 2014-01-04 Jakub Jelinek <jakub@redhat.com>
29449 PR tree-optimization/59519
29450 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
29451 ICE if get_current_def (current_new_name) is already non-NULL, as long
29452 as it is a phi result of some other phi in *new_exit_bb that has
29455 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
29456 or vmovdqu* for misaligned_operand.
29457 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29458 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
29459 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
29460 aligned_mem for AVX512F masked aligned load and store builtins and for
29461 non-temporal moves.
29463 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
29465 PR tree-optimization/59651
29466 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29467 Address range for negative step should be added by TYPE_SIZE_UNIT.
29469 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
29471 * config/m68k/m68k.c (handle_move_double): Handle pushes with
29472 overlapping registers also for registers other than the stack pointer.
29474 2014-01-03 Marek Polacek <polacek@redhat.com>
29477 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
29480 2014-01-03 Jakub Jelinek <jakub@redhat.com>
29483 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29486 * config/i386/i386.md (MODE_SIZE): New mode attribute.
29487 (push splitter): Use <P:MODE_SIZE> instead of
29488 GET_MODE_SIZE (<P:MODE>mode).
29489 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29490 (mov -1, reg peephole2): Likewise.
29491 * config/i386/sse.md (*mov<mode>_internal,
29492 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29493 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29494 *<code><mode>3, *andnot<mode>3<mask_name>,
29495 <mask_codefor><code><mode>3<mask_name>): Likewise.
29496 * config/i386/subst.md (mask_mode512bit_condition,
29497 sd_mask_mode512bit_condition): Likewise.
29499 2014-01-02 Xinliang David Li <davidxl@google.com>
29501 PR tree-optimization/59303
29502 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29503 (dump_predicates): Better output format.
29504 (pred_equal_p): New function.
29505 (is_neq_relop_p): Ditto.
29506 (is_neq_zero_form_p): Ditto.
29507 (pred_expr_equal_p): Ditto.
29508 (pred_neg_p): Ditto.
29509 (simplify_pred): Ditto.
29510 (simplify_preds_2): Ditto.
29511 (simplify_preds_3): Ditto.
29512 (simplify_preds_4): Ditto.
29513 (simplify_preds): Ditto.
29514 (push_pred): Ditto.
29515 (push_to_worklist): Ditto.
29516 (get_pred_info_from_cmp): Ditto.
29517 (is_degenerated_phi): Ditto.
29518 (normalize_one_pred_1): Ditto.
29519 (normalize_one_pred): Ditto.
29520 (normalize_one_pred_chain): Ditto.
29521 (normalize_preds): Ditto.
29522 (normalize_cond_1): Remove function.
29523 (normalize_cond): Ditto.
29524 (is_gcond_subset_of): Ditto.
29525 (is_subset_of_any): Ditto.
29526 (is_or_set_subset_of): Ditto.
29527 (is_and_set_subset_of): Ditto.
29528 (is_norm_cond_subset_of): Ditto.
29529 (pred_chain_length_cmp): Ditto.
29530 (convert_control_dep_chain_into_preds): Type change.
29531 (find_predicates): Ditto.
29532 (find_def_preds): Ditto.
29533 (destroy_predicates_vecs): Ditto.
29534 (find_matching_predicates_in_rest_chains): Ditto.
29535 (use_pred_not_overlap_with_undef_path_pred): Ditto.
29536 (is_pred_expr_subset): Ditto.
29537 (is_pred_chain_subset_of): Ditto.
29538 (is_included_in): Ditto.
29539 (is_superset_of): Ditto.
29541 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29543 Update copyright years.
29545 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29547 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29548 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29549 config/arc/arc.md, config/arc/arc.opt,
29550 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29551 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29552 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29553 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29554 config/linux-protos.h, config/linux.c, config/winnt-c.c,
29555 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29556 vtable-verify.c, vtable-verify.h: Use the standard form for the
29559 2014-01-02 Tobias Burnus <burnus@net-b.de>
29561 * gcc.c (process_command): Update copyright notice dates.
29562 * gcov-dump.c: Ditto.
29564 * doc/cpp.texi: Bump @copying's copyright year.
29565 * doc/cppinternals.texi: Ditto.
29566 * doc/gcc.texi: Ditto.
29567 * doc/gccint.texi: Ditto.
29568 * doc/gcov.texi: Ditto.
29569 * doc/install.texi: Ditto.
29570 * doc/invoke.texi: Ditto.
29572 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29574 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29576 2014-01-01 Jakub Jelinek <jakub@redhat.com>
29578 * config/i386/sse.md (*mov<mode>_internal): Guard
29579 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29581 PR rtl-optimization/59647
29582 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29583 new_rtx into UNSIGNED_FLOAT rtxes.
29585 Copyright (C) 2014 Free Software Foundation, Inc.
29587 Copying and distribution of this file, with or without modification,
29588 are permitted in any medium without royalty provided the copyright
29589 notice and this notice are preserved.