1 2014-09-09 David Malcolm <dmalcolm@redhat.com>
3 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
4 const rtx_insn *, and from rtx to rtx_insn * for the other
6 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
7 INSN_LOCATION, since we know INSN_P holds.
8 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
10 (insn_scope): Likewise.
11 (insn_location): Likewise.
13 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
14 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
15 for the result of gen_load_const_gp.
16 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
17 param from rtx to rtx_insn *.
18 * config/rs6000/rs6000.c (output_call): Likewise.
19 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
20 introducing a checked cast to rtx_sequence * and use of the insn
22 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
23 from rtx to rtx_insn *.
24 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
25 (insn_line): Likewise.
26 (insn_file): Likewise.
27 (insn_location): Likewise.
28 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
29 from rtx to rtx_insn *.
30 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
31 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
32 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
34 * reorg.c (relax_delay_slots): Strengthen locals named "after"
35 from rtx to rtx_insn *; use methods of "pat" for type-safety.
37 2014-09-09 David Malcolm <dmalcolm@redhat.com>
39 * combine.c (try_combine): Eliminate checked cast on result of
41 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
42 autogenerated one by strengthening the return type and params 2 and 3
43 from rtx to rtx_insn *, and by naming the params.
44 * gengenrtl.c (special_rtx): Add INSN to those that are
46 * rtl.h (gen_rtx_INSN): New prototype.
48 2014-09-09 David Malcolm <dmalcolm@redhat.com>
50 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
53 (update_equiv_regs): Likewise.
54 (setup_reg_equiv): Likewise. Strengthen locals "elem",
55 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
56 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
58 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
59 from rtx to rtx_insn_list *.
60 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
61 rtx_insn_list * and use methods for clarity and typesafety.
62 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
64 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
65 redundant check on INSN_P (insns): this cannot hold, as "insns" is
66 an INSN_LIST, not an insn.
67 (reverse_equiv_p): Strengthen local "insns" from rtx to
68 rtx_insn_list * and use methods for clarity and typesafety.
69 (contains_reloaded_insn_p): Likewise for local "list".
71 2014-09-09 Jiong Wang <jiong.wang@arm.com>
73 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
74 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
75 (arm_builtin_vectorized_function): Likewise.
76 * config/arm/arm_neon_builtins.def: New macro for copysignf.
77 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
79 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
81 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
82 * builtins.h (default_target_builtins): Likewise.
83 * gcse.h (default_target_gcse): Likewise.
84 * target-globals.h (target_globals): Add a destructor. Convert
85 void-pointer fields back to their real type and change from
86 GTY((atomic)) to GTY((skip)).
87 (restore_target_globals): Remove casts accordingly.
88 * target-globals.c (save_target_globals): Use XCNEW rather than
89 ggc_internal_cleared_alloc to allocate non-GC structures.
90 Use ggc_cleared_alloc to allocate the target_globals structure
92 (target_globals::~target_globals): Define.
94 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
96 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
97 mnemonic instead of fldmfdd.
98 * config/arm/arm.c (vfp_output_fstmd): Rename to...
99 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
100 Output vpush when address register is SP.
101 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
102 (vfp_output_vstmd): ... This.
103 * config/arm/vfp.md (push_multi_vfp): Update call to
106 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
108 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
110 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
112 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
113 (*sqrtdf2_vfp): Likewise.
114 (*cmpsf_vfp): Likewise.
115 (*cmpsf_trap_vfp): Likewise.
116 (*cmpdf_vfp): Likewise.
117 (*cmpdf_trap_vfp): Likewise.
119 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
121 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
122 (*truncdfsf2_vfp): Likewise.
123 (*truncsisf2_vfp): Likewise.
124 (*truncsidf2_vfp): Likewise.
125 (fixuns_truncsfsi2): Likewise.
126 (fixuns_truncdfsi2): Likewise.
127 (*floatsisf2_vfp): Likewise.
128 (*floatsidf2_vfp): Likewise.
129 (floatunssisf2): Likewise.
130 (floatunssidf2): Likewise.
132 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
134 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
135 (*muldf3_vfp): Likewise.
136 (*mulsf3negsf_vfp): Likewise.
137 (*muldf3negdf_vfp): Likewise.
138 (*mulsf3addsf_vfp): Likewise.
139 (*muldf3adddf_vfp): Likewise.
140 (*mulsf3subsf_vfp): Likewise.
141 (*muldf3subdf_vfp): Likewise.
142 (*mulsf3negsfaddsf_vfp): Likewise.
143 (*fmuldf3negdfadddf_vfp): Likewise.
144 (*mulsf3negsfsubsf_vfp): Likewise.
145 (*muldf3negdfsubdf_vfp): Likewise.
147 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
149 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
150 (*absdf2_vfp): Likewise.
151 (*negsf2_vfp): Likewise.
152 (*negdf2_vfp): Likewise.
153 (*addsf3_vfp): Likewise.
154 (*adddf3_vfp): Likewise.
155 (*subsf3_vfp): Likewise.
156 (*subdf3_vfp): Likewise.
157 (*divsf3_vfp): Likewise.
158 (*divdf3_vfp): Likewise.
160 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
162 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
164 (arm_print_operand): Don't convert real values to decimal
165 representation in default case.
166 (fp_immediate_constant): Delete.
167 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
168 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
170 (*thumb2_movsi_vfp): Likewise.
171 (*movdi_vfp): Likewise.
172 (*movdi_vfp_cortexa8): Likewise.
173 (*movhf_vfp_neon): Likewise.
174 (*movhf_vfp): Likewise.
175 (*movsf_vfp): Likewise.
176 (*thumb2_movsf_vfp): Likewise.
177 (*movdf_vfp): Likewise.
178 (*thumb2_movdf_vfp): Likewise.
179 (*movsfcc_vfp): Likewise.
180 (*thumb2_movsfcc_vfp): Likewise.
181 (*movdfcc_vfp): Likewise.
182 (*thumb2_movdfcc_vfp): Likewise.
184 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
186 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
190 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
193 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
194 Use qualifier_immediate for last operand. Rename to...
195 (aarch64_types_ternop_lane_qualifiers): ... This.
196 (TYPES_QUADOP): Rename to...
197 (TYPES_TERNOP_LANE): ... This.
198 (aarch64_simd_expand_args): Return const0_rtx when encountering user
199 error. Change return of 0 to return of NULL_RTX.
200 (aarch64_crc32_expand_builtin): Likewise.
201 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
202 ICE when expanding unknown builtin.
203 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
204 TERNOP_LANE qualifiers.
205 (sqdmlsl_lane): Likewise.
206 (sqdmlal_laneq): Likewise.
207 (sqdmlsl_laneq): Likewise.
208 (sqdmlal2_lane): Likewise.
209 (sqdmlsl2_lane): Likewise.
210 (sqdmlal2_laneq): Likewise.
211 (sqdmlsl2_laneq): Likewise.
213 2014-09-09 Nick Clifton <nickc@redhat.com>
215 * doc/invoke.texi (Optimization Options): Add missing @gol to the
217 (S/390 and zSeries Options): Remove superfluous word from the
218 description of the -mhotpatch option.
220 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
222 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
223 * ira.c: #include "shrink-wrap.h"
224 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
225 * ifcvt.c: #include "shrink-wrap.h"
226 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
228 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
230 * common/config/picochip/picochip-common.c: Remove.
231 * config.gcc: Remove support for picochip.
232 * config/picochip/constraints.md: Remove.
233 * config/picochip/dfa_space.md: Remove.
234 * config/picochip/dfa_speed.md: Remove.
235 * config/picochip/picochip-protos.h: Remove.
236 * config/picochip/picochip.c: Remove.
237 * config/picochip/picochip.h: Remove.
238 * config/picochip/picochip.md: Remove.
239 * config/picochip/picochip.opt: Remove.
240 * config/picochip/predicates.md: Remove.
241 * config/picochip/t-picochip: Remove.
242 * doc/md.texi: Don't document picochi.
244 2014-09-08 David Malcolm <dmalcolm@redhat.com>
246 * basic-block.h (control_flow_insn_p): Strengthen param from
247 const_rtx to const rtx_insn *.
248 * cfgbuild.c (control_flow_insn_p): Likewise.
250 2014-09-08 David Malcolm <dmalcolm@redhat.com>
252 * gcse.c (modify_mem_list): Strengthen this variable from
253 vec<rtx> * to vec<rtx_insn *> *.
254 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
256 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
257 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
258 (record_last_mem_set_info): Strengthen param "insn" from rtx to
260 (record_last_set_info): Likewise for local "last_set_insn".
262 2014-09-08 DJ Delorie <dj@redhat.com>
264 * doc/invoke.texi (MSP430 Options): Add -minrt.
266 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
268 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
269 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
270 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
272 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
274 (adjust_splat): New function.
275 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
276 (dump_swap_insn_table): Add case for SH_SPLAT.
278 2014-09-08 Richard Biener <rguenther@suse.de>
281 * tree-inline.c (copy_loops): The source loop header should
283 (tree_function_versioning): If loops need fixup after removing
284 unreachable blocks fix them.
285 * omp-low.c (simd_clone_adjust): Do not add incr block to
286 loop under construction.
288 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
290 * config/aarch64/aarch64-builtins.c
291 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
293 2014-09-08 Joseph Myers <joseph@codesourcery.com>
295 * config/i386/cygming.h (TF_SIZE): Remove.
296 * config/i386/darwin.h (TF_SIZE): Remove.
297 * config/i386/dragonfly.h (TF_SIZE): Remove.
298 * config/i386/freebsd.h (TF_SIZE): Remove.
299 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
300 * config/i386/openbsdelf.h (TF_SIZE): Remove.
301 * config/i386/sol2.h (TF_SIZE): Remove.
302 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
303 * config/ia64/linux.h (TF_SIZE): Remove.
304 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
305 * doc/tm.texi: Regenerate.
306 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
308 2014-09-08 Joseph Myers <joseph@codesourcery.com>
310 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
312 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
314 * doc/tm.texi: Regenerate.
315 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
317 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
318 * config/cris/cris.h (__make_dp): Remove.
320 2014-09-08 Richard Biener <rguenther@suse.de>
323 * cfgloop.c (mark_loop_for_removal): Track former header
325 * cfgloop.h (struct loop): Add former_header member unconditionally.
326 * loop-init.c (fix_loop_structure): Enable bogus loop removal
327 diagnostic unconditionally.
329 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
332 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
333 constraint for operand0 and remove write only modifier from operand3.
335 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
337 PR rtl-optimization/62208
338 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
339 rather than const0_rtx in eq/ne-xor simplifications.
341 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
343 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
344 (arc_output_mi_thunk): Likewise.
346 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
347 arguments to silence bogus warning.
349 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
352 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
354 2014-09-06 Tom de Vries <tom@codesourcery.com>
356 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
357 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
358 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
360 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
363 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
364 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
366 2014-09-05 Easwaran Raman <eraman@google.com>
368 PR rtl-optimization/62146
369 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
370 hoisted instruction unconditional.
372 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
375 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
376 Do not allow any_mask_operand for operands[2].
377 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
379 2014-09-05 David Malcolm <dmalcolm@redhat.com>
381 * config/arc/arc.c (arc_print_operand): Use insn method of
382 final_sequence for type-safety.
383 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
384 "insn" from rtx to rtx_insn *.
385 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
386 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
387 Likewise for locals "branch", "label".
388 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
389 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
390 (same_cmp_following_p): Likewise for locals "i2", "i3".
391 * config/sh/sh_optimize_sett_clrt.cc
392 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
393 param "cbranch_insn".
394 * function.c (convert_jumps_to_returns): Likewis for local "jump".
395 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
396 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
398 (condjump_p): Likewise.
399 (condjump_in_parallel_p): Likewise.
401 (any_uncondjump_p): Likewise.
402 (any_condjump_p): Likewise.
403 (condjump_label): Likewise.
404 (returnjump_p): Strengthen param "insn" from rtx to
406 (onlyjump_p): Strengthen param "insn" from const_rtx to
408 (jump_to_label_p): Likewise.
409 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
410 (invert_jump): Likewise.
411 * reorg.c (simplejump_or_return_p): Add checked cast when calling
413 (get_jump_flags): Strengthen param "insn" from rtx to
415 (get_branch_condition): Likewise.
416 (condition_dominates_p): Likewise.
417 (make_return_insns): Move declaration of local "pat" earlier, to
418 after we've handled NONJUMP_INSN_P and non-sequences, using its
419 methods to simplify the code and for type-safety.
420 * rtl.h (find_constant_src): Strengthen param from const_rtx to
422 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
423 (condjump_p): Strengthen param from const_rtx to
425 (any_condjump_p): Likewise.
426 (any_uncondjump_p): Likewise.
428 (condjump_label): Likewise.
429 (simplejump_p): Likewise.
430 (returnjump_p): Likewise.
431 (onlyjump_p): Likewise.
432 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
433 (invert_jump): Likewise.
434 (condjump_in_parallel_p): Strengthen param from const_rtx to
436 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
438 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
440 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
442 2014-09-05 David Malcolm <dmalcolm@redhat.com>
444 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
445 above the conditional, and convert the check on GET_CODE to a
446 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
447 the conditional. Simplify the conditional by using methods of
450 2014-09-05 David Malcolm <dmalcolm@redhat.com>
452 * haifa-sched.c (check_clobbered_conditions): Strengthen local
453 "link" from rtx to rtx_insn_list *, and use its methods for
454 clarity and type-safety.
455 (toggle_cancelled_flags): Likewise.
456 (restore_last_backtrack_point): Likewise.
457 (queue_to_ready): Use insn method of "link" in one place.
458 (schedule_block): Strengthen local "link" from rtx to
459 rtx_insn_list *, and use its methods for clarity and type-safety.
461 2014-09-05 David Malcolm <dmalcolm@redhat.com>
463 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
464 param "insn" from const_rtx to const rtx_insn *.
465 (sched_get_reverse_condition_uncached): Likewise.
466 (sched_get_condition_with_rev): Likewise.
467 (sched_has_condition_p): Likewise.
468 (sched_insns_conditions_mutex_p): Likewise for both params.
469 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
470 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
471 (setup_insn_reg_uses): Move local "list" to be more tightly
472 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
473 its methods for clarity and type-safety.
474 (sched_analyze_1): Strengthen local "pending" from rtx to
475 rtx_insn_list *, and local "pending_mem" from rtx to
476 rtx_expr_list *. Use methods of each for clarity and type-safety.
477 (sched_analyze_2): Likewise.
478 (sched_analyze_insn): Likewise.
480 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
481 param from const_rtx to const rtx_insn *.
482 (sched_insns_conditions_mutex_p): Likewise for both params.
483 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
486 * system.h (CONST_CAST_RTX_INSN): New macro.
488 2014-09-05 David Malcolm <dmalcolm@redhat.com>
490 * recog.c (peep2_attempt): Strengthen return type from rtx to
492 (peep2_update_life): Likewise for params "last", "prev", removing
493 a checked cast made redundant by this.
494 (peephole2_optimize): Likewise for local "last".
496 2014-09-05 David Malcolm <dmalcolm@redhat.com>
498 * basic-block.h (set_block_for_insn): Eliminate this macro in
500 * rtl.h (set_block_for_insn): New inline function, imposing the
501 requirement that the "insn" param is an rtx_insn *.
503 2014-09-05 David Malcolm <dmalcolm@redhat.com>
505 * caller-save.c (setup_save_areas): Strengthen local "insn" from
507 * final.c (get_call_reg_set_usage): Likewise for first param,
508 eliminating a checked cast.
509 * regs.h (get_call_reg_set_usage): Likewise for first param.
510 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
511 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
512 cast, replacing references to "x" with "call_insn" where
514 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
515 rtx_insn *, adding a checked cast.
517 2014-09-05 David Malcolm <dmalcolm@redhat.com>
519 * output.h (final_scan_insn): Strengthen first param from rtx to
522 * final.c (final_scan_insn): Likewise, renaming it back from
523 "uncast_insn" to "insn", eliminating the checked cast.
525 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
526 "vec" with an rtx_sequence * "seq", taking a copy of
527 "final_sequence", and using methods of "seq" for clarity, and for
528 type-safety in the calls to final_scan_insn.
529 * config/mips/mips.c (mips_output_conditional_branch): Use methods
530 of "final_sequence" for clarity, and for type-safety in the call to
532 * config/sh/sh.c (print_slot): Strengthen param from rtx to
533 rtx_sequence * and rename from "insn" to "seq".
535 2014-09-05 David Malcolm <dmalcolm@redhat.com>
537 * jump.c (delete_related_insns): Introduce a new local "table" by
538 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
539 get_labels method of "table" to simplify access to the labels in
542 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
544 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
545 f_minmaxs, f_minmaxd types.
547 2014-09-05 Richard Biener <rguenther@suse.de>
549 * cfgloop.c (mark_loop_for_removal): Record former header
550 when ENABLE_CHECKING.
551 * cfgloop.h (strut loop): Add former_header member when
553 * loop-init.c (fix_loop_structure): Sanity check loops
554 marked for removal if they re-appeared.
556 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
558 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
559 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
561 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
562 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
563 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
564 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
565 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
566 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
567 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
568 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
569 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
570 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
571 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
572 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
573 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
574 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
575 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
576 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
577 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
578 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
579 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
580 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
583 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
585 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
586 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
587 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
588 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
589 Remove temporary __asm__ and reimplement.
591 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
593 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
594 handling cmge, cmgt, cmeq, cmtst.
596 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
597 cmlt, cmgeu, cmgtu, cmtst): Remove.
599 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
600 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
601 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
602 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
604 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
606 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
608 (aarch64_fold_builtin): Update pattern for cmtst.
610 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
613 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
615 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
616 Switch operands, separate out more cases, refactor.
618 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
620 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
621 argument; rename old version to...
622 (aarch64_const_vec_all_same_in_range_p): ...this.
623 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
625 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
627 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
629 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
630 Remove qualifier_const_pointer, update comment.
632 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
634 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
636 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
638 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
639 varargs with pointer parameter.
640 (aarch64_simd_expand_builtin): pass pointer into previous.
642 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
644 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
647 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
649 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
650 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
651 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
652 Replace temporary asm with call to builtin.
653 (vrbit_p8, vrbitq_p8): New functions.
655 2014-09-05 Richard Biener <rguenther@suse.de>
657 * cfgloop.c (mark_loop_for_removal): New function.
658 * cfgloop.h (mark_loop_for_removal): Declare.
659 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
660 (merge_blocks): Likewise.
661 (duplicate_block): Likewise.
662 * except.c (sjlj_emit_dispatch_table): Likewise.
663 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
664 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
665 (thread_through_loop_header): Likewise.
667 2014-09-05 Richard Biener <rguenther@suse.de>
670 * fold-const.c (try_move_mult_to_index): Remove.
671 (fold_binary_loc): Do not call it.
672 * tree-data-ref.c (dr_analyze_indices): Strip conversions
673 from the base object again.
675 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
677 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
680 2014-09-05 Bin Cheng <bin.cheng@arm.com>
683 * config/arm/arm.md (setmem): New pattern.
684 * config/arm/arm-protos.h (struct tune_params): New fields.
685 (arm_gen_setmem): New prototype.
686 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
687 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
688 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
689 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
690 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
691 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
692 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
693 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
694 (arm_const_inline_cost): New function.
695 (arm_block_set_max_insns): New function.
696 (arm_block_set_non_vect_profit_p): New function.
697 (arm_block_set_vect_profit_p): New function.
698 (arm_block_set_unaligned_vect): New function.
699 (arm_block_set_aligned_vect): New function.
700 (arm_block_set_unaligned_non_vect): New function.
701 (arm_block_set_aligned_non_vect): New function.
702 (arm_block_set_vect, arm_gen_setmem): New functions.
704 2014-09-05 Bin Cheng <bin.cheng@arm.com>
706 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
708 2014-09-05 Bin Cheng <bin.cheng@arm.com>
710 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
712 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
714 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
716 * valtrack.h: Adjust.
718 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
720 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
722 (emit_jump_insn_before_noloc): Likewise.
723 (emit_call_insn_before_noloc): Likewise.
724 (emit_label_before): Likewise.
725 (emit_label_after): Likewise.
726 (emit_insn_before_setloc): Likewise.
727 (emit_jump_insn_before_setloc): Likewise.
728 (emit_call_insn_before_setloc): Likewise.
729 (emit_call_insn_before): Likewise.
732 2014-09-05 David Malcolm <dmalcolm@redhat.com>
734 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
735 rtx_insn *, eliminating a checked cast.
737 2014-09-05 David Malcolm <dmalcolm@redhat.com>
739 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
740 const_rtx to const rtx_insn *.
741 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
744 2014-09-05 David Malcolm <dmalcolm@redhat.com>
746 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
747 fixup_args_size_notes.
748 * expr.c (fixup_args_size_notes): Strengthen first two params from
749 rtx to rtx_insn *, eliminating a checked cast.
750 * rtl.h (fixup_args_size_notes): Strengthen first two params from
753 2014-09-05 David Malcolm <dmalcolm@redhat.com>
755 * haifa-sched.c (get_ready_element): Strengthen return type from
757 * sched-int.h (get_ready_element): Likewise.
759 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
762 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
763 indexed_or_indirect_operand instead of memory_operand.
764 (floatsi<mode>2_lfiwzx_mem): Ditto.
766 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
768 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
769 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
770 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
772 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
774 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
776 (get_last_nonnote_insn): Likewise.
777 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
778 * resource.c (find_basic_block): Likewise.
780 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
783 2014-09-04 David Malcolm <dmalcolm@redhat.com>
785 * genattr.c (main): Within the prototype of insn_latency written
786 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
787 * genautomata.c (output_internal_maximal_insn_latency_func):
788 Within the implementation of insn_latency written out to
789 insn-automata.c, strengthen both params from rtx to rtx_insn *,
790 eliminating a pair of checked casts.
792 2014-09-04 David Malcolm <dmalcolm@redhat.com>
794 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
797 * rtl.h (eh_returnjump_p): Likewise.
799 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
801 * Makefile.in (TAGS): Handle constructs in timevar.def.
803 2014-09-04 Guozhi Wei <carrot@google.com>
806 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
807 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
808 it into two patterns.
809 (move_lo_quad_internal_be_<mode>): Likewise.
811 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
813 * doc/options.texi: Document that Var and Init are required if CPP
815 * optc-gen.awk: Require Var and Init if CPP is given.
816 * common.opt (Wpedantic): Use Init.
818 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
820 * config/rs6000/rs6000.c (special_handling_values): Add
822 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
823 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
824 as swappable with special handling SH_EXTRACT. Remove
825 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
827 (adjust_extract): New function.
828 (handle_special_swappables): Add default to case statement; add
829 case for SH_EXTRACT that calls adjust_extract.
830 (dump_swap_insn_table): Handle SH_EXTRACT.
832 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
834 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
835 selection of 0th memory doubleword, regardless of endianness.
837 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
839 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
841 2014-09-04 Alan Modra <amodra@gmail.com>
844 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
847 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
849 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
850 * targhooks.c (default_dwarf_frame_reg_mode): New function.
851 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
852 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
853 * doc/tm.texi: Regenerate.
854 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
855 selection logic to default_dwarf_frame_reg_mode.
857 2014-09-03 Marek Polacek <polacek@redhat.com>
859 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
862 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
864 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
865 the automodified register.
867 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
869 * output.h (get_some_local_dynamic_name): Declare.
870 * final.c (some_local_dynamic_name): New variable.
871 (get_some_local_dynamic_name): New function.
872 (final_end_function): Clear some_local_dynamic_name.
873 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
874 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
875 (print_operand): Report an error if '%&' is used inappropriately.
876 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
877 (get_some_local_dynamic_name_1): Delete.
878 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
879 (rs6000_get_some_local_dynamic_name): Delete.
880 (rs6000_get_some_local_dynamic_name_1): Delete.
881 (print_operand): Report an error if '%&' is used inappropriately.
882 * config/s390/s390.c (machine_function): Remove some_ld_name.
883 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
884 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
885 * config/sparc/sparc.c: Include rtl-iter.h.
886 (machine_function): Remove some_ld_name.
887 (sparc_print_operand): Report an error if '%&' is used inappropriately.
888 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
890 2014-09-03 Richard Henderson <rth@redhat.com>
892 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
893 (aarch64_popwb_pair_reg): Remove.
894 (aarch64_set_frame_expr): Remove.
895 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
896 the restore ops performed by the insns generated.
897 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
898 insn. Perform the calls_eh_return addition later; do not attempt to
899 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
900 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
901 special markup at all. Load cfun->machine->frame.hard_fp_offset
902 into a local variable.
903 (aarch64_frame_pointer_required): Don't check calls_alloca.
905 2014-09-03 Richard Biener <rguenther@suse.de>
907 * opts.c (default_options_optimization): Adjust
908 max-combine-insns to 2 for -Og.
910 2014-09-03 Martin Jambor <mjambor@suse.cz>
913 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
914 pass-trough jump functions correctly.
916 2014-09-03 Martin Jambor <mjambor@suse.cz>
919 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
920 created replacements in ascending order of offsets.
921 (known_aggs_to_agg_replacement_list): Likewise.
923 2014-09-03 Martin Liska <mliska@suse.cz>
925 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
926 is set to set uninitialized value for vnresult.
928 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
930 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
931 for TARGET_MUST_PASS_IN_STACK.
933 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
935 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
936 for TARGET_ARG_PARTIAL_BYTES.
938 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
940 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
941 instructions for varargs implementation.
942 (nds32_expand_epilogue): Emit stack adjustment instructions for
943 varargs implementation.
945 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
947 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
948 optimization detection.
950 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
952 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
954 (nds32_function_arg_advance): Deal with nameless arguments.
955 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
956 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
957 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
959 2014-09-03 Richard Biener <rguenther@suse.de>
961 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
962 (struct bb_bitmap_sets): Remove deferred member.
963 (BB_DEFERRED): Remove.
964 (defer_or_phi_translate_block): Remove.
965 (compute_antic_aux): Remove deferring of blocks, assert
966 proper iteration order.
967 (compute_antic): Do not set BB_DEFERRED.
968 (eliminate): Allocate el_avail of proper size initially.
970 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
972 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
973 according to the value of crtl->args.pretend_args_size.
975 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
977 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
980 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
982 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
983 implementation for TARGET_SETUP_INCOMING_VARARGS.
984 (nds32_strict_argument_naming): Refine comment.
985 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
986 Define for future implementation.
988 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
990 * config/i386/adxintrin.h (_subborrow_u32): New.
991 (_addcarry_u32): Ditto.
992 (_subborrow_u64): Ditto.
993 (_addcarry_u64): Ditto.
994 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
996 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
997 __builtin_ia32_sbb_u64
999 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1001 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
1003 (nds32_function_arg_advance): Likewise.
1004 (nds32_init_cumulative_args): Likewise.
1005 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
1006 (NDS32_FIRST_GPR_REGNUM): Define.
1007 (NDS32_LAST_GPR_REGNUM): Define.
1008 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
1009 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1010 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
1011 (machine_function): Use GRP-specific stuff.
1013 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1015 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
1016 (nds32_expand_epilogue): Likewise.
1017 (nds32_expand_prologue_v3push): Likewise.
1018 (nds32_expand_epilogue_v3pop): Likewise.
1020 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1022 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
1023 v3push/v3pop for variadic function.
1024 * config/nds32/nds32.md (prologue, epilogue): Likewise.
1026 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1028 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
1029 Check rtx for varargs implementation.
1030 (nds32_output_stack_pop): Likewise.
1031 * config/nds32/nds32-protos.h: Have a rtx argument for
1032 nds32_output_stack_push and nds32_output_stack_pop.
1033 * config/nds32/nds32.md: Likewise.
1035 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1037 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
1038 to check if FUNC is an interrupt service routine.
1039 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
1041 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1043 * config/nds32/nds32.h (machine_function): Add some fields for variadic
1044 arguments implementation.
1046 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1048 * config/nds32/nds32-predicates.c
1049 (nds32_valid_stack_push_pop): Rename to ...
1050 (nds32_valid_stack_push_pop_p): ... this.
1051 * config/nds32/nds32-protos.h: Likewise.
1052 * config/nds32/predicates.md: Likewise.
1054 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1056 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
1057 (nds32_emit_stack_v3push): ... this.
1058 (nds32_gen_stack_v3pop): Rename to ...
1059 (nds32_emit_stack_v3pop): ... this and consider CFA restore
1062 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1064 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
1065 (nds32_emit_stack_push_multiple): ... this.
1066 (nds32_gen_stack_pop_multiple): Rename to ...
1067 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
1070 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1073 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
1074 and add a second splitter to handle the remaining cases.
1076 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
1078 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
1080 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1082 * cfgexpand.c (label_rtx_for_bb): Change type to
1083 hash_map<basic_block, rtx_code_label *> *.
1084 (expand_gimple_basic_block): Adjust.
1085 (pass_expand::execute): Likewise.
1087 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1089 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
1090 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
1091 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
1092 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
1093 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
1094 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
1095 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
1098 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
1100 * alloc-pool.c: Include coretypes.h.
1101 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
1102 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
1103 hash_set instead of htab.
1104 * ggc-page.c (in_gc): New variable.
1105 (ggc_free): Do nothing if a collection is taking place.
1106 (ggc_collect): Set in_gc appropriately.
1107 * ggc.h (gt_ggc_mx(const char *)): New function.
1108 (gt_pch_nx(const char *)): Likewise.
1109 (gt_ggc_mx(int)): Likewise.
1110 (gt_pch_nx(int)): Likewise.
1111 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
1112 (hash_map::hash_entry::pch_nx): Likewise.
1113 (hash_map::hash_entry::pch_nx_helper): Likewise.
1114 (hash_map::hash_map): Adjust.
1115 (hash_map::create_ggc): New function.
1116 (gt_ggc_mx): Likewise.
1117 (gt_pch_nx): Likewise.
1118 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
1119 (default_hashset_traits::pch_nx): Likewise.
1120 (hash_set::hash_entry::ggc_mx): Likewise.
1121 (hash_set::hash_entry::pch_nx): Likewise.
1122 (hash_set::hash_entry::pch_nx_helper): Likewise.
1123 (hash_set::hash_set): Adjust.
1124 (hash_set::create_ggc): New function.
1125 (hash_set::elements): Likewise.
1126 (gt_ggc_mx): Likewise.
1127 (gt_pch_nx): Likewise.
1128 * hash-table.h (hash_table::hash_table): Adjust.
1129 (hash_table::m_ggc): New member.
1130 (hash_table::~hash_table): Adjust.
1131 (hash_table::expand): Likewise.
1132 (hash_table::empty): Likewise.
1133 (gt_ggc_mx): New function.
1134 (hashtab_entry_note_pointers): Likewise.
1135 (gt_pch_nx): Likewise.
1137 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1139 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
1140 built-in definition.
1141 (XVCVUXDDP_SCALE): Likewise.
1142 (XVCVDPSXDS_SCALE): Likewise.
1143 (XVCVDPUXDS_SCALE): Likewise.
1144 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1145 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1146 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1147 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1148 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1150 * config/rs6000/rs6000.c (real.h): New include.
1151 (rs6000_scale_v2df): New function.
1152 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1153 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1154 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1155 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1156 (vsx_xvcvsxddp_scale): New define_expand.
1157 (vsx_xvcvsxddp): New define_insn.
1158 (vsx_xvcvuxddp_scale): New define_expand.
1159 (vsx_xvcvuxddp): New define_insn.
1160 (vsx_xvcvdpsxds_scale): New define_expand.
1161 (vsx_xvcvdpsxds): New define_insn.
1162 (vsx_xvcvdpuxds_scale): New define_expand.
1163 (vsx_xvcvdpuxds): New define_insn.
1164 * doc/extend.texi (vec_ctf): Add new prototypes.
1165 (vec_cts): Likewise.
1166 (vec_ctu): Likewise.
1167 (vec_splat): Likewise.
1168 (vec_div): Likewise.
1169 (vec_mul): Likewise.
1171 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1174 * config/arm/neon.md
1175 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1176 <v_cmp_result>): New pattern.
1177 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1178 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1179 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1180 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1181 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1182 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1184 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1187 * config/arm/iterators.md (FIXUORS): New code iterator.
1188 (VCVT): New int iterator.
1189 (su_optab): New code attribute.
1191 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1193 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1195 * config/aarch64/predicates.md (aarch64_comparison_operation):
1196 New special predicate.
1197 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1198 aarch64_comparison_operation instead of matching an operator.
1199 Update operand numbers.
1200 (csinc3<mode>_insn): Likewise.
1201 (*csinv3<mode>_insn): Likewise.
1202 (*csneg3<mode>_insn): Likewise.
1203 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1204 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1205 Return -1 instead of aborting on invalid condition codes.
1206 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1207 to assert that the returned condition code is valid.
1208 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1210 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1212 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1213 tree.def, and gimple.def
1215 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1216 Balaji V. Iyer <balaji.v.iyer@intel.com>
1217 Igor Zamyatin <igor.zamyatin@intel.com>
1219 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1220 (__cilkrts_cilk_for_64): Likewise.
1221 * cilk-common.c (declare_cilk_for_builtin): New function.
1222 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1223 __cilkrts_cilk_for_64 bultins.
1224 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1226 (cilk_for_32_fndecl): New define.
1227 (cilk_for_64_fndecl): Likewise.
1228 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1229 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1230 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1231 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1232 GF_OMP_FOR_COMBINED_INTO.
1233 * gimplify.c (gimplify_scan_omp_clauses): Added
1234 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1235 (gimplify_adjust_omp_clauses): Ditto.
1236 (gimplify_omp_for): Added CILK_FOR case.
1237 (gimplify_expr): Ditto.
1238 * omp-low.c: Include cilk.h.
1239 (extract_omp_for_data): Set appropriate kind for
1240 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1241 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1242 (create_omp_child_function_name): Added second argument to handle
1244 (cilk_for_check_loop_diff_type): New function.
1245 (expand_cilk_for_call): Likewise.
1246 (expand_cilk_for): Likewise.
1247 (create_omp_child_function): Set cilk_for_count; handle the cases when
1248 it is true; call create_omp_child_function_name with second argument.
1249 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1250 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1251 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1252 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1253 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1254 (convert_local_omp_clauses): Ditto.
1255 * tree-pretty-print.c (dump_omp_clause): Added
1256 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1257 (dump_generic_node): Added CILK_FOR case.
1258 * tree.c (omp_clause_num_ops): New element
1259 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1260 (omp_clause_code_name): New element _Cilk_for_count_.
1261 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1262 * tree.def: Add tree code for CILK_FOR.
1264 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1266 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1267 (ppc403-compare): Add "exts with dot" case.
1268 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1269 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1270 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1271 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1272 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1273 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1274 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1275 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1276 cell-cmp-microcoded): Similarly.
1277 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1278 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1279 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1280 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1281 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1282 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1283 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1284 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1285 (power6-compare): Add "exts with dot" case.
1286 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1287 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1288 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1290 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1291 if avoiding Cell microcode.
1292 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1293 (is_cracked_insn): Ditto.
1294 (insn_must_be_first_in_group): Ditto.
1295 * config/rs6000/rs6000.md (dot): Adjust comment.
1296 (cell_micro): Handle exts+dot.
1297 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1298 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1299 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1300 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1301 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1302 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1303 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1305 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1307 * config/rs6000/rs6000.md (QHSI): Delete.
1308 (EXTQI, EXTHI, EXTSI): New mode iterators.
1309 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1310 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1311 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1312 9 anonymous instructions, and 8 splitters): Delete.
1313 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1314 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1315 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1316 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1317 *zero_extendsi<mode>2_dot2): New.
1319 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1321 * config/rs6000/rs6000.md (any_extend): New code iterator.
1322 (u, su): New code attributes.
1323 (dmode, DMODE): New mode attributes.
1324 (<su>mul<mode>3_highpart): New.
1325 (*<su>mul<mode>3_highpart): New.
1326 (<su>mulsi3_highpart_le): New.
1327 (<su>muldi3_highpart_le): New.
1328 (<su>mulsi3_highpart_64): New.
1329 (<u>mul<mode><dmode>3): New.
1330 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1332 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1335 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1337 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1338 *mulsi3_internal2, and two splitters): Delete.
1339 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1341 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1343 2014-09-02 Richard Biener <rguenther@suse.de>
1345 PR tree-optimization/62695
1346 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1349 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1352 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1354 2014-09-01 Andi Kleen <ak@linux.intel.com>
1356 * file-find.c (add_prefix_begin): Add.
1357 (do_add_prefix): Rename from add_prefix with first argument.
1358 (add_prefix): Add new wrapper.
1359 * file-find.h (add_prefix_begin): Add.
1360 * gcc-ar.c (main): Support -B option.
1362 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1364 * genemit.c: Include dumpfile.h.
1365 (gen_split): Print name of splitter function to dump file.
1367 2014-09-01 Richard Biener <rguenther@suse.de>
1369 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1370 Use stack auto_vecs for constraint expressions.
1371 (find_func_aliases_for_call): Likewise.
1372 (find_func_aliases): Likewise.
1373 (find_func_clobbers): Likewise.
1375 2014-09-01 Richard Biener <rguenther@suse.de>
1377 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1378 operands vector in most cases. Remove redundant code.
1380 2014-09-01 Olivier Hainque <hainque@adacore.com>
1382 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1383 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1384 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1386 2014-09-01 Richard Biener <rguenther@suse.de>
1388 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1389 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1390 vn_reference_compute_hash, vn_reference_insert): Remove.
1391 (vn_reference_lookup_call): New function.
1392 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1393 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1394 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1395 (create_reference_ops_from_call): Remove.
1396 (vn_reference_lookup_3): Properly update shared_lookup_references.
1397 (vn_reference_lookup_pieces): Assert that we updated
1398 shared_lookup_references properly.
1399 (vn_reference_lookup): Likewise.
1400 (vn_reference_lookup_call): New function.
1401 (visit_reference_op_call): Use it. Avoid re-building the
1403 (visit_reference_op_load): Remove redundant lookup.
1404 (visit_reference_op_store): Perform special tail-merging work
1405 only when possibly doing tail-merging.
1406 (visit_use): Likewise.
1407 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1409 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1412 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1413 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1414 (find_inc): Revert 2014-08-13 change.
1416 2014-09-01 Marek Polacek <polacek@redhat.com>
1419 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1420 Change the type of V to unsigned HOST_WIDE_INT.
1422 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1424 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1425 the size of byte markers.
1426 (do_shift_rotate): Fix confusion between host, target and marker byte
1428 (verify_symbolic_number_p): Likewise.
1429 (find_bswap_or_nop_1): Likewise.
1430 (find_bswap_or_nop): Likewise.
1432 2014-09-01 Olivier Hainque <hainque@adacore.com>
1434 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1435 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1437 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1439 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1440 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1441 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1443 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1447 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1448 (build_check_stmt): Likewise.
1449 (instrument_strlen_call): Likewise.
1450 (asan_expand_check_ifn): Likewise and fix types.
1451 (maybe_cast_to_ptrmode): New function.
1453 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1455 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1457 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1459 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1461 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1463 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1464 prefix to function labels when generating fast indirect calls.
1466 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1470 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1471 param back from rtx_insn * to rtx. Rename param from "label" to
1472 "label_or_return", reintroducing "label" as an rtx_insn * after
1473 we've ensured it's not a RETURN.
1474 (first_active_target_insn): Likewise for return type and param;
1475 add a checked cast to rtx_insn * once we've ensured "insn" is not
1477 (steal_delay_list_from_target): Convert param "pnew_thread" back
1478 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1480 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1481 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1482 cast once we've established we're not dealing with a RETURN,
1483 renaming subsequent uses of "thread" to "thread_insn".
1484 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1486 (follow_jumps): Convert return type and param "label" from
1487 rtx_insn * back to rtx. Move initialization of "value" to after
1488 the handling for ANY_RETURN_P, adding a checked cast there to
1489 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1490 rename to "this_label_or_return", reintroducing "this_label" as
1491 an rtx_insn * once we've handled the case where it could be an
1493 (fill_slots_from_thread): Rename param "thread" to
1494 "thread_or_return", converting from an rtx_insn * back to an rtx.
1495 Reintroduce name "thread" as an rtx_insn * local with a checked
1496 cast once we've handled the case of it being an ANY_RETURN_P.
1497 Convert local "new_thread" from an rtx_insn * back to an rtx.
1498 Add a checked cast when assigning to "trial" from "new_thread".
1499 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1500 checked cast to rtx_insn * from "new_thread" when invoking
1502 (fill_eager_delay_slots): Convert locals "target_label",
1503 "insn_at_target" from rtx_insn * back to rtx.
1504 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1505 (relax_delay_slots): Convert locals "trial", "target_label" from
1506 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1507 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1508 invoking update_block.
1509 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1510 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1512 * resource.h (mark_target_live_regs): Undo erroneous conversion
1513 of second param of r214693, converting it back from rtx_insn * to
1514 rtx, since it could be a RETURN.
1516 * resource.c (find_dead_or_set_registers): Similarly, convert
1517 param "jump_target" back from an rtx_insn ** to an rtx *, as we
1518 could be writing back a RETURN. Rename local rtx_insn * "next" to
1519 "next_insn", and introduce "lab_or_return" as a local rtx,
1520 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
1521 (mark_target_live_regs): Undo erroneous conversion
1522 of second param of r214693, converting it back from rtx_insn * to
1523 rtx, since it could be a RETURN. Rename it from "target" to
1524 "target_maybe_return", reintroducing the name "target" as a local
1525 rtx_insn * with a checked cast, after we've handled the case of
1528 2014-08-29 DJ Delorie <dj@redhat.com>
1530 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
1531 pointer size up to a power of two.
1532 * defaults.h (DWARF2_ADDR_SIZE): Round up.
1533 (POINTER_SIZE_UNITS): New, rounded up value.
1534 * dwarf2asm.c (size_of_encoded_value): Use it.
1535 (dw2_output_indirect_constant_1): Likewise.
1536 * expmed.c (init_expmed_one_conv): We now know the sizes of
1538 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
1539 * optabs.c (expand_float): Use precision, not size.
1540 (expand_fix): Likewise.
1541 * simplify-rtx (simplify_unary_operation_1): Likewise.
1542 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1543 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
1544 (default_assemble_integer) Likewise.
1545 (dump_tm_clone_pairs): Likewise.
1546 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
1547 * var-tracking.c (adjust_mems): Allow partial-int modes also.
1548 (prepare_call_arguments): Likewise.
1549 * stor-layout.c (finalize_type_size): Preserve precision.
1550 (layout_type): Use precision, not size.
1552 * expr.c (convert_move): If the target has an explicit converter,
1555 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1557 * gdbinit.in: Skip various inline functions in rtl.h when
1560 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
1563 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
1565 2014-08-29 Richard Biener <rguenther@suse.de>
1567 PR tree-optimization/62291
1568 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
1569 exactly the vector size needed and use quick_push.
1570 (phi_translate_1): Adjust comment.
1571 (valid_in_sets): Remove block argument and remove pointless
1573 (dependent_clean): Adjust for removal of block argument.
1575 (compute_antic_aux): Likewise.
1576 (compute_partial_antic_aux): Likewise.
1578 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1579 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1580 Anna Tikhonova <anna.tikhonova@intel.com>
1581 Ilya Tocar <ilya.tocar@intel.com>
1582 Andrey Turetskiy <andrey.turetskiy@intel.com>
1583 Ilya Verbin <ilya.verbin@intel.com>
1584 Kirill Yukhin <kirill.yukhin@intel.com>
1585 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1587 * config/i386/sse.md
1588 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
1589 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
1590 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
1591 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
1593 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1594 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1595 Anna Tikhonova <anna.tikhonova@intel.com>
1596 Ilya Tocar <ilya.tocar@intel.com>
1597 Andrey Turetskiy <andrey.turetskiy@intel.com>
1598 Ilya Verbin <ilya.verbin@intel.com>
1599 Kirill Yukhin <kirill.yukhin@intel.com>
1600 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1602 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
1603 * config/i386/sse.md
1604 (define_mode_iterator VI4_128_8_256): New.
1605 (define_mode_iterator VI2_128_4_256): Ditto.
1606 (define_mode_iterator PMOV_DST_MODE): Rename into
1607 (define_mode_iterator PMOV_DST_MODE_1): this.
1608 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
1609 Use PMOV_DST_MODE_1 mode iterator.
1610 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1612 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1614 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
1615 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
1616 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
1617 (define_mode_iterator PMOV_DST_MODE_2): New.
1618 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
1619 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
1620 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
1622 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
1623 (define_mode_attr pmov_dst_3): Ditto.
1624 (define_mode_attr pmov_dst_zeroed_3): Ditto.
1625 (define_mode_attr pmov_suff_3): Ditto.
1626 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
1627 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
1628 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
1629 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
1630 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
1631 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
1632 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
1633 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
1634 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
1635 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
1636 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
1637 (define_mode_attr pmov_dst_4): Ditto.
1638 (define_mode_attr pmov_dst_zeroed_4): Ditto.
1639 (define_mode_attr pmov_suff_4): Ditto.
1640 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
1641 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
1642 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
1643 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
1644 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
1645 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
1646 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
1647 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
1648 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
1649 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
1650 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
1652 2014-08-29 Richard Biener <rguenther@suse.de>
1654 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
1655 NON_LVALUE_EXPR in gimple.
1657 2014-08-29 Richard Biener <rguenther@suse.de>
1660 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
1661 from previous refactoring.
1662 (gimple_fold_builtin_strncpy): Likewise.
1664 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1667 * function.c (assign_parm_setup_reg): Remove erroneous checked
1668 cast to rtx_insn * on result of gen_extend_insn in favor of
1669 introducing a new local rtx "pat".
1671 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1673 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
1675 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
1677 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1679 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
1680 (next_insn): Likewise.
1681 * emit-rtl.c (next_insn): Likewise.
1682 (previous_insn): Likewise.
1683 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
1684 "insn" and "next" from rtx to rtx_insn *.
1685 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
1686 "insn", "insn1", "vliw_start", "prologue_end_note",
1687 "last_insn_in_packet".
1689 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1691 * shrink-wrap.h (active_insn_between): Strengthen both params from
1693 * function.c (active_insn_between): Likewise.
1695 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1697 * genattr.c (main): When writing out insn-attr.h, strengthen param
1698 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
1699 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
1700 writing out the definition of dfa_clear_single_insn_cache to the
1701 generated insn-automata.c
1703 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1705 * resource.h (clear_hashed_info_for_insn): Strengthen param from
1707 (incr_ticks_for_insn): Likewise.
1708 (init_resource_info): Likewise.
1710 * resource.c (init_resource_info): Likewise.
1711 (clear_hashed_info_for_insn): Likewise.
1712 (incr_ticks_for_insn): Likewise.
1714 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
1716 (steal_delay_list_from_target): Use methods of "seq".
1717 (try_merge_delay_insns): Use methods of "merged_insns".
1718 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
1719 (reorg_redirect_jump): Likewise for param "jump".
1721 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1723 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
1725 * config/s390/s390.c (s390_split_branches): Eliminate top-level
1726 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
1728 (s390_mainpool_finish): In three places, split out a local rtx
1729 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
1730 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
1731 and split another local rtx "insn" out into rtx "pat" and
1733 * config/sh/sh.c (output_branchy_insn): Rather than working
1734 directly on operands[9], introduce local rtx_code_label *
1735 variables named "lab" in two places, working on them, and then
1736 assigning them to operands[9], so that the intervening operations
1737 are known by the type system to be on insns.
1739 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1741 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
1744 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
1745 in invocation of INSN_HAS_LOCATION.
1747 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1749 * config/rs6000/altivec.h (vec_xl): New #define.
1750 (vec_xst): Likewise.
1751 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
1752 (XXSPLTD_V2DI): Likewise.
1753 (DIV_V2DI): Likewise.
1754 (UDIV_V2DI): Likewise.
1755 (MUL_V2DI): Likewise.
1756 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1757 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
1758 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
1759 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
1760 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
1761 (UNSPEC_VSX_DIVSD): Likewise.
1762 (UNSPEC_VSX_DIVUD): Likewise.
1763 (UNSPEC_VSX_MULSD): Likewise.
1764 (vsx_mul_v2di): New insn-and-split.
1765 (vsx_div_v2di): Likewise.
1766 (vsx_udiv_v2di): Likewise.
1767 (vsx_xxspltd_<mode>): New insn.
1769 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1771 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
1773 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
1774 (NEXT_INSN): Likewise.
1775 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
1776 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
1778 (no_labels_between_p): Likewise for both params.
1780 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
1781 cast when using NEXT_INSN on operands[2].
1782 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
1783 "insn" from rtx to rtx_insn *, adding a checked cast.
1784 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
1786 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
1788 (arc_text_label): Likewise for param "insn".
1789 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
1791 (arc_ccfsm_record_condition): Likewise for param "jump".
1792 (arc_text_label): Likewise for local "label".
1793 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1794 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1795 a method for typesafety. Add a checked cast.
1796 * config/arc/constraints.md (Clb): Add a checked cast when getting
1797 the CODE_LABEL from a LABEL_REF.
1798 * config/arm/arm.c (require_pic_register): Strengthen locals
1799 "seq", "insn" from rtx to rtx_insn *.
1800 (create_fix_barrier): Likewise for locals "selected", "next".
1801 (thumb1_reorg): Likewise for locals "prev", "insn".
1802 (arm_expand_prologue): Likewise for local "last".
1803 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1805 (thumb2_output_casesi): Likewise for operands[2].
1806 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1807 strengthen local "insn" from rtx to rtx_insn *.
1808 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1809 type and param "insn".
1810 (find_prev_insn_start): Likewise.
1811 (hwloop_optimize): Likewise for locals "insn", "last_insn",
1813 (gen_one_bundle): Likewise for loal "t".
1814 (find_load): Likewise for param "insn".
1815 (workaround_speculation): Likewise for locals "insn", "next",
1816 "target", "next_tgt".
1817 * config/c6x/c6x.c (assign_reservations): Likewise for both params
1818 and for locals "insn", "within", "last".
1819 (count_unit_reqs): Likewise for params "head", "tail" and local
1821 (try_rename_operands): Likewise for params "head", "tail".
1822 (reshuffle_units): Likewise for locals "head", "tail", "insn".
1823 (struct c6x_sched_context): Likewise for fields
1824 "last_scheduled_insn", "last_scheduled_iter0".
1825 (init_sched_state): Replace NULL_RTX with NULL.
1826 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1828 (undo_split_delayed_nonbranch): Likewise for param and for local
1830 (conditionalize_after_sched): Likewise for local "insn".
1831 (bb_earliest_end_cycle): Likewise.
1832 (filter_insns_above): Likewise for locals "insn", "next".
1833 (hwloop_optimize): Remove redundant checked cast.
1834 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1835 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1837 (cris_simple_epilogue): Likewise.
1838 (cris_expand_prologue): Likewise.
1839 (cris_expand_epilogue): Likewise.
1840 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1841 local "insn" from rtx to rtx_insn *.
1842 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1843 (struct frv_packet_group): Likewise for the elements within array
1844 fields "insns", "sorted", and for field "nop".
1845 (frv_packet): Likewise for the elements within array field
1847 (frv_add_insn_to_packet): Likewise for param "insn".
1848 (frv_insert_nop_in_packet): Likewise for param "insn" and local
1850 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1851 (frv_sort_insn_group_1): Likewise for local "insn".
1852 (frv_optimize_membar_local): Likewise.
1853 (frv_align_label): Likewise for locals "x", "last", "barrier",
1855 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1857 (ia64_sched_init): Likewise for local "insn".
1858 (scheduled_good_insn): Likewise for param "last".
1859 (struct _ia64_sched_context): Likewise for field
1860 "last_scheduled_insn".
1861 (ia64_init_sched_context): Replace NULL_RTX with NULL.
1862 (struct bundle_state): Likewise for field "insn".
1863 (issue_nops_and_insn): Likewise for param "insn".
1864 (get_next_important_insn): Likewise for return type and both
1866 (ia64_add_bundle_selector_before): Likewise for param "insn".
1867 (bundling): Likewise for params "prev_head_insn", "tail" and
1868 locals "insn", "next_insn", "b". Eliminate top-level local rtx
1869 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1870 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1871 Strengthen final param from rtx to rtx_insn *.
1872 (iq2000_move_1word): Likewise for second param.
1873 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1874 param "cur_insn" and local "next_insn".
1875 (iq2000_move_1word): Likewise for param "insn".
1876 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1877 casts when using NEXT_INSN on operands[1].
1878 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1879 "insn" from rtx to rtx_insn *.
1880 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1881 "x", introducing local rtx_insn * "insn" for when working with the
1882 CODE_LABEL of the LABEL_REF.
1883 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1885 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1887 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1889 (conditionalize_block): Likewise for return type and param.
1890 (mcore_is_dead): Likewise for param "first" and local "insn".
1891 (emit_new_cond_insn): Likewise for return type.
1892 (conditionalize_block): Likewise for return type, param, and
1893 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1895 (conditionalize_optimization): Likewise for local "insn".
1896 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1898 * config/microblaze/microblaze.md: Add checked casts when using
1900 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1901 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1902 and rtx_insn * "insn".
1903 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1904 checked cast when using NEXT_INSN on operands[2].
1905 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1906 local "insn" from rtx to rtx_insn *.
1907 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1909 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1910 Add a checked cast when using NEXT_INSN on operands[1].
1911 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1913 (pa_output_cbranch): Likewise for final param.
1914 (pa_output_lbranch): Likewise for second param.
1915 (pa_output_bb): Likewise for third param.
1916 (pa_output_bvb): Likewise.
1917 (pa_output_dbra): Likewise for second param.
1918 (pa_output_movb): Likewise.
1919 (pa_output_parallel_movb): Likewise.
1920 (pa_output_parallel_addb): Likewise.
1921 (pa_output_millicode_call): Likewise for first param.
1922 (pa_output_mul_insn): Likewise for second param.
1923 (pa_output_div_insn): Likewise for third param.
1924 (pa_output_mod_insn): Likewise for second param.
1925 (pa_jump_in_call_delay): Likewise for param.
1926 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1927 (pa_output_div_insn): Likewise.
1928 (pa_output_mod_insn): Likewise.
1929 (pa_output_cbranch): Likewise.
1930 (pa_output_lbranch): Likewise.
1931 (pa_output_bb): Likewise.
1932 (pa_output_bvb): Likewise.
1933 (pa_output_dbra): Likewise.
1934 (pa_output_movb): Likewise.
1935 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1936 to simplify and for typesafety.
1937 (pa_output_call): Use method of rtx_sequence *.
1938 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1939 (pa_jump_in_call_delay): Likewise.
1940 (pa_output_parallel_movb): Likewise.
1941 (pa_output_parallel_addb): Likewise.
1942 (pa_following_call): Likewise.
1943 (pa_combine_instructions): Likewise for locals "anchor",
1945 (pa_can_combine_p): Likewise for params "anchor", "floater" and
1946 locals "start", "end".
1947 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1948 param "insn" and local "local_insn".
1949 (picochip_final_prescan_insn): Likewise for local "local_insn".
1950 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1952 (uses_TOC): Likewise.
1953 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1954 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1955 splitting out to more tightly-scoped locals, 3 as rtx and one as
1957 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1959 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1961 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1963 (fixup_addr_diff_vecs): Likewise.
1964 (reg_unused_after): Likewise for param 2.
1965 (sh_can_redirect_branch): Likewise for both params.
1966 (check_use_sfunc_addr): Likewise for param 1.
1967 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1968 (find_barrier): Likewise for local "last_got".
1969 (gen_block_redirect): Likewise for return type, param "jump" and
1970 locals "prev", "scan", "next", "insn".
1971 (struct far_branch): Likewise for fields "near_label",
1972 "insert_place", "far_label".
1973 (gen_far_branch): Likewise for local "jump".
1974 (fixup_addr_diff_vecs): Likewise for param "first" and locals
1976 (barrier_align): Likewise for param and for locals "prev", "x".
1977 Introduce local rtx_sequence * "prev_seq" and use insn method for
1978 typesafety and clarity.
1979 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1980 (get_dest_uid): Likewise for local "dest".
1981 (split_branches): Likewise for locals "next", "beyond", "label",
1982 "block", "far_label". Add checked casts when assigning to
1983 bp->far_label and "far_label".
1984 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1985 (sequence_insn_p): Likewise.
1986 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
1987 more loop-scoped rtx "insn" when walking LABEL_REFS.
1988 (sh_can_redirect_branch): Strengthen both params from rtx to
1990 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
1991 new local rtx_sequence * "seq" via a dyn_cast, and use a method
1992 for clarity and typesafety.
1993 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1994 "insn" from rtx to rtx_insn *.
1995 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1996 when using NEXT_INSN on the CODE_LABEL in operands[2].
1997 (define_insn "casesi_worker_2"): Likewise.
1998 (define_insn "casesi_shift_media"): Likewise.
1999 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
2001 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
2002 Strengthen field "insn" from rtx to rtx_insn *.
2003 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
2004 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
2005 param "start_insn" and local "start_insn".
2006 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
2008 (find_set_of_reg_bb): Likewise for param "insn".
2009 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
2010 (trace_reg_uses): Likewise for param "start_insn".
2011 (sh_treg_combine::cbranch_trace): Likewise for field
2013 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
2015 (sh_treg_combine::record_set_of_reg): Likewise for param
2016 "start_insn" and local "i".
2017 (sh_treg_combine::can_remove_cstore): Likewise for local
2019 (sh_treg_combine::try_optimize_cbranch): Likewise for param
2021 (sh_treg_combine::execute): Likewise for local "i".
2022 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
2024 (sparc_check_64): Likewise for second param.
2025 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2026 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
2027 dyn_cast, using its insn method for typesafety and clarity.
2028 (empty_delay_slot): Strengthen param "insn" from rtx to
2030 (set_extends): Likewise.
2031 (sparc_check_64): Likewise.
2032 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
2033 for locals "seq", "last_insn".
2034 (combine_bnp): Likewise for param "insn".
2035 (xstormy16_reorg): Likewise for local "insn".
2036 * config/v850/v850.c (substitute_ep_register): Likewise for params
2037 "first_insn", "last_insn" and local "insn".
2038 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
2039 elements of "regs" array, and local "insn".
2040 * except.c (emit_note_eh_region_end): Likewise for param "insn".
2041 * final.c (final_sequence): Strengthen this global from rtx to
2043 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
2045 (final_scan_insn): Update assignment to "final_sequence" to be
2046 from "seq", the cast version of "body", for type-safety.
2047 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
2048 "insns" from rtx to rtx_insn *.
2049 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
2050 * genattr.c (main): When writing out generated insn-attr.h,
2051 strengthen params 1 and 3 of eligible_for_delay,
2052 eligible_for_annul_true, eligible_for_annul_false from rtx to
2054 * genattrtab.c (write_eligible_delay): Likewise when writing out
2055 generated insn-attrtab.c; also local "insn" the generated
2057 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
2059 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
2060 "start_label" from rtx to rtx_insn *.
2061 * ira.c (decrease_live_ranges_number): Likewise for local "p".
2062 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
2063 "insns" and local "insn".
2064 (validate_equiv_mem): Likewise for param "start" and local "insn".
2065 (memref_used_between_p): Likewise for params "start", "end" and
2067 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
2069 * loop-doloop.c (doloop_optimize): Within region guarded by
2070 INSN_P (doloop_pat), introduce a new local rtx_insn *
2071 "doloop_insn" via a checked cast, and use it for typesafety,
2072 eventually writing the value back into doloop_pat.
2073 * output.h (final_sequence): Strengthen this global from rtx to
2075 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
2076 reintroducing "insn" as an rtx_insn * via a checked cast.
2077 Strengthen param "attempt" and local "new_insn"from rtx to
2079 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
2081 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
2082 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
2083 "p" in favor of more tightly-scoped replacements, sometimes rtx
2084 and sometimes rtx_insn *, as appropriate.
2085 (delete_output_reload): Eliminate top-level rtx "i1", splitting
2086 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
2087 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
2088 local "trial" from rtx to rtx_insn *.
2089 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
2090 rtx to rtx_insn *. Strenghten local "pat" from rtx to
2091 rtx_sequence * and use methods for clarity and typesafety.
2092 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
2093 rtx to rtx_insn *. Strenghten local "li" from rtx to
2094 rtx_insn_list * and use its methods for clarity and typesafety.
2095 (steal_delay_list_from_target): Strengthen param "insn" from rtx
2097 (steal_delay_list_from_fallthrough): Likewise.
2098 (try_merge_delay_insns): Likewise for param "thread" and locals
2099 "trial", "next_trial", "delay_insn".
2100 (redundant_insn): Likewise for param "target" and local "trial".
2101 (own_thread_p): Likewise for param "thread" and locals
2102 "active_insn", "insn".
2103 (get_label_before): Likewise for param "insn".
2104 (fill_simple_delay_slots): Likewise for local "new_label"; use
2105 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
2106 (label_before_next_insn): Strengthen return type and local "insn"
2107 from rtx to rtx_insn *.
2108 (relax_delay_slots): Likewise for locals "other", "tmp".
2109 (make_return_insns): Likewise for param "first" and locals "insn",
2110 "jump_insn", "prev". Move declaration of "pat" to its assignment
2111 and strengthen from rtx to rtx_sequence *. Use its methods for
2112 clarity and typesafety.
2113 * rtlanal.c (no_labels_between_p): Strengthen params from
2114 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
2116 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
2117 from const_rtx to const rtx_insn *.
2118 (reg_set_between_p): Rename param "from_insn" to
2119 "uncast_from_insn", and reintroduce "from_insn" as a
2120 const rtx_insn * via a checked cast.
2121 (modified_between_p): Likewise for param "start" as "uncast_start".
2122 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
2123 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
2124 "tmp", head" from rtx to rtx_insn *.
2125 (recompute_rev_top_order): Likewise for local "insn".
2126 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
2127 * store-motion.c (build_store_vectors): Likewise for local "insn".
2128 Strengthen local "st" from rtx to rtx_insn_list * and use methods
2129 for clarity and typesafety.
2130 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
2132 (computation_cost): Likewise for local "seq".
2133 (get_address_cost): Likewise.
2135 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2137 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
2139 (label_is_jump_target_p): Likewise for second param.
2141 * rtlanal.c (tablejump_p): Likewise for param "insn".
2142 (label_is_jump_target_p): Likewise for param "jump_insn".
2144 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2146 * rtl.h (find_first_parameter_load): Strengthen return type and
2147 both params from rtx to rtx_insn *.
2148 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2149 both params and locals "before", "first_set" from rtx to
2150 rtx_insn *. Remove now-redundant cast.
2151 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2153 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2155 * rtl.h (find_last_value): Delete.
2156 * rtlanal.c (find_last_value): Delete.
2158 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2160 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2161 from rtx to rtx_insn *.
2162 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2163 rtx "note" with new local rtx_insn * "new_head" when calculating
2164 head insn of new basic block.
2165 * combine.c (combine_split_insns): Strengthen return type and local
2166 "ret" from rtx to rtx_insn *.
2167 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2168 (try_combine): Eliminate local "m_split", splitting into new
2169 locals "m_split_insn" and "m_split_pat".
2170 (find_split_point): Strengthen local "seq" from rtx into
2172 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2173 locals "label", "branch".
2174 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2176 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2177 * dse.c (note_add_store_info): Likewise for fields "first",
2179 (note_add_store): Likewise for local "insn".
2180 (emit_inc_dec_insn_before): Likewise for locals "insn",
2182 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2183 (replace_read): Likewise for locals "insns", "this_insn".
2184 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2185 (notice_eh_throw): Likewise for param "insn".
2186 (before_next_cfi_note): Likewise for return type, param, and local
2188 (connect_traces): Likewise for local "note".
2189 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2190 (verify_rtl_sharing): Likewise.
2191 (unshare_all_rtl_in_chain): Likewise for param "insn".
2192 (get_first_nonnote_insn): Likewise for local "insn".
2193 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2194 "seq" and use its methods to clarify things.
2195 (next_insn): Strengthen return type from rtx to rtx_insn *.
2196 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2197 local rtx_insn * using a checked cast, dropping a checked cast
2198 made redundant by this change. Use a cast to and method of
2199 rtx_sequence to clarify the code.
2200 (previous_insn): Rename param "insn" to "uncast_insn" and
2201 reintroduce "insn" as a local rtx_insn * using a checked cast,
2202 dropping a checked cast made redundant by this change. Use a cast
2203 to and method of rtx_sequence to clarify the code.
2204 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2205 reintroduce "insn" as a local rtx_insn * using a checked cast,
2206 dropping a checked cast made redundant by this change.
2207 (next_nonnote_insn_bb): Likewise.
2208 (prev_nonnote_insn): Likewise.
2209 (prev_nonnote_insn_bb): Likewise.
2210 (next_nondebug_insn): Likewise.
2211 (prev_nondebug_insn): Likewise.
2212 (next_nonnote_nondebug_insn): Likewise.
2213 (prev_nonnote_nondebug_insn): Likewise.
2214 (next_real_insn): Likewise.
2215 (prev_real_insn): Likewise.
2216 (next_active_insn): Likewise.
2217 (prev_active_insn): Likewise.
2218 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2220 (prev_cc0_setter): Likewise.
2221 (try_split): Rename param "trial" to "uncast_trial" and
2222 reintroduce "insn" as a local rtx_insn * using a checked cast,
2223 dropping checked casts made redundant by this change.
2224 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2226 (remove_insn): Rename param "insn" to "uncast_insn" and
2227 reintroduce "insn" as a local rtx_insn * using a checked cast.
2228 (emit_pattern_after_setloc): Likewise for param "after", as
2230 (emit_pattern_after): Likewise. Strengthen local "prev" from
2232 (emit_pattern_before_setloc): Rename param "before" to
2233 "uncast_before" and reintroduce "before" as a local rtx_insn *
2234 using a checked cast. Strengthen locals "first", "last" from
2236 (emit_pattern_before): Likewise rename/cast param "before" to
2237 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2238 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2239 "first" and local "insn" from rtx to rtx_insn *.
2240 (copy_reg_eh_region_note_backward): Likewise for param "last"
2242 * expr.c (fixup_args_size_notes): Rename param "last" to
2243 "uncast_last" and reintroduce "last" as a local rtx_insn *
2244 using a checked cast. Strengthen local "insn" from rtx to
2246 * function.c (set_insn_locations): Strengthen param "insn" from
2248 (record_insns): Likewise for param "insns" and local "tmp".
2249 (active_insn_between): Rename param "tail" to
2250 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2251 using a checked cast.
2252 (thread_prologue_and_epilogue_insns): Split out top-level local
2253 rtx "seq" into three different rtx_insn * locals. Strengthen
2254 local "prologue_seq" from rtx to rtx_insn *.
2255 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2256 from rtx to rtx_insn *.
2257 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2258 (priority): Likewise for locals "prev_first", "twin".
2259 (setup_insn_max_reg_pressure): Likewise for param "after".
2260 (sched_setup_bb_reg_pressure_info): Likewise.
2261 (no_real_insns_p): Strengthen params from const_rtx to
2263 (schedule_block): Strengthen local "next_tail" from rtx to
2265 * ifcvt.c (find_active_insn_before): Strengthen return type and
2266 param "insn" from rtx to rtx_insn *.
2267 (find_active_insn_after): Likewise.
2268 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2269 (cond_exec_process_if_block): Likewise for locals "then_start",
2270 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2271 (noce_process_if_block): Likewise for local "jump".
2272 (merge_if_block): Likewise for two locals named "end".
2273 (cond_exec_find_if_block): Likewise for local "last_insn".
2274 * jump.c (delete_related_insns): Rename param "insn" to
2275 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2276 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2277 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2279 (split_reg): Likewise.
2280 * lra.c (lra_process_new_insns): Likewise.
2281 * modulo-sched.c (permute_partial_schedule): Strengthen param
2282 "last" from rtx to rtx_insn *.
2283 * optabs.c (add_equal_note): Likewise for param "insns" and local
2285 (expand_binop_directly): Add checked casts to rtx_insn * within
2286 NEXT_INSN (pat) uses.
2287 (expand_unop_direct): Likewise.
2288 (maybe_emit_unop_insn): Likewise.
2289 * recog.c (peep2_attempt): Strengthen locals "last",
2290 "before_try", "x" from rtx to rtx_insn *.
2291 * reorg.c (optimize_skip): Strengthen return type and local
2292 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2293 and locals "trial", "next_trial" from rtx to rtx_insn *.
2294 * resource.c (next_insn_no_annul): Strengthen return type and
2295 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2296 rtx_sequence to clarify the code.
2297 (mark_referenced_resources): Add a checked cast to rtx_insn *
2298 within PREV_INSN (x).
2299 (find_dead_or_set_registers): Strengthen return type, param
2300 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2301 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2303 (mark_target_live_regs): Strengthen params "insns" and "target",
2304 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2305 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2307 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2308 from rtx to rtx_insn *.
2309 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2310 from rtx to rtx_insn *.
2311 (copy_reg_eh_region_note_backward): Likewise.
2312 (unshare_all_rtl_in_chain): Likewise for sole param.
2313 (dump_rtl_slim): Strengthen second and third params from const_rtx
2314 to const rtx_insn *.
2315 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2316 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2317 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2318 "next_tail" from rtx to rtx_insn *.
2319 (begin_move_insn): Likewise for local "next".
2320 * sched-int.h (sched_free_deps): Likewise for first and second
2322 (no_real_insns_p): Strengthen both params from const_rtx to
2324 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2326 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2328 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2329 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2330 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2332 (debug_rtl_slim): Strengthen params "first" and "last" from
2333 const_rtx to const rtx_insn *.
2334 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2335 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2336 (convert_to_simple_return): Likewise for param "returnjump".
2337 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2339 (convert_to_simple_return): Likewise for param "returnjump".
2340 * valtrack.c (propagate_for_debug): Likewise for params
2342 * valtrack.h (propagate_for_debug): Likewise for second param.
2344 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2346 * output.h (insn_current_reference_address): Strengthen param
2347 from rtx to rtx_insn *.
2348 * final.c (insn_current_reference_address): Likewise.
2350 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2352 * basic-block.h (inside_basic_block_p): Strengthen param from
2353 const_rtx to const rtx_insn *.
2354 * cfgbuild.c (inside_basic_block_p): Likewise.
2356 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2358 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2360 (get_trace_info): Likewise for param "insn".
2361 (save_point_p): Likewise.
2362 (maybe_record_trace_start): Likewise for both params.
2363 (maybe_record_trace_start_abnormal): Likewise.
2364 (create_trace_edges): Likewise for sole param and for three of the
2366 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2367 to rtx_insn *, and update a call to pat->element to pat->insn.
2369 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2371 * function.h (struct expr_status): Convert field "x_forced_labels"
2372 from rtx_expr_list * to rtx_insn_list *.
2374 * cfgbuild.c (make_edges): Convert local "x" from an
2375 rtx_expr_list * to an rtx_insn_list *, replacing use of
2376 "element" method with "insn" method.
2377 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2378 * except.c (sjlj_emit_dispatch_table): Replace use of
2379 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2381 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2382 rtx_expr_list * to an rtx_insn_list *, replacing use of
2383 "element" method with "insn" method.
2384 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2385 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2386 rtx_insn *, adding a checked cast. Replace use of
2387 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2389 (expand_label): Likewise for local "label_r".
2391 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2393 * function.h (struct rtl_data): Convert field
2394 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2396 * rtl.h (remove_node_from_insn_list): New prototype.
2398 * builtins.c (expand_builtin): When prepending to
2399 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2401 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2402 to rtx_insn_list *, and use its "insn" method rather than
2404 * cfgrtl.c (delete_insn): Use new function
2405 remove_node_from_insn_list rather than
2406 remove_node_from_expr_list.
2407 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2408 to rtx_insn_list *, and use its "insn" method rather than
2410 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2411 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2412 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2413 from remove_node_from_expr_list.
2414 * stmt.c (expand_label): When prepending to
2415 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2418 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2420 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2421 and "x_naked_return_label" from rtx to rtx_code_label *.
2423 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2425 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2426 (SET_NEXT_INSN): Likewise.
2427 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2429 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2430 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2431 to split out the SEQUENCE from local "bundle", strengthening the
2432 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2433 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2434 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2435 and the type of the elements of the "slot" array from rtx to
2437 (reorg_split_calls): Likewise for locals "insn" and "next", and
2438 the type of the elements of the "slot" array.
2440 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2442 (frv_function_prologue): Likewise for locals "insn", "next",
2444 (frv_register_nop): Introduce a local "nop_insn" to be the
2445 rtx_insn * containing rtx "nop".
2447 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2448 used as an insn and sometimes as a pattern, so rename it to
2449 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2450 using it where dealing with the core insn.
2452 * config/picochip/picochip.c (reorder_var_tracking_notes):
2453 Strengthen locals "insn", "next", "last_insn", "queue",
2454 "next_queue", "prev" from rtx to rtx_insn *.
2456 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2457 the second param is an rtx_insn ** rather than an rtx **.
2458 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2459 from rtx to rtx_sequence *, and introduce local named "sequence",
2460 using methods of rtx_sequence to clarify the code.
2461 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2463 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2464 Rename param "after" to "uncast_after", reintroducing "after" as a
2465 local rtx_insn * with a checked cast.
2466 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2467 reintroducing "after" as a local rtx_insn * with a checked cast.
2468 Strengthen local "last" from rtx to rtx_insn * and remove the
2469 now-redundant checked casts.
2470 (copy_delay_slot_insn): Strengthen return type and param from rtx
2473 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2474 "last" from rtx to rtx_insn *.
2476 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2478 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2479 param from rtx to rtx_insn *.
2481 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2483 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2484 and local "insn" from rtx to rtx_insn *.
2485 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2486 (unfilled_slots_next): Likewise.
2487 (function_return_label): Strengthen from rtx to rtx_code_label *.
2488 (function_simple_return_label): Likewise.
2489 (first_active_target_insn): Strengthen return type and param from
2491 (find_end_label): Strengthen return type from rtx to
2492 rtx_code_label *; strengthen locals as appropriate.
2493 (emit_delay_sequence): Strengthen return type, param "insn" and
2494 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2495 and local "li" from rtx to rtx_insn_list *, using methods of
2496 rtx_insn_list for clarity and typesafety.
2497 (add_to_delay_list): Strengthen return type and param "insn" from
2498 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2499 rtx_insn_list * and use methods of rtx_insn_list.
2500 (delete_from_delay_slot): Strengthen return type, param "insn",
2501 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2502 Strengthen local "seq" from rtx to rtx_sequence *, and local
2503 "delay_list" from rtx to rtx_insn_list *, using methods of
2504 rtx_sequence for clarity and type-safety.
2505 (delete_scheduled_jump): Add checked cast when invoking
2506 delete_from_delay_slot. Strengthen local "trial" from rtx to
2508 (optimize_skip): Strengthen return type and local "delay_list"
2509 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2511 (steal_delay_list_from_target): Strengthen return type, param
2512 "delay_list" and local "new_delay_list" from rtx to
2513 rtx_insn_list *. Strengthen param "seq" from rtx to
2514 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
2516 Split out local "temp" into multiple more-tightly scoped locals:
2517 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
2518 of rtx_insn_list and rtx_sequence for clarity and typesafety.
2519 Strengthen locals named "trial" from rtx to rtx_insn *.
2520 (steal_delay_list_from_fallthrough): Strengthen return type and
2521 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
2522 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
2523 Strengthen local "trial" from rtx to rtx_insn *.
2524 (try_merge_delay_insns): Strength local "merged_insns" from rtx
2525 to rtx_insn_list * and use its methods. Strengthen local "pat"
2526 from rtx to rtx_sequence * and use its methods. Strengthen locals
2527 "dtrial" and "new_rtx" from rtx to rtx_insn *.
2528 (get_label_before): Strengthen return type and local "label" from
2530 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
2531 "next_trial", "next", prev". Strengthen local "delay_list" from
2532 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
2534 (follow_jumps): Strengthen return type, param "label" and locals
2535 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
2536 (fill_slots_from_thread): Strengthen return type, param
2537 "delay_list" from rtx to rtx_insn_list *. Strengthen params
2538 "insn", "thread", "opposite_thread" and locals "new_thread",
2539 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
2540 "sequence" from a checked cast to rtx_sequence so that we can call
2541 steal_delay_list_from_target and steal_delay_list_from_fallthrough
2542 with an rtx_sequence *.
2543 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
2544 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
2545 Strengthen local "delay_list" from rtx to rtx_insn_list *.
2546 (relax_delay_slots): Strengthen param "first" and locals "insn",
2547 "next", "trial", "delay_insn", "target_label" from rtx to
2548 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
2549 Introduce a local "trial_seq" for PATTERN (trial) of type
2550 rtx_sequence *, in both cases using methods of rtx_sequence.
2551 (dbr_schedule): Strengthen param "first" and locals "insn",
2552 "next", "epilogue_insn" from rtx to rtx_insn *.
2554 2014-08-28 Richard Biener <rguenther@suse.de>
2556 PR tree-optimization/62283
2557 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2558 Do not peel loops for alignment where the vector loop likely
2559 doesn't run at least VF times.
2561 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2563 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
2564 important_candidates. Consider all important candidates if
2565 IVS doesn't give any result. Remove check on ivs->upto.
2566 (try_add_cand_for): Call iv_ca_add_use only once.
2568 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2569 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2570 Anna Tikhonova <anna.tikhonova@intel.com>
2571 Ilya Tocar <ilya.tocar@intel.com>
2572 Andrey Turetskiy <andrey.turetskiy@intel.com>
2573 Ilya Verbin <ilya.verbin@intel.com>
2574 Kirill Yukhin <kirill.yukhin@intel.com>
2575 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2577 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
2578 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
2580 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
2581 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2582 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2583 (define_insn "*mul<mode>3"): Add EVEX version.
2585 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2587 Anna Tikhonova <anna.tikhonova@intel.com>
2588 Ilya Tocar <ilya.tocar@intel.com>
2589 Andrey Turetskiy <andrey.turetskiy@intel.com>
2590 Ilya Verbin <ilya.verbin@intel.com>
2591 Kirill Yukhin <kirill.yukhin@intel.com>
2592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2594 * config/i386/sse.md
2595 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
2596 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
2597 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
2598 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
2599 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
2600 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
2601 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
2602 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
2603 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
2604 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
2605 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
2606 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
2607 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
2608 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
2609 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
2610 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
2612 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2613 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2614 Anna Tikhonova <anna.tikhonova@intel.com>
2615 Ilya Tocar <ilya.tocar@intel.com>
2616 Andrey Turetskiy <andrey.turetskiy@intel.com>
2617 Ilya Verbin <ilya.verbin@intel.com>
2618 Kirill Yukhin <kirill.yukhin@intel.com>
2619 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2621 * config/i386/sse.md
2622 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
2623 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
2624 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
2626 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2627 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2628 Anna Tikhonova <anna.tikhonova@intel.com>
2629 Ilya Tocar <ilya.tocar@intel.com>
2630 Andrey Turetskiy <andrey.turetskiy@intel.com>
2631 Ilya Verbin <ilya.verbin@intel.com>
2632 Kirill Yukhin <kirill.yukhin@intel.com>
2633 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2635 * config/i386/sse.md
2636 (define_mode_iterator VI128_256): New.
2637 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2639 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2641 Anna Tikhonova <anna.tikhonova@intel.com>
2642 Ilya Tocar <ilya.tocar@intel.com>
2643 Andrey Turetskiy <andrey.turetskiy@intel.com>
2644 Ilya Verbin <ilya.verbin@intel.com>
2645 Kirill Yukhin <kirill.yukhin@intel.com>
2646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2648 * config/i386/sse.md
2649 (define_mode_iterator VI8_256_512): New.
2650 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
2652 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2653 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
2655 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
2657 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2659 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
2660 pointer to the cumulative reloc value and return the value for
2662 (compute_reloc_for_rtx): Take a const_rtx. Call
2663 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
2664 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
2665 for_each_rtx for the CONST case.
2667 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2669 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
2670 (mark_constants_in_pattern): ...this new function to iterate over
2672 (mark_constants): Update accordingly.
2674 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2676 * varasm.c: Include rtl-iter.h.
2677 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
2678 Remove the pointer to the cumulative hashval_t and just return
2679 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
2680 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2681 Accumulate the hashval_ts here instead of const_rtx_hash_1.
2683 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2685 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
2686 Give real type of data parameter. Remove return value.
2687 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
2688 to iterate over subrtxes.
2690 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2692 * var-tracking.c (use_narrower_mode_test): Turn from being a
2693 for_each_rtx callback to being a function that examines each
2695 (adjust_mems): Update accordingly.
2697 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2699 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
2700 callback to being a function that examines each subrtx itself.
2701 Remove handling of null rtxes.
2702 (add_uses): Update accordingly.
2704 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2706 * var-tracking.c: Include rtl-iter.h.
2707 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
2708 to being a function that examines each subrtx itself.
2709 (use_type): Update accordingly.
2711 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2713 * store-motion.c: Include rtl-iter.h.
2714 (extract_mentioned_regs_1): Delete.
2715 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
2716 for_each_rtx to iterate over subrtxes.
2718 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2720 * sel-sched.c: Include rtl-iter.h
2721 (count_occurrences_1): Delete.
2722 (count_occurrences_equiv): Turn rtxes into const_rtxes.
2723 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2725 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2727 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
2728 * rtlanal.c (tls_referenced_p_1): Delete.
2729 (tls_referenced_p): Take a const_rtx rather than an rtx.
2730 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2732 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2734 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
2735 (for_each_inc_dec): Take an rtx rather than an rtx *.
2736 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
2737 (cselib_record_sets): Likewise.
2738 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
2739 (check_for_inc_dec): Likewise.
2740 * rtlanal.c (for_each_inc_dec_ops): Delete.
2741 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
2742 rather than a pointer to the memory address. Replace
2743 for_each_inc_dec_ops argument with separate function and data
2744 arguments. Abort on non-autoinc addresses.
2745 (for_each_inc_dec_find_mem): Delete.
2746 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
2747 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
2749 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2751 * rtl.h (find_all_hard_regs): Declare.
2752 * rtlanal.c (find_all_hard_regs): New function.
2753 (record_hard_reg_uses_1): Delete.
2754 (record_hard_reg_uses): Use find_all_hard_regs.
2756 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2758 * rtl.h (replace_label_data): Delete.
2759 (replace_label): Take the old label, new label and update-nuses flag
2760 as direct arguments. Return void.
2761 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
2762 * rtlanal.c (replace_label): Update interface as above. Handle
2763 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
2764 iterator. Use FOR_EACH_SUBRTX_PTR.
2766 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2768 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
2769 with const_rtx parameters.
2770 * varasm.c (get_pool_constant): Likewise.
2771 * rtlanal.c (rtx_referenced_p_1): Delete.
2772 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2773 Assert that the rtx we're looking for is nonnull. Allow searches
2774 for constant pool SYMBOL_REFs.
2776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2778 * reload1.c: Include rtl-iter.h.
2779 (note_reg_elim_costly): Turn from being a for_each_rtx callback
2780 to being a function that examines each subrtx itself.
2781 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
2783 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2785 * regcprop.c (cprop_find_used_regs_1): Delete.
2786 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2788 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2790 * regcprop.c: Include rtl-iter.h.
2791 (kill_value): Take a const_rtx.
2792 (kill_autoinc_value): Turn from being a for_each_rtx callback
2793 to being a function that examines each subrtx itself.
2794 (copyprop_hardreg_forward_1): Update accordingly.
2796 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2798 * reg-stack.c: Include rtl-iter.h.
2799 (subst_stack_regs_in_debug_insn): Delete.
2800 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2801 instead of for_each_rtx.
2803 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2805 * lower-subreg.c (find_decomposable_subregs): Turn from being
2806 a for_each_rtx callback to being a function that examines each
2807 subrtx itself. Remove handling of null rtxes.
2808 (decompose_multiword_subregs): Update accordingly.
2810 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2812 * lower-subreg.c (adjust_decomposed_uses): Delete.
2813 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2814 Remove handling of null rtxes.
2816 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2818 * lower-subreg.c: Include rtl-iter.h.
2819 (resolve_subreg_use): Turn from being a for_each_rtx callback
2820 to being a function that examines each subrtx itself. Remove
2821 handling of null rtxes.
2822 (resolve_reg_notes, resolve_simple_move): Update accordingly.
2823 (decompose_multiword_subregs): Likewise.
2825 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2827 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2828 to being a function that examines each subrtx itself.
2829 (simplify_using_condition, simplify_using_initial_values): Update
2832 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2834 * loop-iv.c: Include rtl-iter.h.
2835 (find_single_def_src): New function.
2836 (replace_single_def_regs): Turn from being a for_each_rtx callback
2837 to being a function that examines each subrtx itself.
2838 (replace_in_expr, simplify_using_initial_values): Update accordingly.
2840 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2842 * jump.c (eh_returnjump_p_1): Delete.
2843 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2844 Remove handling of null rtxes.
2846 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2848 * jump.c: Include rtl-iter.h.
2849 (returnjump_p_1): Delete.
2850 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2851 Remove handling of null rtxes.
2853 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2855 * ira.c: Include rtl-iter.h.
2856 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2857 to being a function that examines each subrtx itself. Remove
2858 handling of null rtxes.
2859 (update_equiv_regs): Update call accordingly.
2861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2863 * fwprop.c: Include rtl-iter.h.
2864 (varying_mem_p): Turn from being a for_each_rtx callback to being
2865 a function that examines each subrtx itself.
2866 (propagate_rtx): Update accordingly.
2868 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2870 * function.c: Include rtl-iter.h
2871 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2872 callback to being a function that examines each subrtx itself.
2873 Return the changed flag.
2874 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2875 (instantiate_virtual_regs): Update calls accordingly.
2877 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2879 * final.c: Include rtl-iter.h.
2880 (mark_symbol_ref_as_used): Delete.
2881 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2884 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2886 * emit-rtl.c: Include rtl-iter.h.
2887 (find_auto_inc): Turn from being a for_each_rtx callback to being
2888 a function that examines each subrtx itself. Assume the first operand
2889 to an RTX_AUTOINC is the automodified register.
2890 (try_split): Update call accordingly.
2892 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2894 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2895 Return a bool, inverting the result so that 0/false means "not ok".
2896 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2897 subrtxes of a CONST.
2898 (mem_loc_descriptor, add_const_value_attribute)
2899 (resolve_addr_in_expr): Update calls accordingly.
2901 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2903 * dwarf2out.c: Include rtl-iter.h.
2904 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2905 Remove unused data parameter. Return a bool, inverting the result
2906 so that 0/false means "not ok".
2907 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
2908 instead of for_each_rtx.
2910 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2912 * dse.c: Include rtl-iter.h.
2913 (check_mem_read_rtx): Change void * parameter to real type.
2914 Remove return value.
2915 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
2916 for_each_rtx. Don't handle null rtxes.
2918 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2920 * df-problems.c: Include rtl-iter.h.
2921 (find_memory): Turn from being a for_each_rtx callback to being
2922 a function that examines each subrtx itself. Continue to look for
2923 volatile references even after a nonvolatile one has been found.
2924 (can_move_insns_across): Update calls accordingly.
2926 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2928 * ddg.c (walk_mems_2, walk_mems_1): Delete.
2929 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2930 to iterate over subrtxes. Return a bool rather than an int.
2932 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2934 * ddg.c: Include rtl-iter.h.
2935 (mark_mem_use_1): Rename to...
2936 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
2937 instead of for_each_rtx.
2938 (mem_read_insn_p): Update accordingly.
2940 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2942 * cse.c (change_cc_mode_args): Delete.
2943 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2944 a function that examines each subrtx itself. Take the fields of
2945 change_cc_mode_args as argument and return void.
2946 (cse_change_cc_mode_insn): Update calls accordingly.
2948 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2950 * cse.c (is_dead_reg): Change argument to const_rtx.
2951 (dead_debug_insn_data): Delete.
2952 (is_dead_debug_insn): Expand commentary. Turn from being a
2953 for_each_rtx callback to being a function that examines
2954 each subrtx itself. Take the fields of dead_debug_insn_data
2956 (delete_trivially_dead_insns): Update call accordingly.
2958 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2960 * cse.c (check_for_label_ref): Move earlier in file. Turn from
2961 being a for_each_rtx callback to being a function that examines
2963 (cse_extended_basic_block): Update call accordingly.
2965 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2967 * cse.c (check_dependence_data): Delete.
2968 (check_dependence): Change from being a for_each_rtx callback to being
2969 a function that examines all subrtxes itself. Don't handle null rtxes.
2970 (invalidate): Update call accordingly.
2972 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2974 * cse.c: Include rtl-iter.h.
2975 (approx_reg_cost_1): Delete.
2976 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2977 Don't handle null rtxes.
2979 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2981 * cfgcleanup.c: Include rtl-iter.h.
2982 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2983 to being a function that examines each subrtx itself.
2984 (thread_jump): Update accordingly.
2986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2988 * combine-stack-adj.c: Include rtl-iter.h.
2989 (record_stack_refs_data): Delete.
2990 (record_stack_refs): Turn from being a for_each_rtx callback
2991 to being a function that examines each subrtx itself.
2992 Take a pointer to the reflist. Invert sense of return value
2993 so that true means success and false means failure. Don't
2995 (combine_stack_adjustments_for_block): Update accordingly.
2997 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2999 * combine.c (record_truncated_value): Turn from being a for_each_rtx
3000 callback to a function that takes an rtx and returns a bool
3001 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
3004 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3006 * combine.c: Include rtl-iter.h.
3007 (unmentioned_reg_p_1): Delete.
3008 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3009 Don't handle null rtxes.
3011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3013 * calls.c: Include rtl-iter.h.
3014 (internal_arg_pointer_based_exp_1): Delete.
3015 (internal_arg_pointer_based_exp): Take a const_rtx.
3016 Use FOR_EACH_SUBRTX to iterate over subrtxes.
3018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3020 * caller-save.c: Include rtl-iter.h.
3021 (add_used_regs_1): Delete.
3022 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
3023 to iterate over subrtxes. Assert that any remaining pseudos
3026 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3028 * bt-load.c: Include rtl-iter.h.
3029 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
3030 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
3031 to iterate over subrtxes.
3032 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
3033 find_btr_use rather than btr_referenced_p.
3035 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3037 * alias.c: Include rtl-iter.h.
3038 (refs_newer_value_cb): Delete.
3039 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3041 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3043 * rtl-iter.h: New file.
3044 * rtlanal.c: Include it.
3045 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
3046 (generic_subrtx_iterator <T>::add_single_to_queue)
3047 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
3048 (generic_subrtx_iterator <T>::free_array): New functions.
3049 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
3050 (generic_subrtx_iterator <const_rtx_accessor>)
3051 (generic_subrtx_iterator <rtx_var_accessor>
3052 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
3053 (setup_reg_subrtx_bounds): New function.
3054 (init_rtlanal): Call it.
3056 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3059 * config/sh/sh.md (ashlsi3): Handle negative shift count for
3061 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
3063 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
3065 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
3067 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3069 * rtl.h (JUMP_LABEL_AS_INSN): New.
3071 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3073 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
3075 (alloc_EXPR_LIST): Strengthen return type from rtx to
3077 (remove_free_EXPR_LIST_node): Likewise for param.
3078 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
3079 from rtx to rtx_expr_list *.
3080 * sched-int.h (struct deps_desc): Strengthen fields
3081 "pending_read_mems" and "pending_write_mems" from rtx to
3084 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
3085 rtx to rtx_expr_list *.
3086 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
3087 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
3089 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
3090 from rtx to rtx_expr_list *.
3091 * loop-iv.c (simplify_using_initial_values): Strengthen local
3092 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
3093 "pnote_next" from rtx * to rtx_expr_list **.
3094 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
3095 param "exprp" from rtx * to rtx_expr_list **.
3096 (add_insn_mem_dependence): Strengthen local "mem_list" from
3097 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
3099 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
3100 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
3101 param "old_mems_p" from rtx * to rtx_expr_list **.
3102 * var-tracking.c (struct adjust_mem_data): Strengthen field
3103 "side_effects" from rtx to rtx_expr_list *.
3104 (adjust_insn): Replace NULL_RTX with NULL when assigning to
3106 (prepare_call_arguments): Likewise.
3108 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3110 * function.h (struct rtl_data): Strengthen field
3111 "x_stack_slot_list" from rtx to rtx_expr_list *.
3113 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
3114 when assigning to stack_slot_list.
3116 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3118 * function.h (struct rtl_data): Strengthen field
3119 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
3120 * rtl.h (remove_node_from_expr_list): Strengthen second param from
3121 rtx * to rtx_expr_list **.
3123 * cfgbuild.c (make_edges): In loop over
3124 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
3125 rtx_expr_list *, and use methods of the latter class to clarify
3127 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
3128 rtx_expr_list *, and use methods of the latter class to clarify
3130 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3131 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3132 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
3133 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
3134 to rtx_expr_list *. Use methods of the latter class to clarify
3137 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3139 * function.h (struct expr_status): Strengthen field
3140 "x_forced_labels" from rtx to rtx_expr_list *.
3142 * cfgbuild.c (make_edges): Split local "x" into two locals,
3143 strengthening one from rtx to rtx_expr_list *, and using methods
3145 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3146 loop over forced_labels, introduce strengthen it from rtx to
3147 rtx_expr_list *, using methods to clarify the code.
3148 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3149 to rtx_expr_list *, using methods of said class to clarify the
3151 * reload1.c (set_initial_label_offsets): Split local "x" into two
3152 per-loop variables, strengthening the first from rtx to
3153 rtx_expr_list * and using methods.
3155 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3157 * coretypes.h (class rtx_expr_list): Add forward declaration.
3158 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3159 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3160 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3161 invariant: GET_CODE (X) == EXPR_LIST.
3162 (is_a_helper <rtx_expr_list *>::test): New.
3163 (rtx_expr_list::next): New.
3164 (rtx_expr_list::element): New.
3165 (gen_rtx_EXPR_LIST): New.
3167 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3169 * varasm.c (mark_constants): Convert a GET_CODE check into a
3170 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3171 Use methods of rtx_sequence to clarify the code.
3173 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3175 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3176 local "seq" via a checked cast, and use methods of rtx_sequence
3177 to simplify the code.
3179 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3181 * resource.c (mark_referenced_resources): Strengthen local
3182 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3183 using methods of rtx_sequence to clarify the code.
3184 (find_dead_or_set_registers): Within the switch statement, convert
3185 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3186 the JUMP_P handling, introduce another local "seq", adding a
3187 checked cast to rtx_sequence *. In both cases, use methods of
3188 rtx_sequence to clarify the code.
3189 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3190 via a checked cast, and use methods of rtx_sequence to simplify
3193 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3195 * reorg.c (redundant_insn): In two places in the function, replace
3196 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3197 usings methods of rtx_sequence to clarify the code.
3199 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3201 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3202 local "seq" with a checked cast, and use methods of rtx_sequence
3203 to clarify the code.
3205 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3207 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3208 with a checked cast, in the region for where we know it's a
3209 SEQUENCE. Use methods of rtx_sequence.
3211 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3213 * final.c (get_attr_length_1): Replace GET_CODE check with a
3214 dyn_cast, introducing local "seq" and the use of methods of
3216 (shorten_branches): Likewise, introducing local "body_seq".
3217 Strengthen local "inner_insn" from rtx to rtx_insn *.
3218 (reemit_insn_block_notes): Replace GET_CODE check with a
3219 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3220 Use methods of rtx_sequence.
3221 (final_scan_insn): Likewise, introducing local "seq" for when
3222 "body" is known to be a SEQUENCE, using its methods.
3224 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3226 * except.c (can_throw_external): Strengthen local "seq" from rtx
3227 to rtx_sequence *. Use methods of rtx_sequence.
3228 (insn_nothrow_p): Likewise.
3230 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3232 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3233 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3234 Use methods of rtx_sequence.
3235 (scan_trace): Likewise for local "pat".
3237 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3239 * coretypes.h (class rtx_sequence): Add forward declaration.
3240 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3241 invariant: GET_CODE (X) == SEQUENCE.
3242 (is_a_helper <rtx_sequence *>::test): New.
3243 (is_a_helper <const rtx_sequence *>::test): New.
3244 (rtx_sequence::len): New.
3245 (rtx_sequence::element): New.
3246 (rtx_sequence::insn): New.
3248 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3250 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3252 (alloc_INSN_LIST): Strengthen return type from rtx to
3254 (copy_INSN_LIST): Likewise for return type and param.
3255 (concat_INSN_LIST): Likewise for both params and return type.
3256 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3257 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3258 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3259 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3261 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3262 "implicit_sets", "control_uses", "clobbers" from rtx to
3264 (struct deps_desc): Likewise for fields "pending_read_insns",
3265 "pending_write_insns", "pending_jump_insns",
3266 "last_pending_memory_flush", "last_function_call",
3267 "last_function_call_may_noreturn", "sched_before_next_call",
3268 "sched_before_next_jump".
3269 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3270 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3272 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3273 from rtx to rtx_insn_list *.
3274 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3277 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3278 to rtx_insn_list **.
3279 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3281 (queue_insn): Likewise for local "link".
3282 (struct haifa_saved_data): Strengthen field "insn_queue" from
3283 rtx * to rtx_insn_list **.
3284 (save_backtrack_point): Update allocation of save->insn_queue to
3285 reflect the strengthening of elements from rtx to rtx_insn_list *.
3286 (queue_to_ready): Strengthen local "link" from rtx to
3287 rtx_insn_list *; use methods "next" and "insn" when traversing the
3289 (early_queue_to_ready): Likewise for locals "link", "next_link",
3291 (schedule_block): Update allocation of insn_queue to reflect the
3292 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3293 local "link" from rtx to rtx_insn_list *, and use methods when
3295 (add_to_speculative_block): Strengthen locals "twins" and
3296 "next_node" from rtx to rtx_insn_list *, and use methods when
3297 working with them. Strengthen local "twin" from rtx to
3298 rtx_insn *, eliminating a checked cast.
3299 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3300 from rtx to rtx_insn_list *, and use methods when working with
3303 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3304 from rtx to rtx_insn_list *, adding a checked cast.
3305 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3307 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3308 "newlink" from rtx to rtx_insn_list *. Strengthen local
3309 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3310 from rtx to rtx_insn *.
3311 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3312 from rtx to rtx_insn_list *. Use methods of the latter class.
3313 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3314 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3315 (remove_free_INSN_LIST_node): Strengthen return type and local
3316 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3317 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3318 rtx_insn_list *, using "insn" method.
3320 * sched-deps.c (add_dependence_list): Strengthen param "list"
3321 from rtx to rtx_insn_list *, and use methods when working with it.
3322 (add_dependence_list_and_free): Strengthen param "listp" from
3323 rtx * to rtx_insn_list **.
3324 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3325 to rtx_insn_list **, and use methods when working with *listp.
3326 (remove_from_both_dependence_lists): Strengthen param "listp" from
3327 rtx * to rtx_insn_list **
3328 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3329 to rtx_insn_list **. Eliminate local "link", in favor of two new
3330 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3332 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3333 by introducing local "cond_deps".
3334 (remove_from_deps): Strengthen param "insn" from rtx to
3337 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3338 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3339 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3340 Use methods of rtx_insn_list.
3342 * store-motion.c (struct st_expr): Strengthen fields
3343 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3344 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3346 (find_moveable_store): Split out "tmp" into multiple more-tightly
3347 scoped locals. Use methods of rtx_insn_list *.
3348 (compute_store_table): Strengthen local "tmp" from rtx to
3349 rtx_insn *. Use methods of rtx_insn_list *.
3351 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3353 * coretypes.h (class rtx_insn_list): Add forward declaration.
3354 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3355 (is_a_helper <rtx_insn_list *>::test): New.
3356 (rtx_insn_list::next): New.
3357 (rtx_insn_list::insn): New.
3358 (gen_rtx_INSN_LIST): Add prototype.
3359 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3360 * gengenrtl.c (special_rtx): Add INSN_LIST.
3362 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3364 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3365 "prev" from rtx to rtx_insn *.
3367 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3369 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3370 functions. Require merely an rtx for now, not an rtx_insn *.
3371 (BLOCK_FOR_INSN): Likewise.
3372 (INSN_LOCATION): Likewise.
3373 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3375 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3377 * rtl.h (PATTERN): Convert this macro into a pair of inline
3378 functions, for now, requiring const_rtx and rtx.
3380 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3382 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3384 (final_postscan_insn): Likewise.
3385 (adjust_cost): Likewise.
3386 (adjust_priority): Likewise.
3387 (variable_issue): Likewise.
3388 (macro_fusion_pair_p): Likewise.
3389 (dfa_post_cycle_insn): Likewise.
3390 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3391 (first_cycle_multipass_issue): Likewise.
3392 (dfa_new_cycle): Likewise.
3393 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3394 (speculate_insn): Likewise for param "insn".
3395 (gen_spec_check): Likewise for params "insn" and "label".
3396 (get_insn_spec_ds): Likewise for param "insn".
3397 (get_insn_checked_ds): Likewise.
3398 (dispatch_do): Likewise.
3399 (dispatch): Likewise.
3400 (cannot_copy_insn_p): Likewise.
3401 (invalid_within_doloop): Likewise.
3402 (legitimate_combined_insn): Likewise.
3406 * doc/tm.texi: Automatically updated to reflect changes to
3409 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3411 (schedule_block): Likewise.
3412 (sched_init): Likewise.
3413 (sched_speculate_insn): Strengthen param "insn" from rtx to
3415 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3417 * hooks.c (hook_bool_rtx_true): Rename to...
3418 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3420 (hook_constcharptr_const_rtx_null): Rename to...
3421 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3422 first param from const_rtx to const rtx_insn *.
3423 (hook_bool_rtx_int_false): Rename to...
3424 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3425 param from rtx to rtx_insn *.
3426 (hook_void_rtx_int): Rename to...
3427 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3430 * hooks.h (hook_bool_rtx_true): Rename to...
3431 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3433 (hook_bool_rtx_int_false): Rename to...
3434 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3435 param from rtx to rtx_insn *.
3436 (hook_void_rtx_int): Rename to...
3437 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3439 (hook_constcharptr_const_rtx_null): Rename to...
3440 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3441 first param from const_rtx to const rtx_insn *.
3443 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3444 and local "prev" from rtx to rtx_insn *.
3446 * sched-int.h (sched_speculate_insn): Strengthen first param from
3449 * sel-sched.c (create_speculation_check): Likewise for local "label".
3450 * targhooks.c (default_invalid_within_doloop): Strengthen param
3451 "insn" from const_rtx to const rtx_insn *.
3452 * targhooks.h (default_invalid_within_doloop): Strengthen param
3453 from const_rtx to const rtx_insn *.
3455 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3456 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3458 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3460 (arc_invalid_within_doloop): Likewise, with const.
3462 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3463 (arm_cannot_copy_insn_p): Likewise for param "insn".
3464 (arm_unwind_emit): Likewise.
3466 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3469 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3470 (c6x_variable_issue): Likewise. Removed now-redundant checked
3472 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3474 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3475 Likewise for param "insn".
3476 (epiphany_mode_after): Likewise.
3477 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3478 params "insn", "dep_insn".
3479 (epiphany_mode_needed): Likewise for param "insn".
3480 (epiphany_mode_after): Likewise.
3482 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3483 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3484 (ix86_avx_u128_mode_needed): Likewise.
3485 (ix86_i387_mode_needed): Likewise.
3486 (ix86_mode_needed): Likewise.
3487 (ix86_avx_u128_mode_after): Likewise.
3488 (ix86_mode_after): Likewise.
3489 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3490 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3491 (ix86_adjust_priority): Likewise for param "insn".
3492 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3493 (do_dispatch): Likewise.
3494 (has_dispatch): Likewise.
3495 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3497 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3498 reflect renaming of default hook implementation from
3499 hook_constcharptr_const_rtx_null to
3500 hook_constcharptr_const_rtx_insn_null.
3501 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3503 (ia64_variable_issue): Likewise for param "insn".
3504 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3505 (ia64_dfa_new_cycle): Likewise.
3506 (ia64_get_insn_spec_ds): Likewise.
3507 (ia64_get_insn_checked_ds): Likewise.
3508 (ia64_speculate_insn): Likewise.
3509 (ia64_gen_spec_check): Likewise for params "insn", "label".
3510 (ia64_asm_unwind_emit): Likewise for param "insn".
3512 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3514 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
3516 (m68k_sched_variable_issue): Likewise for param "insn".
3518 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
3521 * config/microblaze/microblaze.c (microblaze_adjust_cost):
3522 Likewise for params "insn", "dep".
3524 * config/mips/mips.c (mips_adjust_cost): Likewise.
3525 (mips_variable_issue): Likewise for param "insn".
3526 (mips_final_postscan_insn): Likewise.
3528 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
3529 for params "insn", "dep".
3531 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
3533 (pa_adjust_priority): Likewise for param "insn".
3535 * config/picochip/picochip.c (picochip_sched_adjust_cost):
3536 Likewise for params "insn", "dep_insn".
3538 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
3540 (rs6000_variable_issue): Likewise.
3541 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
3542 (rs6000_debug_adjust_cost): Likewise.
3543 (rs6000_adjust_priority): Likewise for param "insn".
3544 (rs6000_use_sched_lookahead_guard): Likewise.
3545 (get_next_active_insn): Likewise for return type and both params.
3546 (redefine_groups): Likewise for params "prev_head_insn", "tail"
3547 and locals "insn", "next_insn".
3548 (pad_groups): Likewise.
3550 * config/s390/s390.c (s390_adjust_priority): Likewise for param
3552 (s390_cannot_copy_insn_p): Likewise.
3553 (s390_sched_variable_issue): Likewise for third param, eliminating
3555 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
3556 default hook implementation from hook_constcharptr_const_rtx_null
3557 to hook_constcharptr_const_rtx_insn_null.
3559 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
3560 from rtx to rtx_insn *.
3561 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
3562 (sh_variable_issue): Likewise for param "insn".
3563 (sh_dfa_new_cycle): Likewise.
3564 (sh_mode_needed): Likewise.
3565 (sh_mode_after): Likewise.
3567 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
3568 params "insn", "dep_insn".
3569 (hypersparc_adjust_cost): Likewise.
3570 (sparc_adjust_cost): Likewise.
3572 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
3573 param, eliminated checked cast.
3574 (spu_sched_adjust_cost): Likewise for first and third params.
3576 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
3577 params "insn" and "dep_insn" from rtx to rtx_insn *.
3579 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
3581 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3583 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
3584 (set_is_load_p): ...this, updating to work on a SET pattern rather
3586 (is_store_insn): Rename to...
3587 (set_is_store_p): ...this, updating to work on a SET pattern
3588 rather than an insn.
3589 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
3590 top of function to where it is needed. Rewrite the bogus
3591 condition that checks for "insn" and "dep" being PARALLEL to
3592 instead use single_set, introducing locals "insn_set" and
3593 "dep_set". Given that we only ever returned "cost" for a non-pair
3594 of SETs, bail out early if we don't have a pair of SET.
3595 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
3596 use the new locals "insn_set" and "dep_set", and update calls to
3597 is_load_insn and is_store_insn to be calls to set_is_load_p and
3600 2014-08-27 Guozhi Wei <carrot@google.com>
3603 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
3604 amount before using it.
3606 2014-08-27 Richard Biener <rguenther@suse.de>
3608 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
3609 get_maxval_strlen inside a more useful API.
3610 (gimple_fold_builtin_with_strlen): Remove and fold into ...
3611 (gimple_fold_builtin): ... caller.
3612 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
3613 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
3614 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
3615 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
3616 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
3617 gimple_fold_builtin_sprintf): Adjust to compute maxval
3620 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
3623 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
3625 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3626 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3627 Anna Tikhonova <anna.tikhonova@intel.com>
3628 Ilya Tocar <ilya.tocar@intel.com>
3629 Andrey Turetskiy <andrey.turetskiy@intel.com>
3630 Ilya Verbin <ilya.verbin@intel.com>
3631 Kirill Yukhin <kirill.yukhin@intel.com>
3632 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3634 * config/i386/sse.md
3635 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
3636 Use `concat_tg_mode' attribute to determine asm register size.
3638 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3639 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3640 Anna Tikhonova <anna.tikhonova@intel.com>
3641 Ilya Tocar <ilya.tocar@intel.com>
3642 Andrey Turetskiy <andrey.turetskiy@intel.com>
3643 Ilya Verbin <ilya.verbin@intel.com>
3644 Kirill Yukhin <kirill.yukhin@intel.com>
3645 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3647 * config/i386/sse.md
3648 (define_mode_iterator VI48_AVX512VL): New.
3649 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
3650 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
3651 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
3652 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3653 with VI1): Change mode iterator.
3654 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3655 with VI_ULOADSTORE_BW_AVX512VL): New.
3656 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3657 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3658 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3659 with VI1): Change mode iterator.
3660 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3661 with VI_ULOADSTORE_BW_AVX512VL): New.
3662 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3663 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3664 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3665 with VI1): Change mode iterator.
3666 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3667 with VI_ULOADSTORE_BW_AVX512VL): New.
3668 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3669 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
3670 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
3671 (define_insn "<avx512>_storedqu<mode>_mask" with
3672 VI48_AVX512VL): New.
3673 (define_insn "<avx512>_storedqu<mode>_mask" with
3674 VI12_AVX512VL): Ditto.
3676 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3678 Anna Tikhonova <anna.tikhonova@intel.com>
3679 Ilya Tocar <ilya.tocar@intel.com>
3680 Andrey Turetskiy <andrey.turetskiy@intel.com>
3681 Ilya Verbin <ilya.verbin@intel.com>
3682 Kirill Yukhin <kirill.yukhin@intel.com>
3683 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3685 * config/i386/sse.md
3686 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
3687 (define_mode_iterator VI48_AVX512BW): New.
3688 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
3689 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3690 with VI48_AVX2_48_AVX512F): New.
3691 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3692 with VI2_AVX512VL): Ditto.
3694 2014-08-27 Richard Biener <rguenther@suse.de>
3697 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
3698 (fold_builtin_3): Do not fold strcat_chk here.
3699 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
3701 (gimple_fold_builtin): Fold strcat_chk here.
3703 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
3705 * dwarf2out.h (dwarf2out_decl): Remove prototype.
3706 * dwarf2out.c (dwarf2out_decl): Make static.
3708 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
3710 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
3712 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3714 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
3715 from rtx to rtx_insn *.
3716 (cselib_lookup_from_insn): Likewise for final param.
3717 (cselib_subst_to_values_from_insn): Likewise.
3718 (cselib_add_permanent_equiv): Likewise.
3720 * cselib.c (cselib_current_insn): Likewise for this variable.
3721 (cselib_subst_to_values_from_insn): Likewise for param "insn".
3722 (cselib_lookup_from_insn): Likewise.
3723 (cselib_add_permanent_equiv): Likewise for param "insn" and local
3724 "save_cselib_current_insn".
3725 (cselib_process_insn): Replace use of NULL_RTX with NULL.
3727 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
3728 from rtx to rtx_insn *.
3730 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3732 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
3735 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3737 * df.h (df_dump_insn_problem_function): Strengthen first param of
3738 this callback from const_rtx to const rtx_insn *.
3739 (struct df_insn_info): Strengthen field "insn" from rtx to
3741 (DF_REF_INSN): Eliminate this function, reinstating the older
3743 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
3744 (df_reg_defined): Likewise.
3745 (df_find_use): Likewise.
3746 (df_reg_used): Likewise.
3747 (df_dump_insn_top): Strengthen param 1 from const_rtx to
3749 (df_dump_insn_bottom): Likewise.
3750 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
3751 (df_insn_debug_regno): Likewise.
3752 (debug_df_insn): Likewise.
3753 (df_rd_simulate_one_insn): Likewise for param 2.
3754 (df_word_lr_simulate_defs): Likewise for param 1.
3755 (df_word_lr_simulate_uses): Likewise.
3756 (df_md_simulate_one_insn): Likewise for param 2.
3757 (df_simulate_find_noclobber_defs): Likewise for param 1.
3758 (df_simulate_find_defs): Likewise.
3759 (df_simulate_defs): Likewise.
3760 (df_simulate_uses): Likewise.
3761 (df_simulate_one_insn_backwards): Likewise for param 2.
3762 (df_simulate_one_insn_forwards): Likewise.
3763 (df_uses_create): Likewise for param 2.
3764 (df_insn_create_insn_record): Likewise for param 1.
3765 (df_insn_delete): Likewise.
3766 (df_insn_rescan): Likewise.
3767 (df_insn_rescan_debug_internal): Likewise.
3768 (df_insn_change_bb): Likewise.
3769 (df_notes_rescan): Likewise.
3770 * rtl.h (remove_death): Likewise for param 2.
3771 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
3773 * sched-int.h (reemit_notes): Strengthen param from rtx to
3775 * valtrack.h (propagate_for_debug): Likewise for param 1.
3777 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
3778 local "tmp_rtx" from const_rtx to const rtx_insn *.
3779 * combine.c (remove_death): Strengthen param "insn" from rtx to
3781 (move_deaths): Likewise for local "where_dead".
3782 * cse.c (delete_trivially_dead_insns): Introduce local
3783 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
3784 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
3786 (df_reg_defined): Likewise.
3787 (df_find_use): Likewise.
3788 (df_reg_used): Likewise.
3789 (df_dump_insn_problem_data): Strengthen param "insn" from
3790 const_rtx to const rtx_insn *.
3791 (df_dump_insn_top): Likewise.
3792 (df_dump_insn_bottom): Likewise.
3793 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3794 (df_insn_debug_regno): Likewise.
3795 (debug_df_insn): Likewise.
3796 (DF_REF_INSN): Delete.
3797 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3798 from rtx to rtx_insn *.
3799 (df_chain_insn_top_dump): Strengthen param "insn" from
3800 const_rtx to const rtx_insn *.
3801 (df_chain_insn_bottom_dump): Likewise.
3802 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3804 (df_word_lr_simulate_uses): Likewise.
3805 (df_print_note): Likewise.
3806 (df_remove_dead_and_unused_notes): Likewise.
3807 (df_set_unused_notes_for_mw): Likewise.
3808 (df_set_dead_notes_for_mw): Likewise.
3809 (df_create_unused_note): Likewise.
3810 (df_simulate_find_defs): Likewise.
3811 (df_simulate_find_uses): Likewise.
3812 (df_simulate_find_noclobber_defs): Likewise.
3813 (df_simulate_defs): Likewise.
3814 (df_simulate_uses): Likewise.
3815 (df_simulate_one_insn_backwards): Likewise.
3816 (df_simulate_one_insn_forwards): Likewise.
3817 (df_md_simulate_one_insn): Likewise.
3818 * df-scan.c (df_uses_create): Likewise.
3819 (df_insn_create_insn_record): Likewise.
3820 (df_insn_delete): Likewise.
3821 (df_insn_rescan): Likewise.
3822 (df_insn_rescan_debug_internal): Likewise.
3823 (df_insn_change_bb): Likewise.
3824 (df_notes_rescan): Likewise.
3825 (df_refs_add_to_chains): Likewise.
3826 (df_insn_refs_verify): Likewise.
3827 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3828 when invoking df_insn_delete.
3829 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3830 (set_unique_reg_note): Add checked cast.
3831 * final.c (cleanup_subreg_operands): Likewise.
3832 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3833 "insn" from rtx to rtx_insn *.
3834 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3835 "last" from rtx to rtx_insn *.
3836 * ira-emit.c (change_regs_in_insn): New function.
3837 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3838 Invoke change_regs_in_insn rather than change_regs.
3839 * ira.c (update_equiv_regs): Strengthen locals "insn",
3840 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
3841 for_each_rtx_in_insn rather than for_each_rtx.
3842 * recog.c (confirm_change_group): Add checked casts.
3843 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3845 (peep2_fill_buffer): Add checked cast.
3846 * rtlanal.c (remove_note): Likewise.
3847 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3848 locals "next" "end" from rtx to rtx_insn *.
3850 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3852 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3854 (struct reg_use_data): Likewise for field "insn".
3855 (insn_cost): Likewise for param.
3856 (real_insn_for_shadow): Likewise for return type and param.
3857 (increase_insn_priority): Likewise for param 1.
3858 (debug_dependencies): Likewise for both params.
3860 * haifa-sched.c (insn_delay): Likewise for param "insn".
3861 (real_insn_for_shadow): Likewise for return type and param "insn".
3862 (update_insn_after_change): Likewise for param "insn".
3863 (recompute_todo_spec): Likewise for param "next" and locals "pro",
3865 (insn_cost): Likewise for param "insn".
3866 (increase_insn_priority): Likewise.
3867 (calculate_reg_deaths): Likewise.
3868 (setup_insn_reg_pressure_info): Likewise.
3869 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3870 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3871 (model_recompute): Likewise.
3872 (must_restore_pattern_p): Likewise for param "next".
3873 (model_excess_cost): Likewise for param "insn".
3874 (queue_remove): Likewise.
3875 (adjust_priority): Likewise for param "prev".
3876 (update_register_pressure): Likewise for param "insn".
3877 (setup_insn_max_reg_pressure): Likewise for local "insn".
3878 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3879 (model_add_to_schedule): Likewise.
3880 (model_reset_queue_indices): Likewise for local "insn".
3881 (unschedule_insns_until): Strengthen local "recompute_vec" from
3882 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
3883 "con" from rtx to rtx_insn *.
3884 (restore_last_backtrack_point): Likewise for both locals "x". Add
3886 (estimate_insn_tick): Likewise for param "insn".
3887 (commit_schedule): Likewise for params "prev_head", "tail" and
3889 (verify_shadows): Likewise for locals "i1", "i2".
3890 (dump_insn_stream): Likewise for params "head", "tail" and locals
3891 "next_tail", "insn".
3892 (schedule_block): Likewise for locals "insn", "x". Add a checked
3894 (fix_inter_tick): Likewise for params "head", "tail".
3895 (create_check_block_twin): Likewise for local "jump".
3896 (haifa_change_pattern): Likewise for param "insn".
3897 (haifa_speculate_insn): Likewise.
3898 (dump_new_block_header): Likewise for params "head", "tail".
3899 (fix_jump_move): Likewise for param "jump".
3900 (move_block_after_check): Likewise.
3901 (sched_init_insn_luid): Likewise for param "insn".
3902 (sched_init_luids): Likewise for local "insn".
3903 (insn_luid): Likewise for param "insn".
3904 (init_h_i_d): Likewise.
3905 (haifa_init_h_i_d): Likewise for local "insn".
3906 (haifa_init_insn): Likewise for param "insn".
3907 * sched-deps.c (add_dependence): Likewise for local "real_pro",
3909 (create_insn_reg_use): Likewise for param "insn".
3910 (setup_insn_reg_uses): Likewise. Add a checked cast.
3911 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3912 "tail" from rtx to rtx_insn *.
3913 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3914 "insn", "next_tail".
3916 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3918 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3919 from rtx to rtx_insn *.
3920 (model_add_to_schedule): Likewise for locals "start", "end",
3923 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3925 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3927 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
3928 "to" and locals "insn", "next", "copy". Remove now-redundant
3931 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3933 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3934 rtx_insn * and param 4 from rtx * to rtx_insn **.
3935 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3936 param 2 from rtx * to rtx_insn **.
3938 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3939 rtx_insn * and final param from rtx * to rtx_insn **.
3941 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3942 from rtx to rtx_insn *.
3943 (try_head_merge_bb): Likewise for both locals named "move_upto".
3944 * df-problems.c (can_move_insns_across): Likewise for params
3945 "from", "to", "across_from", "across_to" and locals "insn",
3946 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
3948 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3949 from rtx to rtx_insn *.
3950 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3951 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3952 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3954 (noce_try_abs): Likewise.
3955 (noce_get_condition): Likewise for param "jump". Strengthen param
3956 "earliest" from rtx * to rtx_insn **.
3957 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3959 (find_cond_trap): Likewise.
3960 (dead_or_predicable): Likewise for local "earliest".
3961 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
3963 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3964 and local "prev". Strengthen param "earliest" from rtx * to
3966 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3967 Strengthen param "earliest" from rtx * to rtx_insn **.
3969 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3971 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3972 "to" and local "insn" from rtx to rtx_insn *.
3974 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3976 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3977 from rtx to rtx_insn *.
3978 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3979 (code_motion_path_driver): Likewise for local "last_insn".
3980 (simplify_changed_insns): Likewise for local "insn".
3982 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3984 * rtl.h (push_to_sequence): Strengthen param from rtx to
3986 (push_to_sequence2): Likewise for both params.
3987 (delete_insns_since): Likewise for param.
3988 (reorder_insns_nobb): Likewise for all three params.
3989 (set_new_first_and_last_insn): Likewise for both params.
3991 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3992 rtx_insn *. Remove now-redundant cast.
3993 (set_last_insn): Likewise.
3995 * builtins.c (expand_builtin_return): Strengthen local
3996 "call_fusage" from rtx to rtx_insn *.
3997 * cfgrtl.c (create_basic_block_structure): Likewise for local
3999 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
4000 "first", "last" and local "insn".
4001 (delete_insns_since): Likewise for param "from".
4002 (reorder_insns_nobb): Likewise for params "from", "to", "after"
4004 (push_to_sequence): Likewise for param "first" and local "last".
4005 (push_to_sequence2): Likewise for params "first" and "last".
4006 * lra.c (emit_add3_insn): Likewise for local "last".
4007 (lra_emit_add): Likewise.
4008 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
4010 (process_address_1): Likewise for locals "insn", last".
4011 * modulo-sched.c (ps_first_note): Likewise for return type.
4012 * optabs.c (expand_binop_directly): Likewise for param "last".
4014 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4016 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
4018 * emit-rtl.c (get_last_insn_anywhere): Likewise.
4020 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4022 * function.h (struct sequence_stack): Strengthen fields "first"
4023 and "last" from rtx to rtx_insn *.
4024 (struct emit_status): Likewise for fields "x_first_insn" and
4027 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
4028 (set_first_insn): Add checked cast.
4029 (get_last_insn): Remove now-redundant checked cast.
4030 (set_last_insn): Add checked cast.
4032 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
4033 "saved_first" and "saved_last" from rtx to rtx_insn *.
4035 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4037 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
4038 (unlink_insn_chain): Strengthen both params from rtx to
4041 * cfgrtl.c (cfg_layout_function_header): Likewise for this
4043 (unlink_insn_chain): Likewise for params "first" and "last".
4044 Remove now-redundant checked cast.
4045 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
4046 (fixup_reorder_chain): Strengthen local "insn" from rtx to
4048 * emit-rtl.c (link_insn_into_chain): Likewise for all three
4050 (add_insn): Likewise for param "insn" and local "prev".
4051 (add_insn_after_nobb): Likewise for both params and local "next".
4052 (add_insn_before_nobb): Likewise for both params and local "prev".
4053 (add_insn_after): Rename param "after" to "uncast_after",
4054 introducing local "after" with another checked cast.
4055 (add_insn_before): Rename params "insn" and "before", giving them
4056 "uncast_" prefixes, adding the old names back using checked casts.
4057 (emit_note_after): Likewise for param "after".
4058 (emit_note_before): Likewise for param "before".
4059 (emit_label): Add a checked cast.
4061 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4063 * cselib.h (cselib_record_sets_hook): Strengthen initial param
4064 "insn" from rtx to rtx_insn *.
4066 * cselib.c (cselib_record_sets_hook): Likewise.
4068 * var-tracking.c (add_with_sets): Likewise, renaming back from
4069 "uncast_insn" to "insn" and eliminating the checked cast from rtx
4072 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4074 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
4075 and "header_" from rtx to rtx_insn *.
4076 (struct basic_block_d): Likewise for field "head_" within "x"
4077 field of union basic_block_il_dependent.
4078 (BB_HEAD): Drop function...
4079 (SET_BB_HEAD): ...and this function in favor of...
4080 (BB_HEAD): ...reinstate macro.
4081 (BB_END): Drop function...
4082 (SET_BB_END): ...and this function in favor of...
4083 (BB_END): ...reinstate macro.
4084 (BB_HEADER): Drop function...
4085 (SET_BB_HEADER): ...and this function in favor of...
4086 (BB_HEADER): ...reinstate macro.
4088 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
4089 (fix_crossing_unconditional_branches): Likewise.
4090 * caller-save.c (save_call_clobbered_regs): Likewise.
4091 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
4092 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
4093 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4094 (merge_blocks_move_successor_nojumps): Likewise.
4095 (outgoing_edges_match): Update use of for_each_rtx to
4096 for_each_rtx_in_insn.
4097 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
4098 (expand_gimple_cond): Likewise.
4099 (expand_gimple_tailcall): Likewise.
4100 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
4102 (construct_exit_block): Drop use of SET_BB_END.
4103 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
4105 (delete_insn): Rename param "insn" to "uncast_insn", introducing
4106 a new local "insn" with a checked cast to rtx_insn *. Drop use of
4107 SET_BB_HEAD and SET_BB_END.
4108 (create_basic_block_structure): Drop use of SET_BB_HEAD and
4110 (rtl_delete_block): Drop use of SET_BB_HEAD.
4111 (rtl_split_block): Drop use of SET_BB_END.
4112 (emit_nop_for_unique_locus_between): Likewise.
4113 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
4114 (block_label): Drop use of SET_BB_HEAD.
4115 (fixup_abnormal_edges): Drop use of SET_BB_END.
4116 (record_effective_endpoints): Drop use of SET_BB_HEADER.
4117 (relink_block_chain): Likewise.
4118 (fixup_reorder_chain): Drop use of SET_BB_END.
4119 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
4120 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
4121 rtx_insn **. Drop use of SET_BB_HEADER.
4122 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
4124 (BB_HEAD): Delete this function.
4125 (SET_BB_HEAD): Likewise.
4127 (SET_BB_END): Likewise.
4128 (BB_HEADER): Likewise.
4129 (SET_BB_HEADER): Likewise.
4130 * emit-rtl.c (add_insn_after): Rename param "insn" to
4131 "uncast_insn", adding a new local "insn" and a checked cast to
4132 rtx_insn *. Drop use of SET_BB_END.
4133 (remove_insn): Strengthen locals "next" and "prev" from rtx to
4134 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
4135 (reorder_insns): Drop use of SET_BB_END.
4136 (emit_insn_after_1): Strengthen param "first" and locals "last",
4137 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
4138 (emit_pattern_after_noloc): Add checked cast.
4139 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
4140 (restore_other_notes): Likewise.
4141 (move_insn): Likewise.
4142 (sched_extend_bb): Likewise.
4143 (fix_jump_move): Likewise.
4144 * ifcvt.c (noce_process_if_block): Likewise.
4145 (dead_or_predicable): Likewise.
4146 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4147 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4148 * sel-sched-ir.c (sel_move_insn): Likewise.
4149 * sel-sched.c (move_nop_to_previous_block): Likewise.
4151 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4153 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4155 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4157 * basic-block.h (create_basic_block_structure): Strengthen params
4158 1 "head" and 2 "end" from rtx to rtx_insn *.
4159 * cfgrtl.c (create_basic_block_structure): Likewise.
4160 (rtl_create_basic_block): Update casts from void * to rtx to
4161 rtx_insn *, so that we can pass them as rtx_insn * to
4162 create_basic_block_structure.
4163 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4165 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4167 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4169 (check_for_inc_dec): Strengthen param "insn" from rtx to
4172 * cselib.h (cselib_process_insn): Likewise.
4174 * cselib.c (cselib_record_sets): Likewise.
4175 (cselib_process_insn): Likewise.
4177 * dse.c (struct insn_info): Likewise for field "insn".
4178 (check_for_inc_dec_1): Likewise for local "insn".
4179 (check_for_inc_dec): Likewise for param "insn".
4180 (scan_insn): Likewise.
4181 (dse_step1): Likewise for local "insn".
4183 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4184 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4186 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4188 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4189 from rtx to rtx_insn *.
4190 (DEP_PRO): Delete this function and...
4191 (SET_DEP_PRO): ...this function in favor of...
4192 (DEP_PRO): ...reinstate this macro.
4193 (DEP_CON): Delete this function and...
4194 (SET_DEP_CON): ...this function in favor of...
4195 (DEP_CON): ...reinstate this old macro.
4196 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4197 (init_dep): Likewise.
4198 (set_priorities): Likewise for both params.
4199 (sd_copy_back_deps): Likewise for params 1 and 2.
4201 * haifa-sched.c (priority): Likewise for param "insn" and local
4203 (set_priorities): Likewise for params "head" and "tail" and local
4205 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4207 (add_to_speculative_block): Add a checked cast.
4208 (create_check_block_twin): Drop use of SET_DEP_CON.
4209 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4212 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4213 Drop use of SET_DEP_PRO
4214 (init_dep): Strengthen params "pro" and "con" from rtx to
4216 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4220 (SET_DEP_PRO): Delete.
4221 (SET_DEP_CON): Delete.
4223 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4225 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4226 from rtx to rtx_insn *.
4227 (VINSN_INSN_RTX): Eliminate rvalue function and...
4228 (SET_VINSN_INSN): ...lvalue function in favor of...
4229 (VINSN_INSN_RTX): reinstate this old macro.
4231 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4232 in favor of VINSN_INSN_RTX.
4233 (VINSN_INSN_RTX): Delete this function.
4234 (SET_VINSN_INSN_RTX): Likewise.
4236 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4238 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4239 (BND_TO): Delete this function and...
4240 (SET_BND_TO): ...this functions in favor of...
4241 (BND_TO): ...reinstating this macro.
4242 (struct _fence): Strengthen field "executing_insns" from
4243 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4244 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4245 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4246 and param "insn" from rtx to insn_t.
4247 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4250 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4252 (rtx_vec_t): Likewise.
4253 (struct sched_deps_info_def): Strengthen param of "start_insn"
4254 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4255 "note_mem_dep" callback and first param of "note_dep" callback.
4257 * haifa-sched.c (add_to_speculative_block): Strengthen param
4258 "insn" from rtx to rtx_insn *.
4259 (clear_priorities): Likewise.
4260 (calc_priorities): Likewise for local "insn".
4262 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4263 Remove redundant checked cast.
4264 (haifa_note_mem_dep): Likewise for param "pending_insn".
4265 (haifa_note_dep): Likewise for param "elem".
4266 (note_mem_dep): Likewise for param "e".
4267 (sched_analyze_1): Add checked casts.
4268 (sched_analyze_2): Likewise.
4270 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4271 from rtx to rtx_insn *.
4272 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4273 from vec<rtx> * to vec<rtx_insn *> *.
4275 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4277 (flist_add): Strengthen param "executing_insns" from
4278 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4279 (advance_deps_context): Remove now-redundant checked cast.
4280 (init_fences): Replace uses of NULL_RTX with NULL.
4281 (merge_fences): Strengthen params "last_scheduled_insn" and
4282 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4283 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4284 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4285 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4286 an instruction, rather than doing double-duty as a pattern.
4287 (return_nop_to_pool): Update for change of insn_t.
4288 (deps_init_id): Remove now-redundant checked cast.
4289 (struct sched_scan_info_def): Strengthen param of "init_insn"
4290 callback from rtx to insn_t.
4291 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4292 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4294 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4295 "end" from rtx to rtx_insn *.
4296 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4297 (rtx insn_rtx, bool force_unique_p)
4298 (BND_TO): Delete function.
4299 (SET_BND_TO): Delete function.
4301 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4303 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4304 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4306 (undo_transformations): Likewise for param "insn".
4307 (update_liveness_on_insn): Likewise.
4308 (compute_live_below_insn): Likewise for param "insn" and local
4310 (update_data_sets): Likewise for param "insn".
4311 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4312 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4313 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4315 (move_cond_jump): Likewise for param "insn".
4316 (move_cond_jump): Drop use of SET_BND_TO.
4317 (compute_av_set_on_boundaries): Likewise.
4318 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4319 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4320 from rtx to rtx_insn *.
4321 (maybe_emit_renaming_copy): Likewise for param "insn".
4322 (maybe_emit_speculative_check): Likewise.
4323 (handle_emitting_transformations): Likewise.
4324 (remove_insn_from_stream): Likewise.
4325 (code_motion_process_successors): Strengthen local "succ" from rtx
4328 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4330 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4331 ilist_t, not _xlist_t;
4332 (ILIST_INSN): Define in terms of new union field "insn".
4333 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4335 (struct _list_node): Add new field "insn" to the union, of type
4337 (ilist_add): Replace macro with an inline function, requiring an
4339 (ilist_remove): Define this macro directly in terms of
4340 _list_remove, rather than indirectly via _xlist_remove.
4341 (ilist_clear): Likewise, in terms of _list_clear rather than
4343 (ilist_is_in_p): Replace macro with an inline function, requiring
4345 (_list_iter_cond_insn): New function.
4346 (ilist_iter_remove): Define this macro directly in terms of
4347 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4348 (ilist_iterator): Define directly in terms of _list_iterator
4349 rather than indirectly through _xlist_iterator.
4350 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4351 than in terms of _FOR_EACH_X.
4352 (FOR_EACH_INSN_1): Likewise.
4354 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4358 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4359 DECL_HARD_REGISTER and return for invalid register specifications.
4360 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4361 DECL_HARD_REGISTER, call expand_one_error_var.
4362 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4363 CC_REGNUM with non-MODE_CC modes.
4364 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4366 2014-08-26 Marek Polacek <polacek@redhat.com>
4369 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4371 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4373 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4374 qi cost; add di cost.
4375 (cortexa57_addrcost_table): Likewise.
4377 2014-08-26 Marek Polacek <polacek@redhat.com>
4380 * expr.c (is_aligning_offset): Remove logical not.
4382 2014-08-26 Marek Polacek <polacek@redhat.com>
4385 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4386 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4388 2014-08-26 Richard Biener <rguenther@suse.de>
4390 PR tree-optimization/62175
4391 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4392 expand possibly trapping operations.
4394 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4396 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4397 "insn" from rtx to rtx_insn *.
4398 (permute_load): Likewise for param "insn".
4399 (permute_store): Likewise.
4400 (handle_special_swappables): Likewise for local "insn".
4401 (replace_swap_with_copy): Likewise for locals "insn" and
4403 (rs6000_analyze_swaps): Likewise for local "insn".
4405 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4407 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4410 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4412 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4413 "note_list" from rtx to rtx_insn *.
4414 (BB_NOTE_LIST): Replace this function and...
4415 (SET_BB_NOTE_LIST): ...this function with...
4416 (BB_NOTE_LIST): ...the former macro implementation.
4418 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4419 local "from_start" from rtx to rtx_insn *. Strengthen param
4420 "to_endp" from rtx * to rtx_insn **.
4422 * haifa-sched.c (concat_note_lists): Likewise.
4423 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4425 (sel_restore_notes): Likewise.
4426 (move_bb_info): Likewise.
4427 (BB_NOTE_LIST): Delete this function.
4428 (SET_BB_NOTE_LIST): Delete this function.
4429 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4430 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4434 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4435 from rtx * to rtx_insn **.
4436 (reorder2): Likewise.
4437 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4438 from rtx to rtx_insn *.
4440 * doc/tm.texi: Update mechanically for above change to target.def.
4442 * sched-int.h (note_list): Strengthen this variable from rtx to
4444 (remove_notes): Likewise for both params.
4445 (restore_other_notes): Likewise for return type and first param.
4446 (struct ready_list): Strengthen field "vec" from rtx * to
4448 (struct dep_replacement): Strenghten field "insn" from rtx to
4450 (struct deps_desc): Likewise for fields "last_debug_insn",
4452 (struct haifa_sched_info): Likewise for callback field
4453 "can_schedule_ready_p"'s param, for first param of "new_ready"
4454 callback field, for both params of "rank" callback field, for
4455 first field of "print_insn" callback field (with a const), for
4456 both params of "contributes_to_priority" callback, for param
4457 of "insn_finishes_block_p" callback, for fields "prev_head",
4458 "next_tail", "head", "tail", for first param of "add_remove_insn"
4459 callback, for first param of "begin_schedule_ready" callback, for
4460 both params of "begin_move_insn" callback, and for second param
4461 of "advance_target_bb" callback.
4462 (add_dependence): Likewise for params 1 and 2.
4463 (sched_analyze): Likewise for params 2 and 3.
4464 (deps_analyze_insn): Likewise for param 2.
4465 (ready_element): Likewise for return type.
4466 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4467 (try_ready): Strenghten param from rtx to rtx_insn *.
4468 (sched_emit_insn): Likewise for return type.
4469 (record_delay_slot_pair): Likewise for params 1 and 2.
4470 (add_delay_dependencies): Likewise for param.
4471 (contributes_to_priority): Likewise for both params.
4472 (find_modifiable_mems): Likewise.
4474 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4475 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4476 "first_older_only_insn" from rtx to rtx_insn *.
4477 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4480 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4481 "last_scheduled_iter0" from rtx to rtx_insn *.
4482 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4483 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4484 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4485 "insn" from rtx to rtx_insn *.
4486 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4488 (c6x_sched_reorder2): Strengthen param "ready" and locals
4489 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4490 "insn" from rtx to rtx_insn *.
4491 (c6x_variable_issue): Add a checked cast when assigning from insn
4492 to ss.last_scheduled_iter0.
4493 (split_delayed_branch): Strengthen param "insn" and local "i1"
4494 from rtx to rtx_insn *.
4495 (split_delayed_nonbranch): Likewise.
4496 (undo_split_delayed_nonbranch): Likewise for local "insn".
4497 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4498 "entry_after", "end_packet", "head_insn", "tail_insn",
4499 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4500 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4501 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4502 but add a checked cast on loop->start_label. Consolidate calls to
4503 avoid assigning result of gen_spkernel to "insn", now an
4506 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4507 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4509 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4510 rtx_insn **. Strengthen locals "top", "next" from rtx to
4512 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4513 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4514 (add_parameter_dependencies): Strengthen params "call", "head" and
4515 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
4516 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
4517 (add_dependee_for_func_arg): Likewise for param "arg" and local
4519 (ix86_dependencies_evaluation_hook): Likewise for params "head",
4520 "tail" and locals "insn", "first_arg".
4522 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
4523 for params "head", "tail" and locals "insn", "next", "next_tail".
4524 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
4525 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
4526 "insn", "lowest", "highest" from rtx to rtx_insn *.
4527 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
4529 (ia64_sched_reorder2): Likewise.
4531 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
4532 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
4533 from rtx * to rtx_insn **.
4534 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
4536 (mep_print_sched_insn): Strengthen param "insn" from rtx to
4538 (mep_sched_reorder): Strengthen param "ready" from rtx * to
4539 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
4542 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
4543 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
4545 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
4546 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
4547 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
4549 (vr4130_reorder): Likewise.
4550 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
4552 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
4554 (mips_sched_reorder): Likewise.
4555 (mips_sched_reorder2): Likewise.
4557 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
4559 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
4560 Strengthen local "tmp" from rtx to rtx_insn *.
4561 (rs6000_sched_reorder2): Likewise.
4563 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
4564 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
4565 (s390_sched_reorder): Strengthen param "ready" from rtx * to
4566 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
4568 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
4569 "tmp2" from rtx to rtx_insn *.
4570 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
4571 Strengthen local "insn" from rtx to rtx_insn *.
4572 (ready_reorder): Strengthen param "ready" from rtx * to
4573 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
4574 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
4575 (sh_reorder2): Likewise.
4577 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
4578 local "insn" from rtx to rtx_insn *.
4580 * haifa-sched.c (note_list): Strengthen this variable from rtx to
4582 (scheduled_insns): Strengthen this variable from vec<rtx> to
4584 (set_modulo_params): Likewise for locals "i1", "i2".
4585 (record_delay_slot_pair): Likewise for params "i1", "i2".
4586 (add_delay_dependencies): Likewise for param "insn".
4587 (cond_clobbered_p): Likewise.
4588 (recompute_todo_spec): Likewise for local "prev".
4589 (last_scheduled_insn): Likewise for this variable.
4590 (nonscheduled_insns_begin): Likewise.
4591 (model_set_excess_costs): Strengthen param "insns" from rtx * to
4593 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
4595 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
4596 Strengthen local "insn" from rtx to rtx_insn *.
4597 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
4598 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4599 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
4600 (ready_remove_first): Likewise for return type and local "t".
4601 (ready_element): Likewise for return type.
4602 (ready_remove): Likewise for return type and local "t".
4603 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
4604 (check_clobbered_conditions): Strengthen local "x" from rtx to
4605 rtx_insn *, adding a checked cast.
4606 (schedule_insn): Likewise for param "insn".
4607 (remove_notes): Likewise for params "head", "tail" and locals
4608 "next_tail", "insn", "next".
4609 (struct haifa_saved_data): Likewise for fields
4610 "last_scheduled_insn", "nonscheduled_insns_begin".
4611 (save_backtrack_point): Update for change to field "vec" of
4613 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
4615 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
4616 from rtx to rtx_insn *
4617 (resolve_dependencies): Strengthen param "insn" from rtx to
4619 (restore_other_notes): Likewise for return type, for param "head"
4620 and local "note_head".
4621 (undo_all_replacements): Likewise for local "insn".
4622 (first_nonscheduled_insn): Likewise for return type and local "insn".
4623 (queue_to_ready): Likewise for local "insn", adding checked casts.
4624 (early_queue_to_ready): Likewise for local "insn".
4625 (debug_ready_list_1): Strengthen local "p" from rtx * to
4627 (move_insn): Strengthen param "insn" and local "note" from rtx to
4629 (insn_finishes_cycle_p): Likewise for param "insn".
4630 (max_issue): Likewise for local "insn".
4631 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
4633 (commit_schedule): Strengthen param "prev_head" and local "insn"
4634 from rtx to rtx_insn *
4635 (prune_ready_list): Likewise for local "insn".
4636 (schedule_block): Likewise for locals "prev_head", "head", "tail",
4637 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
4638 (set_priorities): Likewise for local "prev_head".
4639 (try_ready): Likewise for param "next".
4640 (fix_tick_ready): Likewise.
4641 (change_queue_index): Likewise.
4642 (sched_extend_ready_list): Update for change to field "vec" of
4644 (generate_recovery_code): Strengthen param "insn" from rtx to
4646 (begin_speculative_block): Likewise.
4647 (create_check_block_twin): Likewise for param "insn" and locals
4648 "label", "check", "twin". Introduce local "check_pat" to avoid
4649 "check" being used as a plain rtx before being used as an insn.
4650 (fix_recovery_deps): Add a checked cast to rtx_insn * when
4651 extracting elements from ready_list.
4652 (sched_remove_insn): Strengthen param "insn" from rtx to
4654 (sched_emit_insn): Likewise for return type.
4655 (ready_remove_first_dispatch): Likewise for return type and local
4658 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
4660 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
4663 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
4664 from rtx to rtx_insn *.
4665 (add_dependence_list): Likewise for param "insn". Add a checked
4667 (add_dependence_list_and_free): Strengthen param "insn" from rtx
4668 to rtx_insn *. Strengthen param "list_p" from rtx * to
4670 (chain_to_prev_insn): Strengthen param "insn" and locals
4671 "prec_nonnote", "i" from rtx to rtx_insn *.
4672 (flush_pending_lists): Likewise for param "insn".
4673 (cur_insn): Likewise for this variable.
4674 (haifa_start_insn): Add a checked cast.
4675 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
4676 (sched_analyze_reg): Likewise for param "insn".
4677 (sched_analyze_1): Likewise.
4678 (sched_analyze_2): Likewise. Add checked casts.
4679 (sched_analyze_insn): Likewise. Also for local "prev".
4680 (deps_analyze_insn): Likewise for param "insn".
4681 (sched_analyze): Likewise for params "head", "tail" and local "insn".
4682 (add_dependence_1): Likewise for params "insn", "elem".
4683 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
4684 (parse_add_or_inc): Likewise for param "insn".
4685 (find_inc): Likewise for local "inc_cand".
4686 (find_modifiable_mems): Likewise for params "head", "tail" and
4687 locals "insn", "next_tail".
4689 * sched-ebb.c (init_ready_list): Likewise for local "insn".
4690 (begin_schedule_ready): Likewise for param "insn".
4691 (begin_move_insn): Likewise for params "insn" and "last".
4692 (ebb_print_insn): Strengthen param "insn" from const_rtx to
4694 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
4695 (ebb_contributes_to_priority): Likewise for params "next", "insn".
4696 (ebb_add_remove_insn): Likewise for param "insn".
4697 (advance_target_bb): Likewise.
4699 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
4701 (check_live): Likewise for param "insn".
4702 (init_ready_list): Likewise for local "insn".
4703 (can_schedule_ready_p): Likewise for param "insn".
4704 (begin_schedule_ready): Likewise.
4705 (new_ready): Likewise for param "next".
4706 (rgn_print_insn): Likewise for param "insn".
4707 (rgn_rank): Likewise for params "insn1", "insn2".
4708 (contributes_to_priority): Likewise for params "next", "insn".
4709 (rgn_insn_finishes_block_p): Likewise for param "insn".
4710 (add_branch_dependences): Likewise for params "head", "tail" and
4711 locals "insn", "last".
4712 (rgn_add_remove_insn): Likewise for param "insn".
4713 (advance_target_bb): Likewise.
4715 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
4716 const_rtx to const rtx_insn *.
4718 * sel-sched-dump.h (sel_print_insn): Likewise.
4720 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
4721 (deps_init_id): Likewise.
4723 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
4724 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
4727 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4729 * output.h (final_start_function): Strengthen param 1 from rtx to
4732 * final.c (final_start_function): Likewise, renaming back from
4733 "uncast_first" to "first", and dropping the checked cast from rtx
4736 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4738 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
4739 * final.c (final): Likewise. Rename param back from
4740 "uncast_first" to "first" and eliminate the checked cast from rtx
4743 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4745 * output.h (shorten_branches): Strengthen param from rtx to
4748 * final.c (shorten_branches): Likewise, renaming param back from
4749 "uncast_first" to "first", and dropping the checked cast from rtx
4752 * genattr.c (gen_attr): Likewise when writing out the prototype of
4755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4757 * sched-int.h (struct haifa_sched_info): Strengthen fields
4758 "prev_head" and "next_tail" from rtx to rtx_insn *.
4760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4762 * rtl.h (rtx_jump_table_data::get_labels): New method.
4763 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
4764 with use of the new rtx_jump_table_data::get_labels method.
4765 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
4766 to rtx_jump_table_data *. Simplify by using get_labels method.
4767 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
4768 a dyn_cast, introducing local "table", using it to replace
4769 label-lookup logic with a get_labels method call.
4770 (patch_jump_insn): Simplify using get_labels method.
4771 * dwarf2cfi.c (create_trace_edges): Likewise.
4772 * rtlanal.c (label_is_jump_target_p): Likewise.
4774 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4776 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
4779 * emit-rtl.c (unshare_all_rtl_1): Likewise.
4780 (unshare_all_rtl_again): Likewise, also for local "p".
4782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4784 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
4786 * cfgrtl.c (delete_insn_and_edges): Likewise.
4788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4790 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4791 from rtx to rtx_insn *.
4793 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4795 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4797 * function.c (thread_prologue_and_epilogue_insns): Likewise for
4798 locals "returnjump", "epilogue_end", "insn", "next".
4800 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4801 "returnjump" from rtx * to rtx_insn **.
4802 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4804 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4806 * basic-block.h (struct edge_def). Strengthen "r" within
4807 union edge_def_insns from rtx to rtx_insn *.
4809 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4810 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
4812 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4813 from rtx to rtx_insn *.
4814 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4816 * postreload-gcse.c (reg_killed_on_edge): Likewise.
4817 (reg_used_on_edge): Likewise.
4818 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4819 (gt_pch_nx): New overload for rtx_insn *&.
4820 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4821 from rtx to rtx_insn *.
4823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4825 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4826 from rtx to rtx_insn *.
4827 (BB_FOOTER): Replace function with access macro.
4828 (SET_BB_FOOTER): Delete.
4830 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4832 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4833 (emit_barrier_after_bb): Likewise.
4834 (record_effective_endpoints): Likewise.
4835 (relink_block_chain): Likewise.
4836 (fixup_fallthru_exit_predecessor): Likewise.
4837 (cfg_layout_duplicate_bb): Likewise.
4838 (cfg_layout_split_block): Likewise.
4839 (cfg_layout_delete_block): Likewise.
4840 (cfg_layout_merge_blocks): Likewise.
4841 (BB_FOOTER): Delete function.
4842 (SET_BB_FOOTER): Delete function.
4843 * combine.c (update_cfg_for_uncondjump): Replace uses of
4844 SET_BB_FOOTER with BB_FOOTER.
4846 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4848 * except.h (struct eh_landing_pad_d): Strengthen field
4849 "landing_pad" from rtx to rtx_code_label *.
4851 * except.c (sjlj_emit_dispatch_table): Likewise for param
4853 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4857 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4858 first param from rtx to rtx_insn *.
4859 * config/xtensa/xtensa.c (struct machine_function): Likewise for
4860 field "set_frame_ptr_insn".
4861 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4862 "csend" from rtx to rtx_code_label *.
4863 (xtensa_expand_atomic): Likewise for local "csloop".
4864 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4866 (xtensa_call_tls_desc): Likewise for return type and locals
4867 "call_insn", "insns".
4868 (xtensa_legitimize_tls_address): Likewise for local "insns".
4869 (xtensa_expand_prologue): Likewise for locals "insn", "first".
4871 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4873 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4874 first param from rtx to rtx_insn *.
4875 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4878 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4880 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4881 Strengthen param 1 from rtx to rtx_insn *.
4882 (tilepro_output_cbranch): Likewise.
4883 (tilepro_adjust_insn_length): Likewise.
4884 (tilepro_final_prescan_insn): Likewise for sole param.
4886 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4887 Likewise for local "last".
4888 (cbranch_predicted_p): Likewise for param "insn".
4889 (tilepro_output_simple_cbranch_with_opcode): Likewise.
4890 (tilepro_output_cbranch_with_opcode): Likewise.
4891 (tilepro_output_cbranch): Likewise.
4892 (frame_emit_load): Likewise for return type and locals "seq",
4894 (emit_sp_adjust): Likewise for return type and local "insn".
4895 (tilepro_expand_epilogue): Likewise for locals "last_insn",
4897 (tilepro_adjust_insn_length): Likewise for param "insn".
4898 (next_insn_to_bundle): Likewise for return type and params
4900 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4901 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4903 (match_addli_pcrel): Likewise for param "insn".
4904 (replace_addli_pcrel): Likewise.
4905 (match_auli_pcrel): Likewise.
4906 (replace_auli_pcrel): Likewise.
4907 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4909 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4910 "queue", "next_queue", "prev".
4911 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4912 (tilepro_final_prescan_insn): Likewise for param "insn".
4914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4916 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4917 Strengthen param 1 from rtx to rtx_insn *.
4918 (tilegx_output_cbranch): Likewise.
4919 (tilegx_adjust_insn_length): Likewise.
4920 (tilegx_final_prescan_insn): Likewise for sole param.
4922 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4924 (cbranch_predicted_p): Likewise for param "insn".
4925 (tilegx_output_simple_cbranch_with_opcode): Likewise.
4926 (tilegx_output_cbranch_with_opcode): Likewise.
4927 (tilegx_output_cbranch): Likewise.
4928 (frame_emit_load): Likewise for return type.
4929 (set_frame_related_p): Likewise for locals "seq", "insn".
4930 (emit_sp_adjust): Likewise for return type, and for local "insn".
4931 Introduce local "pat" for use in place of "insn" where the latter
4932 isn't an instruction.
4933 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4934 from rtx to rtx_insn *.
4935 (tilegx_adjust_insn_length): Likewise for param "insn".
4936 (next_insn_to_bundle): Likewise for return type and params "r" and
4938 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4940 (replace_insns): Likewise for params "old_insn", "new_insns".
4941 (replace_mov_pcrel_step1): Likewise for param "insn" and local
4943 (replace_mov_pcrel_step2): Likewise.
4944 (replace_mov_pcrel_step3): Likewise.
4945 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4947 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4948 "queue", "next_queue", "prev".
4949 (tilegx_output_mi_thunk): Likewise for local "insn".
4950 (tilegx_final_prescan_insn): Likewise for param "insn".
4952 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4954 * config/spu/spu.c (frame_emit_store): Strengthen return type from
4956 (frame_emit_load): Likewise.
4957 (frame_emit_add_imm): Likewise, also for local "insn".
4958 (spu_expand_prologue): Likewise for local "insn".
4959 (struct spu_bb_info): Likewise for field "prop_jump".
4960 (emit_nop_for_insn): Likewise for param "insn" and local
4962 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4964 (spu_emit_branch_hint): Likewise for params "before", "branch" and
4965 locals "hint", "insn".
4966 (get_branch_target): Likewise for param "branch".
4967 (insn_clobbers_hbr): Likewise for param "insn".
4968 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4969 locals "insn", "before_4", "before_16".
4970 (insert_hbrp): Likewise for local "insn".
4971 (spu_machine_dependent_reorg): Likewise for locals "branch",
4972 "insn", "next", "bbend".
4973 (uses_ls_unit): Likewise for param "insn".
4974 (get_pipe): Likewise.
4975 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4976 introducing a checked cast.
4977 (spu_sched_adjust_cost): Likewise for params "insn" and
4979 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4980 (spu_sms_res_mii): Likewise.
4982 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4984 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4985 from rtx to rtx_insn *.
4986 (output_cbranch): Likewise for param 6.
4987 (output_return): Likewise for param 1.
4988 (output_sibcall): Likewise.
4989 (output_v8plus_shift): Likewise.
4990 (output_v8plus_mult): Likewise.
4991 (output_v9branch): Likewise for param 7.
4992 (output_cbcond): Likewise for param 3.
4994 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4996 (sparc_legitimize_pic_address): Likewise.
4997 (sparc_emit_call_insn): Likewise.
4998 (emit_save_or_restore_regs): Likewise.
4999 (emit_window_save): Likewise for return type and local "insn".
5000 (sparc_expand_prologue): Likewise for local "insn".
5001 (sparc_flat_expand_prologue): Likewise.
5002 (output_return): Likewise for param "insn".
5003 (output_sibcall): Likewise for param "insn" and local "delay".
5004 (output_ubranch): Likewise for param "insn".
5005 (output_cbranch): Likewise.
5006 (output_cbcond): Likewise.
5007 (output_v9branch): Likewise.
5008 (output_v8plus_shift): Likewise.
5009 (sparc_output_mi_thunk): Likewise for local "insn".
5010 (get_some_local_dynamic_name): Likewise.
5011 (output_v8plus_mult): Likewise for param "insn".
5013 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5015 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
5016 from rtx to rtx_insn *.
5017 (output_branchy_insn): Likewise for param 3.
5018 (output_far_jump): Likewise for param 1.
5019 (final_prescan_insn): Likewise.
5020 (sh_insn_length_adjustment): Likewise for sole param.
5022 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
5023 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
5025 (sh_emit_compare_and_set): Likewise for local "lab".
5026 (output_far_jump): Strengthen param "insn" and local "prev" from
5028 (output_branchy_insn): Likewise for param "insn" and local
5030 (output_ieee_ccmpeq): Likewise for param "insn".
5031 (struct label_ref_list_d): Strengthen field "label" from rtx to
5033 (pool_node): Likewise.
5034 (pool_window_label): Likewise for this global.
5035 (add_constant): Likewise for return type and locals "lab", "new_rtx".
5036 (dump_table): Strengthen params "start", "barrier" and local
5037 "scan" from rtx to rtx_insn *.
5038 (broken_move): Likewise for param "insn".
5039 (untangle_mova): Likewise for params "first_mova" and "new_mova".
5040 Strengthen param "first_mova" from rtx * to rtx_insn **.
5041 (mova_p): Likewise for param "insn".
5042 (fixup_mova): Likewise for param "mova".
5043 (find_barrier): Likewise for return type, params "mova" and
5044 "from", and locals "barrier_before_mova", "found_barrier",
5045 "good_barrier", "orig", "last_symoff", "next". Strengthen local
5046 "label" from rtx to rtx_code_label *.
5047 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
5049 (sh_reorg): Likewise for locals "link", "scan", "barrier".
5050 (split_branches): Likewise for param "first" and local "insn".
5051 (final_prescan_insn): Likewise for param "insn".
5052 (sequence_insn_p): Likewise for locals "prev", "next".
5053 (sh_insn_length_adjustment): Likewise for param "insn".
5054 (sh_can_redirect_branch): Likewise for local "insn".
5055 (find_r0_life_regions): Likewise for locals "end", "insn".
5056 (sh_output_mi_thunk): Likewise for local "insns".
5058 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5060 * config/score/score.c (score_output_mi_thunk): Strengthen local
5061 "insn" from rtx to rtx_insn *.
5062 (score_prologue): Likewise.
5064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5066 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
5067 1 from rtx to rtx_insn *.
5068 (s390_emit_jump): Likewise for return type.
5069 (s390_emit_call): Likewise.
5070 (s390_load_got): Likewise.
5072 * config/s390/s390.c (last_scheduled_insn): Likewise for this
5074 (s390_match_ccmode): Likewise for param "insn".
5075 (s390_emit_jump): Likewise for return type.
5076 (s390_split_branches): Likewise for local "label".
5077 (struct constant): Strengthen field "label" from rtx to
5079 (struct constant_pool): Likewise for field "label". Strengthen
5080 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
5082 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
5084 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
5085 (s390_end_pool): Likewise.
5086 (s390_dump_pool): Likewise for local "insn".
5087 (s390_mainpool_start): Likewise.
5088 (s390_chunkify_start): Likewise.
5089 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
5090 with insns. Strengthen locals "label", "jump", "barrier", "next",
5091 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
5092 (s390_chunkify_finish): Strengthen local "insn" from rtx to
5094 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
5095 "jump", "label", "next_insn".
5096 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
5097 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
5099 (s390_load_got): Likewise for return type and local "insns".
5100 (s390_save_gprs_to_fprs): Likewise for local "insn".
5101 (s390_restore_gprs_from_fprs): Likewise.
5102 (pass_s390_early_mach::execute): Likewise.
5103 (s390_emit_prologue): Likewise for local "insns".
5104 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
5106 (s390_emit_call): Strengthen return type and local "insn" from
5108 (s390_emit_tpf_eh_return): Likewise for local "insn".
5109 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
5110 "next_insn", introducing locals "s_pat", "rpat" to allow this.
5111 (s390_fix_long_loop_prediction): Likewise for param "insn" and
5113 (s390_non_addr_reg_read_p): Likewise for param "insn".
5114 (find_cond_jump): Likewise for return type and param "insn".
5115 (s390_swap_cmp): Likewise for param "insn".
5116 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
5117 "prev_insn", "next_insn".
5118 (s390_reorg): Likewise for locals "insn", "target".
5119 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
5120 (s390_sched_variable_issue): For now, rename param "insn" to
5121 "uncast_insn", introducing a checked cast.
5122 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
5124 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
5125 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
5127 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5129 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
5130 param from rtx to rtx_insn *.
5131 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
5133 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5135 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
5136 4 from rtx to rtx_insn *.
5137 (rs6000_final_prescan_insn): Likewise for first param.
5138 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
5140 (rs6000_get_some_local_dynamic_name): Likewise.
5141 (output_cbranch): Likewise for param "insn".
5142 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
5143 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
5144 (rs6000_emit_allocate_stack): Likewise for local "insn".
5145 (load_cr_save): Likewise.
5146 (restore_saved_cr): Likewise.
5147 (restore_saved_lr): Likewise.
5148 (emit_cfa_restores): Likewise.
5149 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5150 "deleted_debug_label".
5151 (rs6000_output_mi_thunk): Likewise for local "insn".
5152 (rs6000_final_prescan_insn): Likewise for param "insn".
5154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5156 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5157 Strengthen param "insn" from rtx to rtx_insn *.
5158 * config/picochip/picochip.c (picochip_current_prescan_insn):
5159 Likewise for this variable.
5160 (picochip_final_prescan_insn): Likewise for param "insn".
5162 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5164 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5165 from rtx to rtx_insn *.
5166 (pa_output_indirect_call): Likewise.
5167 (pa_adjust_insn_length): Likewise.
5168 (pa_attr_length_millicode_call): Likewise.
5169 (pa_attr_length_call): Likewise.
5170 (pa_attr_length_indirect_call): Likewise.
5172 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5174 (pa_attr_length_millicode_call): Likewise.
5175 (pa_attr_length_call): Likewise.
5176 (pa_output_call): Likewise.
5177 (pa_attr_length_indirect_call): Likewise.
5178 (pa_output_indirect_call): Likewise.
5180 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5182 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5183 Strengthen first param from rtx to rtx_insn *.
5184 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5187 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5189 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5190 type from rtx to rtx_insn *.
5191 (mips_expand_call): Likewise.
5192 (mips_adjust_insn_length): Likewise for first param.
5193 (mips_output_conditional_branch): Likewise.
5194 (mips_output_order_conditional_branch): Likewise.
5195 (mips_final_prescan_insn): Likewise.
5197 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5198 rtx_insn * for the SEQUENCE case.
5199 (SEQ_END): Likewise.
5200 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5201 (mips_emit_call_insn): Likewise, also for local "insn".
5202 (mips16_gp_pseudo_reg): Likewise for local "scan".
5203 (mips16_build_call_stub): Likewise for return type and for local
5204 "insn". Introduce a new local "pattern" so that "insn" can indeed
5206 (mips_expand_call): Strengthen return type and local "insn" from
5208 (mips_block_move_loop): Strengthen local "label" from rtx to
5210 (mips_expand_synci_loop): Likewise for locals "label",
5212 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5214 (mips16e_collect_argument_saves): Likewise for locals "insn",
5216 (mips_find_gp_ref): Likewise for param of callback for "pred"
5217 param, and for local "insn".
5218 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5219 (mips_insn_has_flexible_gp_ref_p): Likewise.
5220 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5222 (mips_epilogue_set_cfa): Likewise for local "insn".
5223 (mips_expand_epilogue): Likewise.
5224 (mips_adjust_insn_length): Likewise for param "insn".
5225 (mips_output_conditional_branch): Likewise.
5226 (mips_output_order_conditional_branch): Likewise.
5227 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5228 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5229 "falu2_turn_enabled_insn".
5230 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5231 "done_label" from rtx to rtx_code_label *.
5232 (struct mips16_constant): Likewise for field "label".
5233 (mips16_add_constant): Likewise for return type.
5234 (mips16_emit_constants_1): Strengthen return type and param "insn"
5235 from rtx to rtx_insn *.
5236 (mips16_emit_constants): Likewise for param "insn".
5237 (mips16_insn_length): Likewise.
5238 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5239 to rtx_code_label *.
5240 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5241 from rtx to rtx_insn *.
5242 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5243 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5244 (r10k_simplify_address): Strengthen param "insn" and local
5245 "def_insn" from rtx to rtx_insn *.
5246 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5248 (r10k_needs_protection_p_1): Update target type of cast of data
5249 from to rtx to rtx_insn *.
5250 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5251 rtx * to rtx_insn **.
5252 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5254 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5255 (mips_call_expr_from_insn): Likewise for param "insn".
5256 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5257 (mips_find_pic_call_symbol): Likewise for param "insn".
5258 (mips_annotate_pic_calls): Likewise for local "insn".
5259 (mips_sim_insn): Likewise for this variable.
5260 (struct mips_sim): Likewise for field "insn" within elements of
5262 (mips_sim_wait_reg): Likewise for param "insn".
5263 (mips_sim_wait_regs): Likewise.
5264 (mips_sim_wait_units): Likewise.
5265 (mips_sim_wait_insn): Likewise.
5266 (mips_sim_issue_insn): Likewise.
5267 (mips_sim_finish_insn): Likewise.
5268 (mips_seq_time): Likewise for param "seq" and local "insn".
5269 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5270 locals "first", "second".
5271 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5272 "last", "last2", "next".
5273 (mips_avoid_hazard): Likewise for params "after", "insn".
5274 (mips_reorg_process_insns): Likewise for locals "insn",
5275 "last_insn", "subinsn", "next_insn".
5276 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5277 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5279 (mips_output_mi_thunk): Likewise for local "insn".
5280 (mips_final_prescan_insn): Likewise for param "insn".
5282 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5284 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5285 Strengthen return type and local "insns" from rtx to rtx_insn *.
5286 (microblaze_legitimize_tls_address): Likewise for local "insns".
5287 (microblaze_block_move_loop): Strengthen local "label" from rtx
5288 to rtx_code_label *.
5289 (microblaze_expand_prologue): Strengthen two locals named "insn"
5290 from rtx to rtx_insn *.
5291 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5292 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5293 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5294 to rtx_code_label *.
5296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5298 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5299 param from rtx to rtx_insn *.
5300 (mep_reuse_lo): Likewise for third param.
5301 (mep_use_post_modify_p): Likewise for first param.
5302 (mep_core_address_length): Likewise.
5303 (mep_cop_address_length): Likewise.
5304 (mep_final_prescan_insn): Likewise.
5305 (mep_store_data_bypass_p): Likewise for both params.
5306 (mep_mul_hilo_bypass_p): Likewise.
5307 (mep_ipipe_ldc_p): Likewise for param.
5309 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5310 (mep_rewrite_mult): Likewise.
5311 (mep_rewrite_mulsi3): Likewise.
5312 (mep_rewrite_maddsi3): Likewise.
5313 (mep_reuse_lo_p_1): Likewise.
5314 (mep_reuse_lo_p): Likewise.
5315 (mep_frame_expr): Likewise.
5316 (mep_make_parallel): Likewise for both params.
5317 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5319 (mep_use_post_modify_p): Likewise for param "insn".
5320 (mep_core_address_length): Likewise.
5321 (mep_cop_address_length): Likewise.
5322 (mep_reg_set_in_function): Likewise for local "insn".
5323 (mep_asm_without_operands_p): Likewise.
5324 (F): Likewise for return type and param "x".
5325 (add_constant): Likewise for local "insn".
5326 (maybe_dead_move): Likewise for return type and local "insn".
5327 (mep_expand_prologue): Likewise for local "insn".
5328 (mep_final_prescan_insn): Likewise for param "insn".
5329 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5330 "next", "follow", "x".
5331 (mep_insert_repeat_label_last): Likewise for return type, param
5332 "last_insn", and locals "next", "prev". Strengthen param "label"
5333 from rtx to rtx_code_label *.
5334 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5336 (struct mep_doloop_end): Likewise for fields "insn" and
5338 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5339 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5340 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5342 (mep_invert_branch): Likewise for params "insn" and "after".
5343 (mep_reorg_erepeat): Likewise for param "insns" and locals
5344 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5345 "l" from rtx to rtx_code_label *.
5346 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5347 from rtx to rtx_insn *.
5348 (mep_reorg_addcombine): Likewise for param "insns" and locals
5350 (add_sp_insn_p): Likewise for param "insn".
5351 (mep_reorg_noframe): Likewise for param "insns" and locals
5352 "start_frame_insn", "end_frame_insn", "next".
5353 (mep_reorg): Likewise for local "insns".
5354 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5356 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5357 (mep_mul_hilo_bypass_p): Likewise.
5358 (mep_ipipe_ldc_p): Likewise for param "insn".
5359 (mep_make_bundle): Likewise for return type, param "cop" and local
5360 "insn", splitting out the latter into a new local "seq" for when it
5361 is a SEQUENCE rather than an insn.
5362 (core_insn_p): Likewise for param "insn".
5363 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5364 "last", "first", "note", "prev", "core_insn".
5366 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5368 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5370 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5371 (m68k_final_prescan_insn): Likewise for first param.
5373 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5374 (m68k_set_frame_related): Likewise for param "insn".
5375 (output_btst): Likewise for param "insn".
5376 (m68k_final_prescan_insn): Likewise.
5377 (m68k_move_to_reg): Likewise for local "insn".
5378 (m68k_call_tls_get_addr): Likewise for local "insns".
5379 (m68k_call_m68k_read_tp): Likewise.
5380 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5381 (m68k_output_mi_thunk): Likewise for local "insn".
5383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5385 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5386 first param from rtx to rtx_insn *.
5387 (iq2000_adjust_insn_length): Likewise.
5388 (iq2000_output_conditional_branch): Likewise.
5389 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5390 "insn" and local "nop_insn".
5391 (iq2000_annotate_frame_insn): Likewise for param "insn".
5392 (iq2000_expand_prologue): Likewise for both locals "insn".
5393 (iq2000_adjust_insn_length): Likewise for param "insn".
5394 (iq2000_output_conditional_branch): Likewise.
5396 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5398 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5399 "insns" from rtx to rtx_insn *.
5400 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5401 (struct spill_fill_data): Likewise for field "init_after" and for
5402 elements of array field "prev_insn".
5403 (spill_restore_mem): Likewise for locals "insn", "first".
5404 (do_spill): Likewise for local "insn".
5405 (do_restore): Likewise.
5406 (ia64_expand_prologue): Likewise.
5407 (ia64_expand_epilogue): Likewise.
5408 (emit_insn_group_barriers): Likewise for locals "insn",
5410 (emit_all_insn_group_barriers): Likewise for locals "insn",
5412 (dfa_stop_insn): Likewise for this global.
5413 (dfa_pre_cycle_insn): Likewise.
5414 (ia64_nop): Likewise.
5415 (final_emit_insn_group_barriers): Likewise for locals "insn",
5417 (emit_predicate_relation_info): Likewise for locals "head", "n",
5419 (ia64_reorg): Likewise for local "insn".
5420 (ia64_output_mi_thunk): Likewise.
5421 (expand_vec_perm_interleave_2): Likewise for local "seq".
5423 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5425 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5426 param 1 "insn" from rtx to rtx_insn *.
5427 (ix86_use_lea_for_mov): Likewise.
5428 (ix86_avoid_lea_for_addr): Likewise.
5429 (ix86_split_lea_for_addr): Likewise.
5430 (ix86_lea_for_add_ok): Likewise.
5431 (ix86_output_call_insn): Likewise.
5433 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5434 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5435 (ix86_output_function_epilogue): Likewise for locals "insn",
5436 "deleted_debug_label".
5437 (legitimize_tls_address): Likewise for local "insn".
5438 (get_some_local_dynamic_name): Likewise.
5439 (increase_distance): Likewise for params "prev", "next".
5440 (distance_non_agu_define_in_bb): Likewise for params "insn",
5441 "start" and locals "prev", "next".
5442 (distance_non_agu_define): Likewise for param "insn".
5443 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5444 locals "next", "prev".
5445 (distance_agu_use): Likewise for param "insn".
5446 (ix86_lea_outperforms): Likewise.
5447 (ix86_ok_to_clobber_flags): Likewise.
5448 (ix86_avoid_lea_for_add): Likewise.
5449 (ix86_use_lea_for_mov): Likewise.
5450 (ix86_avoid_lea_for_addr): Likewise.
5451 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5452 (ix86_split_lea_for_addr): Likewise for param "insn".
5453 (ix86_lea_for_add_ok): Likewise for param "insn".
5454 (ix86_expand_carry_flag_compare): Likewise for local
5456 (ix86_expand_int_movcc): Likewise.
5457 (ix86_output_call_insn): Likewise for param "insn".
5458 (ix86_output_call_insn): Likewise for local "i".
5459 (x86_output_mi_thunk): Introduce local "insn", using it in place
5460 of "tmp" when dealing with insns.
5461 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5463 (ix86_pad_returns): Likewise for locals "ret", "prev".
5464 (ix86_count_insn_bb): Likewise for local "insn".
5465 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5466 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5467 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5468 (expand_vec_perm_interleave2): Likewise for local "seq".
5469 (expand_vec_perm_vperm2f128_vblend): Likewise.
5470 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5471 call to for_each_rtx with for_each_rtx_in_insn.
5473 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5475 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5476 "label" from rtx to rtx_code_label *.
5477 (ix86_expand_prologue): Likewise.
5478 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5480 (ix86_split_idivmod): Likewise for locals "end_label" and
5482 (ix86_expand_branch): Likewise for local "label2".
5483 (ix86_expand_aligntest): Likewise for return type and local "label".
5484 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5486 (expand_movmem_epilogue): Likewise for the various locals named
5488 (expand_setmem_epilogue): Likewise.
5489 (expand_small_movmem_or_setmem): Likewise for local "label".
5490 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5491 Strengthen param "done_label" from rtx * to rtx_code_label **.
5492 Strengthen locals "loop_label" and "label" from rtx to
5494 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5495 Likewise for locals "loop_label", "label".
5496 (ix86_expand_set_or_movmem): Likewise for locals "label",
5497 "jump_around_label", "hot_label".
5498 (ix86_expand_strlensi_unroll_1): Likewise for locals
5499 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5501 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5502 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5503 "label2", "jump_label".
5504 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5506 (ix86_expand_lfloorceil): Likewise for local "label".
5507 (ix86_expand_rint): Likewise.
5508 (ix86_expand_floorceildf_32): Likewise.
5509 (ix86_expand_floorceil): Likewise.
5510 (ix86_expand_rounddf_32): Likewise.
5511 (ix86_expand_trunc): Likewise.
5512 (ix86_expand_truncdf_32): Likewise.
5513 (ix86_expand_round): Likewise.
5515 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5517 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
5518 first param from rtx to rtx_insn *.
5519 (h8300_insn_length_from_table): Likewise.
5520 * config/h8300/h8300.c (F): Likewise for return type and param
5522 (Fpa): Add a checked cast to rtx_insn *.
5523 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
5525 (final_prescan_insn): Likewise for param "insn".
5526 (h8300_binary_length): Likewise.
5527 (h8300_insn_length_from_table): Likewise.
5529 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5531 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
5532 Strengthen first param "insn" from rtx to rtx_insn *.
5534 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
5536 (frame_insn): Likewise for return type. Introduce local "insn"
5537 for use in place of local "x" for use as an rtx_insn *.
5538 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
5539 (epiphany_expand_prologue): Likewise for local "insn".
5540 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
5541 * config/epiphany/resolve-sw-modes.c
5542 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
5545 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5547 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
5548 param from rtx to rtx_insn *.
5549 (c6x_final_prescan_insn): Likewise for first param.
5551 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
5552 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
5553 (c6x_expand_compare): Strengthen local "insns" from rtx to
5555 (c6x_get_unit_specifier): Likewise for param "insn".
5556 (c6x_print_unit_specifier_field): Likewise.
5557 (c6x_final_prescan_insn): Likewise.
5558 (emit_add_sp_const): Likewise for local "insn".
5559 (c6x_expand_prologue): Likewise.
5561 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5563 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
5564 param 1 from rtx to rtx_insn *.
5565 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
5566 the various locals named "insn".
5567 (expand_epilogue_reg_restore): Likewise.
5568 (frame_related_constant_load): Likewise.
5569 (add_to_reg): Likewise.
5570 (emit_link_insn): Likewise.
5571 (do_link): Likewise.
5572 (expand_interrupt_handler_prologue): Likewise.
5573 (branch_dest): Likewise for param "branch".
5574 (asm_conditional_branch): Likewise for param "insn".
5575 (gen_one_bundle): Likewise for elements of param "slot" and local
5577 (bfin_gen_bundles): Likewise for locals "insn", "next" and
5578 elements of local "slot".
5579 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5580 "queue", "next_queue", "prev".
5581 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
5582 (add_sched_insns_for_speculation): Likewise for local "insn".
5584 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5586 * config/avr/avr-protos.h (output_movqi): Strengthen first param
5587 from rtx to rtx_insn *.
5588 (output_movhi): Likewise.
5589 (output_movsisf): Likewise.
5590 (avr_out_tstsi): Likewise.
5591 (avr_out_tsthi): Likewise.
5592 (avr_out_tstpsi): Likewise.
5593 (avr_out_compare): Likewise.
5594 (avr_out_compare64): Likewise.
5595 (avr_out_movpsi): Likewise.
5596 (ashlqi3_out): Likewise.
5597 (ashlhi3_out): Likewise.
5598 (ashlsi3_out): Likewise.
5599 (ashrqi3_out): Likewise.
5600 (ashrhi3_out): Likewise.
5601 (ashrsi3_out): Likewise.
5602 (lshrqi3_out): Likewise.
5603 (lshrhi3_out): Likewise.
5604 (lshrsi3_out): Likewise.
5605 (avr_out_ashlpsi3): Likewise.
5606 (avr_out_ashrpsi3): Likewise.
5607 (avr_out_lshrpsi3): Likewise.
5608 (avr_out_fract): Likewise.
5609 (avr_out_sbxx_branch): Likewise.
5610 (avr_out_round): Likewise.
5611 (avr_out_xload): Likewise.
5612 (avr_out_movmem): Likewise.
5613 (adjust_insn_length): Likewise.
5614 (avr_out_lpm): Likewise.
5615 (reg_unused_after): Likewise.
5616 (_reg_unused_after): Likewise.
5617 (avr_jump_mode): Likewise for second param.
5618 (jump_over_one_insn): Likewise for first param.
5619 (avr_final_prescan_insn): Likewise.
5620 (out_shift_with_cnt): Likewise for second param.
5622 * config/avr/avr.c (get_sequence_length): Likewise for param
5623 "insns" and local "insn".
5624 (emit_push_byte): Likewise for local "insn".
5625 (emit_push_sfr): Likewise.
5626 (avr_prologue_setup_frame): Likewise for locals "insn",
5627 "fp_plus_insns", "sp_plus_insns".
5628 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
5630 (avr_jump_mode): Likewise for param "insn".
5631 (avr_final_prescan_insn): Likewise.
5632 (avr_find_unused_d_reg): Likewise.
5633 (avr_out_lpm_no_lpmx): Likewise.
5634 (avr_out_lpm): Likewise.
5635 (avr_out_xload): Likewise.
5636 (output_movqi): Likewise.
5637 (output_movhi): Likewise.
5638 (out_movqi_r_mr): Likewise.
5639 (out_movhi_r_mr): Likewise.
5640 (out_movsi_r_mr): Likewise.
5641 (out_movsi_mr_r): Likewise.
5642 (output_movsisf): Likewise.
5643 (avr_out_load_psi): Likewise.
5644 (avr_out_store_psi): Likewise.
5645 (avr_out_movpsi): Likewise.
5646 (out_movqi_mr_r): Likewise.
5647 (avr_out_movhi_mr_r_xmega): Likewise.
5648 (out_movhi_mr_r): Likewise.
5649 (compare_condition): Likewise for param "insn" and local "next".
5650 (compare_sign_p): Likewise for param "insn".
5651 (compare_diff_p): Likewise.
5652 (compare_eq_p): Likewise.
5653 (avr_out_compare): Likewise.
5654 (avr_out_compare64): Likewise.
5655 (avr_out_tsthi): Likewise.
5656 (avr_out_tstpsi): Likewise.
5657 (avr_out_tstsi): Likewise.
5658 (out_shift_with_cnt): Likewise.
5659 (ashlqi3_out): Likewise.
5660 (ashlhi3_out): Likewise.
5661 (avr_out_ashlpsi3): Likewise.
5662 (ashlsi3_out): Likewise.
5663 (ashrqi3_out): Likewise.
5664 (ashrhi3_out): Likewise.
5665 (avr_out_ashrpsi3): Likewise.
5666 (ashrsi3_out): Likewise.
5667 (lshrqi3_out): Likewise.
5668 (lshrhi3_out): Likewise.
5669 (avr_out_lshrpsi3): Likewise.
5670 (lshrsi3_out): Likewise.
5671 (avr_out_fract): Likewise.
5672 (avr_out_round): Likewise.
5673 (avr_adjust_insn_length): Likewise.
5674 (reg_unused_after): Likewise.
5675 (_reg_unused_after): Likewise.
5676 (avr_compare_pattern): Likewise.
5677 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
5678 and locals "branch1", "branch2", "insn2", "jump".
5679 (avr_reorg): Likewise for local "insn".
5680 (avr_2word_insn_p): Likewise for param "insn".
5681 (jump_over_one_insn_p): Likewise.
5682 (avr_out_sbxx_branch): Likewise.
5683 (avr_out_movmem): Likewise.
5685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5687 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
5688 param from rtx to rtx_insn *.
5689 (thumb1_final_prescan_insn): Likewise.
5690 (thumb2_final_prescan_insn): Likewise.
5692 * config/arm/arm.c (emit_set_insn): Strengthen return type from
5694 (struct minipool_node): Likewise for field "insn".
5695 (dump_minipool): Likewise for param "scan".
5696 (create_fix_barrier): Likewise for local "from". Strengthen local
5697 "label" from rtx to rtx_code_label *.
5698 (push_minipool_barrier): Strengthen param "insn" from rtx to
5700 (push_minipool_fix): Likewise.
5701 (note_invalid_constants): Likewise.
5702 (thumb2_reorg): Likewise for local "insn".
5703 (arm_reorg): Likewise.
5704 (thumb2_final_prescan_insn): Likewise for param
5705 "insn" and local "first_insn".
5706 (arm_final_prescan_insn): Likewise for param "insn" and locals
5707 "start_insn", "this_insn".
5708 (arm_debugger_arg_offset): Likewise for param "insn".
5709 (thumb1_emit_multi_reg_push): Likewise for return type and local
5711 (thumb1_final_prescan_insn): Likewise for param "insn".
5712 (thumb_far_jump_used_p): Likewise for local "insn".
5713 (thumb1_expand_prologue): Likewise.
5714 (arm_expand_epilogue_apcs_frame): Likewise.
5715 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
5716 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
5717 from rtx to rtx_code_label *.
5718 (arm_split_atomic_op): Likewise for local "label".
5719 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
5721 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5723 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
5724 first param from rtx to rtx_insn *.
5725 (arc_verify_short): Likewise.
5726 (arc_short_long): Likewise.
5727 (arc_need_delay): Likewise.
5729 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
5731 (arc_ccfsm_advance): Likewise for param "insn" and locals
5732 "start_insn", "this_insn".
5733 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
5734 (arc_ccfsm_post_advance): Likewise for param "insn".
5735 (arc_next_active_insn): Likewise for return type and param "insn".
5736 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
5737 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
5738 (output_short_suffix): Likewise for local "insn".
5739 (arc_final_prescan_insn): Likewise for param "insn". Remove
5740 now-redundant checked cast.
5741 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
5742 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
5743 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
5744 for use where lc_set became an insn.
5745 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
5747 (arc_get_insn_variants): Likewise for local "prev".
5748 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
5750 (arc_predicate_delay_insns): Likewise for local "insn".
5751 (arc_pad_return): Likewise for local "prev". For now, add a
5752 checked cast when extracting the insn from "final_sequence".
5753 (arc_short_long): Likewise for param "insn".
5754 (arc_need_delay): Likewise for param "insn" and local "next".
5755 (arc_label_align): Likewise for locals "prev", "next".
5757 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5759 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
5760 "insn" from rtx to rtx_insn *.
5761 (alpha_gp_save_rtx): Likewise for local "seq".
5762 (alpha_instantiate_decls): Likewise for local "top".
5763 (get_some_local_dynamic_name): Likewise for local "insn".
5764 (alpha_does_function_need_gp): Likewise.
5765 (set_frame_related_p): Likewise for return type and for locals
5767 (emit_frame_store_1): Likewise for local "insn".
5768 (alpha_expand_prologue): Likewise for locals "insn", "seq".
5769 (alpha_end_function): Likewise for local "insn".
5770 (alpha_output_mi_thunk_osf): Likewise.
5771 (alphaev4_insn_pipe): Likewise for param "insn".
5772 (alphaev5_insn_pipe): Likewise.
5773 (alphaev4_next_group): Likewise for return type and param 1
5775 (alphaev5_next_group): Likewise.
5776 (alpha_align_insns_1): Likewise for return type and param 1 of
5777 callback param "next_group", and for locals "i", "next", "prev",
5778 "where", "where2", "insn".
5780 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
5782 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
5783 rather than modifying the stmt.
5785 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5787 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
5788 cgraph_state conversion.
5790 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5792 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5793 Strengthen local "insns" from rtx to rtx_insn *.
5794 (aarch64_set_frame_expr): Likewise for local "insn".
5795 (aarch64_save_or_restore_fprs): Likewise.
5796 (aarch64_save_or_restore_callee_save_registers): Likewise.
5797 (aarch64_expand_prologue): Likewise.
5798 (aarch64_expand_epilogue): Likewise.
5799 (aarch64_output_mi_thunk): Likewise.
5800 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5801 "label2" from rtx to rtx_code_label *.
5802 (aarch64_split_atomic_op): Likewise for local "label".
5804 2014-08-25 Martin Liska <mliska@suse.cz>
5806 * cgraph.h (symtab_node):
5807 (bool needed_p (void)): created from decide_is_symbol_needed
5808 (bool referred_to_p (void)): created from referred_to_p
5809 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5810 * cgraph.h (cgraph_node):
5811 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5812 (void expand (void)): created from expand_function
5813 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5814 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5815 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5816 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5817 * cgraph.h (varpool_node):
5818 (static void add (tree decl): created from varpool_add_new_variable
5819 * cgraph.h (cgraph_edge):
5821 (void remove_caller (void)): created from cgraph_edge_remove_caller
5822 (void remove_callee (void)): created from cgraph_edge_remove_callee
5823 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5824 created from cgraph_set_call_stmt
5825 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5826 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5827 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5828 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5829 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5830 created from cgraph_speculative_call_info
5831 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5832 int freq_scale, bool update_original)): created from cgraph_clone_edge
5833 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5834 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5835 (bool recursive_p (void)): created from cgraph_edge_recursive_p
5836 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5837 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5838 (static void rebuild_references (void)): created from cgraph_rebuild_references
5839 * cgraph.h (symbol_table):
5840 (create_reference): renamed from add_reference
5841 (maybe_create_reference): renamed from maybe_add_reference
5842 (void register_symbol (symtab_node *node)): new function
5843 (void clear_asm_symbols (void)): new function
5844 (void unregister (symtab_node *node)): new function
5845 (void release_symbol (cgraph_node *node, int uid)): new function
5846 (cgraph_node * allocate_cgraph_symbol (void)): new function
5847 (void initialize (void)): created from cgraph_init
5848 (symtab_node *first_symbol (void)):new function
5849 (asm_node *first_asm_symbol (void)):new function
5850 (symtab_node *first_defined_symbol (void)):new function
5851 (varpool_node *first_variable (void)):new function
5852 (varpool_node *next_variable (varpool_node *node)):new function
5853 (varpool_node *first_static_initializer (void)):new function
5854 (varpool_node *next_static_initializer (varpool_node *node)):new function
5855 (varpool_node *first_defined_variable (void)):new function
5856 (varpool_node *next_defined_variable (varpool_node *node)):new function
5857 (cgraph_node *first_defined_function (void)):new function
5858 (cgraph_node *next_defined_function (cgraph_node *node)):new function
5859 (cgraph_node *first_function (void)):new function
5860 (cgraph_node *next_function (cgraph_node *node)):new function
5861 (cgraph_node *first_function_with_gimple_body (void)):new function
5862 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5863 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5864 created from symtab_remove_unreachable_nodes
5865 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5866 (void process_new_functions (void)): created from cgraph_process_new_functions
5867 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5868 (bool output_variables (void)): created from varpool_node::output_variables
5869 (void output_asm_statements (void)): created from output_asm_statements
5870 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5871 (void compile (void)): created from compile
5872 (void output_weakrefs (void)): created from output_weakrefs
5873 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5874 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5875 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5876 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5877 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5878 created from cgraph_next_function_with_gimple_body
5879 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5880 created from cgraph_remove_edge_removal_hook
5881 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5882 created from cgraph_add_node_removal_hook
5883 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5884 created from cgraph_remove_node_removal_hook
5885 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5886 created from varpool_add_node_removal_hook
5887 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5888 created from varpool_remove_node_removal_hook
5889 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5890 created from cgraph_add_function_insertion_hook
5891 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5892 created from cgraph_remove_function_insertion_hook
5893 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5894 created from varpool_add_variable_insertion_hook
5895 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5896 created from varpool_remove_variable_insertion_hook
5897 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5898 created from cgraph_add_edge_duplication_hook
5899 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5900 created from cgraph_remove_edge_duplication_hook
5901 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5902 created from cgraph_add_node_duplication_hook
5903 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5904 created from cgraph_remove_node_duplication_hook
5905 (void call_edge_removal_hooks (cgraph_edge *e)):
5906 created from cgraph_call_edge_removal_hooks
5907 (void call_cgraph_insertion_hooks (cgraph_node *node)):
5908 created from call_function_insertion_hooks
5909 (void call_cgraph_removal_hooks (cgraph_node *node)):
5910 created from cgraph_call_node_removal_hooks
5911 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5912 created from cgraph_node::call_duplication_hooks
5913 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5914 created from cgraph_call_edge_duplication_hooks
5915 (void call_varpool_removal_hooks (varpool_node *node)):
5916 created from varpool_call_node_removal_hooks
5917 (void call_varpool_insertion_hooks (varpool_node *node)):
5918 created from varpool_call_variable_insertion_hooks
5919 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5920 created from insert_to_assembler_name_hash
5921 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5922 created from unlink_from_assembler_name_hash
5923 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5924 created from symtab_prevail_in_asm_name_hash
5925 (void symtab_initialize_asm_name_hash (void)):
5926 created from symtab_initialize_asm_name_hash
5927 (void change_decl_assembler_name (tree decl, tree name)):
5928 created from change_decl_assembler_name
5929 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5930 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5931 created from decl_assembler_name_hash
5932 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5933 created from decl_assembler_name_equal
5934 (static hashval_t hash_node_by_assembler_name (const void *p)):
5935 created from hash_node_by_assembler_name
5936 (static int eq_assembler_name (const void *p1, const void *p2)):
5937 created from eq_assembler_name
5939 2014-08-25 Marek Polacek <polacek@redhat.com>
5941 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5943 2014-08-25 Petr Murzin <petr.murzin@intel.com>
5945 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5946 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5947 SWI1248_AVX512BW mode iterator.
5949 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
5952 * config/sh/predicates.md (general_extend_operand): Disable
5953 TRUNCATE before reload completes.
5955 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
5957 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5959 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
5962 * config/sh/sh.opt (musermode): Allow negative form.
5963 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5964 targets that don't support it.
5965 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5966 Document -mno-usermode option.
5968 2014-08-24 Kito Cheng <kito@0xlab.org>
5970 * system.h (CALLER_SAVE_PROFITABLE): Poison.
5971 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5972 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5973 * doc/tm.texi: Regenerate.
5975 2014-08-24 Kito Cheng <kito@0xlab.org>
5977 * ira.c: Fix typo in comment.
5979 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5981 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5982 Deprecate c++1y. Change language to reflect greater confidence in C++14.
5984 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
5987 * config/pa/pa.c (pa_output_function_epilogue): Don't set
5988 last_address when the current function is a thunk.
5989 (pa_asm_output_mi_thunk): When we don't have named sections or they
5990 are not being used, check that thunk can reach the stub table with a
5993 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5995 * web.c (union_match_dups): Strengthen param "insn" from rtx to
5997 (pass_web::execute): Likewise for local "insn".
5999 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6001 * var-tracking.c (struct micro_operation_def): Strengthen field
6002 "insn" from rtx to rtx_insn *.
6003 (struct emit_note_data_def): Likewise.
6004 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
6005 (vt_stack_adjustments): Likewise for local "insn".
6006 (adjust_insn): Likewise for param "insn".
6007 (val_store): Likewise.
6008 (val_resolve): Likewise.
6009 (struct count_use_info): Likewise for field "insn".
6010 (log_op_type): Likewise for param "insn".
6011 (reverse_op): Likewise.
6012 (prepare_call_arguments): Likewise.
6013 (add_with_sets): The initial param takes an insn, but we can't
6014 yet strengthen it from rtx to rtx_insn * since it's used as a
6015 cselib_record_sets_hook callback. For now rename initial param
6016 from "insn" to "uncast_insn", and introduce a local "insn" of
6017 the stronger rtx_insn * type, with a checked cast.
6018 (compute_bb_dataflow): Strengthen local "insn" from rtx to
6020 (emit_note_insn_var_location): Likewise.
6021 (emit_notes_for_changes): Likewise.
6022 (emit_notes_for_differences): Likewise.
6023 (next_non_note_insn_var_location): Likewise for return type and
6025 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
6026 (vt_initialize): Likewise for local "insn".
6027 (delete_debug_insns): Likewise for locals "insn" and "next".
6029 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6031 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
6033 (mark_constant_pool): Likewise for local "insn".
6035 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6037 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
6039 (dead_debug_promote_uses): Likewise.
6040 (dead_debug_insert_temp): Likewise.
6042 2014-08-23 David Malcolm <dmalcolm@redhat.com>
6044 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
6045 from const_rtx to const rtx_insn *.
6046 (store_killed_after): Likewise. Strengthen locals "last", "act"
6047 from rtx to rtx_insn *.
6048 (store_killed_before): Strengthen param "insn" from const_rtx to
6049 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
6050 (find_moveable_store): Strengthen param "insn" from rtx to
6052 (compute_store_table): Likewise for local "insn".
6053 (insert_insn_start_basic_block): Likewise for param "insn" and
6054 locals "prev", "before", "insn".
6055 (insert_store): For now, add a checked cast to rtx_insn * on the
6056 result of gen_move_insn.
6057 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
6059 (replace_store_insn): Likewise. For now, add a checked cast to
6060 rtx_insn * on the result of gen_move_insn.
6062 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6064 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
6066 (expand_sjlj_dispatch_table): Likewise.
6068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6070 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
6071 "insn" from rtx to rtx_insn *.
6073 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6075 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
6076 "insn" from rtx to rtx_insn *.
6077 (dup_block_and_redirect): Likewise for param 3 "before".
6079 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
6080 from rtx to rtx_insn *.
6081 (move_insn_for_shrink_wrap): Likewise.
6082 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
6083 (dup_block_and_redirect): Likewise for param "before" and local
6085 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
6087 (convert_to_simple_return): Likewise for local "start".
6089 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
6090 Strengthen local "insn" from rtx to rtx_insn *, for use when
6091 invoking requires_stack_frame_p.
6093 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6095 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
6097 (speculate_expr): Likewise for locals "orig_insn_rtx",
6099 (eq_transformed_insns): Likewise for locals "i1", "i2".
6100 (check_for_new_jump): Likewise for return type and local "end".
6101 (find_new_jump): Likewise for return type and local "jump".
6102 (sel_split_edge): Likewise for local "jump".
6103 (sel_create_recovery_block): Likewise.
6104 (sel_redirect_edge_and_branch_force): Likewise.
6105 (sel_redirect_edge_and_branch): Likewise.
6107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6109 * sel-sched.c (substitute_reg_in_expr): Strengthen local
6110 "new_insn" from rtx to rtx_insn *.
6111 (create_insn_rtx_with_rhs): Likewise for return type and for local
6113 (create_insn_rtx_with_lhs): Likewise.
6114 (create_speculation_check): Likewise for local "insn_rtx".
6115 (implicit_clobber_conflict_p): Likewise for local "insn".
6116 (get_expr_cost): Likewise.
6117 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
6118 (move_cond_jump): Likewise for locals "next", "prev", "link",
6119 "head", "from", "to".
6121 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6123 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
6124 "next" from rtx to rtx_insn *.
6125 (find_conditional_protection): Likewise for local "next".
6126 (is_conditionally_protected): Likewise for local "insn1".
6127 (is_pfree): Likewise for locals "insn1", "insn2".
6129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6131 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
6132 from rtx to rtx_insn *.
6134 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
6135 locals "insn1", "insn2" from rtx to rtx_insn *.
6136 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
6137 locals "insn", "prev", "last_jump", "next_tail".
6138 (schedule_ebb): Likewise for params "head", "tail".
6139 (schedule_ebbs): Likewise for locals "tail", "head".
6141 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
6142 to rtx_insn on "last_insn" in one of the invocations of
6145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6147 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6148 "elem", "insn" from rtx to rtx_insn *.
6149 (change_spec_dep_to_hard): Likewise.
6150 (get_back_and_forw_lists): Likewise for local "con".
6151 (sd_add_dep): Likewise for locals "elem", "insn".
6152 (sd_resolve_dep): Likewise for locals "pro", "con".
6153 (sd_unresolve_dep): Likewise.
6154 (sd_delete_dep): Likewise.
6155 (chain_to_prev_insn): Likewise for local "pro".
6156 (find_inc): Likewise for locals "pro", "con".
6158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6160 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6162 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6164 (modified_between_p): Strengthen local "insn" from rtx to
6166 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6167 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6170 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6172 * resource.c (next_insn_no_annul): Strengthen local "next" from
6174 (mark_referenced_resources): Likewise for local "insn".
6176 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6178 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6180 (find_reloads): Likewise for param 1.
6181 (subst_reloads): Likewise for sole param.
6182 (find_equiv_reg): Likwise for param 2.
6183 (regno_clobbered_p): Likwise for param 2.
6184 (reload): Likewise for param 1.
6186 * caller-save.c (save_call_clobbered_regs): Strengthen local
6187 "insn" from rtx to rtx_insn *.
6188 (insert_one_insn): Likewise for local "insn".
6190 * reload.c (this_insn): Likewise for this global.
6191 (find_reloads): Likewise for param "insn".
6192 (find_reloads_toplev): Likewise.
6193 (find_reloads_address): Likewise.
6194 (subst_reg_equivs): Likewise.
6195 (update_auto_inc_notes): Likewise.
6196 (find_reloads_address_1): Likewise.
6197 (find_reloads_subreg_address): Likewise.
6198 (subst_reloads): Likewise.
6199 (find_equiv_reg): Likewise, also for local "p".
6200 (regno_clobbered_p): Likewise for param "insn".
6202 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6204 (spill_reg_store): Likewise for the elements of this array.
6205 (remove_init_insns): Likewise for local "equiv_insn".
6206 (will_delete_init_insn_p): Likewise for param "insn".
6207 (reload): Likewise for param ""first" and local "insn".
6208 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6210 (calculate_elim_costs_all_insns): Likewise.
6211 (delete_caller_save_insns): Likewise.
6212 (spill_failure): Likewise for param "insn".
6213 (delete_dead_insn): Likewise.
6214 (set_label_offsets): Likewise.
6215 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6217 (elimination_costs_in_insn): Likewise for param "insn".
6218 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6219 when referring to an insn.
6220 (set_initial_label_offsets): Likewise.
6221 (set_offsets_for_label): Strengthen param "insn" from rtx to
6223 (init_eliminable_invariants): Likewise for param "first" and local
6225 (fixup_eh_region_note): Likewise for param "insn".
6226 (reload_as_needed): Likewise for locals "prev", "insn",
6227 "old_next", "old_prev", "next".
6228 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6230 (reload_inheritance_insn): Strengthen elements of this array from
6232 (failed_reload): Likewise for param "insn".
6233 (choose_reload_regs): Likewise for local "insn". Replace use of
6234 NULL_RTX with NULL when referring to an insn.
6235 (input_reload_insns): Strengthen elements of this array from rtx
6237 (other_input_address_reload_insns): Likewise for this global.
6238 (other_input_reload_insns): Likewise for this global.
6239 (input_address_reload_insns): Likwise for the elements of this
6241 (inpaddr_address_reload_insns): Likwise for the elements of this
6243 (output_reload_insns): Likewise for the elements of this array.
6244 (output_address_reload_insns): Likewise for the elements of this
6246 (outaddr_address_reload_insns): Likewise for the elements of this
6248 (operand_reload_insns): Likewise for this global.
6249 (other_operand_reload_insns): Likewise for this global.
6250 (other_output_reload_insns): Likewise for the elements of this
6252 (new_spill_reg_store): Likewise for the elements of this
6254 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6255 Strengthen local "where" from rtx * to rtx_insn **.
6256 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6257 from rtx to rtx_insn *.
6258 (do_input_reload): Likewise for local "insn".
6259 (do_output_reload): Likewise for local "insn".
6260 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6261 (emit_insn_if_valid_for_reload): Likewise for return type and local
6262 "last". Add checked cast to rtx_insn when returning "insn" since
6263 this has been through emit_insn.
6264 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6265 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6266 returning "insn" since it's been through
6267 emit_insn_if_valid_for_reload at this point.
6268 (delete_output_reload): Strengthen param "insn" and locals
6269 "output_reload_insn", "i2" from rtx to rtx_insn *.
6270 (delete_address_reloads): Likewise for params "dead_insn",
6271 "current_insn" and locals "prev", "next".
6272 (delete_address_reloads_1): Likewise for params "dead_insn",
6273 "current_insn" and locals "prev", "i2".
6274 (inc_for_reload): Likewise for locals "last", "add_insn".
6275 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6278 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6279 param of this duplicate of the prototype from reload.h
6281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6283 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6285 (regstat_bb_compute_calls_crossed): Likewise.
6287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6289 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6291 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6293 (regrename_analyze): Strengthen local "insn" from rtx to
6295 (scan_rtx_reg): Likewise for param "insn".
6296 (scan_rtx_address): Likewise.
6297 (scan_rtx): Likewise.
6298 (restore_operands): Likewise.
6299 (record_out_operands): Likewise.
6300 (build_def_use): Likewise for local "insn". Replace use of
6301 NULL_RTX with NULL when dealing with an insn.
6303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6305 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6306 * reginfo.c (reg_scan): Likewise, also for local "insn".
6307 (reg_scan_mark_refs): Likewise for param "insn".
6308 (init_subregs_of_mode): Likewise for local "insn".
6310 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6312 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6313 "insn" from rtx to rtx_insn *.
6314 (replace_oldest_value_reg): Likewise for param "insn".
6315 (replace_oldest_value_addr): Likewise.
6316 (replace_oldest_value_mem): Likewise.
6317 (apply_debug_insn_changes): Likewise for local "last_insn".
6318 (copyprop_hardreg_forward_1): Likewise for local "insn".
6320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6322 * reg-stack.c (next_flags_user): Strengthen return type and param
6323 "insn" from rtx to rtx_insn *.
6324 (straighten_stack): Likewise for param "insn".
6325 (check_asm_stack_operands): Likewise.
6326 (remove_regno_note): Likewise.
6327 (emit_pop_insn): Likewise for return type, param "insn", local
6329 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6330 "limit" from rtx to rtx_insn *.
6331 (swap_to_top): Likewise for param "insn".
6332 (move_for_stack_reg): Likewise.
6333 (move_nan_for_stack_reg): Likewise.
6334 (swap_rtx_condition): Likewise.
6335 (compare_for_stack_reg): Likewise.
6336 (subst_all_stack_regs_in_debug_insn): Likewise.
6337 (subst_stack_regs_pat): Likewise, and local "insn2".
6338 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6340 (subst_stack_regs): Likewise.
6341 (change_stack): Likewise.
6342 (convert_regs_1): Likewise for locals "insn", "next".
6344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6346 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6348 (combine_set_extension): Likewise for param "curr_insn".
6349 (transform_ifelse): Likewise for param "def_insn".
6350 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6351 from vec<rtx> * to vec<rtx_insn *> *.
6352 (is_cond_copy_insn): Likewise for param "insn".
6353 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6355 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6356 local "def_insn" from rtx to rtx_insn *.
6357 (get_sub_rtx): Likewise for param "def_insn".
6358 (merge_def_and_ext): Likewise.
6359 (combine_reaching_defs): Likewise.
6360 (add_removable_extension): Likewise for param "insn".
6361 (find_removable_extensions): Likewise for local "insn".
6362 (find_and_remove_re): Likewise for locals "curr_insn" and
6363 "def_insn". Strengthen locals "reinsn_del_list" and
6364 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6366 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6368 * recog.c (split_insn): Strengthen param "insn" and locals
6369 "first", "last" from rtx to rtx_insn *.
6370 (split_all_insns): Likewise for locals "insn", "next".
6371 (split_all_insns_noflow): Likewise.
6373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6375 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6377 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6378 (debug_rtx_find): Likewise for param 1 "x".
6380 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6381 const_rtx to const rtx_insn *. Likewise for local "insn".
6382 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6383 (debug_rtx_find): Likewise for param 1 "x".
6384 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6385 from const_rtx to const rtx_insn * within the appropriate cases of
6386 the switch statement.
6388 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6389 Strengthen local "insns" from rtx to rtx_insn * since this is
6390 passed to a call to debug_rtx_list.
6392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6394 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6397 * function.c (stack_protect_epilogue): Add checked cast to
6398 rtx_insn for now when invoking predict_insn_def.
6400 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6402 (predict_insn_def): Likewise.
6403 (rtl_predict_edge): Likewise for local "last_insn".
6404 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6406 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6408 (bb_estimate_probability_locally): Likewise for local "last_insn".
6409 (expensive_function_p): Likewise for local "insn".
6411 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6412 local "jmp", since this is used when invoking predict_insn_def.
6414 2014-08-22 Marek Polacek <polacek@redhat.com>
6417 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6419 2014-08-22 Marek Polacek <polacek@redhat.com>
6422 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6423 a comparison in parens.
6424 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6429 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6432 * cprop.c (fis_get_condition): Likewise.
6434 * postreload.c (reload_cse_regs): Likewise for param "first".
6435 (reload_cse_simplify): Likewise for param "insn".
6436 (reload_cse_regs_1): Likewise for local "insn".
6437 (reload_cse_simplify_set): Likewise for param "insn".
6438 (reload_cse_simplify_operands): Likewise.
6439 (struct reg_use): Likewise for field "insn".
6440 (reload_combine_purge_insn_uses): Likewise for param "insn".
6441 (fixup_debug_insns): Likewise for params "from", "to" and local
6443 (try_replace_in_use): Likewise for local "use_insn".
6444 (reload_combine_recognize_const_pattern): Likewise for param
6445 "insn" and locals "add_moved_after_insn", "use_insn".
6446 (reload_combine_recognize_pattern): Likewise for param "insn" and
6448 (reload_combine): Likewise for locals "insn", "prev".
6449 (reload_combine_note_use): Likewise for param "insn".
6450 (move2add_use_add2_insn): Likewise.
6451 (move2add_use_add3_insn): Likewise.
6452 (reload_cse_move2add): Likewise, also for local "next".
6453 (move2add_note_store): Likewise for local "insn".
6455 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6457 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6459 (struct unoccr): Likewise.
6460 (struct modifies_mem): Likewise.
6461 (alloc_mem): Likewise for local "insn".
6462 (insert_expr_in_table): Likewise for param "insn".
6463 (dump_expr_hash_table_entry): Likewise for local "insn".
6464 (oprs_unchanged_p): Likewise for param "insn".
6465 (load_killed_in_block_p): Likewise for local "setter".
6466 (record_last_reg_set_info): Likewise for param "insn".
6467 (record_last_reg_set_info_regno): Likewise.
6468 (record_last_mem_set_info): Likewise.
6469 (record_last_set_info): Likewise for local "last_set_insn".
6470 (record_opr_changes): Likewise for param "insn".
6471 (hash_scan_set): Likewise.
6472 (compute_hash_table): Likewise for local "insn".
6473 (get_avail_load_store_reg): Likewise for param "insn".
6474 (eliminate_partially_redundant_load): Likewise, also for locals
6475 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6477 (eliminate_partially_redundant_loads): Likewise for local "insn".
6479 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6481 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6483 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6484 (expand_twoval_unop): Likewise for locals entry_last", "last".
6485 (expand_twoval_binop): Likewise.
6486 (expand_twoval_binop_libfunc): Likewise for local "insns".
6487 (widen_leading): Likewise for local "last".
6488 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6489 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6490 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6491 (expand_parity): Likewise for locals "last" and "seq".
6492 (expand_ffs): Likewise for local "seq". Strengthen local
6493 "nonzero_label" from rtx to rtx_code_label *.
6494 (expand_absneg_bit): Strengthen local "insns" from rtx to
6496 (expand_unop_direct): Likewise for local "last".
6497 (expand_unop): Likewise for locals "last", "insns".
6498 (expand_abs_nojump): Likewise for local "last".
6499 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6500 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6502 (expand_copysign_absneg): Strengthen local "label" from rtx to
6504 (expand_copysign_bit): Strengthen local "insns" from rtx to
6506 (struct no_conflict_data): Likewise for fields "first", "insn".
6507 (emit_libcall_block_1): Likewise for param "insns" and locals
6508 "next", "last", "insn".
6509 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6510 on "insns" when invoking emit_libcall_block_1. Ultimately we
6511 want to strengthen insns itself.
6512 (prepare_cmp_insn): Strengthen local "last" from rtx to
6514 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
6515 (prepare_float_lib_cmp): Likewise for local "insns".
6516 (emit_conditional_move): Likewise for local "last".
6517 (emit_conditional_add): Likewise.
6518 (have_sub2_insn): Likewise for local "seq".
6519 (expand_float): Likewise for local "insns". Strengthen locals
6520 "label", "neglabel" from rtx to rtx_code_label *.
6521 (expand_fix): Likewise for locals "last", "insn", "insns" (to
6522 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
6523 (expand_fixed_convert): Likewise for local "insns" (to
6525 (expand_sfix_optab): Likewise for local "last".
6526 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
6527 to rtx_code_label *.
6528 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
6529 from rtx to rtx_insn *.
6530 (expand_atomic_fetch_op): Likewise for local "insn".
6531 (maybe_legitimize_operand_same_code): Likewise for local "last".
6532 (maybe_legitimize_operands): Likewise.
6534 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6536 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
6537 "insn" from rtx to rtx_insn *.
6538 (ps_rtl_insn): Likewise for return type.
6539 (doloop_register_get): Likewise for params "head", "tail" and
6540 locals "insn", "first_insn_not_to_check".
6541 (schedule_reg_move): Likewise for local "this_insn".
6542 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
6543 of gen_move_insn for now.
6544 (reset_sched_times): Strengthen local "insn" from rtx to
6546 (permute_partial_schedule): Likewise.
6547 (duplicate_insns_of_cycles): Likewise for local "u_insn".
6548 (dump_insn_location): Likewise for param "insn".
6549 (loop_canon_p): Likewise for local "insn".
6550 (sms_schedule): Likewise.
6551 (print_partial_schedule): Likewise.
6552 (ps_has_conflicts): Likewise.
6554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6556 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
6557 "tailp" from rtx * to rtx_insn **.
6559 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
6560 from rtx to rtx_insn *.
6561 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
6562 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
6563 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
6565 * modulo-sched.c (const_iteration_count): Strengthen return type
6566 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
6567 use of NULL_RTX with NULL when working with insns.
6568 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
6570 (sms_schedule): Likewise.
6571 * sched-rgn.c (init_ready_list): Likewise, also for locals
6572 "src_head" and "src_next_tail".
6573 (compute_block_dependences): Likewise.
6574 (free_block_dependencies): Likewise.
6575 (debug_rgn_dependencies): Likewise.
6576 (free_rgn_deps): Likewise.
6577 (compute_priorities): Likewise.
6578 (schedule_region): Likewise.
6579 * sel-sched.c (find_ebb_boundaries): Likewise.
6581 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
6582 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
6584 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6586 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
6587 from rtx to rtx_insn *.
6588 (new_seginfo): Likewise for param "insn".
6589 (create_pre_exit): Likewise for locals "last_insn",
6590 "before_return_copy", "return_copy".
6591 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
6594 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6596 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
6597 from rtx to rtx_insn *.
6598 (lra_push_insn): Likewise for 1st param.
6599 (lra_push_insn_and_update_insn_regno_info): Likewise.
6600 (lra_pop_insn): Likewise for return type.
6601 (lra_invalidate_insn_data): Likewise for 1st param.
6602 (lra_set_insn_deleted): Likewise.
6603 (lra_delete_dead_insn): Likewise.
6604 (lra_process_new_insns): Likewise for first 3 params.
6605 (lra_set_insn_recog_data): Likewise for 1st param.
6606 (lra_update_insn_recog_data): Likewise.
6607 (lra_set_used_insn_alternative): Likewise.
6608 (lra_invalidate_insn_regno_info): Likewise.
6609 (lra_update_insn_regno_info): Likewise.
6610 (lra_former_scratch_operand_p): Likewise.
6611 (lra_eliminate_regs_1): Likewise.
6612 (lra_get_insn_recog_data): Likewise.
6614 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
6617 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
6619 (substitute_within_insn): New.
6620 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
6621 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
6622 Replace call to "substitute" with call to substitute_within_insn.
6624 * lra-constraints.c (curr_insn): Strengthen from rtx to
6626 (get_equiv_with_elimination): Likewise for param "insn".
6627 (match_reload): Strengthen params "before" and "after" from rtx *
6629 (emit_spill_move): Likewise for return type. Add a checked cast
6630 to rtx_insn * on result of gen_move_insn for now.
6631 (check_and_process_move): Likewise for local "before". Replace
6632 NULL_RTX with NULL when referring to insns.
6633 (process_addr_reg): Strengthen params "before" and "after" from
6634 rtx * to rtx_insn **.
6635 (insert_move_for_subreg): Likewise.
6636 (simplify_operand_subreg): Strengthen locals "before" and "after"
6637 from rtx to rtx_insn *.
6638 (process_address_1): Strengthen params "before" and "after" from
6639 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
6641 (process_address): Strengthen params "before" and "after" from
6642 rtx * to rtx_insn **.
6643 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
6644 (curr_insn_transform): Strengthen locals "before" and "after"
6645 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
6647 (loc_equivalence_callback): Update cast of "data", changing
6648 resulting type from rtx to rtx_insn *.
6649 (substitute_pseudo_within_insn): New.
6650 (inherit_reload_reg): Strengthen param "insn" from rtx to
6651 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
6652 NULL when referring to insns. Add a checked cast to rtx_insn *
6653 when using usage_insn to invoke lra_update_insn_regno_info.
6654 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
6655 likewise for locals "restore", "save". Add checked casts to
6656 rtx_insn * when using usage_insn to invoke
6657 lra_update_insn_regno_info and lra_process_new_insns. Replace
6658 NULL_RTX with NULL when referring to insns.
6659 (split_if_necessary): Strengthen param "insn" from rtx to
6661 (update_ebb_live_info): Likewise for params "head", "tail" and local
6663 (get_last_insertion_point): Likewise for return type and local "insn".
6664 (get_live_on_other_edges): Likewise for local "last".
6665 (inherit_in_ebb): Likewise for params "head", "tail" and locals
6666 "prev_insn", "next_insn", "restore".
6667 (remove_inheritance_pseudos): Likewise for local "prev_insn".
6668 (undo_optional_reloads): Likewise for local "insn".
6670 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
6672 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
6674 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
6676 (spill_pseudos): Likewise for local "insn".
6677 (init_elimination): Likewise.
6678 (process_insn_for_elimination): Likewise for param "insn".
6680 * lra-lives.c (curr_insn): Likewise.;
6682 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
6683 (remove_pseudos): Likewise for param "insn".
6684 (spill_pseudos): Likewise for local "insn".
6685 (lra_final_code_change): Likewise for locals "insn", "curr".
6687 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
6688 (lra_set_insn_deleted): Likewise.
6689 (lra_delete_dead_insn): Likewise, and for local "prev".
6690 (new_insn_reg): Likewise for param "insn".
6691 (lra_set_insn_recog_data): Likewise.
6692 (lra_update_insn_recog_data): Likewise.
6693 (lra_set_used_insn_alternative): Likewise.
6694 (get_insn_freq): Likewise.
6695 (invalidate_insn_data_regno_info): Likewise.
6696 (lra_invalidate_insn_regno_info): Likewise.
6697 (lra_update_insn_regno_info): Likewise.
6698 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
6700 (lra_push_insn_1): Strengthen param "insn" from rtx to
6702 (lra_push_insn): Likewise.
6703 (lra_push_insn_and_update_insn_regno_info): Likewise.
6704 (lra_pop_insn): Likewise for return type and local "insn".
6705 (push_insns): Likewise for params "from", "to", and local "insn".
6706 (setup_sp_offset): Likewise for params "from", "last" and locals
6708 (lra_process_new_insns): Likewise for params "insn", "before",
6709 "after" and local "last".
6710 (struct sloc): Likewise for field "insn".
6711 (lra_former_scratch_operand_p): Likewise for param "insn".
6712 (remove_scratches): Likewise for locals "insn", "last".
6713 (check_rtl): Likewise for local "insn".
6714 (add_auto_inc_notes): Likewise for param "insn".
6715 (update_inc_notes): Likewise for local "insn".
6716 (lra): Replace NULL_RTX with NULL when referring to insn.
6718 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6720 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
6722 (resolve_reg_notes): Likewise.
6723 (resolve_simple_move): Likewise for return type, param "insn", and
6724 locals "insns", "minsn".
6725 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
6726 (resolve_use): Likewise.
6727 (resolve_debug): Likewise.
6728 (find_decomposable_shift_zext): Likewise.
6729 (resolve_shift_zext): Likewise for return type, param "insn", and
6730 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
6731 (decompose_multiword_subregs): Likewise for local "insn",
6732 "orig_insn", "decomposed_shift", "end".
6734 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6736 * basic-block.h (basic_block split_edge_and_insert): Strengthen
6737 param "insns" from rtx to rtx_insn *.
6739 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
6741 (struct iv_to_split): Likewise.
6742 (loop_exit_at_end_p): Likewise for local "insn".
6743 (split_edge_and_insert): Likewise for param "insns".
6744 (compare_and_jump_seq): Likewise for return type, param "cinsn",
6745 and locals "seq", "jump".
6746 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
6747 "branch_code"; update invocations of compare_and_jump_seq to
6748 eliminate NULL_RTX in favor of NULL.
6749 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
6751 (reset_debug_uses_in_loop): Likewise.
6752 (analyze_insn_to_expand_var): Likewise for param "insn".
6753 (analyze_iv_to_split_insn): Likewise.
6754 (analyze_insns_in_loop): Likewise for local "insn".
6755 (insert_base_initialization): Likewise for param
6756 "insn" and local "seq".
6757 (split_iv): Likewise for param "insn" and local "seq".
6758 (expand_var_during_unrolling): Likewise for param "insn".
6759 (insert_var_expansion_initialization): Likewise for local "seq".
6760 (combine_var_copies_in_loop_exit): Likewise.
6761 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
6763 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
6764 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
6767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6769 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
6771 (iv_analyze_result): Likewise.
6772 (iv_analyze_expr): Likewise.
6775 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
6776 local "def_insn" from rtx to rtx_insn *.
6777 (get_biv_step_1): Likewise for local "insn".
6778 (iv_analyze_expr): Likewise for param "insn".
6779 (iv_analyze_def): Likewise for local "insn".
6780 (iv_analyze_op): Likewise for param "insn".
6781 (iv_analyze): Likewise.
6782 (iv_analyze_result): Likewise.
6784 (suitable_set_for_replacement): Likewise.
6785 (simplify_using_initial_values): Likewise for local "insn".
6786 (iv_number_of_iterations): Likewise for param "insn".
6787 (check_simple_exit): Add checked cast to rtx_insn when invoking
6788 iv_number_of_iterations for now (until get_condition is
6791 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6792 "insn" from rtx to rtx_insn *.
6793 (analyze_insns_in_loop): Likewise for local "insn".
6795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6797 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6799 (struct invariant): Likewise.
6800 (hash_invariant_expr_1): Likewise for param "insn".
6801 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6802 (find_exits): Likewise for local "insn".
6803 (create_new_invariant): Likewise for param "insn".
6804 (check_dependencies): Likewise.
6805 (find_invariant_insn): Likewise.
6806 (record_uses): Likewise.
6807 (find_invariants_insn): Likewise.
6808 (find_invariants_bb): Likewise for local "insn".
6809 (get_pressure_class_and_nregs): Likewise for param "insn".
6810 (calculate_loop_reg_pressure): Likewise for local "insn".
6812 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6814 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6816 (add_test): Likewise for locals "seq", "jump".
6817 (doloop_modify): Likewise for locals "sequence", "jump_insn".
6819 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6821 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6823 (rebuild_jump_labels_chain): Likewise for param "chain".
6825 * cfgexpand.c (pass_expand::execute): Add checked cast to
6826 rtx_insn * when calling rebuild_jump_labels_chain in region where
6827 we know e->insns.r is non-NULL.
6829 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6831 (rebuild_jump_labels): Likewise.
6832 (rebuild_jump_labels_chain): Likewise for param "chain".
6833 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6834 (init_label_info): Likewise for param "f".
6835 (maybe_propagate_label_ref): Likewise for params "jump_insn",
6836 "prev_nonjump_insn".
6837 (mark_all_labels): Likewise for param "f" and locals "insn",
6838 "prev_nonjump_insn".
6840 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6842 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6843 from rtx to rtx_insn *insn.
6844 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6845 (ira_add_allocno_copy): Likewise.
6846 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6848 (ira_create_copy): Likewise.
6849 (ira_add_allocno_copy): Likewise.
6850 (create_bb_allocnos): Likewise for local "insn".
6851 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6852 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6853 process_regs_for_copy for rtx_insn * param.
6854 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6855 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
6856 process_regs_for_copy for rtx_insn * param.
6857 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6858 * ira-costs.c (record_reg_classes): Likewise for param "insn".
6859 (record_operand_costs): Likewise.
6860 (scan_one_insn): Likewise for return type, and for param "insn".
6861 (process_bb_for_costs): Likewise for local "insn".
6862 (process_bb_node_for_hard_reg_moves): Likewise.
6863 * ira-emit.c (struct move): Likewise for field "insn".
6864 (create_move): Eliminate use of NULL_RTX when dealing with an
6866 (emit_move_list): Strengthen return type and locals "result",
6867 "insn" from rtx to rtx_insn *insn.
6868 (emit_moves): Likewise for locals "insns", "tmp".
6869 (ira_emit): Likewise for local "insn".
6870 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6872 (find_call_crossed_cheap_reg): Likewise.
6873 (process_bb_node_lives): Likewise for local "insn".
6874 * ira.c (decrease_live_ranges_number): Likewise.
6875 (compute_regs_asm_clobbered): Likewise.
6876 (build_insn_chain): Likewise.
6877 (find_moveable_pseudos): Likewise, also locals "def_insn",
6878 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
6879 to rtx_insn **. Add a checked cast when assigning from
6880 "closest_use" into closest_uses array in a region where we know
6881 it's a non-NULL insn.
6882 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6884 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6885 "last_interesting_insn", "uin".
6886 (move_unallocated_pseudos): Likewise for locals "def_insn",
6887 "move_insn", "newinsn".
6889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6891 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6892 Strengthen locals "done_label", "do_error" from rtx to
6894 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6895 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
6897 (ubsan_expand_si_overflow_neg_check): Likewise for locals
6898 "done_label", "do_error" to rtx_code_label * and local "last" to
6900 (ubsan_expand_si_overflow_mul_check): Likewise for locals
6901 "done_label", "do_error", "large_op0", "small_op0_large_op1",
6902 "one_small_one_large", "both_ops_large", "after_hipart_neg",
6903 "after_lopart_neg", "do_overflow", "hipart_different" to
6904 rtx_code_label * and local "last" to rtx_insn *.
6906 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6908 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6909 "insn" and "move_insn" from rtx to rtx_insn *.
6911 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6913 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6915 (cheap_bb_rtx_cost_p): Likewise.
6916 (first_active_insn): Likewise for return type and local "insn".
6917 (last_active_insn): Likewise for return type and locals "insn",
6919 (struct noce_if_info): Likewise for fields "jump", "insn_a",
6921 (end_ifcvt_sequence): Likewise for return type and locals "insn",
6923 (noce_try_move): Likewise for local "seq".
6924 (noce_try_store_flag): Likewise.
6925 (noce_try_store_flag_constants): Likewise.
6926 (noce_try_addcc): Likewise.
6927 (noce_try_store_flag_mask): Likewise.
6928 (noce_try_cmove): Likewise.
6929 (noce_try_minmax): Likewise.
6930 (noce_try_abs): Likewise.
6931 (noce_try_sign_mask): Likewise.
6932 (noce_try_bitop): Likewise.
6933 (noce_can_store_speculate_p): Likewise for local "insn".
6934 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6936 (check_cond_move_block): Likewise for local "insn".
6937 (cond_move_convert_if_block): Likewise.
6938 (cond_move_process_if_block): Likewise for locals "seq",
6940 (noce_find_if_block): Likewise for local "jump".
6941 (merge_if_block): Likewise for local "last".
6942 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6943 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6944 (block_has_only_trap): Likewise for return type and local "trap".
6945 (find_if_case_1): Likewise for local "jump".
6946 (dead_or_predicable): Likewise for locals "head", "end", "jump",
6949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6951 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6952 "last_insn", "loop_end" from rtx to rtx_insn *.
6954 * hw-doloop.c (scan_loop): Likewise for local "insn".
6955 (discover_loop): Likewise for param "tail_insn".
6956 (discover_loops): Likewise for local "tail".
6958 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6959 cast to rtx_insn * when assigning from an rtx local to a
6960 hwloop_info's "last_insn" field.
6962 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6964 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6965 (add_delay_dependencies): Strengthen local "pro" from rtx to
6967 (recompute_todo_spec): Likewise.
6968 (dep_cost_1): Likewise for locals "insn", "used".
6969 (schedule_insn): Likewise for local "dbg".
6970 (schedule_insn): Likewise for locals "pro", "next".
6971 (unschedule_insns_until): Likewise for local "con".
6972 (restore_pattern): Likewise for local "next".
6973 (estimate_insn_tick): Likewise for local "pro".
6974 (resolve_dependencies): Likewise for local "next".
6975 (fix_inter_tick): Likewise.
6976 (fix_tick_ready): Likewise for local "pro".
6977 (add_to_speculative_block): Likewise for locals "check", "twin",
6979 (sched_extend_bb): Likewise for locals "end", "insn".
6980 (init_before_recovery): Likewise for local "x".
6981 (sched_create_recovery_block): Likewise for local "barrier".
6982 (create_check_block_twin): Likewise for local "pro".
6983 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6985 (unlink_bb_notes): Update for change to type of bb_header.
6986 Strengthen locals "prev", "label", "note", "next" from rtx to
6988 (clear_priorities): Likewise for local "pro".
6990 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6992 * gcse.c (struct occr): Strengthen field "insn" from rtx to
6994 (test_insn): Likewise for this global.
6995 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6997 (oprs_anticipatable_p): Likewise.
6998 (oprs_available_p): Likewise.
6999 (insert_expr_in_table): Strengthen param "insn" from rtx to
7001 (hash_scan_set): Likewise.
7002 (hash_scan_clobber): Likewise.
7003 (hash_scan_call): Likewise.
7004 (hash_scan_insn): Likewise.
7005 (compute_hash_table_work): Likewise for local "insn".
7006 (process_insert_insn): Likewise for return type and local "pat".
7007 (insert_insn_end_basic_block): Likewise for locals "new_insn",
7008 "pat", "pat_end", "maybe_cc0_setter".
7009 (pre_edge_insert): Likewise for local "insn".
7010 (pre_insert_copy_insn): Likewise for param "insn".
7011 (pre_insert_copies): Likewise for local "insn".
7012 (struct set_data): Likewise for field "insn".
7013 (single_set_gcse): Likewise for param "insn".
7014 (gcse_emit_move_after): Likewise.
7015 (pre_delete): Likewise for local "insn".
7016 (update_bb_reg_pressure): Likewise for param "from" and local
7018 (should_hoist_expr_to_dom): Likewise for param "from".
7019 (hoist_code): Likewise for local "insn".
7020 (get_pressure_class_and_nregs): Likewise for param "insn".
7021 (calculate_bb_reg_pressure): Likewise for local "insn".
7022 (compute_ld_motion_mems): Likewise.
7024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7026 * genpeep.c (main): Rename param back from "uncast_ins1" to
7027 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
7030 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
7032 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7035 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
7036 documentation to state it is only for VSX operations.
7038 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
7039 constraint only active if VSX.
7041 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
7042 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
7045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7047 * fwprop.c (single_def_use_dom_walker::before_dom_children):
7048 Strengthen local "insn" from rtx to rtx_insn *.
7049 (use_killed_between): Likewise for param "target_insn".
7050 (all_uses_available_at): Likewise for param "target_insn" and
7052 (update_df_init): Likewise for params "def_insn", "insn".
7053 (update_df): Likewise for param "insn".
7054 (try_fwprop_subst): Likewise for param "def_insn" and local
7056 (free_load_extend): Likewise for param "insn".
7057 (forward_propagate_subreg): Likewise for param "def_insn" and
7059 (forward_propagate_asm): Likewise for param "def_insn" and local
7061 (forward_propagate_and_simplify): Likewise for param "def_insn"
7062 and local "use_insn".
7063 (forward_propagate_into): Likewise for locals "def_insn" and
7066 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7068 * function.c (emit_initial_value_sets): Strengthen local "seq"
7069 from rtx to rtx_insn *.
7070 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7072 (instantiate_virtual_regs): Likewise for local "insn".
7073 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
7074 (reorder_blocks_1): Likewise for param "insns" and local "insn".
7075 (expand_function_end): Likewise for locals "insn" and "seq".
7076 (epilogue_done): Likewise for local "insn".
7077 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
7079 (reposition_prologue_and_epilogue_notes): Likewise for locals
7080 "insn", "last", "note", "first".
7081 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
7082 (pass_match_asm_constraints::execute): Likewise for local "insn".
7084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7086 * output.h (final_scan_insn): Strengthen return type from rtx to
7088 (final_forward_branch_p): Likewise for param.
7089 (current_output_insn): Likewise for this global.
7091 * final.c (rtx debug_insn): Likewise for this variable.
7092 (current_output_insn): Likewise.
7093 (get_attr_length_1): Rename param "insn" to "uncast_insn",
7094 adding "insn" back in as an rtx_insn * with a checked cast, so
7095 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
7097 (compute_alignments): Strengthen local "label" from rtx to
7099 (shorten_branches): Rename param from "first" to "uncast_first",
7100 introducing a new local rtx_insn * "first" using a checked cast to
7101 effectively strengthen "first" from rtx to rtx_insn * without
7102 affecting the type signature. Strengthen locals "insn", "seq",
7103 "next", "label" from rtx to rtx_insn *.
7104 (change_scope): Strengthen param "orig_insn" and local "insn" from
7106 (final_start_function): Rename param from "first" to "uncast_first",
7107 introducing a new local rtx_insn * "first" using a checked cast to
7108 effectively strengthen "first" from rtx to rtx_insn * without
7109 affecting the type signature. Strengthen local "insn" from rtx to
7111 (dump_basic_block_info): Strengthen param "insn" from rtx to
7113 (final): Rename param from "first" to "uncast_first",
7114 introducing a new local rtx_insn * "first" using a checked cast to
7115 effectively strengthen "first" from rtx to rtx_insn * without
7116 affecting the type signature. Strengthen locals "insn", "next"
7117 from rtx to rtx_insn *.
7118 (output_alternate_entry_point): Strengthen param "insn" from rtx to
7120 (call_from_call_insn): Strengthen param "insn" from rtx to
7122 (final_scan_insn): Rename param from "insn" to "uncast_insn",
7123 introducing a new local rtx_insn * "insn" using a checked cast to
7124 effectively strengthen "insn" from rtx to rtx_insn * without
7125 affecting the type signature. Strengthen return type and locals
7126 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
7127 now-redundant checked cast to rtx_insn * from both invocations of
7128 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
7129 introducing a local "call_insn" for use when invoking
7130 call_from_call_insn.
7131 (notice_source_line): Strengthen param "insn" from rtx to
7133 (leaf_function_p): Likewise for local "insn".
7134 (final_forward_branch_p): Likewise.
7135 (leaf_renumber_regs): Likewise for param "first".
7136 (rest_of_clean_state): Likewise for locals "insn" and "next".
7137 (self_recursive_call_p): Likewise for param "insn".
7138 (collect_fn_hard_reg_usage): Likewise for local "insn".
7139 (get_call_fndecl): Likewise for param "insn".
7140 (get_call_cgraph_rtl_info): Likewise.
7141 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
7142 introducing a new local rtx_insn * "insn" using a checked cast to
7143 effectively strengthen "insn" from rtx to rtx_insn * without
7144 affecting the type signature.
7146 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7147 cast when assigning from param "insn" to current_output_insn.
7148 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7149 so that we can assign it back to current_output_insn.
7151 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7153 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7154 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7155 atmxt540s and atmxt540sreva devices.
7156 * config/avr/avr-tables.opt: Regenerate.
7157 * config/avr/t-multilib: Regenerate.
7158 * doc/avr-mmcu.texi: Regenerate.
7160 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7162 * expr.c (convert_move): Strengthen local "insns" from rtx to
7164 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7165 "top_label" from rtx to rtx_code_label *.
7166 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7168 (emit_single_push_insn): Likewise for locals "prev", "last".
7169 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7170 to rtx_code_label *.
7171 (store_constructor): Likewise for locals "loop_start", "loop_end".
7172 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7174 (expand_expr_real_2): Likewise.
7175 (expand_expr_real_1): Strengthen local "label" from rtx to
7178 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7180 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7181 from rtx to rtx_insn *.
7182 (store_bit_field_1): Likewise.
7183 (extract_bit_field_1): Likewise.
7184 (expand_mult_const): Likewise for local "insns".
7185 (expmed_mult_highpart): Strengthen local "label" from rtx to
7187 (expand_smod_pow2): Likewise.
7188 (expand_sdiv_pow2): Likewise.
7189 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7190 rtx_insn *. Strengthen locals "label", "label1", "label2",
7191 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7192 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7193 (emit_store_flag): Likewise.
7194 (emit_store_flag_force): Strengthen local "label" from rtx to
7196 (do_cmp_and_jump): Likewise for param "label".
7198 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7200 * explow.c (force_reg): Strengthen local "insn" from rtx to
7202 (adjust_stack_1): Likewise.
7203 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7204 "final_label", "available_label", "space_available" from rtx to
7206 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7207 (anti_adjust_stack_and_probe): Likewise.
7209 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7211 * except.h (sjlj_emit_function_exit_after): Strengthen param
7212 "after" from rtx to rtx_insn *. This is only called with
7213 result of get_last_insn (in function.c) so type-change should be
7216 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7217 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7218 to rtx_insn *. These fields are only used from except.c so this
7219 type-change should be self-contained to this patch.
7221 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7222 local "last" from rtx to rtx_insn *.
7223 (dw2_build_landing_pads): Likewise for local "seq".
7224 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7225 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7226 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7228 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7230 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7231 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7232 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7233 referring to an insn. Strengthen local "dispatch_label" from
7234 rtx to rtx_code_label *.
7235 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7237 (expand_eh_return): Strengthen local "around_label" from
7238 rtx to rtx_code_label *.
7239 (convert_to_eh_region_ranges): Strengthen locals "iter",
7240 "last_action_insn", "first_no_action_insn",
7241 "first_no_action_insn_before_switch",
7242 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7246 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7247 from rtx to rtx_insn *.
7248 (cached_next_real_insn): Likewise.
7249 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7251 (dwarf2out_var_location): Strengthen locals "next_real",
7252 "next_note", "expected_next_loc_note", "last_start", "insn" from
7255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7257 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7258 from rtx to rtx_insn *.
7259 (create_pseudo_cfg): Likewise for local "insn".
7261 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7263 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7264 from rtx to rtx_insn *.
7265 (df_bb_regno_last_def_find): Likewise.
7267 * df-problems.c (df_rd_bb_local_compute): Likewise.
7268 (df_lr_bb_local_compute): Likewise.
7269 (df_live_bb_local_compute): Likewise.
7270 (df_chain_remove_problem): Likewise.
7271 (df_chain_create_bb): Likewise.
7272 (df_word_lr_bb_local_compute): Likewise.
7273 (df_remove_dead_eq_notes): Likewise for param "insn".
7274 (df_note_bb_compute): Likewise for local "insn".
7275 (simulate_backwards_to_point): Likewise.
7276 (df_md_bb_local_compute): Likewise.
7278 * df-scan.c (df_scan_free_bb_info): Likewise.
7279 (df_scan_start_dump): Likewise.
7280 (df_scan_start_block): Likewise.
7281 (df_install_ref_incremental): Likewise for local "insn".
7282 (df_insn_rescan_all): Likewise.
7283 (df_reorganize_refs_by_reg_by_insn): Likewise.
7284 (df_reorganize_refs_by_insn_bb): Likewise.
7285 (df_recompute_luids): Likewise.
7286 (df_bb_refs_record): Likewise.
7287 (df_update_entry_exit_and_calls): Likewise.
7288 (df_bb_verify): Likewise.
7290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7292 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7293 "first_note" from rtx to rtx_insn *.
7294 (get_node_of_insn): Likewise for param 2 "insn".
7295 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7297 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7299 (mem_write_insn_p): Likewise.
7300 (mem_access_insn_p): Likewise.
7301 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7302 (def_has_ccmode_p): Likewise for param "insn".
7303 (add_cross_iteration_register_deps): Likewise for locals
7304 "def_insn" and "use_insn".
7305 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7306 (build_intra_loop_deps): Likewise for local "src_insn".
7307 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7309 (get_node_of_insn): Likewise for param "insn".
7311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7313 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7314 (deletable_insn_p): Strengthen param "insn" from rtx to
7315 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7316 find_call_stack_args, since this is guarded by CALL_P (insn).
7317 (marked_insn_p): Strengthen param "insn" from rtx to
7319 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7320 invoking find_call_stack_args, since this is guarded by
7322 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7323 rtx_insn *; we know this is an insn since this was called by
7325 (mark_nonreg_stores_2): Likewise.
7326 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7328 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7329 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7331 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7332 from rtx to rtx_insn *.
7333 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7335 (delete_unmarked_insns): Likewise for locals "insn", "next".
7336 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7337 (mark_reg_dependencies): Likewise for param "insn".
7338 (rest_of_handle_ud_dce): Likewise for local "insn".
7339 (word_dce_process_block): Likewise.
7340 (dce_process_block): Likewise.
7342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7344 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7345 from rtx to rtx_insn *.
7346 (struct change_cc_mode_args): Likewise for field "insn".
7347 (this_insn): Strengthen from rtx to rtx_insn *.
7348 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7350 (validate_canon_reg): Strengthen param "insn" from rtx to
7352 (canon_reg): Likewise.
7353 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7355 (record_jump_equiv): Strengthen param "insn" from rtx to
7357 (try_back_substitute_reg): Likewise, also for locals "prev",
7359 (find_sets_in_insn): Likewise for param "insn".
7360 (canonicalize_insn): Likewise.
7361 (cse_insn): Likewise. Add a checked cast.
7362 (invalidate_from_clobbers): Likewise for param "insn".
7363 (invalidate_from_sets_and_clobbers): Likewise.
7364 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7366 (cse_prescan_path): Strengthen local "insn" from rtx to
7368 (cse_extended_basic_block): Likewise for locals "insn" and
7370 (cse_main): Likewise for param "f".
7371 (check_for_label_ref): Likewise for local "insn".
7372 (set_live_p): Likewise for second param ("insn").
7373 (insn_live_p): Likewise for first param ("insn") and for local
7375 (cse_change_cc_mode_insn): Likewise for first param "insn".
7376 (cse_change_cc_mode_insns): Likewise for first and second params
7378 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7380 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7383 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7384 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7385 Anna Tikhonova <anna.tikhonova@intel.com>
7386 Ilya Tocar <ilya.tocar@intel.com>
7387 Andrey Turetskiy <andrey.turetskiy@intel.com>
7388 Ilya Verbin <ilya.verbin@intel.com>
7389 Kirill Yukhin <kirill.yukhin@intel.com>
7390 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7392 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7394 * config/i386/sse.md
7395 (define_mode_iterator VI248_AVX2): Delete.
7396 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7397 (define_mode_iterator VI48_AVX2): Ditto.
7398 (define_insn <shift_insn><mode>3): Delete.
7399 (define_insn "<shift_insn><mode>3<mask_name>" with
7400 VI2_AVX2_AVX512BW): New.
7401 (define_insn "<shift_insn><mode>3<mask_name>" with
7404 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7406 Anna Tikhonova <anna.tikhonova@intel.com>
7407 Ilya Tocar <ilya.tocar@intel.com>
7408 Andrey Turetskiy <andrey.turetskiy@intel.com>
7409 Ilya Verbin <ilya.verbin@intel.com>
7410 Kirill Yukhin <kirill.yukhin@intel.com>
7411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7413 * config/i386/sse.md
7414 (define_mode_iterator VI4F_BRCST32x2): New.
7415 (define_mode_attr 64x2_mode): Ditto.
7416 (define_mode_attr 32x2mode): Ditto.
7417 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7418 with VI4F_BRCST32x2): Ditto.
7419 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7420 with V16FI mode iterator): Ditto.
7421 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7423 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7424 with VI8F_BRCST64x2): Ditto.
7426 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7427 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7428 Anna Tikhonova <anna.tikhonova@intel.com>
7429 Ilya Tocar <ilya.tocar@intel.com>
7430 Andrey Turetskiy <andrey.turetskiy@intel.com>
7431 Ilya Verbin <ilya.verbin@intel.com>
7432 Kirill Yukhin <kirill.yukhin@intel.com>
7433 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7435 * config/i386/sse.md
7436 (define_mode_iterator VI8_AVX512VL): New.
7437 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7439 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7441 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7442 (define_mode_iterator V48_AVX512VL): New.
7443 (define_mode_iterator V12_AVX512VL): Ditto.
7444 (define_insn <avx512>_load<mode>_mask): Split into two similar
7445 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7446 Refactor output template.
7447 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7449 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7451 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7453 (reg_available_p): Likewise for param "insn".
7454 (insert_set_in_table): Likewise.
7455 (hash_scan_set): Likewise.
7456 (hash_scan_insn): Likewise.
7457 (make_set_regs_unavailable): Likewise.
7458 (compute_hash_table_work): Likewise for local "insn".
7459 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7461 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7462 (try_replace_reg): Likewise.
7463 (find_avail_set): Likewise.
7464 (cprop_jump): Likewise for params "setcc", "jump".
7465 (constprop_register): Likewise for param "insn".
7466 (cprop_insn): Likewise.
7467 (do_local_cprop): Likewise.
7468 (local_cprop_pass): Likewise for local "insn".
7469 (bypass_block): Likewise for params "setcc" and "jump".
7470 (bypass_conditional_jumps): Likewise for locals "setcc" and
7472 (one_cprop_pass): Likewise for local "insn".
7474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7476 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7477 from rtx to rtx_insn *.
7478 (struct comparison): Likewise, also for field "prev_clobber".
7479 (conforming_compare): Likewise for param "insn".
7480 (arithmetic_flags_clobber_p): Likewise.
7481 (find_flags_uses_in_insn): Likewise.
7482 (find_comparison_dom_walker::before_dom_children): Likewise for
7483 locals "insn", "next", "last_clobber".
7484 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7486 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7488 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7489 "insn" from rtx to rtx_insn *.
7490 (single_set_for_csa): Likewise for param "insn".
7491 (record_one_stack_ref): Likewise.
7492 (try_apply_stack_adjustment): Likewise.
7493 (struct record_stack_refs_data): Likewise for field "insn".
7494 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7495 (prev_active_insn_bb): Likewise for return type and param "insn".
7496 (next_active_insn_bb): Likewise.
7497 (force_move_args_size_note): Likewise for params "prev" and "last"
7498 and locals "test", "next_candidate", "prev_candidate".
7499 (combine_stack_adjustments_for_block): Strengthen locals
7500 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7503 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7505 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7506 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7507 (subst_insn): Likewise for this variable.
7508 (added_links_insn): Likewise.
7509 (struct insn_link): Likewise for field "insn".
7510 (alloc_insn_link): Likewise for param "insn".
7511 (struct undobuf): Likewise for field "other_insn".
7512 (find_single_use): Likewise for param "insn" and local "next".
7513 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
7514 (delete_noop_moves): Likewise for locals "insn", "next".
7515 (create_log_links): Likewise for locals "insn", "use_insn".
7516 Strengthen local "next_use" from rtx * to rtx_insn **.
7517 (insn_a_feeds_b): Likewise for params "a", "b".
7518 (combine_instructions): Likewise for param "f" and locals "insn",
7519 "next", "prev", "first", "last_combined_insn", "link", "link1",
7520 "temp". Replace use of NULL_RTX with NULL when referring to
7522 (setup_incoming_promotions): Likewise for param "first"
7523 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
7524 (can_combine_p): Likewise for params "insn", "i3", "pred",
7525 "pred2", "succ", "succ2" and for local "p".
7526 (combinable_i3pat): Likewise for param "i3".
7527 (cant_combine_insn_p): Likewise for param "insn".
7528 (likely_spilled_retval_p): Likewise.
7529 (adjust_for_new_dest): Likewise.
7530 (update_cfg_for_uncondjump): Likewise, also for local "insn".
7531 (try_combine): Likewise for return type and for params "i3", "i2",
7532 "i1", "i0", "last_combined_insn", and for locals "insn",
7533 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
7534 "i0_insn". Eliminate local "tem" in favor of new locals
7535 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
7536 checked cast for now to rtx_insn * on the return type of
7537 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
7539 (find_split_point): Strengthen param "insn" from rtx to
7541 (simplify_set): Likewise for local "other_insn".
7542 (recog_for_combine): Likewise for param "insn".
7543 (record_value_for_reg): Likewise.
7544 (record_dead_and_set_regs_1): Likewise for local
7546 (record_dead_and_set_regs): Likewise for param "insn".
7547 (record_promoted_value): Likewise.
7548 (check_promoted_subreg): Likewise.
7549 (get_last_value_validate): Likewise.
7550 (reg_dead_at_p): Likewise.
7551 (move_deaths): Likewise for param "to_insn".
7552 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
7553 and locals "place", "place2", "cc0_setter". Eliminate local "tem
7554 in favor of new locals "tem_note" and "tem_insn", the latter being
7556 (distribute_links): Strengthen locals "place", "insn" from rtx to
7559 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7561 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
7563 (can_delete_label_p): Require a const rtx_code_label * rather than
7565 (delete_insn): Add checked cast to rtx_code_label * when we know
7566 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
7568 (delete_insn_chain): Strengthen locals "prev" and "current" from
7569 rtx to rtx_insn *. Add a checked cast when assigning from
7570 "finish" (strengthening the params will come later). Add a
7571 checked cast to rtx_note * in region where we know
7573 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
7575 (compute_bb_for_insn): Likewise.
7576 (free_bb_for_insn): Likewise for local "insn".
7577 (compute_bb_for_insn): Likewise.
7578 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
7579 local "insn" from rtx to rtx_insn *
7580 (flow_active_insn_p): Require a const rtx_insn * rather than a
7582 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
7584 (can_fallthru): Likewise for locals "insn" and "insn2".
7585 (bb_note): Likewise for local "note".
7586 (first_insn_after_basic_block_note): Likewise for local "note" and
7588 (rtl_split_block): Likewise for locals "insn" and "next".
7589 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
7591 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
7592 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
7594 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
7595 them), "kill_from", "barrier", "new_insn".
7596 (patch_jump_insn): Likewise for params "insn", "old_label".
7597 (redirect_branch_edge): Likewise for locals "old_label", "insn".
7598 (force_nonfallthru_and_redirect): Likewise for locals "insn",
7599 "old_label", "new_label".
7600 (rtl_tidy_fallthru_edge): Likewise for local "q".
7601 (rtl_split_edge): Likewise for locals "before", "last".
7602 (commit_one_edge_insertion): Likewise for locals "before",
7603 "after", "insns", "tmp", "last", adding a checked cast where
7604 currently necessary.
7605 (commit_edge_insertions): Likewise.
7606 (rtl_dump_bb): Likewise for locals "insn", "last".
7607 (print_rtl_with_bb): Likewise for local "x".
7608 (rtl_verify_bb_insns): Likewise for local "x".
7609 (rtl_verify_bb_pointers): Likewise for local "insn".
7610 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
7612 (rtl_verify_fallthru): Likewise for local "insn".
7613 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
7614 (purge_dead_edges): Likewise for local "insn".
7615 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
7616 (skip_insns_after_block): Likewise for return type and for locals
7617 "insn", "last_insn", "next_head", "prev".
7618 (record_effective_endpoints): Likewise for locals "next_insn",
7620 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
7621 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
7622 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
7623 (duplicate_insn_chain): For now, add checked cast from rtx to
7624 rtx_insn * when returning insn.
7625 (cfg_layout_duplicate_bb): Likewise for local "insn".
7626 (cfg_layout_delete_block): Likewise for locals "insn", "next",
7628 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
7629 (rtl_block_empty_p): Likewise.
7630 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
7631 "split_point", "last".
7632 (rtl_block_ends_with_call_p): Likewise for local "insn".
7633 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
7635 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
7636 "split_at_insn" from rtx to rtx_insn *.
7637 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
7638 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
7639 to const rtx_insn *.
7640 (rtl_account_profile_record): Likewise.
7642 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7644 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
7646 (average_num_loop_insns): Likewise.
7647 (init_set_costs): Likewise for local "seq".
7648 (seq_cost): Likewise for param "seq", from const_rtx to const
7651 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7653 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
7656 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7658 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
7659 "f1" and "f2" from rtx * to rtx_insn **.
7660 (flow_find_head_matching_sequence): Likewise.
7662 * cfgcleanup.c (try_simplify_condjump): Strengthen local
7663 "cbranch_insn" from rtx to rtx_insn *.
7664 (thread_jump): Likewise for local "insn".
7665 (try_forward_edges): Likewise for local "last".
7666 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
7667 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
7669 (can_replace_by): Likewise for params "i1", "i2".
7670 (old_insns_match_p): Likewise.
7671 (merge_notes): Likewise.
7672 (walk_to_nondebug_insn): Likewise for param "i1".
7673 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
7674 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
7675 "afterlast1", "afterlast2" from rtx to rtx_insn *.
7676 (flow_find_head_matching_sequence): Strengthen params "f1" and
7677 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
7678 "last1", "last2", "beforelast1", "beforelast2" from rtx to
7680 (outgoing_edges_match): Likewise for locals "last1", "last2".
7681 (try_crossjump_to_edge): Likewise for local "insn".
7682 Replace call to for_each_rtx with for_each_rtx_in_insn.
7684 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
7685 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
7686 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
7687 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
7688 (try_optimize_cfg): Strengthen local "last" from rtx to
7690 (delete_dead_jumptables): Likewise for locals "insn", "next",
7693 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
7694 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
7695 "rtx else_first_tail", to reflect the basic-block.h changes above.
7697 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7699 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
7701 (purge_dead_tablejump_edges): Likewise.
7702 (find_bb_boundaries): Likewise for locals "insn", "end",
7703 "flow_transfer_insn".
7705 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7707 * caller-save.c (save_call_clobbered_regs): Strengthen locals
7708 "ins" and "prev" from rtx to rtx_insn *.
7710 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7712 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
7714 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
7715 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
7717 (load_register_parameters): Likewise for local "before_arg".
7718 (check_sibcall_argument_overlap): Likewise for param "insn".
7719 (expand_call): Likewise for locals "normal_call_insns",
7720 "tail_call_insns", "insns", "before_call", "after_args",
7721 "before_arg", "last", "prev". Strengthen one of the "last" from
7722 rtx to rtx_call_insn *.
7723 (fixup_tail_calls): Strengthen local "insn" from rtx to
7725 (emit_library_call_value_1): Likewise for locals "before_call" and
7728 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7730 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
7731 and "last" from rtx to rtx_insn *.
7732 (expand_builtin_nonlocal_goto): Likewise for local "insn".
7733 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
7735 (expand_errno_check): Strengthen local "lab" from rtx to
7737 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
7739 (expand_builtin_mathfn_2): Likewise.
7740 (expand_builtin_mathfn_ternary): Likewise.
7741 (expand_builtin_mathfn_3): Likewise.
7742 (expand_builtin_interclass_mathfn): Likewise for local "last".
7743 (expand_builtin_int_roundingfn): Likewise for local "insns".
7744 (expand_builtin_int_roundingfn_2): Likewise.
7745 (expand_builtin_strlen): Likewise for local "before_strlen".
7746 (expand_builtin_strncmp): Likewise for local "seq".
7747 (expand_builtin_signbit): Likewise for local "last".
7748 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
7749 from rtx to rtx_code_label *.
7750 (expand_stack_restore): Strengthen local "prev" from rtx to
7753 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7755 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
7757 (struct btr_def_s): Likewise.
7758 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7760 (add_btr_def): Likewise.
7761 (new_btr_user): Likewise.
7762 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
7764 (link_btr_uses): Likewise.
7765 (move_btr_def): Likewise for locals "insp", "old_insn",
7766 "new_insn". Add checked cast to rtx_insn * for now on result of
7768 (can_move_up): Strengthen param "insn" from const_rtx to
7771 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7773 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
7775 (get_uncond_jump_length): Likewise for locals "label", "jump".
7776 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
7778 (add_labels_and_missing_jumps): Likewise for local "new_jump".
7779 (fix_up_fall_thru_edges): Likewise for local "old_jump".
7780 (find_jump_block): Likewise for local "insn".
7781 (fix_crossing_conditional_branches): Likewise for locals
7782 "old_jump", "new_jump".
7783 (fix_crossing_unconditional_branches): Likewise for locals
7784 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
7785 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
7787 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7789 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
7791 (struct mem_insn): Likewise for field "insn".
7792 (reg_next_use): Strengthen from rtx * to rtx_insn **.
7793 (reg_next_inc_use): Likewise.
7794 (reg_next_def): Likewise.
7795 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7796 from rtx to rtx_insn *.
7797 (move_insn_before): Likewise for param "next_insn" and local "insns".
7798 (attempt_change): Likewise for local "mov_insn".
7799 (try_merge): Likewise for param "last_insn".
7800 (get_next_ref): Likewise for return type and local "insn".
7801 Strengthen param "next_array" from rtx * to rtx_insn **.
7802 (parse_add_or_inc): Strengthen param "insn" from rtx to
7804 (find_inc): Likewise for locals "insn" and "other_insn" (three of
7806 (merge_in_block): Likewise for locals "insn", "curr",
7808 (pass_inc_dec::execute): Update allocations of the arrays to
7809 reflect the stronger types.
7811 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7813 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7814 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
7815 from rtx to rtx_code_label *.
7817 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7819 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7822 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7824 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7825 generated a warning and prevented bootstrapping the compiler.
7827 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7829 * rtl.h (delete_related_insns): Strengthen return type from rtx to
7832 * jump.c (delete_related_insns): Likewise, also for locals "next"
7835 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7837 * genautomata.c (output_internal_insn_latency_func): When writing
7838 the function "internal_insn_latency" to insn-automata.c,
7839 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7840 allowing the optional guard function of (define_bypass) clauses to
7841 expect a pair of rtx_insn *, rather than a pair of rtx.
7842 (output_insn_latency_func): When writing the function
7843 "insn_latency", add an "uncast_" prefix to params "insn" and
7844 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7845 using checked casts from the params, thus enabling the above
7846 change to the generated "internal_insn_latency" function.
7848 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
7850 PR tree-optimization/62091
7851 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7852 handle correctly arrays.
7853 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7855 (record_known_type): Walk into inner type.
7856 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7857 condition on no type changes.
7859 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7861 * genattrtab.c (write_attr_get): Within the generated get_attr_
7862 functions, rename param "insn" to "uncast_insn" and reintroduce
7863 "insn" as an local rtx_insn * using a checked cast, so that "insn"
7864 is an rtx_insn * within insn-attrtab.c
7866 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7868 * output.h (peephole): Strengthen return type from rtx to
7870 * rtl.h (delete_for_peephole): Likewise for both params.
7871 * genpeep.c (main): In generated "peephole" function, strengthen
7872 return type and local "insn" from rtx to rtx_insn *. For now,
7873 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7874 rtx_insn *, with a checked cast.
7875 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7876 locals "insn", "next", "prev" from rtx to rtx_insn *.
7878 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
7880 PR tree-optimization/62112
7881 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7882 * gimple-iterator.h (gsi_replace): Return bool.
7883 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7884 moved from ref_may_alias_global_p.
7885 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7887 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7888 (stmt_kills_ref_p_1): Rename...
7889 (stmt_kills_ref_p): ... to this.
7890 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7891 stmt_kills_ref_p): Declare.
7892 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7893 Move the self-assignment case...
7894 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7896 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7898 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7900 * emit-rtl.c (try_split): Likewise, also for locals "before" and
7901 "after". For now, don't strengthen param "trial", which requires
7902 adding checked casts when returning it.
7904 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7906 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7907 "label" from rtx to rtx_code_label *. Strengthen param 1 of
7908 "var_location" hook from rtx to rtx_insn *.
7909 (debug_nothing_rtx): Delete in favor of...
7910 (debug_nothing_rtx_code_label): New prototype.
7911 (debug_nothing_rtx_rtx): Delete unused prototype.
7912 (debug_nothing_rtx_insn): New prototype.
7914 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7915 invoking debug_hooks->var_location (in two places, one in a NOTE
7916 case of a switch statement, the other guarded by a CALL_P
7917 conditional. Add checked cast to rtx_code_label * when invoking
7918 debug_hooks->label (within CODE_LABEL case of switch statement).
7920 * dbxout.c (dbx_debug_hooks): Update "label" hook from
7921 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7922 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7923 (xcoff_debug_hooks): Likewise.
7924 * debug.c (do_nothing_debug_hooks): Likewise.
7925 (debug_nothing_rtx): Delete in favor of...
7926 (debug_nothing_rtx_insn): New function.
7927 (debug_nothing_rtx_rtx): Delete unused function.
7928 (debug_nothing_rtx_code_label): New function.
7929 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7930 debug_nothing_rtx to debug_nothing_rtx_code_label.
7931 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7933 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7934 debug_nothing_rtx to debug_nothing_rtx_insn.
7935 (sdbout_label): Strengthen param "insn" from rtx to
7937 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7938 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7939 "var_location" hook from debug_nothing_rtx to
7940 debug_nothing_rtx_insn.
7942 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7944 * recog.h (insn_output_fn): Update this function typedef to match
7945 the changes below to the generated output functions, strengthening
7946 the 2nd param from rtx to rtx_insn *.
7948 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7949 insn when invoking an output function, to match the new signature
7950 of insn_output_fn with a stronger second param.
7952 * genconditions.c (write_header): In the generated code for
7953 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7954 to match the other changes in this patch.
7956 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7957 the generated "gen_" functions from rtx to rtx_insn * within their
7960 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7961 the subfunctions within the generated "recog_", "split", "peephole2"
7962 function trees from rtx to rtx_insn *. For now, the top-level
7963 generated functions ("recog", "split", "peephole2") continue to
7964 take a plain rtx for "insn", to avoid introducing dependencies on
7965 other patches. Rename this 2nd param from "insn" to
7966 "uncast_insn", and reintroduce "insn" as a local variable of type
7967 rtx_insn *, initialized at the top of the generated function with
7968 a checked cast on "uncast_insn".
7969 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7970 the generated "gen_" functions from rtx to rtx_insn * within their
7973 * genoutput.c (process_template): Strengthen the 2nd param within
7974 the generated "output_" functions "insn" from rtx to rtx_insn *.
7976 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7978 * tree-profile.c (tree_profiling): Skip external functions
7979 when doing coverage instrumentation.
7980 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7982 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7984 * config/rs6000/altivec.h (vec_cpsgn): New #define.
7985 (vec_mergee): Likewise.
7986 (vec_mergeo): Likewise.
7987 (vec_cntlz): Likewise.
7988 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7989 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7990 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7992 * doc/extend.texi: Document various forms of vec_cpsgn,
7993 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7994 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7995 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7996 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7997 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7999 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8001 * config/rs6000/rs6000.c (context.h): New include.
8002 (tree-pass.h): Likewise.
8003 (make_pass_analyze_swaps): New decl.
8004 (rs6000_option_override): Register pass_analyze_swaps.
8005 (swap_web_entry): New subsclass of web_entry_base (df.h).
8006 (special_handling_values): New enum.
8007 (union_defs): New function.
8008 (union_uses): Likewise.
8009 (insn_is_load_p): Likewise.
8010 (insn_is_store_p): Likewise.
8011 (insn_is_swap_p): Likewise.
8012 (rtx_is_swappable_p): Likewise.
8013 (insn_is_swappable_p): Likewise.
8014 (chain_purpose): New enum.
8015 (chain_contains_only_swaps): New function.
8016 (mark_swaps_for_removal): Likewise.
8017 (swap_const_vector_halves): Likewise.
8018 (adjust_subreg_index): Likewise.
8019 (permute_load): Likewise.
8020 (permute_store): Likewise.
8021 (handle_special_swappables): Likewise.
8022 (replace_swap_with_copy): Likewise.
8023 (dump_swap_insn_table): Likewise.
8024 (rs6000_analyze_swaps): Likewise.
8025 (pass_data_analyze_swaps): New pass_data.
8026 (pass_analyze_swaps): New rtl_opt_pass.
8027 (make_pass_analyze_swaps): New function.
8028 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
8030 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8032 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
8033 type from rtx to rtx_insn *.
8034 (create_copy_of_insn_rtx): Likewise.
8035 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
8036 (create_copy_of_insn_rtx): Likewise, also for local "res".
8038 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8040 * rtl.h (find_first_parameter_load): Strengthen return type from
8042 * rtlanal.c (find_first_parameter_load): Strengthen return type
8043 from rtx to rtx_insn *. Add checked cast for now, to postpone
8044 strengthening the params.
8046 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8049 * diagnostic.c: Set default caret.
8050 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
8052 * diagnostic.h (struct diagnostic_context):
8054 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8056 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
8057 (sel_bb_head): Strengthen return type insn_t (currently just an
8059 (sel_bb_end): Likewise.
8061 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
8062 (sel_bb_head): Strengthen return type and local "head" from
8063 insn_t (currently just an rtx) to rtx_insn *.
8064 (sel_bb_end): Likewise for return type.
8065 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
8068 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8070 * basic-block.h (get_last_bb_insn): Strengthen return type from
8072 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
8075 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8078 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
8080 (diagnostic_report_diagnostic): ... from here.
8081 * toplev.c (general_init): Move code to c-family.
8083 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8085 * df.h (web_entry_base): Replace existing struct web_entry with a
8086 new class web_entry_base with only the predecessor member.
8087 (unionfind_root): Remove declaration and move to class member.
8088 (unionfind_union): Remove declaration and move to friend
8090 (union_defs): Remove declaration.
8091 * web.c (web_entry_base::unionfind_root): Modify to be member
8092 function and adjust accessors.
8093 (unionfind_union): Modify to be friend function and adjust
8095 (web_entry): New subclass of web_entry_base containing the reg
8097 (union_match_dups): Modify for struct -> class changes.
8098 (union_defs): Likewise.
8099 (entry_register): Likewise.
8100 (pass_web::execute): Likewise.
8102 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
8104 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
8105 builtin define __VEC_ELEMENT_REG_ORDER__.
8107 2014-08-20 Martin Jambor <mjambor@suse.cz>
8108 Wei Mi <wmi@google.com>
8112 * tree-ssa-operands.c (update_stmt_operands): Remove
8113 MODIFIED_NORETURN_CALLS.
8114 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
8115 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
8116 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
8117 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
8118 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
8119 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
8120 (gimple_call_set_ctrl_altering): New func.
8121 (gimple_call_ctrl_altering_p): Ditto.
8122 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
8123 (make_blocks): Use gimple_call_initialize_ctrl_altering.
8124 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
8125 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
8126 remove MODIFIED_NORETURN_CALLS.
8128 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8130 * coverage.c (coverage_compute_profile_id): Return non-0;
8131 also handle symbols with unique name.
8132 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
8134 2014-08-20 Steve Ellcey <sellcey@mips.com>
8137 * doc/sourcebuild.texi (non_strict_align): New.
8139 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
8141 * cgraphunit.c (ipa_passes, compile): Reshedule
8142 symtab_remove_unreachable_nodes passes; update comments.
8143 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
8144 TODO_remove_functions before the pass; the functions ought to be
8146 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8147 TODO_remove_functions.
8148 * passes.c (pass_data_early_local_passes): Do not schedule function
8150 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8152 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8155 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8156 before setting the option.
8157 * diagnostic.c (diagnostic_classify_diagnostic): Record
8158 command-line status.
8160 2014-08-20 Richard Biener <rguenther@suse.de>
8163 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8164 to build uint{16,32,64}_type_node.
8166 2014-08-20 Terry Guo <terry.guo@arm.com>
8168 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8169 with immediate_operand.
8171 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8173 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8174 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8177 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8179 PR preprocessor/51303
8180 * incpath.c (remove_duplicates): Use cpp_warning.
8182 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8186 * doc/options.texi (CPP): Document it.
8187 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8188 * optc-gen.awk: Handle CPP.
8189 * opth-gen.awk: Likewise.
8191 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8193 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8195 (duplicate_insn_chain): Likewise.
8196 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8197 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8198 checked cast for now (until we can strengthen the params in the
8200 (duplicate_insn_chain): Likewise.
8202 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8204 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8206 (prev_cc0_setter): Likewise.
8208 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8209 rtx_insn *, adding checked casts for now as necessary.
8210 (prev_cc0_setter): Likewise.
8212 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8214 * expr.h (emit_move_insn): Strengthen return type from rtx to
8216 (emit_move_insn_1): Likewise.
8217 (emit_move_complex_push): Likewise.
8218 (emit_move_complex_parts): Likewise.
8220 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8221 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8223 (emit_move_complex_push): Strengthen return type from rtx to
8225 (emit_move_complex): Likewise, also for local "ret".
8226 (emit_move_ccmode): Likewise.
8227 (emit_move_multi_word): Likewise for return type and locals
8229 (emit_move_insn_1): Likewise for return type and locals "result",
8231 (emit_move_insn): Likewise for return type and local "last_insn".
8232 (compress_float_constant): Likewise.
8234 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8236 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8237 from rtx to rtx_insn *.
8239 * rtl.h (emit_insn_before): Likewise.
8240 (emit_insn_before_noloc): Likewise.
8241 (emit_insn_before_setloc): Likewise.
8242 (emit_jump_insn_before): Likewise.
8243 (emit_jump_insn_before_noloc): Likewise.
8244 (emit_jump_insn_before_setloc): Likewise.
8245 (emit_call_insn_before): Likewise.
8246 (emit_call_insn_before_noloc): Likewise.
8247 (emit_call_insn_before_setloc): Likewise.
8248 (emit_debug_insn_before): Likewise.
8249 (emit_debug_insn_before_noloc): Likewise.
8250 (emit_debug_insn_before_setloc): Likewise.
8251 (emit_label_before): Likewise.
8252 (emit_insn_after): Likewise.
8253 (emit_insn_after_noloc): Likewise.
8254 (emit_insn_after_setloc): Likewise.
8255 (emit_jump_insn_after): Likewise.
8256 (emit_jump_insn_after_noloc): Likewise.
8257 (emit_jump_insn_after_setloc): Likewise.
8258 (emit_call_insn_after): Likewise.
8259 (emit_call_insn_after_noloc): Likewise.
8260 (emit_call_insn_after_setloc): Likewise.
8261 (emit_debug_insn_after): Likewise.
8262 (emit_debug_insn_after_noloc): Likewise.
8263 (emit_debug_insn_after_setloc): Likewise.
8264 (emit_label_after): Likewise.
8265 (emit_insn): Likewise.
8266 (emit_debug_insn): Likewise.
8267 (emit_jump_insn): Likewise.
8268 (emit_call_insn): Likewise.
8269 (emit_label): Likewise.
8270 (gen_clobber): Likewise.
8271 (emit_clobber): Likewise.
8272 (gen_use): Likewise.
8273 (emit_use): Likewise.
8276 (emit_barrier_before): Strengthen return type from rtx to
8278 (emit_barrier_after): Likewise.
8279 (emit_barrier): Likewise.
8281 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8282 from rtx to rtx_insn *. Add checked casts for now when converting
8283 "last" from rtx to rtx_insn *.
8284 (emit_insn_before_noloc): Likewise for return type.
8285 (emit_jump_insn_before_noloc): Likewise.
8286 (emit_call_insn_before_noloc): Likewise.
8287 (emit_debug_insn_before_noloc): Likewise.
8288 (emit_barrier_before): Strengthen return type and local "insn"
8289 from rtx to rtx_barrier *.
8290 (emit_label_before): Strengthen return type from rtx to
8291 rtx_insn *. Add checked cast for now when returning param
8292 (emit_pattern_after_noloc): Strengthen return type from rtx to
8293 rtx_insn *. Add checked casts for now when converting "last" from
8295 (emit_insn_after_noloc): Strengthen return type from rtx to
8297 (emit_jump_insn_after_noloc): Likewise.
8298 (emit_call_insn_after_noloc): Likewise.
8299 (emit_debug_insn_after_noloc): Likewise.
8300 (emit_barrier_after): Strengthen return type from rtx to
8302 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8303 Add checked cast for now when converting "label" from rtx to
8305 (emit_pattern_after_setloc): Strengthen return type from rtx to
8306 rtx_insn *. Add checked casts for now when converting "last" from
8308 (emit_pattern_after): Strengthen return type from rtx to
8310 (emit_insn_after_setloc): Likewise.
8311 (emit_insn_after): Likewise.
8312 (emit_jump_insn_after_setloc): Likewise.
8313 (emit_jump_insn_after): Likewise.
8314 (emit_call_insn_after_setloc): Likewise.
8315 (emit_call_insn_after): Likewise.
8316 (emit_debug_insn_after_setloc): Likewise.
8317 (emit_debug_insn_after): Likewise.
8318 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8319 when converting "last" from rtx to rtx_insn *.
8320 (emit_pattern_before): Strengthen return type from rtx to
8322 (emit_insn_before_setloc): Likewise.
8323 (emit_insn_before): Likewise.
8324 (emit_jump_insn_before_setloc): Likewise.
8325 (emit_jump_insn_before): Likewise.
8326 (emit_call_insn_before_setloc): Likewise.
8327 (emit_call_insn_before): Likewise.
8328 (emit_debug_insn_before_setloc): Likewise.
8329 (emit_debug_insn_before): Likewise.
8330 (emit_insn): Strengthen return type and locals "last", "insn",
8331 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8332 within cases where we know we have an insn.
8333 (emit_debug_insn): Likewise.
8334 (emit_jump_insn): Likewise.
8335 (emit_call_insn): Strengthen return type and local "insn" from rtx
8337 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8338 a checked cast to rtx_insn * for now on "label".
8339 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8340 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8341 (emit_use): Likewise.
8342 (gen_use): Likewise, also for local "seq".
8343 (emit): Likewise for return type and local "insn".
8344 (rtx_insn): Likewise for return type and local "new_rtx".
8346 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8347 from rtx to rtx_barrier *.
8349 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8350 changed return type from rtx to rtx_insn *, we must update
8351 "emit_fn" type, and this in turn means updating...
8352 (frame_insn): ...this. Strengthen return type from rtx to
8353 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8355 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8357 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8358 rtx to rtx_jump_table_data *. Also for local.
8359 * rtl.h (emit_jump_table_data): Likewise.
8361 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8363 * basic-block.h (create_basic_block_structure): Strengthen third
8364 param "bb_note" from rtx to rtx_note *.
8365 * rtl.h (emit_note_before): Strengthen return type from rtx to
8367 (emit_note_after): Likewise.
8368 (emit_note): Likewise.
8369 (emit_note_copy): Likewise. Also, strengthen param similarly.
8370 * function.h (struct rtl_data): Strengthen field
8371 "x_stack_check_probe_note" from rtx to rtx_note *.
8373 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8374 from rtx to rtx_note *.
8375 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8376 "bb_note" from rtx to rtx_note *.
8377 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8378 when calling emit_note_copy.
8379 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8381 (emit_note_after): Likewise.
8382 (emit_note_before): Likewise.
8383 (emit_note_copy): Likewise. Also, strengthen param similarly.
8384 (emit_note): Likewise.
8385 * except.c (emit_note_eh_region_end): Likewise for return type.
8386 Strengthen local "next" from rtx to rtx_insn *.
8387 (convert_to_eh_region_ranges): Strengthen local "note"
8388 from rtx to rtx_note *.
8389 * final.c (change_scope): Likewise.
8390 (reemit_insn_block_notes): Likewise, for both locals named "note".
8391 Also, strengthen local "insn" from rtx to rtx_insn *.
8392 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8394 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8395 strengthen local "seq" from rtx to rtx_insn *.
8396 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8398 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8400 (get_bb_note_from_pool): Strengthen return type from rtx to
8402 (sel_create_basic_block): Strengthen local "new_bb_note" from
8403 insn_t to rtx_note *.
8404 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8405 "note" from rtx to rtx_note *.
8406 (emit_notes_in_bb): Likewise.
8408 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8410 * function.h (struct rtl_data): Strengthen field
8411 "x_parm_birth_insn" from rtx to rtx_insn *.
8412 * function.c (struct assign_parm_data_all): Strengthen fields
8413 "first_conversion_insn" and "last_conversion_insn" from rtx to
8416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8418 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8419 to rtx_insn *; also for local "var_end_seq".
8420 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8421 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8423 (expand_gimple_cond): Likewise for locals "last2" and "last".
8424 (mark_transaction_restart_calls): Likewise for local "insn".
8425 (expand_gimple_stmt): Likewise for return type and locals "last"
8427 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8428 (avoid_complex_debug_insns): Likewise for param "insn".
8429 (expand_debug_locations): Likewise for locals "insn", "last",
8430 "prev_insn" and "insn2".
8431 (expand_gimple_basic_block): Likewise for local "last".
8432 (construct_exit_block): Likewise for locals "head", "end",
8434 (pass_expand::execute): Likewise for locals "var_seq",
8435 "var_ret_seq", "next".
8437 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8439 * asan.h (asan_emit_stack_protection): Strengthen return type from
8441 * asan.c (asan_emit_stack_protection): Likewise. Add local
8442 "insns" to hold the return value.
8444 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8446 * basic-block.h (bb_note): Strengthen return type from rtx to
8448 * sched-int.h (bb_note): Likewise.
8449 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8451 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8453 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8456 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8457 "insn" from rtx to rtx_insn *.
8458 (make_debug_insn_raw): Strengthen return type from rtx to
8459 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8460 (make_jump_insn_raw): Strengthen return type from rtx to
8461 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8462 (make_call_insn_raw): Strengthen return type from rtx to
8463 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8464 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8465 callback from rtx to rtx_insn *; likewise for local "insn" and
8466 "next", adding a checked cast to rtx_insn in the relevant cases of
8467 the switch statement.
8468 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8469 callback from rtx to rtx_insn *.
8470 (emit_pattern_after_setloc): Likewise.
8471 (emit_pattern_after): Likewise.
8472 (emit_pattern_before_setloc): Likewise.
8473 (emit_pattern_before): Likewise.
8475 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8477 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8479 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8480 accepting an rtx_insn *.
8481 (last_call_insn): Strengthen return type from rtx to
8484 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8486 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8487 "insns" from rtx to rtx_insn *.
8488 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8489 locals "insn" and "prev".
8491 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8493 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8494 rtx_jump_table_data **.
8496 * cfgbuild.c (make_edges): Introduce local "table", using it in
8497 place of "tmp" for jump table data.
8498 (find_bb_boundaries): Strengthen local "table" from rtx to
8499 rtx_jump_table_data *.
8500 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8501 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8502 (try_crossjump_to_edge): Likewise.
8503 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8505 (patch_jump_insn): Introduce local "table", using it in place of
8506 "tmp" for jump table data.
8507 (force_nonfallthru_and_redirect): Introduce local "table", so that
8508 call to tablejump_p can receive an rtx_jump_table_data **. Update
8509 logic around the call to overwrite "note" appropriately if
8510 tablejump_p returns non-zero.
8511 (get_last_bb_insn): Introduce local "table", using it in place of
8512 "tmp" for jump table data.
8513 * dwarf2cfi.c (create_trace_edges): Likewise.
8515 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
8516 from rtx to rtx_jump_table_data *.
8517 (create_fix_barrier): Strengthen local "tmp" from rtx to
8518 rtx_jump_table_data *.
8519 (arm_reorg): Likewise for local "table".
8521 * config/s390/s390.c (s390_chunkify_start): Likewise.
8523 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
8525 * jump.c (delete_related_insns): Strengthen local "lab_next" from
8526 rtx to rtx_jump_table_data *.
8528 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
8529 rtx_jump_table_data **. Add a checked cast when writing through
8530 the pointer: we know there that local "table" is non-NULL and that
8531 JUMP_TABLE_DATA_P (table) holds.
8532 (label_is_jump_target_p): Introduce local "table", using it in
8533 place of "tmp" for jump table data.
8535 2014-08-19 Marek Polacek <polacek@redhat.com>
8538 * doc/invoke.texi: Document -Wbool-compare.
8540 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8542 * rtl.h (entry_of_function): Strengthen return type from rtx to
8544 * cfgrtl.c (entry_of_function): Likewise.
8546 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8548 * emit-rtl.h (get_insns): Strengthen return type from rtx to
8549 rtx_insn *, adding a checked cast for now.
8550 (get_last_insn): Likewise.
8552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8554 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
8557 * emit-rtl.c (gen_label_rtx): Likewise.
8559 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8561 * rtl.h (previous_insn): Strengthen return type from rtx to
8563 (next_insn): Likewise.
8564 (prev_nonnote_insn): Likewise.
8565 (prev_nonnote_insn_bb): Likewise.
8566 (next_nonnote_insn): Likewise.
8567 (next_nonnote_insn_bb): Likewise.
8568 (prev_nondebug_insn): Likewise.
8569 (next_nondebug_insn): Likewise.
8570 (prev_nonnote_nondebug_insn): Likewise.
8571 (next_nonnote_nondebug_insn): Likewise.
8572 (prev_real_insn): Likewise.
8573 (next_real_insn): Likewise.
8574 (prev_active_insn): Likewise.
8575 (next_active_insn): Likewise.
8577 * emit-rtl.c (next_insn): Strengthen return type from rtx to
8578 rtx_insn *, adding a checked cast.
8579 (previous_insn): Likewise.
8580 (next_nonnote_insn): Likewise.
8581 (next_nonnote_insn_bb): Likewise.
8582 (prev_nonnote_insn): Likewise.
8583 (prev_nonnote_insn_bb): Likewise.
8584 (next_nondebug_insn): Likewise.
8585 (prev_nondebug_insn): Likewise.
8586 (next_nonnote_nondebug_insn): Likewise.
8587 (prev_nonnote_nondebug_insn): Likewise.
8588 (next_real_insn): Likewise.
8589 (prev_real_insn): Likewise.
8590 (next_active_insn): Likewise.
8591 (prev_active_insn): Likewise.
8593 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
8594 param "stepfunc" so that it returns an rtx_insn * rather than an
8595 rtx, to track the change to prev_nonnote_insn_bb, which is the
8596 only function this is called with.
8597 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
8599 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
8601 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
8604 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8606 * coretypes.h (class rtx_debug_insn): Add forward declaration.
8607 (class rtx_nonjump_insn): Likewise.
8608 (class rtx_jump_insn): Likewise.
8609 (class rtx_call_insn): Likewise.
8610 (class rtx_jump_table_data): Likewise.
8611 (class rtx_barrier): Likewise.
8612 (class rtx_code_label): Likewise.
8613 (class rtx_note): Likewise.
8615 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
8616 adding the invariant DEBUG_INSN_P (X).
8617 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
8618 the invariant NONJUMP_INSN_P (X).
8619 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
8620 the invariant JUMP_P (X).
8621 (class rtx_call_insn): New, a subclass of rtx_insn, adding
8622 the invariant CALL_P (X).
8623 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
8624 invariant JUMP_TABLE_DATA_P (X).
8625 (class rtx_barrier): New, a subclass of rtx_insn, adding the
8626 invariant BARRIER_P (X).
8627 (class rtx_code_label): New, a subclass of rtx_insn, adding
8628 the invariant LABEL_P (X).
8629 (class rtx_note): New, a subclass of rtx_insn, adding
8630 the invariant NOTE_P(X).
8631 (is_a_helper <rtx_debug_insn *>::test): New.
8632 (is_a_helper <rtx_nonjump_insn *>::test): New.
8633 (is_a_helper <rtx_jump_insn *>::test): New.
8634 (is_a_helper <rtx_call_insn *>::test): New.
8635 (is_a_helper <rtx_jump_table_data *>::test): New functions,
8636 overloaded for both rtx and rtx_insn *.
8637 (is_a_helper <rtx_barrier *>::test): New.
8638 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
8639 for both rtx and rtx_insn *.
8640 (is_a_helper <rtx_note *>::test): New.
8642 2014-08-19 Marek Polacek <polacek@redhat.com>
8644 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
8645 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8646 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
8647 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8649 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8651 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
8652 rtx_insn *. To help with transition, for now, convert from an
8653 access macro into a pair of functions: BND_TO, returning an
8655 (SET_BND_TO): New function, for use where BND_TO is used as an
8658 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
8660 (BND_TO): New function, adding a checked cast.
8661 (SET_BND_TO): New function.
8663 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
8665 (compute_av_set_on_boundaries): Likewise.
8667 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8669 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
8670 destination if it is used in source.
8671 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
8672 (*popcount<mode>2_falsedep_1): Likewise.
8674 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8677 * configure.ac: Set install_gold_as_default to no first.
8678 * configure: Regenerated.
8680 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8682 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
8683 "note_list" field will eventually be an rtx_insn *. To help with
8684 transition, for now, convert from an access macro into a pair of
8685 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
8686 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
8689 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
8690 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
8692 * sel-sched-ir.c (init_bb): Likewise.
8693 (sel_restore_notes): Likewise.
8694 (move_bb_info): Likewise.
8695 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
8696 (SET_BB_NOTE_LIST): New function.
8698 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8700 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
8701 field will eventually be an rtx_insn *. To help with transition,
8702 for now, convert from an access macro into a pair of functions:
8703 VINSN_INSN_RTX, returning an rtx_insn *, and...
8704 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
8705 is used as an lvalue.
8707 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
8708 SET_VINSN_INSN_RTX where it's used as an lvalue.
8709 (VINSN_INSN_RTX): New function.
8710 (SET_VINSN_INSN_RTX): New function.
8712 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8714 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
8715 eventually be rtx_insn *, but to help with transition, for now,
8716 convert from an access macro into a pair of functions: DEP_PRO
8717 returning an rtx_insn * and...
8718 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
8719 lvalue, returning an rtx&.
8720 (DEP_CON): Analogous changes to DEP_PRO above.
8721 (SET_DEP_CON): Likewise.
8723 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
8724 an lvalue to SET_DEP_CON.
8725 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
8726 (sd_copy_back_deps): Likewise for DEP_CON.
8727 (DEP_PRO): New function, adding a checked cast for now.
8728 (DEP_CON): Likewise.
8729 (SET_DEP_PRO): New function.
8730 (SET_DEP_CON): Likewise.
8732 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8734 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
8735 (extra_options): Add i386/cygwin.opt.
8736 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
8737 (CPP_SPEC): Accept -pthread.
8739 (GOMP_SELF_SPECS): Update comment.
8740 * config/i386/cygwin.opt: New file for -pthread flag.
8742 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8744 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
8745 * df.h (DF_REF_INSN): Convert from a macro to a function, so
8746 that we can return an rtx_insn *.
8748 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8750 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
8751 when building executables, not DLLs. Add --large-address-aware
8752 under the same conditions.
8753 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
8754 when building executables, not DLLs. Add --large-address-aware
8755 under the same conditions when using -m32.
8757 * config/i386/cygwin-stdint.h: Throughout, make type
8758 definitions dependent on target architecture, not host.
8760 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8762 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
8763 the return type from rtx to rtx_insn *, which will enable various
8764 conversions in followup patches. For now this is is done by a
8766 (NEXT_INSN): Likewise.
8767 (SET_PREV_INSN): Convert to an inline function. This is intended
8768 for use as an lvalue, and so returns an rtx& to allow in-place
8770 (SET_NEXT_INSN): Likewise.
8772 2014-07-08 Mark Wielaard <mjw@redhat.com>
8775 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
8777 2014-08-19 Marek Polacek <polacek@redhat.com>
8780 * cgraphunit.c (handle_alias_pairs): Fix condition.
8782 2014-08-19 Richard Biener <rguenther@suse.de>
8784 * gimple-fold.c (fold_gimple_assign): Properly build a
8785 null-pointer constant when devirtualizing addresses.
8787 2014-07-07 Mark Wielaard <mjw@redhat.com>
8789 * dwarf2out.c (decl_quals): New function.
8790 (modified_type_die): Take one cv_quals argument instead of two,
8791 one for const and one for volatile.
8792 (add_type_attribute): Likewise.
8793 (generic_parameter_die): Call add_type_attribute with one modifier
8795 (base_type_for_mode): Likewise.
8796 (add_bounds_info): Likewise.
8797 (add_subscript_info): Likewise.
8798 (gen_array_type_die): Likewise.
8799 (gen_descr_array_type_die): Likewise.
8800 (gen_entry_point_die): Likewise.
8801 (gen_enumeration_type_die): Likewise.
8802 (gen_formal_parameter_die): Likewise.
8803 (gen_subprogram_die): Likewise.
8804 (gen_variable_die): Likewise.
8805 (gen_const_die): Likewise.
8806 (gen_field_die): Likewise.
8807 (gen_pointer_type_die): Likewise.
8808 (gen_reference_type_die): Likewise.
8809 (gen_ptr_to_mbr_type_die): Likewise.
8810 (gen_inheritance_die): Likewise.
8811 (gen_subroutine_type_die): Likewise.
8812 (gen_typedef_die): Likewise.
8813 (force_type_die): Likewise.
8815 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8817 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8819 * configure: Regenerate.
8821 2014-08-19 Richard Biener <rguenther@suse.de>
8823 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8824 DECL_EXTERNALs in BLOCKs as non-references.
8825 * tree-streamer-out.c (streamer_write_chain): Likewise.
8827 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
8828 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8829 Anna Tikhonova <anna.tikhonova@intel.com>
8830 Ilya Tocar <ilya.tocar@intel.com>
8831 Andrey Turetskiy <andrey.turetskiy@intel.com>
8832 Ilya Verbin <ilya.verbin@intel.com>
8833 Kirill Yukhin <kirill.yukhin@intel.com>
8834 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8836 * config/i386/sse.md
8837 (define_mode_iterator VI48_AVX512F): Delete.
8838 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8839 (define_mode_iterator VI2_AVX512VL): Ditto.
8840 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8843 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8845 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8846 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8847 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8848 with VI48_AVX512F_AVX512VL): New.
8849 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8850 with VI2_AVX512VL): Ditto.
8852 2014-08-19 Marek Polacek <polacek@redhat.com>
8854 * doc/invoke.texi: Document -Wc99-c11-compat.
8856 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8858 * rtl.h (PREV_INSN): Split macro in two: the existing one,
8860 (SET_PREV_INSN): New macro, for use as an lvalue.
8861 (NEXT_INSN, SET_NEXT_INSN): Likewise.
8863 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8864 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8865 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8866 (fixup_abnormal_edges): Likewise.
8867 (unlink_insn_chain): Likewise.
8868 (fixup_reorder_chain): Likewise.
8869 (cfg_layout_delete_block): Likewise.
8870 (cfg_layout_merge_blocks): Likewise.
8871 * combine.c (update_cfg_for_uncondjump): Likewise.
8872 * emit-rtl.c (link_insn_into_chain): Likewise.
8873 (remove_insn): Likewise.
8874 (delete_insns_since): Likewise.
8875 (reorder_insns_nobb): Likewise.
8876 (emit_insn_after_1): Likewise.
8877 * final.c (rest_of_clean_state): Likewise.
8878 (final_scan_insn): Likewise.
8879 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8880 * haifa-sched.c (concat_note_lists): Likewise.
8881 (remove_notes): Likewise.
8882 (restore_other_notes): Likewise.
8883 (move_insn): Likewise.
8884 (unlink_bb_notes): Likewise.
8885 (restore_bb_notes): Likewise.
8886 * jump.c (delete_for_peephole): Likewise.
8887 * optabs.c (emit_libcall_block_1): Likewise.
8888 * reorg.c (emit_delay_sequence): Likewise.
8889 (fill_simple_delay_slots): Likewise.
8890 * sel-sched-ir.c (sel_move_insn): Likewise.
8891 (sel_remove_insn): Likewise.
8892 (get_bb_note_from_pool): Likewise.
8893 * sel-sched.c (move_nop_to_previous_block): Likewise.
8895 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8896 * config/c6x/c6x.c (gen_one_bundle): Likewise.
8897 (c6x_gen_bundles): Likewise.
8898 (hwloop_optimize): Likewise.
8899 * config/frv/frv.c (frv_function_prologue): Likewise.
8900 (frv_register_nop): Likewise.
8901 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8902 (ia64_reorg): Likewise.
8903 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8904 (mep_make_bundle): Likewise.
8905 (mep_bundle_insns): Likewise.
8906 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8907 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8908 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8910 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8912 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
8913 return type from rtx to rtx_insn *.
8915 (BB_HEADER): Likewise.
8916 (BB_FOOTER): Likewise.
8917 (SET_BB_HEAD): Convert to a function.
8918 (SET_BB_END): Likewise.
8919 (SET_BB_HEADER): Likewise.
8920 (SET_BB_FOOTER): Likewise.
8922 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8923 Strengthen the return type from rtx to rtx_insn *. For now, this
8924 is done by adding a checked cast, but this will eventually
8925 become a field lookup.
8927 (BB_HEADER): Likewise.
8928 (BB_FOOTER): Likewise.
8929 (SET_BB_HEAD): New function, from macro of same name. This is
8930 intended for use as an lvalue, and so returns an rtx& to allow
8931 in-place modification.
8932 (SET_BB_END): Likewise.
8933 (SET_BB_HEADER): Likewise.
8934 (SET_BB_FOOTER): Likewise.
8936 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8938 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8940 (SET_BB_HEAD): New macro, for use as a lvalue.
8941 (BB_END, SET_BB_END): Likewise.
8942 (BB_HEADER, SET_BB_HEADER): Likewise.
8943 (BB_FOOTER, SET_BB_FOOTER): Likewise.
8945 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8946 of BB_* macros into SET_BB_* macros.
8947 (fix_crossing_unconditional_branches): Likewise.
8948 * caller-save.c (save_call_clobbered_regs): Likewise.
8949 (insert_one_insn): Likewise.
8950 * cfgbuild.c (find_bb_boundaries): Likewise.
8951 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8952 (outgoing_edges_match): Likewise.
8953 (try_optimize_cfg): Likewise.
8954 * cfgexpand.c (expand_gimple_cond): Likewise.
8955 (expand_gimple_tailcall): Likewise.
8956 (expand_gimple_basic_block): Likewise.
8957 (construct_exit_block): Likewise.
8958 * cfgrtl.c (delete_insn): Likewise.
8959 (create_basic_block_structure): Likewise.
8960 (rtl_delete_block): Likewise.
8961 (rtl_split_block): Likewise.
8962 (emit_nop_for_unique_locus_between): Likewise.
8963 (rtl_merge_blocks): Likewise.
8964 (block_label): Likewise.
8965 (try_redirect_by_replacing_jump): Likewise.
8966 (emit_barrier_after_bb): Likewise.
8967 (fixup_abnormal_edges): Likewise.
8968 (record_effective_endpoints): Likewise.
8969 (relink_block_chain): Likewise.
8970 (fixup_reorder_chain): Likewise.
8971 (fixup_fallthru_exit_predecessor): Likewise.
8972 (cfg_layout_duplicate_bb): Likewise.
8973 (cfg_layout_split_block): Likewise.
8974 (cfg_layout_delete_block): Likewise.
8975 (cfg_layout_merge_blocks): Likewise.
8976 * combine.c (update_cfg_for_uncondjump): Likewise.
8977 * emit-rtl.c (add_insn_after): Likewise.
8978 (remove_insn): Likewise.
8979 (reorder_insns): Likewise.
8980 (emit_insn_after_1): Likewise.
8981 * haifa-sched.c (get_ebb_head_tail): Likewise.
8982 (restore_other_notes): Likewise.
8983 (move_insn): Likewise.
8984 (sched_extend_bb): Likewise.
8985 (fix_jump_move): Likewise.
8986 * ifcvt.c (noce_process_if_block): Likewise.
8987 (dead_or_predicable): Likewise.
8988 * ira.c (update_equiv_regs): Likewise.
8989 * reg-stack.c (change_stack): Likewise.
8990 * sel-sched-ir.c (sel_move_insn): Likewise.
8991 * sel-sched.c (move_nop_to_previous_block): Likewise.
8993 * config/c6x/c6x.c (hwloop_optimize): Likewise.
8994 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8996 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8998 * rtl.h (for_each_rtx_in_insn): New function.
8999 * rtlanal.c (for_each_rtx_in_insn): Likewise.
9001 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9003 * coretypes.h (class rtx_insn): Add forward declaration.
9005 * rtl.h: Include is-a.h.
9006 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
9007 workaround to ensure gengtype knows inheritance is occurring,
9008 whilst continuing to use the pre-existing special-casing for
9010 (class rtx_insn): New subclass of rtx_def, adding the
9011 invariant that we're dealing with something we can sanely use
9012 INSN_UID, NEXT_INSN, PREV_INSN on.
9013 (is_a_helper <rtx_insn *>::test): New.
9014 (is_a_helper <const rtx_insn *>::test): New.
9016 2014-08-18 David Malcolm <dmalcolm@redhat.com>
9018 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
9020 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9022 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
9025 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
9027 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
9028 to BUILT_IN_UNREACHABLE.
9030 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
9033 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
9035 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
9036 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
9037 (ffs<mode>2): Do not expand with tzcnt for
9038 TARGET_AVOID_FALSE_DEP_FOR_BMI.
9039 (ffssi2_no_cmove): Ditto.
9040 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
9041 (ctz<mode>2): New expander.
9042 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
9043 (*ctz<mode>2_falsedep): New insn.
9044 (*ctz<mode>2): Rename from ctz<mode>2.
9045 (clz<mode>2_lzcnt): New expander.
9046 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
9047 (*clz<mode>2_lzcnt_falsedep): New insn.
9048 (*clz<mode>2): Rename from ctz<mode>2.
9049 (popcount<mode>2): New expander.
9050 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
9051 (*popcount<mode>2_falsedep): New insn.
9052 (*popcount<mode>2): Rename from ctz<mode>2.
9053 (*popcount<mode>2_cmp): Remove.
9054 (*popcountsi2_cmp_zext): Ditto.
9056 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
9058 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
9059 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
9060 * config/microblaze/microblaze.h
9061 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
9063 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
9066 * configure.ac: Set install_gold_as_default to no for
9068 * configure: Regenerated.
9070 2014-08-18 Roman Gareev <gareevroman@gmail.com>
9072 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
9073 * config.in: Add undef of HAVE_isl.
9074 * configure: Regenerate.
9075 * configure.ac: Add definition of HAVE_isl.
9076 * graphite-blocking.c: Add checking of HAVE_isl.
9077 * graphite-dependences.c: Likewise.
9078 * graphite-interchange.c: Likewise.
9079 * graphite-isl-ast-to-gimple.c: Likewise.
9080 * graphite-optimize-isl.c: Likewise.
9081 * graphite-poly.c: Likewise.
9082 * graphite-scop-detection.c: Likewise.
9083 * graphite-sese-to-poly.c: Likewise.
9084 * graphite.c: Likewise.
9085 * toplev.c: Replace the checking of HAVE_cloog with the checking
9088 2014-08-18 Richard Biener <rguenther@suse.de>
9090 PR tree-optimization/62090
9091 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
9092 (fold_builtin_3): Do not fold snprintf.
9093 (fold_builtin_4): Likewise.
9094 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
9095 moved from builtins.c.
9096 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
9097 (gimple_fold_builtin): Do not fold sprintf here.
9099 2014-08-18 Richard Biener <rguenther@suse.de>
9101 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
9103 (maybe_canonicalize_mem_ref_addr): ... this function.
9104 (fold_stmt_1): Apply it here before all simplification.
9106 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
9109 * cgraph.h (cgraph_node::create_indirect_edge): Add
9110 compute_indirect_info param.
9111 * cgraph.c (cgraph_node::create_indirect_edge): Compute
9112 indirect_info only when it is required.
9113 * cgraphclones.c (cgraph_clone_edge): Do not recompute
9114 indirect_info fore cloned indirect edge.
9116 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9117 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9118 Anna Tikhonova <anna.tikhonova@intel.com>
9119 Ilya Tocar <ilya.tocar@intel.com>
9120 Andrey Turetskiy <andrey.turetskiy@intel.com>
9121 Ilya Verbin <ilya.verbin@intel.com>
9122 Kirill Yukhin <kirill.yukhin@intel.com>
9123 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9125 * config/i386/sse.md
9126 (define_mode_iterator VI8_AVX2_AVX512BW): New.
9127 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
9129 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9131 Anna Tikhonova <anna.tikhonova@intel.com>
9132 Ilya Tocar <ilya.tocar@intel.com>
9133 Andrey Turetskiy <andrey.turetskiy@intel.com>
9134 Ilya Verbin <ilya.verbin@intel.com>
9135 Kirill Yukhin <kirill.yukhin@intel.com>
9136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9138 * config/i386/sse.md
9139 (define_mode_iterator VF1_AVX512VL): New.
9140 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
9141 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
9144 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9145 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9146 Anna Tikhonova <anna.tikhonova@intel.com>
9147 Ilya Tocar <ilya.tocar@intel.com>
9148 Andrey Turetskiy <andrey.turetskiy@intel.com>
9149 Ilya Verbin <ilya.verbin@intel.com>
9150 Kirill Yukhin <kirill.yukhin@intel.com>
9151 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9153 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9154 * config/i386/i386.md
9155 (define_code_iterator any_float): New.
9156 (define_code_attr floatsuffix): New.
9157 * config/i386/sse.md
9158 (define_mode_iterator VF1_128_256VL): New.
9159 (define_mode_iterator VF2_512_256VL): New.
9160 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9162 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9163 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9165 (define_mode_attr qq2pssuff): New.
9166 (define_mode_attr sselongvecmode): New.
9167 (define_mode_attr sselongvecmodelower): New.
9168 (define_mode_attr sseintvecmode3): New.
9169 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9171 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9172 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9173 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9174 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9176 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9178 Anna Tikhonova <anna.tikhonova@intel.com>
9179 Ilya Tocar <ilya.tocar@intel.com>
9180 Andrey Turetskiy <andrey.turetskiy@intel.com>
9181 Ilya Verbin <ilya.verbin@intel.com>
9182 Kirill Yukhin <kirill.yukhin@intel.com>
9183 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9185 * config/i386/sse.md
9186 (define_mode_iterator VF2_AVX512VL): New.
9187 (define_mode_attr sseintvecmode2): New.
9188 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9189 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9190 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9192 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9194 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9196 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9199 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9200 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9201 Anna Tikhonova <anna.tikhonova@intel.com>
9202 Ilya Tocar <ilya.tocar@intel.com>
9203 Andrey Turetskiy <andrey.turetskiy@intel.com>
9204 Ilya Verbin <ilya.verbin@intel.com>
9205 Kirill Yukhin <kirill.yukhin@intel.com>
9206 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9208 * config/i386/i386.md
9209 (define_insn "*movoi_internal_avx"): Add evex version.
9210 (define_insn "*movti_internal"): Ditto.
9212 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9213 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9214 Anna Tikhonova <anna.tikhonova@intel.com>
9215 Ilya Tocar <ilya.tocar@intel.com>
9216 Andrey Turetskiy <andrey.turetskiy@intel.com>
9217 Ilya Verbin <ilya.verbin@intel.com>
9218 Kirill Yukhin <kirill.yukhin@intel.com>
9219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9221 * config/i386/i386.md
9222 (define_attr "isa"): Add avx512dq, noavx512dq.
9223 (define_attr "enabled"): Ditto.
9224 * config/i386/sse.md
9225 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9227 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9229 Anna Tikhonova <anna.tikhonova@intel.com>
9230 Ilya Tocar <ilya.tocar@intel.com>
9231 Andrey Turetskiy <andrey.turetskiy@intel.com>
9232 Ilya Verbin <ilya.verbin@intel.com>
9233 Kirill Yukhin <kirill.yukhin@intel.com>
9234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9236 * config/i386/i386.c
9237 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9238 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9239 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9240 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9241 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9242 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9243 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9244 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9245 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9246 * config/i386/sse.md
9247 (define_mode_iterator VMOVE): Allow V4TI mode.
9248 (define_mode_iterator V_AVX512VL): New.
9249 (define_mode_iterator V): New handling for AVX512VL.
9250 (define_insn "avx512f_load<mode>_mask"): Delete.
9251 (define_insn "<avx512>_load<mode>_mask"): New.
9252 (define_insn "avx512f_store<mode>_mask"): Delete.
9253 (define_insn "<avx512>_store<mode>_mask"): New.
9256 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9259 * asan.c (instrument_derefs): Fix bitfield check.
9261 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9263 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9264 * config/rs6000/htm.md (ttest): Remove clobber.
9265 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9266 (and_operand): Reformat.
9267 (and_2rld_operand): New predicate.
9268 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9270 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9271 parameter. Handle AND directly.
9272 (rs6000_split_logical_di): Remove last parameter.
9273 (rs6000_split_logical): Remove last parameter. Remove obsolete
9275 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9276 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9277 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9278 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9279 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9280 and 5 anonymous splitters): Delete.
9281 (and<mode>3): New expander.
9282 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9283 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9284 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9285 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9286 (floatdisf2_internal1): Remove clobbers.
9287 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9288 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9289 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9290 (and<mode>3 for BOOL_128): Remove clobber.
9291 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9292 rs6000_split_logical.
9293 (*bool<mode>3_internal for BOOL_128): Adjust call of
9294 rs6000_split_logical.
9295 (*boolc<mode>3_internal1 for BOOL_128,
9296 *boolc<mode>3_internal2 for BOOL_128,
9297 *boolcc<mode>3_internal1 for BOOL_128,
9298 *boolcc<mode>3_internal2 for BOOL_128,
9299 *eqv<mode>3_internal1 for BOOL_128,
9300 *eqv<mode>3_internal2 for BOOL_128,
9301 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9302 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9304 (*vec_reload_and_reg_<mptrsize>): Delete.
9306 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9308 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9309 and split, *boolccsi3_internal3 and split): Delete.
9310 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9311 *boolccdi3_internal3 and split): Delete.
9312 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9313 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9315 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9317 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9318 and split, *boolcsi3_internal3 and split): Delete.
9319 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9320 *boolcdi3_internal3 and split): Delete.
9321 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9323 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9325 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9326 <'u'>: Also support printing the low-order 16 bits.
9327 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9328 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9329 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9330 *booldi3_internal3 and split): Delete.
9331 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9332 *bool<mode>3_dot2): New.
9333 (two anonymous define_splits for non_logical_cint_operand): Merge.
9335 2014-08-17 Marek Polacek <polacek@redhat.com>
9336 Manuel López-Ibáñez <manu@gcc.gnu.org>
9339 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9340 (diagnostic_show_locus): Don't print caret diagnostic
9341 if a column is larger than the line_width.
9343 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9345 * common.opt: Make the ISL AST generator to be the main code generator
9348 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9350 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9352 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9355 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9357 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9358 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9359 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9361 * config/pa/pa.md (begin_brtab): Delete insn.
9362 (end_brtab): Likewise.
9364 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9366 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9368 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9370 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9371 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9372 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9373 (get_dynamic_type): Remove.
9374 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9375 (clear_speculation): Bring to ipa-deivrt.h
9376 (get_class_context): Rename to ...
9377 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9378 (contains_type_p): Update.
9379 (get_dynamic_type): Rename to ...
9380 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9381 (possible_polymorphic_call_targets): UPdate.
9382 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9383 * ipa-prop.c (ipa_analyze_call_uses): Update.
9385 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9387 * doc/invoke.texi (SH options): Document missing processor variant
9388 options. Remove references to Hitachi. Undocument deprecated mspace
9391 2014-08-15 Jason Merrill <jason@redhat.com>
9393 * tree.c (type_hash_canon): Uncomment assert.
9395 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9397 * input.h (in_system_header_at): Add comment.
9399 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9402 * diagnostic.c (build_message_string): Make it extern.
9403 * diagnostic.h (build_message_string): Make it extern.
9405 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9407 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9408 load/store from/to non-floating class pseudo.
9410 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9412 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9414 2014-08-15 Richard Biener <rguenther@suse.de>
9416 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9417 (get_constraint_for_ssa_var): Remove dead code.
9418 (get_constraint_for_1): Adjust.
9419 (find_what_var_points_to): Likewise.
9420 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9422 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9425 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9426 (_mm512_mask_cmpge_epu32_mask): Ditto.
9427 (_mm512_cmpge_epu32_mask): Ditto.
9428 (_mm512_mask_cmpge_epi64_mask): Ditto.
9429 (_mm512_cmpge_epi64_mask): Ditto.
9430 (_mm512_mask_cmpge_epu64_mask): Ditto.
9431 (_mm512_cmpge_epu64_mask): Ditto.
9432 (_mm512_mask_cmple_epi32_mask): Ditto.
9433 (_mm512_cmple_epi32_mask): Ditto.
9434 (_mm512_mask_cmple_epu32_mask): Ditto.
9435 (_mm512_cmple_epu32_mask): Ditto.
9436 (_mm512_mask_cmple_epi64_mask): Ditto.
9437 (_mm512_cmple_epi64_mask): Ditto.
9438 (_mm512_mask_cmple_epu64_mask): Ditto.
9439 (_mm512_cmple_epu64_mask): Ditto.
9440 (_mm512_mask_cmplt_epi32_mask): Ditto.
9441 (_mm512_cmplt_epi32_mask): Ditto.
9442 (_mm512_mask_cmplt_epu32_mask): Ditto.
9443 (_mm512_cmplt_epu32_mask): Ditto.
9444 (_mm512_mask_cmplt_epi64_mask): Ditto.
9445 (_mm512_cmplt_epi64_mask): Ditto.
9446 (_mm512_mask_cmplt_epu64_mask): Ditto.
9447 (_mm512_cmplt_epu64_mask): Ditto.
9448 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9449 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9450 (_mm512_cmpneq_epu32_mask): Ditto.
9451 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9452 (_mm512_cmpneq_epi64_mask): Ditto.
9453 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9454 (_mm512_cmpneq_epu64_mask): Ditto.
9455 (_mm512_castpd_ps): Ditto.
9456 (_mm512_castpd_si512): Ditto.
9457 (_mm512_castps_pd): Ditto.
9458 (_mm512_castps_si512): Ditto.
9459 (_mm512_castsi512_ps): Ditto.
9460 (_mm512_castsi512_pd): Ditto.
9461 (_mm512_castpd512_pd128): Ditto.
9462 (_mm512_castps512_ps128): Ditto.
9463 (_mm512_castsi512_si128): Ditto.
9464 (_mm512_castpd512_pd256): Ditto.
9465 (_mm512_castps512_ps256): Ditto.
9466 (_mm512_castsi512_si256): Ditto.
9467 (_mm512_castpd128_pd512): Ditto.
9468 (_mm512_castps128_ps512): Ditto.
9469 (_mm512_castsi128_si512): Ditto.
9470 (_mm512_castpd256_pd512): Ditto.
9471 (_mm512_castps256_ps512): Ditto.
9472 (_mm512_castsi256_si512): Ditto.
9473 (_mm512_cmpeq_epu32_mask): Ditto.
9474 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9475 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9476 (_mm512_cmpeq_epu64_mask): Ditto.
9477 (_mm512_cmpgt_epu32_mask): Ditto.
9478 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9479 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9480 (_mm512_cmpgt_epu64_mask): Ditto.
9481 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9482 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9483 * config/i386/i386.c (enum ix86_builtins): Add
9484 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9485 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9486 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9487 (bdesc_args): Add __builtin_ia32_si512_256si,
9488 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9489 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9490 __builtin_ia32_pd512_pd.
9491 (ix86_expand_args_builtin): Handle new FTYPEs.
9492 * config/i386/sse.md (castmode): Add 512-bit modes.
9493 (AVX512MODE2P): New.
9494 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9495 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9497 2014-08-15 Richard Biener <rguenther@suse.de>
9499 * fold-const.c (tree_swap_operands_p): Put all constants
9500 last, also strip sign-changing NOPs when considering further
9501 canonicalization. Canonicalize also when optimizing for size.
9503 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9505 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9506 one_match > zero_match case to just before simple_sequence.
9508 2014-08-15 Richard Biener <rguenther@suse.de>
9510 * data-streamer.h (streamer_string_index, string_for_index):
9512 * data-streamer-out.c (streamer_string_index): Make static.
9513 * data-streamer-in.c (string_for_index): Likewise.
9514 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
9515 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
9517 2014-08-15 Richard Biener <rguenther@suse.de>
9519 PR tree-optimization/62031
9520 * tree-data-ref.c (dr_analyze_indices): Do not set
9521 DR_UNCONSTRAINED_BASE.
9522 (dr_may_alias_p): All indirect accesses have to go the
9523 formerly DR_UNCONSTRAINED_BASE path.
9524 * tree-data-ref.h (struct indices): Remove
9525 unconstrained_base member.
9526 (DR_UNCONSTRAINED_BASE): Remove.
9528 2014-08-15 Jakub Jelinek <jakub@redhat.com>
9531 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
9532 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
9533 in OMP_CLAUSE_MAP in some outer target region.
9535 2014-08-15 Bin Cheng <bin.cheng@arm.com>
9537 * tree-ssa-loop-ivopts.c (ivopts_data): New field
9538 name_expansion_cache.
9539 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
9540 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
9541 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
9542 (difference_cannot_overflow_p): New parameter. Use affine
9543 expansion for equality check.
9544 (iv_elimination_compare_lt): Pass new argument.
9546 2014-08-14 DJ Delorie <dj@redhat.com>
9548 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
9549 variables to the accumulator.
9551 * config/rl78/predicates.md (rl78_near_mem_operand): New.
9552 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
9553 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
9556 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
9557 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
9558 (umulqihi3_virt): Likewise.
9559 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
9560 (umulqihi3_real): Likewise.
9562 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
9564 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9566 PR tree-optimization/62091
9567 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
9568 function_entry_reached.
9569 (walk_aliased_vdefs): Clear it here.
9570 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
9572 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9574 * ipa-utils.h (compare_virtual_tables): Declare.
9575 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
9577 2014-08-14 Marek Polacek <polacek@redhat.com>
9580 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
9581 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
9583 2014-08-14 Tom de Vries <tom@codesourcery.com>
9585 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
9587 2014-08-14 Tom de Vries <tom@codesourcery.com>
9589 PR rtl-optimization/62004
9590 PR rtl-optimization/62030
9591 * ifcvt.c (rtx_interchangeable_p): New function.
9592 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
9593 * emit-rtl.h (mem_attrs_eq_p): Declare.
9595 2014-08-14 Roman Gareev <gareevroman@gmail.com>
9597 * graphite-scop-detection.c:
9598 Add inclusion of cp-tree.h.
9599 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
9600 in case they are pointers to object types
9602 2014-08-14 Richard Biener <rguenther@suse.de>
9604 * BASE-VER: Change to 5.0.0
9606 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9608 Anna Tikhonova <anna.tikhonova@intel.com>
9609 Ilya Tocar <ilya.tocar@intel.com>
9610 Andrey Turetskiy <andrey.turetskiy@intel.com>
9611 Ilya Verbin <ilya.verbin@intel.com>
9612 Kirill Yukhin <kirill.yukhin@intel.com>
9613 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9615 * config/i386/sse.md (define_mode_attr avx512): New.
9616 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
9618 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
9619 (define_mode_attr ssse3_avx2): Ditto.
9620 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
9621 (define_mode_attr avx2_avx512bw): New.
9622 (define_mode_attr ssedoublemodelower): New.
9623 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
9625 (define_mode_attr ssebytemode): Allow V8DI modes.
9626 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
9627 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
9628 (define_mode_attr ssePSmode2): New.
9629 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
9631 (define_mode_attr dbpsadbwmode): New.
9632 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
9633 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
9634 (vi8_sse4_1_avx2_avx512): New.
9635 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
9637 (define_mode_attr blendbits): Move before its immediate use.
9639 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9641 Anna Tikhonova <anna.tikhonova@intel.com>
9642 Ilya Tocar <ilya.tocar@intel.com>
9643 Andrey Turetskiy <andrey.turetskiy@intel.com>
9644 Ilya Verbin <ilya.verbin@intel.com>
9645 Kirill Yukhin <kirill.yukhin@intel.com>
9646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9648 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
9649 * config/i386/subst.md
9650 (define_mode_iterator SUBST_V): Update.
9651 (define_mode_iterator SUBST_A): Ditto.
9652 (define_subst_attr "mask_operand7"): New.
9653 (define_subst_attr "mask_operand10"): New.
9654 (define_subst_attr "mask_operand_arg34") : New.
9655 (define_subst_attr "mask_expand_op3"): New.
9656 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
9657 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
9658 (define_subst_attr "mask_avx512vl_condition"): New.
9659 (define_subst_attr "round_mask_operand4"): Ditto.
9660 (define_subst_attr "round_mask_scalar_op3"): Delete.
9661 (define_subst_attr "round_mask_op4"): New.
9662 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
9664 (define_subst_attr "round_modev8sf_condition"): New.
9665 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
9667 (define_subst_attr "round_saeonly_mask_operand4"): New.
9668 (define_subst_attr "round_saeonly_mask_op4"): New.
9669 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
9670 V8DImode, V16SImode.
9671 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
9672 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
9673 (define_subst_attr "mask_expand4_args"): New.
9674 (define_subst "mask_expand4"): New.
9676 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9677 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9678 Anna Tikhonova <anna.tikhonova@intel.com>
9679 Ilya Tocar <ilya.tocar@intel.com>
9680 Andrey Turetskiy <andrey.turetskiy@intel.com>
9681 Ilya Verbin <ilya.verbin@intel.com>
9682 Kirill Yukhin <kirill.yukhin@intel.com>
9683 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9685 * config/i386/i386.md
9686 (define_attr "isa"): Add avx512bw,noavx512bw.
9687 (define_attr "enabled"): Ditto.
9688 (define_split): Add 32/64-bit mask logic.
9689 (define_insn "*k<logic>qi"): New.
9690 (define_insn "*k<logic>hi"): New.
9691 (define_insn "*anddi_1"): Add mask version.
9692 (define_insn "*andsi_1"): Ditto.
9693 (define_insn "*<code><mode>_1"): Ditto.
9694 (define_insn "*<code>hi_1"): Ditto.
9695 (define_insn "kxnor<mode>"): New.
9696 (define_insn "kunpcksi"): New.
9697 (define_insn "kunpckdi"): New.
9698 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
9699 (define_insn "*one_cmplhi2_1"): Ditto.
9701 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9702 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9703 Anna Tikhonova <anna.tikhonova@intel.com>
9704 Ilya Tocar <ilya.tocar@intel.com>
9705 Andrey Turetskiy <andrey.turetskiy@intel.com>
9706 Ilya Verbin <ilya.verbin@intel.com>
9707 Kirill Yukhin <kirill.yukhin@intel.com>
9708 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9710 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
9713 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9715 Anna Tikhonova <anna.tikhonova@intel.com>
9716 Ilya Tocar <ilya.tocar@intel.com>
9717 Andrey Turetskiy <andrey.turetskiy@intel.com>
9718 Ilya Verbin <ilya.verbin@intel.com>
9719 Kirill Yukhin <kirill.yukhin@intel.com>
9720 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9722 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
9724 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
9725 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
9726 xmm/ymm16+ when availble.
9727 * config/i386/i386.h
9728 (HARD_REGNO_NREGS): Add mask regs.
9729 (VALID_AVX512F_REG_MODE): Ditto.
9730 (VALID_AVX512F_REG_MODE) : Define.
9731 (VALID_MASK_AVX512BW_MODE): Ditto.
9732 (reg_class) (MASK_REG_P(X)): Define.
9733 * config/i386/i386.md: Do not split long moves with mask register,
9734 use kmovb if avx512bw is availible.
9735 (movdi_internal): Handle mask registers.
9737 2014-08-14 Richard Biener <rguenther@suse.de>
9739 PR tree-optimization/62081
9740 * tree-ssa-loop.c (pass_fix_loops): New pass.
9741 (pass_tree_loop::gate): Do not fixup loops here.
9742 * tree-pass.h (make_pass_fix_loops): Declare.
9743 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
9745 2014-08-14 Richard Biener <rguenther@suse.de>
9747 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
9748 (type_hash_canon): ... this and avoid 2nd lookup for the add.
9750 2014-08-14 Richard Biener <rguenther@suse.de>
9752 PR tree-optimization/62090
9753 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
9754 (fold_builtin_2): Do not fold sprintf.
9755 (fold_builtin_3): Likewise.
9756 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
9757 moved from builtins.c.
9758 (gimple_fold_builtin): Fold sprintf.
9760 2014-08-14 Richard Biener <rguenther@suse.de>
9762 PR rtl-optimization/62079
9763 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
9766 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9768 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
9769 current_function_decl.
9771 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9773 * cgraph.c (cgraph_node::function_symbol): Fix wrong
9774 cgraph_function_node to cgraph_node::function_symbol
9777 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
9779 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
9780 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
9782 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
9784 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
9787 2014-08-13 Roman Gareev <gareevroman@gmail.com>
9789 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
9792 2014-08-12 Jakub Jelinek <jakub@redhat.com>
9795 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9796 any registers that are used in mem_insn.
9798 2014-08-12 Steve Ellcey <sellcey@mips.com>
9800 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
9802 2014-08-12 Steve Ellcey <sellcey@mips.com>
9804 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9805 (MULTILIB_DIRNAMES): Ditto.
9806 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9807 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9808 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9809 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9810 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9811 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9813 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9816 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9817 of __ARM_SIZEOF_WCHAR_T.
9819 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9822 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9823 Remove unnecessary attributes.
9825 2014-08-12 Yury Gribov <y.gribov@samsung.com>
9827 * internal-fn.c (init_internal_fns): Fix off-by-one.
9829 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9831 Anna Tikhonova <anna.tikhonova@intel.com>
9832 Ilya Tocar <ilya.tocar@intel.com>
9833 Andrey Turetskiy <andrey.turetskiy@intel.com>
9834 Ilya Verbin <ilya.verbin@intel.com>
9835 Kirill Yukhin <kirill.yukhin@intel.com>
9836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9838 * config/i386/i386.c (standard_sse_constant_opcode): Use
9839 vpxord/vpternlog if avx512 is availible.
9841 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
9844 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9845 bitfields, that is when size doesn't match the size of type or the
9846 size of the constructor.
9848 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9850 * config/rs6000/constraints.md (wh constraint): New constraint,
9851 for FP registers if direct move is available.
9852 (wi constraint): New constraint, for VSX/FP registers that can
9853 handle 64-bit integers.
9854 (wj constraint): New constraint for VSX/FP registers that can
9855 handle 64-bit integers for direct moves.
9856 (wk constraint): New constraint for VSX/FP registers that can
9857 handle 64-bit doubles for direct moves.
9858 (wy constraint): Make documentation match implementation.
9860 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9861 scalar_in_vmx_p field to simplify tests of whether SFmode or
9862 DFmode can go in the Altivec registers.
9863 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9864 (rs6000_setup_reg_addr_masks): Likewise.
9865 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9866 field, and wh/wi/wj/wk constraints.
9867 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9868 the wh/wi/wj/wk constraints.
9869 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9870 upper registers, prefer VSX registers unless the operation is a
9871 memory operation with REG+OFFSET addressing.
9873 * config/rs6000/vsx.md (VSr mode attribute): Add support for
9874 DImode. Change SFmode to use ww constraint instead of d to allow
9875 SF registers in the upper registers.
9878 (VSr5): Fix thinko in comment.
9879 (VSa): New mode attribute that is an alternative to wa, that
9880 returns the VSX register class that a mode can go in, but may not
9881 be the preferred register class.
9882 (VS_64dm): New mode attribute for appropriate register classes for
9883 referencing 64-bit elements of vectors for direct moves and normal
9885 (VS_64reg): Likewise.
9886 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9887 register allocator to only registers the data type can handle.
9888 (vsx_le_perm_load_<mode>): Likewise.
9889 (vsx_le_perm_store_<mode>): Likewise.
9890 (vsx_xxpermdi2_le_<mode>): Likewise.
9891 (vsx_xxpermdi4_le_<mode>): Likewise.
9892 (vsx_lxvd2x2_le_<mode>): Likewise.
9893 (vsx_lxvd2x4_le_<mode>): Likewise.
9894 (vsx_stxvd2x2_le_<mode>): Likewise.
9895 (vsx_add<mode>3): Likewise.
9896 (vsx_sub<mode>3): Likewise.
9897 (vsx_mul<mode>3): Likewise.
9898 (vsx_div<mode>3): Likewise.
9899 (vsx_tdiv<mode>3_internal): Likewise.
9900 (vsx_fre<mode>2): Likewise.
9901 (vsx_neg<mode>2): Likewise.
9902 (vsx_abs<mode>2): Likewise.
9903 (vsx_nabs<mode>2): Likewise.
9904 (vsx_smax<mode>3): Likewise.
9905 (vsx_smin<mode>3): Likewise.
9906 (vsx_sqrt<mode>2): Likewise.
9907 (vsx_rsqrte<mode>2): Likewise.
9908 (vsx_tsqrt<mode>2_internal): Likewise.
9909 (vsx_fms<mode>4): Likewise.
9910 (vsx_nfma<mode>4): Likewise.
9911 (vsx_eq<mode>): Likewise.
9912 (vsx_gt<mode>): Likewise.
9913 (vsx_ge<mode>): Likewise.
9914 (vsx_eq<mode>_p): Likewise.
9915 (vsx_gt<mode>_p): Likewise.
9916 (vsx_ge<mode>_p): Likewise.
9917 (vsx_xxsel<mode>): Likewise.
9918 (vsx_xxsel<mode>_uns): Likewise.
9919 (vsx_copysign<mode>3): Likewise.
9920 (vsx_float<VSi><mode>2): Likewise.
9921 (vsx_floatuns<VSi><mode>2): Likewise.
9922 (vsx_fix_trunc<mode><VSi>2): Likewise.
9923 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9924 (vsx_x<VSv>r<VSs>i): Likewise.
9925 (vsx_x<VSv>r<VSs>ic): Likewise.
9926 (vsx_btrunc<mode>2): Likewise.
9927 (vsx_b2trunc<mode>2): Likewise.
9928 (vsx_floor<mode>2): Likewise.
9929 (vsx_ceil<mode>2): Likewise.
9930 (vsx_<VS_spdp_insn>): Likewise.
9931 (vsx_xscvspdp): Likewise.
9932 (vsx_xvcvspuxds): Likewise.
9933 (vsx_float_fix_<mode>2): Likewise.
9934 (vsx_set_<mode>): Likewise.
9935 (vsx_extract_<mode>_internal1): Likewise.
9936 (vsx_extract_<mode>_internal2): Likewise.
9937 (vsx_extract_<mode>_load): Likewise.
9938 (vsx_extract_<mode>_store): Likewise.
9939 (vsx_splat_<mode>): Likewise.
9940 (vsx_xxspltw_<mode>): Likewise.
9941 (vsx_xxspltw_<mode>_direct): Likewise.
9942 (vsx_xxmrghw_<mode>): Likewise.
9943 (vsx_xxmrglw_<mode>): Likewise.
9944 (vsx_xxsldwi_<mode>): Likewise.
9945 (vsx_xscvdpspn): Tighten constraints to only use register classes
9947 (vsx_xscvspdpn): Likewise.
9948 (vsx_xscvdpspn_scalar): Likewise.
9950 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9951 wj, and wk constraints.
9952 (GPR_REG_CLASS_P): New helper macro for register classes targeting
9953 general purpose registers.
9955 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9957 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9958 DImode instead of wm. Use wk constraint for direct move of DFmode
9960 (extendsidi2_lfiwax): Likewise.
9963 (movdi_internal64): Likewise.
9965 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9966 wk constraints. Make the wy constraint documentation match them
9969 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
9971 Replacement of isl_int by isl_val
9972 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9973 (compute_bounds_for_param): use isl_val instead of isl_int
9974 (compute_bounds_for_loop): likewise
9975 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9976 (build_linearized_memory_access): use isl_val instead of isl_int
9977 (pdr_stride_in_loop): likewise
9978 * graphite-optimize-isl.c:
9979 (getPrevectorMap): use isl_val instead of isl_int
9981 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9982 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9983 (extern the_isl_ctx): declare
9984 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9985 (extract_affine_gmp): likewise
9987 (build_loop_iteration_domains): likewise
9988 (add_param_constraints): likewise
9990 2014-08-11 Richard Biener <rguenther@suse.de>
9992 PR tree-optimization/62075
9993 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9994 handle uses in patterns.
9996 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9997 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9998 Anna Tikhonova <anna.tikhonova@intel.com>
9999 Ilya Tocar <ilya.tocar@intel.com>
10000 Andrey Turetskiy <andrey.turetskiy@intel.com>
10001 Ilya Verbin <ilya.verbin@intel.com>
10002 Kirill Yukhin <kirill.yukhin@intel.com>
10003 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10005 * common/config/i386/i386-common.c
10006 (OPTION_MASK_ISA_AVX512VL_SET): Define.
10007 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
10008 (ix86_handle_option): Handle OPT_mavx512vl.
10009 * config/i386/cpuid.h (bit_AVX512VL): Define.
10010 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
10011 set -mavx512vl accordingly.
10012 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10013 OPTION_MASK_ISA_AVX512VL.
10014 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
10015 (ix86_option_override_internal): Define PTA_AVX512VL, handle
10016 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
10017 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
10018 * config/i386/i386.h (TARGET_AVX512VL): Define.
10019 (TARGET_AVX512VL_P(x)): Ditto.
10020 * config/i386/i386.opt: Add mavx512vl.
10022 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
10024 PR tree-optimization/62073
10025 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
10028 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10029 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10030 Anna Tikhonova <anna.tikhonova@intel.com>
10031 Ilya Tocar <ilya.tocar@intel.com>
10032 Andrey Turetskiy <andrey.turetskiy@intel.com>
10033 Ilya Verbin <ilya.verbin@intel.com>
10034 Kirill Yukhin <kirill.yukhin@intel.com>
10035 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10037 * common/config/i386/i386-common.c
10038 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
10039 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
10040 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
10041 (ix86_handle_option): Handle OPT_mavx512bw.
10042 * config/i386/cpuid.h (bit_AVX512BW): Define.
10043 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
10044 set -mavx512bw accordingly.
10045 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10046 OPTION_MASK_ISA_AVX512BW.
10047 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
10048 (ix86_option_override_internal): Define PTA_AVX512BW, handle
10049 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
10050 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
10051 * config/i386/i386.h (TARGET_AVX512BW): Define.
10052 (TARGET_AVX512BW_P(x)): Ditto.
10053 * config/i386/i386.opt: Add mavx512bw.
10055 2014-08-11 Richard Biener <rguenther@suse.de>
10057 PR tree-optimization/62070
10058 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
10059 Remove SSA checking.
10061 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10063 * asan.c (asan_check_flags): New enum.
10064 (build_check_stmt_with_calls): Removed function.
10065 (build_check_stmt): Split inlining logic to
10066 asan_expand_check_ifn.
10067 (instrument_derefs): Rename parameter.
10068 (instrument_mem_region_access): Rename parameter.
10069 (instrument_strlen_call): Likewise.
10070 (asan_expand_check_ifn): New function.
10071 (asan_instrument): Remove old code.
10072 (pass_sanopt::execute): Change handling of
10073 asan-instrumentation-with-call-threshold.
10074 (asan_clear_shadow): Fix formatting.
10075 (asan_function_start): Likewise.
10076 (asan_emit_stack_protection): Likewise.
10077 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
10078 Update description.
10079 * internal-fn.c (expand_ASAN_CHECK): New function.
10080 * internal-fn.def (ASAN_CHECK): New internal function.
10081 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
10082 Update description.
10083 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
10084 * tree.c: Small comment fix.
10086 2014-08-11 Yury Gribov <y.gribov@samsung.com>
10088 * gimple.c (gimple_call_fnspec): Support internal functions.
10089 (gimple_call_return_flags): Use const.
10090 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
10091 * internal-fn.def: Add fnspec information.
10092 * internal-fn.h (internal_fn_fnspec): New function.
10093 (init_internal_fns): Declare new function.
10094 * internal-fn.c (internal_fn_fnspec_array): New global variable.
10095 (init_internal_fns): New function.
10096 * tree-core.h: Update macro call.
10097 * tree.c (build_common_builtin_nodes): Initialize internal fns.
10099 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
10101 * lto-streamer.h (struct output_block::symbol): Change from
10102 struct symtab_node to plain symtab_node.
10103 (referenced_from_this_partition_p): Change first parameter
10104 from struct symtab_node to plain symtab_node.
10106 2014-08-10 Marek Polacek <polacek@redhat.com>
10109 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
10111 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
10113 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
10114 DECL correctly; do not give up on types in static storage.
10116 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
10118 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
10120 2014-08-09 Roman Gareev <gareevroman@gmail.com>
10122 * graphite-isl-ast-to-gimple.c:
10123 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
10125 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
10127 2014-08-08 Guozhi Wei <carrot@google.com>
10129 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
10131 2014-08-08 Cary Coutant <ccoutant@google.com>
10133 * dwarf2out.c (get_skeleton_type_unit): Remove.
10134 (output_skeleton_debug_sections): Remove skeleton type units.
10135 (output_comdat_type_unit): Likewise.
10136 (dwarf2out_finish): Likewise.
10138 2014-08-07 Yi Yang <ahyangyi@google.com>
10140 * predict.c (expr_expected_value_1): Remove the redundant assignment.
10142 2014-08-08 Richard Biener <rguenther@suse.de>
10144 * lto-streamer.h (struct lto_input_block): Make it a class
10145 with a constructor.
10146 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10147 (struct lto_function_header, struct lto_simple_header,
10148 struct lto_simple_header_with_strings,
10149 struct lto_decl_header, struct lto_function_header): Make
10150 a simple inheritance hieararchy. Remove unused fields.
10151 (struct lto_asm_header): Remove.
10152 * lto-streamer-out.c (produce_asm): Adjust.
10153 (lto_output_toplevel_asms): Likewise.
10154 (produce_asm_for_decls): Likewise.
10155 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10156 * data-streamer-in.c (string_for_index): Likewise.
10157 * ipa-inline-analysis.c (inline_read_section): Likewise.
10158 * ipa-prop.c (ipa_prop_read_section): Likewise.
10159 (read_replacements_section): Likewise.
10160 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10161 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10162 (lto_destroy_simple_input_block): Likewise.
10163 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10164 (lto_input_toplevel_asms): Likewise.
10166 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10167 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10168 Anna Tikhonova <anna.tikhonova@intel.com>
10169 Ilya Tocar <ilya.tocar@intel.com>
10170 Andrey Turetskiy <andrey.turetskiy@intel.com>
10171 Ilya Verbin <ilya.verbin@intel.com>
10172 Kirill Yukhin <kirill.yukhin@intel.com>
10173 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10175 * common/config/i386/i386-common.c
10176 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10177 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10178 (ix86_handle_option): Handle OPT_mavx512dq.
10179 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10180 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10181 set -mavx512dq accordingly.
10182 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10183 OPTION_MASK_ISA_AVX512DQ.
10184 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10185 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10186 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10187 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10188 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10189 (TARGET_AVX512DQ_P(x)): Ditto.
10190 * config/i386/i386.opt: Add mavx512dq.
10192 2014-08-08 Richard Biener <rguenther@suse.de>
10194 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10195 target_percent, target_percent_s): Export.
10196 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10197 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10198 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10199 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10200 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10201 Move to gimple-fold.c.
10202 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10204 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10205 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10206 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10207 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10208 (rewrite_call_expr_array): Remove.
10209 (fold_builtin_sprintf_chk): Likewise.
10210 (fold_builtin_snprintf_chk): Likewise.
10211 (fold_builtin_varargs): Remove handling of sprintf_chk,
10212 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10213 (gimple_fold_builtin_sprintf_chk): Remove.
10214 (gimple_fold_builtin_snprintf_chk): Likewise.
10215 (gimple_fold_builtin_varargs): Likewise.
10216 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10217 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10218 * gimple.c (gimple_seq_add_seq_without_update): New function.
10219 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10220 * gimple-fold.c: Include output.h.
10221 (gsi_replace_with_seq_vops): New function, split out from ...
10222 (gimplify_and_update_call_from_tree): ... here.
10223 (replace_call_with_value): New function.
10224 (replace_call_with_call_and_fold): Likewise.
10225 (var_decl_component_p): Moved from builtins.c.
10226 (gimple_fold_builtin_memory_op): Moved from builtins.c
10227 fold_builtin_memory_op and rewritten to GIMPLE.
10228 (gimple_fold_builtin_memset): Likewise.
10229 (gimple_fold_builtin_strcpy): Likewise.
10230 (gimple_fold_builtin_strncpy): Likewise.
10231 (gimple_fold_builtin_strcat): Likewise.
10232 (gimple_fold_builtin_fputs): Likewise.
10233 (gimple_fold_builtin_memory_chk): Likewise.
10234 (gimple_fold_builtin_stxcpy_chk): Likewise.
10235 (gimple_fold_builtin_stxncpy_chk): Likewise.
10236 (gimple_fold_builtin_snprintf_chk): Likewise.
10237 (gimple_fold_builtin_sprintf_chk): Likewise.
10238 (gimple_fold_builtin_strlen): New function.
10239 (gimple_fold_builtin_with_strlen): New function split out from
10240 gimple_fold_builtin.
10241 (gimple_fold_builtin): Change signature and handle
10242 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10243 here. Call gimple_fold_builtin_with_strlen.
10244 (gimple_fold_call): Adjust.
10246 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10248 * calls.c (precompute_arguments): Check
10249 promoted_for_signed_and_unsigned_p and set the promoted mode.
10250 (promoted_for_signed_and_unsigned_p): New function.
10251 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10252 and set the promoted mode.
10253 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10254 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10255 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10258 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10260 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10261 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10262 (expand_call): Likewise.
10263 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10264 to get promoted mode.
10265 * combine.c (record_promoted_value): Skip > 0 comparison with
10266 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10267 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10268 of SUBREG_PROMOTED_UNSIGNED_P.
10269 (convert_modes): Likewise.
10270 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10271 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10272 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10273 SUBREG_PROMOTED_UNSIGNED_SET.
10274 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10275 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10276 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10277 SUBREG_PROMOTED_SET.
10278 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10279 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10280 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10281 of SUBREG_PROMOTED_UNSIGNED_P.
10282 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10283 (SUBREG_PROMOTED_SET): New define.
10284 (SUBREG_PROMOTED_GET): Likewise.
10285 (SUBREG_PROMOTED_SIGN): Likewise.
10286 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10287 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10288 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10289 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10290 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10291 (nonzero_bits1): Skip > 0 comparison with the results as
10292 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10293 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10294 of !SUBREG_PROMOTED_UNSIGNED_P.
10295 * simplify-rtx.c (simplify_unary_operation_1): Use new
10296 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10297 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10298 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10299 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10301 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10303 * ipa-devirt.c: Include gimple-pretty-print.h
10304 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10306 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10307 (get_polymorphic_call_info): Fix return value
10308 (type_change_info): New sturcture based on ipa-prop
10310 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10311 based on ipa-prop variant.
10312 (extr_type_from_vtbl_ptr_store): New function
10313 based on ipa-prop variant.
10314 (record_known_type): New function.
10315 (check_stmt_for_type_change): New function.
10316 (get_dynamic_type): New function.
10317 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10318 * tree-ssa-pre.c: ipa-utils.h
10319 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10320 machinery; sanity check with ipa-prop devirtualization.
10321 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10324 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10326 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10327 * alias.c, cfgexpand.c, cgraphbuild.c,
10328 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10329 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10330 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10331 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10332 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10333 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10334 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10335 dse.c, except.c, gengtype.c, gimple-expr.c,
10336 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10337 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10338 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10339 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10340 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10341 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10343 * pointer-set.c: Remove file.
10344 * pointer-set.h: Remove file.
10346 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10348 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10349 * config/arm/types.md (f_sels, f_seld): Delete.
10351 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10353 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10354 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10355 (aarch64_movdi_<mode>high): Likewise.
10356 (aarch64_mov<mode>high_di): Likewise.
10357 (aarch64_movdi_<mode>low): Likewise.
10358 (aarch64_mov<mode>low_di): Likewise.
10359 (aarch64_movtilow_tilow): Likewise.
10360 Add comment explaining usage of fp,simd attributes and of
10361 TARGET_FLOAT and TARGET_SIMD.
10363 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10364 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10366 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10367 Use MOVN when one of the half-words is 0xffff.
10369 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10371 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10373 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10375 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10376 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10377 (rfs_str): String corresponding to RFS_* constants.
10378 (rank_for_schedule_stats_t): New typedef.
10379 (rank_for_schedule_stats): New static variable.
10380 (rfs_result): New static function.
10381 (rank_for_schedule): Track statistics for deciding heuristics.
10382 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10384 (ready_sort): Use them for debug printouts.
10385 (schedule_block): Init statistics state. Print statistics on
10386 rank_for_schedule decisions.
10388 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10390 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10392 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10394 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10397 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10399 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10400 function to not conflict.
10401 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10402 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10403 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10404 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10405 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10408 2014-08-07 Marek Polacek <polacek@redhat.com>
10410 * fold-const.c (fold_binary_loc): Add folding of
10411 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10413 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10415 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10416 instead of type size.
10417 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10419 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10421 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10422 (*thumb1_movqi_insn): Likewise.
10423 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10425 2014-08-07 Tom de Vries <tom@codesourcery.com>
10427 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10428 (glibc_2_11_or_earlier): Remove effective-target keywords.
10430 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10432 * config/arm/arm.c (bdesc_2arg): Fix typo.
10433 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10435 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10437 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10439 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10442 * haifa-sched.c (advance_one_cycle): Fix dump.
10443 (schedule_block): Don't advance cycle if we are already at the
10444 beginning of the cycle.
10446 2014-08-06 Martin Jambor <mjambor@suse.cz>
10449 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10451 2014-08-06 Richard Biener <rguenther@suse.de>
10454 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10456 (lto_input_tree): Pop SCCs here.
10458 2014-08-06 Richard Biener <rguenther@suse.de>
10460 PR tree-optimization/61320
10461 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10462 handle misaligned loads.
10464 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10466 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10467 (aarch64_expand_vec_perm_const): Check for dup before zip.
10469 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10471 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10472 CONST_INT_P instead of GET_CODE and compare.
10473 (aarch64_select_cc_mode): Likewise.
10474 (aarch64_print_operand): Likewise.
10475 (aarch64_rtx_costs): Likewise.
10476 (aarch64_simd_valid_immediate): Likewise.
10477 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10478 (aarch64_simd_emit_pair_result_insn): Likewise.
10480 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10482 * gdbhooks.py (find_gcc_source_dir): New helper function.
10483 (class PassNames): New class, locating and parsing passes.def.
10484 (class BreakOnPass): New command "break-on-pass".
10486 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10488 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10491 2014-08-05 Richard Biener <rguenther@suse.de>
10493 PR rtl-optimization/61672
10494 * emit-rtl.h (mem_attrs_eq_p): Declare.
10495 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10496 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10497 * cfgcleanup.c (merge_memattrs): Likewise.
10498 Include emit-rtl.h.
10500 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10502 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10503 rather than singleton vectors.
10504 (vqdmlsls_lane_s32): Likewise.
10506 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10508 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10509 Use VSDQ_HSI mode iterator.
10510 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10511 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10512 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10513 Use BUILTIN_VDQHS macro.
10514 (sqrdmulh_laneq): Likewise.
10515 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
10516 (vqdmlals_laneq_s32): Likewise.
10517 (vqdmlslh_laneq_s16): Likewise.
10518 (vqdmlsls_laneq_s32): Likewise.
10519 (vqdmulhh_laneq_s16): Likewise.
10520 (vqdmulhs_laneq_s32): Likewise.
10521 (vqrdmulhh_laneq_s16): Likewise.
10522 (vqrdmulhs_laneq_s32): Likewise.
10524 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10526 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
10527 (vmuld_laneq_f64): Likewise.
10528 (vmuls_laneq_f32): Likewise.
10529 (vmul_n_f64): Likewise.
10530 (vmuld_lane_f64): Reimplement in C.
10531 (vmuls_lane_f32): Likewise.
10533 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10535 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
10537 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
10539 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10541 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
10542 (rbitsi2): Likewise.
10543 (*arm_rev): Set predicable and predicable_short_it attributes.
10545 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10547 * convert.c (convert_to_integer): Guard transformation to lrint by
10550 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10552 * config/aarch64/aarch64-builtins.c
10553 (aarch64_simd_builtin_type_mode): Delete.
10554 (v8qi_UP): Remap to V8QImode.
10555 (v4hi_UP): Remap to V4HImode.
10556 (v2si_UP): Remap to V2SImode.
10557 (v2sf_UP): Remap to V2SFmode.
10558 (v1df_UP): Remap to V1DFmode.
10559 (di_UP): Remap to DImode.
10560 (df_UP): Remap to DFmode.
10561 (v16qi_UP):V16QImode.
10562 (v8hi_UP): Remap to V8HImode.
10563 (v4si_UP): Remap to V4SImode.
10564 (v4sf_UP): Remap to V4SFmode.
10565 (v2di_UP): Remap to V2DImode.
10566 (v2df_UP): Remap to V2DFmode.
10567 (ti_UP): Remap to TImode.
10568 (ei_UP): Remap to EImode.
10569 (oi_UP): Remap to OImode.
10570 (ci_UP): Map to CImode.
10571 (xi_UP): Remap to XImode.
10572 (si_UP): Remap to SImode.
10573 (sf_UP): Remap to SFmode.
10574 (hi_UP): Remap to HImode.
10575 (qi_UP): Remap to QImode.
10576 (aarch64_simd_builtin_datum): Make mode a machine_mode.
10577 (VAR1): Build builtin name.
10578 (aarch64_init_simd_builtins): Remove dead code.
10580 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10582 * graphite-isl-ast-to-gimple.c:
10583 (set_options): New function.
10584 (scop_to_isl_ast): Add calling of set_options.
10586 2014-08-05 Jakub Jelinek <jakub@redhat.com>
10588 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
10589 (analyze_iv_to_split_insn): Don't initialize them.
10590 (get_ivts_expr): Removed.
10591 (allocate_basic_variable, insert_base_initialization): Use
10592 SET_SRC instead of *get_ivts_expr.
10593 (split_iv): Use &SET_SRC instead of get_ivts_expr.
10595 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10597 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
10598 (translate_isl_ast_for_loop): Add checking of the
10599 flag_loop_parallelize_all.
10600 (ast_build_before_for): New function.
10601 (scop_to_isl_ast): Add checking of the
10602 flag_loop_parallelize_all.
10603 * graphite-dependences.c: Move the defenition of the
10604 scop_get_dependences from graphite-optimize-isl.c to this file.
10605 (apply_schedule_on_deps): Add checking of the ux's emptiness.
10606 (carries_deps): Add checking of the x's value.
10607 * graphite-optimize-isl.c: Move the defenition of the
10608 scop_get_dependences to graphite-dependences.c.
10609 * graphite-poly.h: Add declarations of scop_get_dependences
10612 2014-08-04 Rohit <rohitarulraj@freescale.com>
10615 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
10617 (alt_reg_names): Likewise.
10618 (rs6000_dwarf_register_span): For SPE high registers, replace
10619 dwarf register numbers with GCC hard register numbers.
10620 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
10621 (rs6000_dbx_register_number): For SPE high registers, return dwarf
10622 register number for the corresponding GCC hard register number.
10623 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
10624 newly added GCC hard register numbers for SPE high registers.
10625 (DWARF_FRAME_REGISTERS): Likewise.
10626 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
10627 (DWARF_FRAME_REGNUM): Likewise.
10628 (FIXED_REGISTERS): Likewise.
10629 (CALL_USED_REGISTERS): Likewise.
10630 (CALL_REALLY_USED_REGISTERS): Likewise.
10631 (REG_ALLOC_ORDER): Likewise.
10632 (enum reg_class): Likewise.
10633 (REG_CLASS_NAMES): Likewise.
10634 (REG_CLASS_CONTENTS): Likewise.
10635 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
10637 2014-08-04 Richard Biener <rguenther@suse.de>
10639 * gimple-fold.h (gimple_fold_builtin): Remove.
10640 * gimple-fold.c (gimple_fold_builtin): Make static.
10641 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
10642 fold_stmt, not gimple_fold_builtin.
10644 2014-08-04 Martin Liska <mliska@suse.cz>
10646 * cgraph.h (csi_end_p): Removed.
10647 (csi_next): Likewise.
10648 (csi_node): Likewise.
10649 (csi_start): Likewise.
10650 (cgraph_node_in_set_p): Likewise.
10651 (cgraph_node_set_size): Likewise.
10652 (vsi_end_p): Likewise.
10653 (vsi_next): Likewise.
10654 (vsi_node): Likewise.
10655 (vsi_start): Likewise.
10656 (varpool_node_set_size): Likewise.
10657 (cgraph_node_set_nonempty_p): Likewise.
10658 (varpool_node_set_nonempty_p): Likewise.
10659 * cgraphunit.c (cgraph_process_new_functions): vec replaces
10661 * ipa-inline-transform.c: Likewise.
10662 * ipa-utils.c (cgraph_node_set_new): Removed.
10663 (cgraph_node_set_add): Likewise.
10664 (cgraph_node_set_remove): Likewise.
10665 (cgraph_node_set_find): Likewise.
10666 (dump_cgraph_node_set): Likewise.
10667 (debug_cgraph_node_set): Likewise.
10668 (free_cgraph_node_set): Likewise.
10669 (varpool_node_set_new): Likewise.
10670 (varpool_node_set_add): Likewise.
10671 (varpool_node_set_remove): Likewise.
10672 (varpool_node_set_find): Likewise.
10673 (dump_varpool_node_set): Likewise.
10674 (free_varpool_node_set): Likewise.
10675 (debug_varpool_node_set): Likewise.
10676 * tree-emutls.c (struct tls_var_data):
10677 (emutls_index): Removed.
10678 (emutls_decl): Likewise.
10679 (gen_emutls_addr): Function implementation uses newly added
10680 hash_map<varpool_node *, tls_var_data>.
10681 (clear_access_vars): Likewise.
10682 (create_emultls_var): Likewise.
10683 (ipa_lower_emutls): Likewise.
10684 (reset_access): New function.
10686 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10688 * config/i386/i386.c (ix86_option_override_internal): Add
10689 PTA_RDRND and PTA_MOVBE for bdver4.
10691 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10692 James Greenhalgh <james.greenhalgh@arm.com>
10694 * doc/md.texi (clrsb): Document.
10695 (clz): Change reference to x into operand 1.
10697 (popcount): Likewise.
10699 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10702 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
10703 move to subtarget in serial version if result is ignored.
10705 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10706 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10708 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
10709 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
10710 (sched_analyze_insn): Update use of try_group_insn to
10711 sched_macro_fuse_insns.
10712 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
10713 arguments that are not conditional jumps.
10715 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10717 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
10718 family information. Handle BTVER2 cpu with cpuid family value.
10720 2014-08-04 Tom de Vries <tom@codesourcery.com>
10722 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10723 (glibc_2_11_or_earlier): Document effective-target keywords.
10725 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10727 * ipa-devirt.c (odr_type_warn_count): Add type.
10728 (possible_polymorphic_call_targets): Set it.
10729 (ipa_devirt): Use it.
10731 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10733 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
10735 * ipa-devirt.c: Include hash-map.h
10736 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
10737 (clear_speculation): Break out of ...
10738 (get_class_context): ... here; speed up handling obviously useless
10740 (odr_type_warn_count, decl_warn_count): New structures.
10741 (final_warning_record): New structure.
10742 (final_warning_records): New static variable.
10743 (possible_polymorphic_call_targets): Cleanup handling of
10744 speculative info; do not build speculation when user do not care;
10745 record info about warnings when asked for.
10746 (add_decl_warning): New function.
10747 (type_warning_cmp): New function.
10748 (decl_warning_cmp): New function.
10749 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
10750 (gate): Enable pass when warnings are requested.
10751 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
10754 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10756 * hash-map.h (default_hashmap_traits::mark_key_deleted):
10758 (hash_map::remove): New method.
10759 (hash_map::traverse): New method.
10760 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
10761 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
10762 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
10763 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
10764 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
10765 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
10768 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10770 * hash-set.h: new File.
10771 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
10772 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
10773 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
10774 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
10775 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
10776 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
10777 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
10778 varpool.c: Use hash_set instead of pointer_set.
10780 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
10782 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
10784 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10786 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
10787 for frame access when strict_p is false.
10789 2014-08-01 Renlin Li <renlin.li@arm.com>
10790 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10792 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10793 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10794 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10796 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10798 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10799 aarch64_mem_pair_offset.
10801 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10803 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10805 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10806 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10808 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
10810 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10812 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
10814 PR regression/61510
10815 * cgraphunit.c (analyze_functions): Use get_create rather than get
10816 for decls which are clones of abstract functions.
10818 2014-08-01 Martin Liska <mliska@suse.cz>
10820 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10821 * ipa-prop.h (count_formal_params): Global function created from static.
10822 * ipa-prop.c (count_formal_params): Likewise.
10823 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10824 profiles for semantically equivalent functions.
10825 * passes.c (do_per_function): If we load body of a function
10826 during WPA, this condition should behave same.
10827 * varpool.c (ctor_for_folding): More tolerant assert for variable
10828 aliases created during WPA.
10830 2014-08-01 Martin Liska <mliska@suse.cz>
10832 * doc/invoke.texi (Options That Control Optimization): Documentation
10833 for -foptimize-strlen introduced. Optimization levels default options
10836 2014-08-01 Jakub Jelinek <jakub@redhat.com>
10838 * opts.c (common_handle_option): Handle -fsanitize=alignment.
10839 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10840 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10842 * stor-layout.h (min_align_of_type): New prototype.
10843 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10844 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
10846 * ubsan.c: Include builtins.h.
10847 (ubsan_expand_bounds_ifn): Change return type to bool,
10848 always return true.
10849 (ubsan_expand_null_ifn): Change return type to bool, change
10850 argument to gimple_stmt_iterator *. Handle both null and alignment
10851 sanitization, take type from ckind argument's type rather than
10853 (instrument_member_call): Removed.
10854 (instrument_mem_ref): Remove t argument, add mem and base arguments.
10855 Handle both null and alignment sanitization, don't say whole
10856 struct access is member access. Build 3 argument IFN_UBSAN_NULL
10857 call instead of 2 argument.
10858 (instrument_null): Adjust instrument_mem_ref caller. Don't
10859 instrument calls here.
10860 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10861 like SANITIZE_NULL.
10862 * stor-layout.c (min_align_of_type): New function.
10863 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10864 Or it into SANITIZE_UNDEFINED.
10865 * doc/invoke.texi (-fsanitize=alignment): Document.
10867 2014-07-31 Andi Kleen <ak@linux.intel.com>
10869 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10871 2014-07-31 Andi Kleen <ak@linux.intel.com>
10873 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10875 (vn_reference_compute_hash): Dito.
10876 (vn_nary_op_compute_hash): Dito.
10877 (vn_phi_compute_hash): Dito.
10878 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10880 2014-07-31 Andi Kleen <ak@linux.intel.com>
10882 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10883 Rename to inchash:add_expr_commutative. Convert to inchash.
10884 (iterative_hash_hashable_expr): Rename to
10885 inchash:add_hashable_expr. Convert to inchash.
10886 (avail_expr_hash): Dito.
10888 2014-07-31 Andi Kleen <ak@linux.intel.com>
10890 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10891 Convert to inchash.
10893 2014-07-31 Andi Kleen <ak@linux.intel.com>
10895 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10897 2014-07-31 Andi Kleen <ak@linux.intel.com>
10899 * Makefile.in (OBJS): Add rtlhash.o
10900 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10901 (loc_checksum): Dito.
10902 (loc_checksum_ordered): Dito.
10903 (hash_loc_operands): Dito.
10905 (hash_loc_list): Dito.
10906 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10907 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10908 * rtlhash.c: New file.
10909 * rtlhash.h: New file.
10911 2014-07-31 Andi Kleen <ak@linux.intel.com>
10913 * inchash.h (inchash): Change inchash class to namespace.
10914 (class hash): ... Rename from inchash.
10915 (add_object): Move from macro to class template.
10916 * lto-streamer-out.c (hash_tree): Change inchash
10918 * tree.c (build_type_attribute_qual_variant): Dito.
10919 (type_hash_list): Dito.
10920 (attribute_hash_list): Dito.
10921 (iterative_hstate_expr): Rename to inchash::add_expr
10922 (build_range_type_1): Change inchash to inchash::hash
10923 and use hash::add_expr.
10924 (build_array_type_1): Dito.
10925 (build_function_type): Dito
10926 (build_method_type_directly): Dito.
10927 (build_offset_type): Dito.
10928 (build_complex_type): Dito.
10929 (make_vector_type): Dito.
10930 * tree.h (iterative_hash_expr): Dito.
10932 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
10934 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10936 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10938 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10939 correct alphabetical position.
10940 (vpaddd_f64): Rewrite using builtins.
10941 (vpaddd_s64): Move to correct alphabetical position.
10944 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
10947 * config/sh/sh.c (sh_legitimate_address_p,
10948 sh_legitimize_reload_address): Handle reg+reg address modes when
10949 ALLOW_INDEXED_ADDRESS is false.
10950 * config/sh/predicates.md (general_movsrc_operand,
10951 general_movdst_operand): Likewise.
10953 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10955 * config/aarch64/aarch64-builtins.c
10956 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10959 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10961 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10962 the generated mask based on BYTES_BIG_ENDIAN.
10963 (aarch64_simd_check_vect_par_cnst_half): New.
10964 * config/aarch64/aarch64-protos.h
10965 (aarch64_simd_check_vect_par_cnst_half): New.
10966 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10967 the check out to aarch64_simd_check_vect_par_cnst_half.
10968 (vect_par_cnst_lo_half): Likewise.
10969 * config/aarch64/aarch64-simd.md
10970 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10971 (move_hi_quad_<mode>): Always generate a low mask.
10973 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10975 * doc/invoke.texi (AVR Options): Add documentation about
10976 __AVR_DEVICE_NAME__ built-in macro.
10978 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
10981 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10982 constraints are satisfied.
10983 (<shift>di3_neon): Likewise.
10985 2014-07-31 Richard Biener <rguenther@suse.de>
10987 PR tree-optimization/61964
10988 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10989 by structural equality.
10991 2014-07-31 Yury Gribov <y.gribov@samsung.com>
10993 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10994 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10995 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10997 * gcc.c (sanitize_spec_function): Support new option.
10998 (SANITIZER_SPEC): Remove now redundant check.
10999 * opts.c (common_handle_option): Support new option.
11000 (finish_options): Check for incompatibilities.
11001 * toplev.c (process_options): Split userspace-specific checks.
11003 2014-07-31 Richard Biener <rguenther@suse.de>
11005 * lto-streamer.h (struct output_block): Remove global.
11006 (struct data_in): Remove labels, num_named_labels and
11007 num_unnamed_labels.
11008 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
11009 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
11011 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
11014 * common.opt (-Wreturn-local-addr): Moved from c.opt.
11015 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
11016 (isolate_path): New argument to avoid inserting a trap.
11017 (find_implicit_erroneous_behaviour): Handle returning the address
11018 of a local variable.
11019 (find_explicit_erroneous_behaviour): Likewise.
11021 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
11024 * toplev.c (init_random_seed): Move piece of code never called to
11026 (set_random_seed): see above.
11028 2014-07-31 Tom de Vries <tom@codesourcery.com>
11030 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
11032 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11034 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
11035 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
11037 2014-07-31 Richard Biener <rguenther@suse.de>
11039 * data-streamer.h (streamer_write_data_stream): Declare here,
11041 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
11042 * lto-cgraph.c (lto_output_node): Adjust.
11043 (lto_output_varpool_node): Likewise.
11044 * data-streamer-out.c (streamer_string_index): Likewise.
11045 (streamer_write_data_stream, lto_append_block): Move from ...
11046 * lto-section-out.c (lto_output_data_stream,
11047 lto_append_block): ... here.
11049 2014-07-30 Mike Stump <mikestump@comcast.net>
11051 * configure.ac: Also check for popen.
11052 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
11053 * configure: Regenerate.
11054 * config.in: Regenerate.
11056 2014-07-30 Martin Jambor <mjambor@suse.cz>
11058 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
11059 parameter to gimple.
11061 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11063 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
11064 address as second parameter to __tpf_eh_return routine.
11066 2014-07-30 Jiong Wang <jiong.wang@arm.com>
11068 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
11071 2014-07-30 Tom Tromey <tromey@redhat.com>
11074 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
11075 * doc/extend.texi (Type Attributes): Document designated_init
11078 2014-07-30 Roman Gareev <gareevroman@gmail.com>
11080 * graphite-isl-ast-to-gimple.c:
11081 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
11082 (gcc_expression_from_isl_expression): Pass type to
11083 gcc_expression_from_isl_ast_expr_id.
11085 2014-07-30 Richard Biener <rguenther@suse.de>
11087 * lto-streamer.h (lto_write_data): New function.
11088 * langhooks.c (lhd_append_data): Do not free block.
11089 * lto-section-out.c (lto_write_data): New function writing
11090 raw data to the current section.
11091 (lto_write_stream): Adjust for langhook semantic change.
11092 (lto_destroy_simple_output_block): Write header directly.
11093 * lto-opts.c (lto_write_options): Write options directly.
11094 * lto-streamer-out.c (produce_asm): Write heaeder directly.
11095 (lto_output_toplevel_asms): Likewise.
11096 (copy_function_or_variable): Copy data directly.
11097 (write_global_references): Output index table directly.
11098 (lto_output_decl_state_refs): Likewise.
11099 (write_symbol): Write data directly.
11100 (produce_symtab): Adjust.
11101 (produce_asm_for_decls): Output header and refs directly.
11103 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11105 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
11106 to speculative_targets
11107 (get_class_context): Fix handling of contextes without outer type;
11108 avoid matching non-polymorphic types in LTO.
11109 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
11110 parameter to speculative_targetsp; handle speculation.
11111 (dump_possible_polymorphic_call_targets): Update dumping.
11113 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
11115 * common.opt (Wodr): Enable by default.
11117 2014-07-29 Olivier Hainque <hainque@adacore.com>
11119 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
11121 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
11124 * gengtype.c (strtoken): New function.
11125 (create_user_defined_type): Replace strtok with strtoken.
11127 2014-07-29 Nathan Sidwell <nathan@acm.org>
11129 * gcov-io.c (gcov_var): Make hidden.
11130 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
11131 (gcov_do_dump): Declare.
11132 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
11134 2014-07-29 Martin Jambor <mjambor@suse.cz>
11136 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
11137 parameter to gimple.
11138 (sra_modify_assign): Likewise.
11140 2014-07-29 Richard Biener <rguenther@suse.de>
11142 PR middle-end/52478
11143 * expr.c (expand_expr_real_2): Revert last change.
11145 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11147 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11148 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11149 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11151 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11152 (contains_type_p): Forward declare.
11153 (polymorphic_call_target_hasher::hash): Hash speculative info.
11154 (polymorphic_call_target_hasher::equal): Compare speculative info.
11155 (get_class_context): Handle speuclation.
11156 (contains_type_p): Update.
11157 (get_polymorphic_call_info_for_decl): Update.
11158 (walk_ssa_copies): Break out from ...
11159 (get_polymorphic_call_info): ... here; set speculative context
11161 * ipa-prop.c (ipa_write_indirect_edge_info,
11162 ipa_read_indirect_edge_info): Stream speculative context.
11163 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11164 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11165 SPECULATIVE_MAYBE_DERIVED_TYPE).
11166 (possible_polymorphic_call_targets overriders): Update.
11167 (dump_possible_polymorphic_call_targets overriders): Update.
11168 (dump_possible_polymorphic_call_target_p overriders): Update.
11170 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11172 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11173 ipa-devirt path; fix thinko there.
11175 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11177 * config/i386/i386.c (ix86_return_in_memory): Replace one
11178 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11180 2014-07-28 Marek Polacek <polacek@redhat.com>
11182 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11184 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11186 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11187 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11188 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11189 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11190 (USE_LD_AS_NEEDED): Likewise.
11191 (ASM_APP_ON): Likewise.
11192 (ASM_APP_OFF): Likewise.
11193 (TARGET_POSIX_IO): Likewise.
11194 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11195 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11196 (USE_LD_AS_NEEDED): Likewise.
11197 (ASM_APP_ON): Likewise.
11198 (ASM_APP_OFF): Likewise.
11199 (TARGET_POSIX_IO): Likewise.
11201 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11203 PR middle-end/61734
11204 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11205 operators other than the equality operators.
11207 2014-07-28 Richard Biener <rguenther@suse.de>
11209 PR middle-end/52478
11210 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11211 sure to register SImode ones, not only >= word_mode ones.
11212 * expr.c (expand_expr_real_2): When expanding -ftrapv
11213 binops do not use OPTAB_LIB_WIDEN.
11215 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11217 PR middle-end/61919
11218 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11219 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11220 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11221 inserting them in the insn stream.
11223 2014-07-28 Marek Polacek <polacek@redhat.com>
11225 PR middle-end/61913
11226 * common.opt (Wodr): Add Var.
11228 2014-07-28 Richard Biener <rguenther@suse.de>
11230 PR tree-optimization/61921
11231 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11232 if there is a varpool node before dereferencing it.
11234 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11236 * graphite-sese-to-poly.c:
11237 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11238 id of the pbb), which contains pointer to the pbb1.
11240 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11242 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11244 * graphite-isl-ast-to-gimple.c:
11245 (graphite_create_new_guard): New function.
11246 (translate_isl_ast_node_if): New function.
11247 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11249 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11251 2014-07-27 Anthony Green <green@moxielogic.com>
11253 * config.gcc: Add moxie-*-moxiebox* configuration.
11254 * config/moxie/moxiebox.h: New file.
11256 2014-07-26 Andrew Pinski <apinski@cavium.com>
11258 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11259 from the read only register.
11261 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11263 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11264 as the allocation class if it isn't likely to be spilled.
11266 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11268 * rtl.h (tls_referenced_p): Declare.
11269 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11270 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11271 (mips_cannot_force_const_mem): Use tls_referenced_p.
11272 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11273 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11274 instead of pa_tls_referenced_p.
11275 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11276 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11277 (pa_legitimate_constant_p): Likewise.
11278 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11279 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11280 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11281 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11282 rs6000_tls_referenced_p.
11283 (rs6000_tls_symbol_ref_1): Delete.
11285 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11288 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11289 Optimize inverse of a VEC_CONCAT.
11291 2014-07-25 Xinliang David Li <davidxl@google.com>
11293 * params.def: New parameter.
11294 * coverage.c (get_coverage_counts): Check new flag.
11295 (coverage_compute_profile_id): Check new flag.
11296 (coverage_begin_function): Check new flag.
11297 (coverage_end_function): Check new flag.
11298 * value-prof.c (coverage_node_map_initialized_p): New function.
11299 (init_node_map): Populate map with all functions.
11300 * doc/invoke.texi: Document new parameter.
11302 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11303 Richard Biener <rguenther@suse.de>
11305 * lto-streamer-out.c (struct sccs): Turn to ...
11306 (class DFS): ... this one; refactor the DFS walk so it can
11307 be re-done on per-SCC basis.
11308 (DFS::DFS): New constructor.
11309 (DFS::~DFS): New destructor.
11310 (hash_tree): Add new MAP argument holding in-SCC hash values;
11311 remove POINTER_TYPE hashing hack.
11312 (scc_entry_compare): Rename to ...
11313 (DFS::scc_entry_compare): ... this one.
11314 (hash_scc): Rename to ...
11315 (DFS::hash_scc): ... this one; pass output_block instead
11316 of streamer_cache; work harder to get unique and stable SCC
11318 (DFS_write_tree): Rename to ...
11319 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11320 (lto_output_tree): Update.
11322 2014-07-25 Andi Kleen <ak@linux.intel.com>
11324 * lto-streamer-out.c (hash_tree): Convert to inchash.
11326 2014-07-25 Andi Kleen <ak@linux.intel.com>
11328 * tree.c (build_type_attribute_qual_variant): Use inchash.
11329 (type_hash_list): Dito.
11330 (attribute_hash_list): Dito
11331 (iterative_hstate_expr): Dito.
11332 (iterative_hash_expr): Dito.
11333 (build_range_type_1): Dito.
11334 (build_array_type_1): Dito.
11335 (build_function_type): Dito.
11336 (build_method_type_directly): Dito.
11337 (build_offset_type): Dito.
11338 (build_complex_type): Dito.
11339 (make_vector_type): Dito.
11340 * tree.h (iterative_hash_expr): Add compat wrapper.
11341 (iterative_hstate_expr): Add.
11343 2014-07-25 Andi Kleen <ak@linux.intel.com>
11345 * Makefile.in (OBJS): Add inchash.o.
11346 (PLUGIN_HEADERS): Add inchash.h.
11347 * ipa-devirt.c: Include inchash.h.
11348 * lto-streamer-out.c: Dito.
11349 * tree-ssa-dom.c: Dito.
11350 * tree-ssa-pre.c: Dito.
11351 * tree-ssa-sccvn.c: Dito.
11352 * tree-ssa-tail-merge.c: Dito.
11354 * tree.c (iterative_hash_hashval_t): Move to ...
11355 (iterative_hash_host_wide_int): Move to ...
11356 * inchash.c: Here. New file.
11357 * tree.h (iterative_hash_hashval_t): Move to ...
11358 (iterative_hash_host_wide_int): Move to ...
11359 * inchash.h: Here. New file.
11361 2014-07-25 Richard Biener <rguenther@suse.de>
11363 PR middle-end/61762
11364 PR middle-end/61894
11365 * fold-const.c (native_encode_int): Add and handle offset
11366 parameter to do partial encodings of expr.
11367 (native_encode_fixed): Likewise.
11368 (native_encode_real): Likewise.
11369 (native_encode_complex): Likewise.
11370 (native_encode_vector): Likewise.
11371 (native_encode_string): Likewise.
11372 (native_encode_expr): Likewise.
11373 * fold-const.c (native_encode_expr): Add offset parameter
11375 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11376 (fold_ctor_reference): Handle all reads from tcc_constant
11379 2014-07-25 Richard Biener <rguenther@suse.de>
11381 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11382 as possibly unused.
11384 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11386 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11388 2014-07-24 Kyle McMartin <kyle@redhat.com>
11390 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11392 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11394 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11396 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11398 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11399 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11400 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11402 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11404 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11405 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11406 aggregate types. Instead, *all* aggregate types, except for single-
11407 element or homogeneous float/vector aggregates, are quadword-aligned
11408 if required by their type alignment. Issue -Wpsabi note when a type
11409 is now treated differently than before.
11411 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11413 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11414 does not fit fully into floating-point registers, and there is still
11415 space in the register parameter area, use GPRs to pass those parts
11416 of the argument. Issue -Wpsabi note if any parameter is now treated
11417 differently than before.
11418 (rs6000_arg_partial_bytes): Update.
11420 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11422 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11424 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11426 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11427 * toplev.c (initialize_rtl): Don't use it. Move previously
11428 "language-dependent" calls to...
11429 (backend_init): ...here.
11430 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11431 Assert that RTL initialization hasn't happend yet.
11433 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11435 PR rtl-optimization/61629
11436 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11437 they have already been initialized.
11439 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11441 PR middle-end/61268
11442 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11443 DECL_INCOMING_RTL and entry_parm.
11444 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11445 * calls.c (load_register_parameters): Likewise argument values.
11446 (emit_library_call_value_1, store_one_arg): Likewise argument
11448 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11450 * explow.c (validize_mem): Modify the argument in-place.
11452 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11454 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11455 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11457 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11459 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11460 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11462 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11464 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11465 (aarch64_save_callee_saves): New parameter "skip_wb".
11466 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11468 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11470 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11472 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11474 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11476 * graphite-isl-ast-to-gimple.c:
11477 (graphite_create_new_loop): Add calling of isl_id_free to properly
11478 decrement reference counts.
11480 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11482 2014-07-24 Martin Liska <mliska@suse.cz>
11483 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11485 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11486 (rs6000_code_end): Likewise.
11488 2014-07-24 Martin Liska <mliska@suse.cz>
11490 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11491 symtab_node funtion used.
11492 (rs6000_xcoff_declare_object_name): Likewise.
11494 2014-07-24 Martin Liska <mliska@suse.cz>
11496 * cgraphunit.c (compile): Correct function used.
11498 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11500 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11503 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11506 * varasm.c (bss_initializer_p): Handle offlined ctors.
11507 (align_variable, get_variable_align): Likewise.
11508 (make_decl_one_only): Likewise.
11509 (default_binds_local_p_1): Likewise.
11510 (decl_binds_to_current_def_p): Likewise.
11511 (get_variable_section): Get constructor if it is offlined.
11512 (assemble_variable_contents): Sanity check that the caller
11513 streamed in the ctor in LTO.
11515 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11517 * graphite-isl-ast-to-gimple.c:
11518 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
11519 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
11520 isl_ast_op_pdiv_r to the different case.
11522 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
11524 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11526 PR middle-end/61876
11527 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
11528 when flag_errno_math is on.
11530 2014-07-24 Martin Liska <mliska@suse.cz>
11532 * cgraph.h (varpool_node):
11533 (availability get_availability (void)):
11534 created from cgraph_variable_initializer_availability
11535 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
11536 created from: cgraph_variable_initializer_availability
11537 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
11538 (void finalize_named_section_flags (void)):
11539 created from varpool_finalize_named_section_flags
11540 (bool assemble_decl (void)): created from varpool_assemble_decl
11541 (void analyze (void)): created from varpool_analyze_node
11542 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
11543 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
11544 (void remove_initializer (void)): created from varpool_remove_initializer
11545 (tree get_constructor (void)): created from varpool_get_constructor
11546 (bool externally_visible_p (void)): created from varpool_externally_visible_p
11547 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
11548 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
11549 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
11550 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
11551 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
11552 (static bool output_variables (void)): created from varpool_output_variables
11553 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
11554 created from varpool_extra_name_alias
11555 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
11556 (static void dump_varpool (FILE *f)): created from dump_varpool
11557 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
11558 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
11559 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
11560 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
11561 (void assemble_aliases (void)): created from assemble_aliases
11563 2014-07-24 Martin Liska <mliska@suse.cz>
11565 * cgraph.h (symtab_node):
11566 (void register_symbol (void)): created from symtab_register_node
11567 (void remove (void)): created from symtab_remove_node
11568 (void dump (FILE *f)): created from dump_symtab_node
11569 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
11570 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
11571 (struct ipa_ref *add_reference (symtab_node *referred_node,
11572 enum ipa_ref_use use_type)): created from add_reference
11573 (struct ipa_ref *add_reference (symtab_node *referred_node,
11574 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
11575 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
11576 gimple stmt)): created from maybe_add_reference
11577 (bool semantically_equivalent_p (symtab_node *target)): created from
11578 symtab_semantically_equivalent_p
11579 (void remove_from_same_comdat_group (void)): created from
11580 remove_from_same_comdat_group
11581 (void add_to_same_comdat_group (symtab_node *old_node)): created from
11582 symtab_add_to_same_comdat_group
11583 (void dissolve_same_comdat_group_list (void)): created from
11584 symtab_dissolve_same_comdat_group_list
11585 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
11586 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
11587 created from symtab_alias_ultimate_target
11588 (inline symtab_node *next_defined_symbol (void)): created from
11589 symtab_next_defined_symbol
11590 (bool resolve_alias (symtab_node *target)): created from
11591 symtab_resolve_alias
11592 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
11593 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
11594 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
11595 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
11596 (void set_section (const char *section)): created from set_section_1
11597 (enum availability get_availability (void)): created from symtab_node_availability
11598 (void make_decl_local (void)): created from symtab_make_decl_local
11599 (bool real_symbol_p (void)): created from symtab_read_node
11600 (can_be_discarded_p (void)): created from symtab_can_be_discarded
11601 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
11602 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
11603 symtab_in_same_comdat_p;
11604 (bool address_taken_from_non_vtable_p (void)): created from
11605 address_taken_from_non_vtable_p
11606 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
11607 (static void dump_table (FILE *)): created from dump_symtab
11608 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
11609 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
11610 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
11611 symtab_used_from_object_file_p
11612 (void dump_base (FILE *)): created from dump_symtab_base
11613 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
11614 (void unregister (void)): created from symtab_unregister_node
11615 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
11616 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
11617 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
11618 symtab_nonoverwritable_alias_1
11619 * cgraph.h (cgraph_node):
11620 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
11621 created from cgraph_remove_node_and_inline_clones
11622 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
11623 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
11624 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
11625 (cgraph_node *function_symbol (enum availability *avail = NULL)):
11626 created from cgraph_function_node
11627 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
11628 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
11629 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
11630 created from cgraph_create_clone
11631 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
11632 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
11633 created from cgraph_create_virtual_clone
11634 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
11635 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
11636 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
11637 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
11638 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
11639 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
11640 created from cgraph_function_version_info
11641 (struct cgraph_function_version_info *insert_new_function_version (void)):
11642 created from insert_new_cgraph_node_version
11643 (struct cgraph_function_version_info *function_version (void)): created from
11644 get_cgraph_node_version
11645 (void analyze (void)): created from analyze_function
11646 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
11647 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
11648 tree real_alias) cgraph_add_thunk
11649 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
11650 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
11651 created from cgraph_function_or_thunk_node
11652 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
11653 created from expand_thunk
11654 (void reset (void)): created from cgraph_reset_node
11655 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
11656 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
11657 (void remove (void)): created from cgraph_remove_node
11658 (void dump (FILE *f)): created from dump_cgraph_node
11659 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
11660 (bool get_body (void)): created from cgraph_get_body
11661 (void release_body (void)): created from cgraph_release_function_body
11662 (void unnest (void)): created from cgraph_unnest_node
11663 (void make_local (void)): created from cgraph_make_node_local
11664 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
11665 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
11666 gcov_type count, int freq)): created from cgraph_create_edge
11667 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
11668 gcov_type count, int freq)): created from cgraph_create_indirect_edge
11669 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
11670 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
11671 created from cgraph_create_edge_including_clones
11672 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
11673 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
11674 (void remove_callers (void)): created from cgraph_node_remove_callers
11675 (void remove_callees (void)): created from cgraph_node_remove_callees
11676 (enum availability get_availability (void)): created from cgraph_function_body_availability
11677 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
11678 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
11679 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
11680 (void call_duplication_hooks (cgraph_node *node2)): created from
11681 cgraph_call_node_duplication_hooks
11682 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
11683 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
11684 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
11685 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
11686 (void call_function_insertion_hooks (void)):
11687 created from cgraph_call_function_insertion_hooks
11688 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
11689 (bool local_p (void)): created from cgraph_local_node
11690 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
11691 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
11692 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
11693 (inline bool only_called_directly_or_aliased_p (void)):
11694 created from cgraph_only_called_directly_or_aliased_p
11695 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
11696 created from cgraph_will_be_removed_from_program_if_no_direct_calls
11697 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
11698 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
11699 (bool can_remove_if_no_direct_calls_p (void)):
11700 created from cgraph_can_remove_if_no_direct_calls_p
11701 (inline bool has_gimple_body_p (void)):
11702 created from cgraph_function_with_gimple_body_p
11703 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
11704 (static void dump_cgraph (FILE *f)): created from dump_cgraph
11705 (static inline void debug_cgraph (void)): created from debug_cgraph
11706 (static void record_function_versions (tree decl1, tree decl2)):
11707 created from record_function_versions
11708 (static void delete_function_version (tree decl)):
11709 created from delete_function_version
11710 (static void add_new_function (tree fndecl, bool lowered)):
11711 created from cgraph_add_new_function
11712 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
11713 (static cgraph_node * create (tree decl)): created from cgraph_create_node
11714 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
11715 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
11716 (static cgraph_node *get_for_asmname (tree asmname)):
11717 created from cgraph_node_for_asm
11718 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
11719 created from cgraph_same_body_alias
11720 (static bool used_from_object_file_p_worker (cgraph_node *node,
11721 void *): new function
11722 (static bool non_local_p (cgraph_node *node, void *)):
11723 created from cgraph_non_local_node_p_1
11724 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
11725 created from verify_cgraph
11726 (static bool make_local (cgraph_node *node, void *)):
11727 created from cgraph_make_node_local
11728 (static cgraph_node *create_alias (tree alias, tree target)):
11729 created from cgraph_create_function_alias
11730 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
11731 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
11732 created from cgraph_create_edge_1
11733 * cgraph.h (varpool_node):
11734 (void remove (void)): created from varpool_remove_node
11735 (void dump (FILE *f)): created from dump_varpool_node
11737 2014-07-24 Richard Biener <rguenther@suse.de>
11740 * tree-ssa-structalias.c (create_variable_info_for_1):
11741 Use varpool_get_constructor.
11742 (create_variable_info_for): Likewise.
11744 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11746 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
11747 subtract outgoing area size when restoring stack_pointer_rtx.
11749 2014-07-24 Nick Clifton <nickc@redhat.com>
11751 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
11752 that operations are taking place in parallel.
11753 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
11755 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
11757 * omp-low.c (extract_omp_for_data): Add missing break statement.
11759 2014-07-24 Richard Biener <rguenther@suse.de>
11761 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
11762 * tree-inline.c (estimate_move_cost): Add speed_p parameter
11763 and adjust MOVE_RATIO query accordingly.
11764 (estimate_num_insns): Adjust callers.
11765 * ipa-prop.c (ipa_populate_param_decls): Likewise.
11766 * ipa-cp.c (gather_context_independent_values,
11767 estimate_local_effects): Likewise.
11768 * ipa-split.c (consider_split): Likewise.
11770 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
11772 * config/i386/driver-i386.c: Remove names of unused arguments and
11773 unnecessary unused attributes.
11774 * config/i386/host-mingw32.c: Likewise.
11775 * config/i386/i386.c: Likewise.
11776 * config/i386/winnt-stubs.c: Likewise.
11777 * config/i386/winnt.c: Likewise.
11779 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11781 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
11782 (aarch64_gen_loadwb_pair): New helper function.
11783 (aarch64_expand_epilogue): Simplify code using new helper functions.
11784 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
11786 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11788 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
11789 (aarch64_gen_storewb_pair): New helper function.
11790 (aarch64_expand_prologue): Simplify code using new helper functions.
11791 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11793 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11795 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11796 Rename to aarch64_save_callee_saves, remove restore code.
11797 (aarch64_restore_callee_saves): New function.
11799 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11801 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11802 (aarch64_save_callee_saves): New function to handle reg save
11803 for both core and vectore regs.
11805 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11807 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11808 (aarch64_gen_store_pair): New helper function.
11809 (aarch64_save_or_restore_callee_save_registers)
11810 (aarch64_save_or_restore_fprs): Use new helper functions.
11812 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11814 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11815 (aarch64_save_or_restore_callee_save_registers)
11816 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11818 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11820 * config/aarch64/aarch64.c
11821 (aarch64_save_or_restore_callee_save_registers)
11822 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11824 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11826 * config/aarch64/aarch64.c
11827 (aarch64_save_or_restore_callee_save_registers)
11828 (aarch64_save_or_restore_fprs): Remove 'increment'.
11830 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11832 * config/aarch64/aarch64.c
11833 (aarch64_save_or_restore_callee_save_registers)
11834 (aarch64_save_or_restore_fprs): Use register offset in
11835 cfun->machine->frame.reg_offset.
11837 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11839 * config/aarch64/aarch64.c
11840 (aarch64_save_or_restore_callee_save_registers)
11841 (aarch64_save_or_restore_fprs): Remove base_rtx.
11843 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11845 * config/aarch64/aarch64.c
11846 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11847 to 'start_offset'. Remove local variable 'start_offset'.
11849 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11851 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11852 type to HOST_WIDE_INT.
11854 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11856 * config/aarch64/aarch64.c (aarch64_expand_prologue)
11857 (aarch64_save_or_restore_fprs)
11858 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11860 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11862 * config/arm/t-rtems-eabi: Add
11863 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11864 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11865 mbig-endian/mthumb/march=armv7-r, and
11866 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11869 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11870 Chris Johns <chrisj@rtems.org>
11871 Joel Sherrill <joel.sherrill@oarcorp.com>
11873 * config.gcc: Add nios2-*-rtems*.
11874 * config/nios2/rtems.h: New file.
11875 * gcc/config/nios2/t-rtems: New file.
11877 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11880 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11881 constant numbers, not general constants.
11882 (rs6000_expand_vector_init): Ditto.
11884 2014-07-23 Nathan Sidwell <nathan@acm.org>
11886 * gcov-tool.c (gcov_list): Declare here.
11887 (set_gcov_list): Remove.
11888 (gcov_output_files): Set gcov_list directly.
11890 2014-07-23 Host Schirmeier <horst@schirmeier.com>
11892 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11894 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11896 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11897 callee-saved registers are available for padding purpose
11898 and r3 is not mandatory, then prefer use those callee-saved
11901 2014-07-23 Richard Biener <rguenther@suse.de>
11903 * params.def (PARAM_MAX_COMBINE_INSNS): New.
11904 * combine.c: Include statistics.h and params.h.
11905 (combine_instructions): Guard three and four insn combines
11906 with max-combine-insns value. Record statistics for combines
11908 * doc/invoke.texi (max-combine-insns): Document new param.
11910 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11912 * graphite-isl-ast-to-gimple.c:
11913 (translate_isl_ast_node_block): New function.
11914 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11916 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11917 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11919 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11921 * graphite-isl-ast-to-gimple.c:
11922 (get_max_schedule_dimensions): New function.
11923 (extend_schedule): Likewise.
11924 (generate_isl_schedule): Add calling of extend_schedule and
11925 get_max_schedule_dimensions.
11927 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11929 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11930 (case UNSPEC): Handle UNSPEC_RBIT.
11932 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11934 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11935 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11937 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11939 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11941 2014-07-22 Roman Gareev <gareevroman@gmail.com>
11943 * graphite-isl-ast-to-gimple.c:
11944 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11945 (ivs_params_clear):
11946 (build_iv_mapping): New function.
11947 (translate_isl_ast_node_user): Likewise.
11948 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11950 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11951 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11952 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11954 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11957 * config/arm/arm.md (setmem): New pattern.
11958 * config/arm/arm-protos.h (struct tune_params): New fields.
11959 (arm_gen_setmem): New prototype.
11960 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11961 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11962 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11963 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11964 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11965 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11966 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11967 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11968 (arm_const_inline_cost): New function.
11969 (arm_block_set_max_insns): New function.
11970 (arm_block_set_non_vect_profit_p): New function.
11971 (arm_block_set_vect_profit_p): New function.
11972 (arm_block_set_unaligned_vect): New function.
11973 (arm_block_set_aligned_vect): New function.
11974 (arm_block_set_unaligned_non_vect): New function.
11975 (arm_block_set_aligned_non_vect): New function.
11976 (arm_block_set_vect, arm_gen_setmem): New functions.
11978 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11980 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11982 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
11985 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11986 out of #ifdef __OPTIMIZE__.
11988 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11990 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11991 different trapping status if -fnon-call-exceptions is enabled.
11993 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11995 * expr.c (store_field): Handle VOIDmode for calls that return values
11996 in multiple locations.
11998 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12000 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
12001 (altivec_vsldoi_<mode>): Likewise.
12003 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12005 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
12006 to the number of characters in the line.
12008 2014-07-20 Roman Gareev <gareevroman@gmail.com>
12010 * graphite-isl-ast-to-gimple.c: Add using of
12011 build_nonstandard_integer_type instead of int128_integer_type_node.
12013 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
12015 * toplev.c (output_stack_usage): Adjust the location of the warning.
12017 2014-07-19 Daniel Cederman <cederman@gaisler.com>
12019 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
12020 (*membar_storeload): Disable for LEON3.
12022 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12024 PR rtl-optimization/61461
12025 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
12027 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
12030 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
12031 Fix instruction constraint.
12032 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
12034 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
12036 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
12038 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
12040 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
12041 GNU coding standards.
12042 (nds32_register_move_cost): Likewise.
12043 (nds32_memory_move_cost): Likewise.
12044 (nds32_address_cost): Likewise.
12046 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12048 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
12050 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
12052 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
12053 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
12054 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12055 (HAVE_sync_compare_and_swapqi): Define.
12056 (HAVE_sync_compare_and_swaphi): Likewise.
12057 (HAVE_sync_compare_and_swapsi): Likewise.
12059 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
12061 * config/mips/p5600.md: Add missing cpu tests.
12063 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12065 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
12066 (vmla_f64): Likewise.
12067 (vfms_f64): Likewise.
12068 (vmls_f64): Likewise.
12070 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12072 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
12073 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
12075 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12077 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
12078 (vmlal_high_lane_s32): Likewise.
12079 (vmlal_high_lane_u16): Likewise.
12080 (vmlal_high_lane_u32): Likewise.
12081 (vmlsl_high_lane_s16): Likewise.
12082 (vmlsl_high_lane_s32): Likewise.
12083 (vmlsl_high_lane_u16): Likewise.
12084 (vmlsl_high_lane_u32): Likewise.
12086 2014-07-17 Terry Guo <terry.guo@arm.com>
12088 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
12089 (alus_reg): Renamed to alus_sreg.
12090 * config/arm/arm-fixed.md: Change type of non-dsp instructions
12091 from alu_reg to alu_sreg. Change type of dsp instructions from
12092 alu_reg to alu_dsp_reg.
12093 * config/arm/thumb1.md: Likewise.
12094 * config/arm/thumb2.md: Likewise.
12095 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
12096 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
12097 with alu_sreg and alus_sreg.
12098 * config/arm/arm1026ejs.md (alu_op): Likewise.
12099 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12100 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12101 * config/arm/fa526.md (526_alu_op): Likewise.
12102 * config/arm/fa606te.md (606te_alu_op): Likewise.
12103 * config/arm/fa626te.md (626te_alu_op): Likewise.
12104 * config/arm/fa726te.md (726te_alu_op): Likewise.
12105 * config/arm/fmp626.md (mp626_alu_op): Likewise.
12106 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
12107 alu_sreg, alu_dsp_reg and alus_sreg.
12108 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12109 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12110 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12111 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
12112 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12113 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12114 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12115 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12116 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
12117 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
12118 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
12119 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
12120 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
12121 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
12122 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
12123 alus_reg to alus_sreg.
12125 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
12127 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
12130 2014-07-17 Richard Biener <rguenther@suse.de>
12132 PR rtl-optimization/61801
12133 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
12134 don't set reg_pending_barrier if it appears in a debug-insn.
12136 2014-07-16 DJ Delorie <dj@redhat.com>
12138 * config/rx/rx.c (rx_option_override): Fix alignment values.
12139 (rx_align_for_label): Likewise.
12141 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
12144 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
12145 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12146 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12148 (cris_print_index, cris_print_operand, cris_constant_index_p)
12149 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12150 (cris_address_cost): Ditto last CONSTANT_P.
12151 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12152 callers changed. Yield cris_offsettable_symbol for non-PIC
12153 constant symbolic expressions including labels. Yield cris_unspec
12155 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12156 target to pic_offset_table_rtx for calls that will likely go
12157 through PLT, const0_rtx when they can't. All callers changed.
12158 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12159 symbolic expressions to be PICified. Remove second, redundant,
12160 assert on can_create_pseudo_p returning non-zero. Use
12161 replace_equiv_address_nv, not replace_equiv_address, for final
12163 * config/cris/cris.md ("movsi"): Move variable t to pattern
12164 toplevel. Adjust assert for new cris_symbol_type member. Use
12165 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12166 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12168 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12169 ("call", "call_value"): Use second incoming operand as a marker
12170 for pic-offset-table-register being used.
12171 ("*expanded_call_non_v32", "*expanded_call_v32")
12172 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12173 second incoming operand to CALL, match cris_call_type_marker.
12174 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12175 ("*expanded_call_side"): Ditto. Fix typo in comment.
12176 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12178 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12179 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12180 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12181 users changed. Add members cris_offsettable_symbol and cris_unspec.
12182 (cris_symbol_type): Rename from cris_pic_symbol_type.
12183 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12185 * config/cris/cris-protos.h (cris_symbol_type_of,
12186 cris_expand_pic_call_address): Adjust prototypes.
12187 (cris_legitimate_constant_p): New prototype.
12189 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12190 an existing tmake_file. Don't add t-slibgcc and t-linux.
12192 2014-07-17 Jason Merrill <jason@redhat.com>
12195 * symtab.c (symtab_remove_from_same_comdat_group): Also
12196 set_comdat_group to NULL_TREE.
12197 (verify_symtab): Fix diagnostic.
12199 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12202 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12204 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12206 Support location tracking for built-in macro tokens
12207 * input.h (is_location_from_builtin_token): New function declaration.
12208 * input.c (is_location_from_builtin_token): New function definition.
12209 * toplev.c (general_init): Tell libcpp what the pre-defined
12210 spelling location for built-in tokens is.
12212 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12214 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12215 on the FUNCTION_DECL.
12217 2014-07-16 Richard Biener <rguenther@suse.de>
12220 * doc/extend.texi (always_inline): Clarify.
12222 2014-07-15 Eric Christopher <echristo@gmail.com>
12224 * doc/invoke.texi (Link Options): Document -z option.
12226 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12228 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12229 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12231 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12233 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12235 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12237 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12238 varpool_assemble_decl.
12239 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12242 2014-07-15 Michael Matz <matz@suse.de>
12244 PR rtl-optimization/61772
12245 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12247 2014-07-15 Richard Biener <rguenther@suse.de>
12249 * opts.c (default_options_table): Disable bit-ccp at -Og.
12251 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12253 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12255 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12257 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12258 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12259 call langhook for unknown declaration.
12260 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12261 * tree.h (DECL_ARGUMENTS): Update.
12262 * print-tree.c (print_node): Update.
12263 * tree-core.h (tree_decl_non_common): Remove arguments.
12264 (tree_function_decl): Add arguments.
12266 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12268 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12270 2014-07-14 Richard Biener <rguenther@suse.de>
12272 PR tree-optimization/61779
12273 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12274 simplifying a condition.
12276 2014-07-14 Richard Biener <rguenther@suse.de>
12278 * builtins.c (c_strlen): Make only_value == 2 really only
12279 affect warning generation.
12281 2014-07-14 Richard Biener <rguenther@suse.de>
12283 PR tree-optimization/61757
12284 PR tree-optimization/61783
12285 PR tree-optimization/61787
12286 * tree-ssa-dom.c (record_equality): Revert canonicalization
12287 change and add comment.
12288 (propagate_rhs_into_lhs): Revert previous fix, removing
12289 loop depth restriction again.
12291 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12293 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12294 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12295 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12296 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12297 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12298 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12299 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12301 2014-07-14 Richard Biener <rguenther@suse.de>
12303 * cgraph.h (decl_in_symtab_p): Make inline.
12305 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12307 PR middle-end/61294
12308 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12311 * config/i386/i386.c (classify_argument): Don't merge classes above
12314 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12316 * cgraph.h (symtab_node): Add nonzero_address.
12317 (decl_in_symtab_p): Break out from ...
12318 (symtab_get_node): ... here.
12319 * fold-const.c: Include cgraph.h
12320 (tree_single_nonzero_warnv_p): Use symtab to determine
12321 if symbol is non-zero.
12322 * symtab.c (symtab_node::nonzero_address): New method.
12324 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12326 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12327 forgotten in previous commit.
12329 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12331 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12333 * ipa-devirt.c: Include stor-layout.h and intl.h
12334 (odr_subtypes_equivalent_p): New function.
12335 (warn_odr): New function.
12336 (warn_type_mismatch): New function.
12337 (odr_types_equivalent_p): New function.
12338 (add_type_duplicate): Use it.
12339 * common.opt (Wodr): New flag.
12340 * doc/invoke.texi (Wodr): Document new warning.
12342 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12344 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12345 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12346 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12347 (varpool_get_constructor): Push CTORS_IN timevar.
12348 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12350 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12352 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12353 Remove VOID_FTYPE_PUSHORT.
12354 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12355 Change code to USHORT_FTYPE_VOID.
12356 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12357 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12358 (ix86_atomic_assign_expand_fenv): Update for
12359 __builtin_ia32_fnstsw changes.
12360 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12361 (fnstsw): Change operand 0 to nonimmediate operand.
12363 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12365 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12366 (varpool_get_constructor): New function.
12367 (varpool_ctor_useable_for_folding_p): Break out from ...
12368 (ctor_for_folding): ... here; use varpool_get_constructor.
12369 (varpool_assemble_decl): Likewise.
12370 * lto-streamer.h (struct output_block): Turn cgraph_node
12372 (lto_input_variable_constructor): Declare.
12373 * ipa-visibility.c (function_and_variable_visibility): Use
12374 varpool_get_constructor.
12375 * cgraph.h (varpool_get_constructor): Declare.
12376 (varpool_ctor_useable_for_folding_p): New function.
12377 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12378 parameter; return error_mark_node for non-trivial constructors.
12379 (lto_write_tree_1, DFS_write_tree): Update use of
12380 get_symbol_initial_value.
12381 (output_function): Update initialization of symbol.
12382 (output_constructor): New function.
12383 (copy_function): Rename to ..
12384 (copy_function_or_variable): ... this one; handle vars too.
12385 (lto_output): Output variable sections.
12386 * lto-streamer-in.c (input_constructor): New function.
12387 (lto_read_body): Rename from ...
12388 (lto_read_body_or_constructor): ... this one; handle vars too.
12389 (lto_input_variable_constructor): New function.
12390 * ipa-prop.c (ipa_prop_write_jump_functions,
12391 ipa_prop_write_all_agg_replacement): Update.
12392 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12393 (output_cgraph_opt_summary): Set symbol to NULL.
12395 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12397 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12398 non-polymorphic types.
12399 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12400 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12401 of types is not polymorphic.
12403 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12405 * lra-constraints.c (remove_inheritance_pseudos): Process
12406 destination pseudo too.
12408 2014-07-11 Rong Xu <xur@google.com>
12410 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12413 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12415 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12416 * config/avr/avr-devices.c (AVR_MCU): Same.
12417 (avr_mcu_types): add text start value to end of device list.
12418 * config/avr/avr-mcus.def: Add text section start for all devices.
12419 (ata5782): Add new avr5 device.
12421 * config/avr/avr-tables.opt: Regenerate.
12422 * config/avr/avr.h: Add declaration for text section start handler.
12423 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12425 (LINK_SPEC): Include text section start handler to linker spec.
12426 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12427 pass -Ttext option to linker if the text section start for the device
12429 * config/avr/t-multilib: Regenerate.
12430 * doc/avr-mmcu.texi: Regenerate.
12432 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12434 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12435 * config/rs6000/aix52.h (LINK_SPEC): Same.
12436 * config/rs6000/aix53.h (LINK_SPEC): Same.
12437 * config/rs6000/aix61.h (LINK_SPEC): Same.
12438 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12440 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12442 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12443 (graphite_verify): New function.
12444 (ivs_params_clear): New function.
12445 (gcc_expression_from_isl_ast_expr_id): New function.
12446 (gcc_expression_from_isl_expr_int): New function.
12447 (binary_op_to_tree): New function.
12448 (ternary_op_to_tree): New function.
12449 (unary_op_to_tree): New function.
12450 (nary_op_to_tree): New function.
12451 (gcc_expression_from_isl_expr_op): New function.
12452 (gcc_expression_from_isl_expression): New function.
12453 (graphite_create_new_loop): New function.
12454 (translate_isl_ast_for_loop): New function.
12455 (get_upper_bound): New function.
12456 (graphite_create_new_loop_guard): New function.
12457 (translate_isl_ast_node_for): New function.
12458 (translate_isl_ast): New function.
12459 (add_parameters_to_ivs_params): New function.
12460 (scop_to_isl_ast): New parameter ip.
12461 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12463 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12465 * config/xtensa/predicates.md (call expander): Update for
12466 DECL_SECTION_NAME being string.
12468 2014-07-11 Richard Biener <rguenther@suse.de>
12470 PR middle-end/61473
12471 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12472 can be implemented with a single load followed by a single store.
12473 (c_strlen): Only warn when only_value is not 2.
12475 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12477 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12479 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12482 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12483 (*movhi_bytes): Likewise.
12484 (*arm_movqi_insn): Likewise.
12486 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12489 * config/alpha/alpha.c: Include tree-pass.h, context.h
12490 and pass_manager.h.
12491 (pass_data_handle_trap_shadows): New pass.
12492 (pass_handle_trap_shadows::gate): New pass gate function.
12493 (make_pass_handle_trap_shadows): New function.
12494 (rest_of_handle_trap_shadows): Ditto.
12496 (alpha_align_insns_1): Rename from alpha_align_insns.
12497 (pass_data_align_insns): New pass.
12498 (pass_align_insns::gate): New pass gate function.
12499 (make_pass_aling_insns): New function.
12500 (rest_of_align_insns): Ditto.
12501 (alpha_align_insns): Ditto.
12503 (alpha_option_override): Declare handle_trap_shadows info
12504 and align_insns_info. Register handle_trap_shadows and align_insns
12506 (alpha_reorg): Do not call alpha_trap_shadows and
12507 alpha_align_insn from here.
12509 (alpha_pad_function_end): Do not skip BARRIERs.
12511 2014-07-10 Rong Xu <xur@google.com>
12513 Add gcov-tool: an offline gcda profile processing tool support.
12514 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
12515 (gcov_is_error): Ditto.
12516 (gcov_read_string): Ditto.
12517 (gcov_read_sync): Ditto.
12518 * gcov-io.h: Move counter defines to gcov-counter.def.
12519 * gcov-dump.c (tag_counters): Use gcov-counter.def.
12520 * coverage.c: Ditto.
12521 * gcov-tool.c: Offline gcda profile processing tool.
12522 (unlink_gcda_file): Remove one gcda file.
12523 (unlink_profile_dir): Remove gcda files from the profile path.
12524 (gcov_output_files): Output gcda files to an output dir.
12525 (profile_merge): Merge two profiles in directory.
12526 (print_merge_usage_message): Print merge usage.
12527 (merge_usage): Print merge usage and exit.
12528 (do_merge): Driver for profile merge sub-command.
12529 (profile_rewrite): Rewrite profile.
12530 (print_rewrite_usage_message): Print rewrite usage.
12531 (rewrite_usage): Print rewrite usage and exit.
12532 (do_rewrite): Driver for profile rewrite sub-command.
12533 (print_usage): Print gcov-info usage and exit.
12534 (print_version): Print gcov-info version.
12535 (process_args): Process arguments.
12536 (main): Main routine for gcov-tool.
12537 * Makefile.in: Build and install gcov-tool.
12538 * gcov-counter.def: New file split from gcov-io.h.
12539 * doc/gcc.texi: Include gcov-tool.texi.
12540 * doc/gcov-tool.texi: Document for gcov-tool.
12542 2014-07-10 Richard Biener <rguenther@suse.de>
12544 PR tree-optimization/61757
12545 * tree-ssa-dom.c (loop_depth_of_name): Restore.
12546 (propagate_rhs_into_lhs): Revert part of last change.
12548 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
12550 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
12553 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
12555 PR middle-end/53590
12556 * function.c (allocate_struct_function): Revert r188667 change.
12558 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
12560 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
12562 * doc/install.texi: Remove links to defunct package providers for
12565 2014-07-09 Tom de Vries <tom@codesourcery.com>
12567 * final.c (get_call_fndecl): Declare.
12568 (self_recursive_call_p): New function.
12569 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
12571 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12573 * ipa-devirt.c (record_node): Walk through aliases.
12575 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12577 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
12579 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12582 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12584 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12586 * ipa-visibility.c (function_and_variable_visibility): Remove
12587 temporary hack disabling local aliases on AIX.
12589 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12591 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
12592 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
12594 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12596 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
12597 * rs6000/rs6000.c: Inline output of .set instruction.
12598 (declare_alias_data): New struct.
12599 (rs6000_declare_alias): New function.
12600 (rs6000_xcoff_declare_function_name): Use it.
12601 (rs6000_xcoff_declare_object_name): New function.
12602 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
12603 (ASM_OUTPUT_DEF): Turn to empty definition.
12605 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12608 * hash-table.h: use hash_table::value_type instead of
12609 Descriptor::value_type in the return types of several methods.
12611 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12613 * tree-pass.h (pass_data): Remove has_execute member.
12614 * passes.c (execute_one_pass): Don't check pass->has_execute.
12615 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12616 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12617 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12618 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12619 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12620 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
12621 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
12622 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
12623 gimple-low.c, gimple-ssa-isolate-paths.c,
12624 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
12625 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
12626 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
12627 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
12628 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
12629 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
12630 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
12631 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
12632 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
12633 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
12634 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
12635 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12636 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12637 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12638 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12639 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12640 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12641 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12642 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12643 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12644 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
12645 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12646 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
12647 web.c: Remove initializer for pass_data::has_execute.
12649 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12651 * graphite-htab.h: Use hash_map instead of hash_table.
12652 * graphite-clast-to-gimple.c: Adjust.
12653 * passes.c: Use hash_map instead of hash_table.
12654 * sese.c: Likewise.
12655 * sese.h: Remove now unused code.
12657 2014-07-08 Sriraman Tallam <tmsriram@google.com>
12660 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
12663 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12665 PR rtl-optimization/61673
12666 * combine.c (simplify_comparison): Test just mode's sign bit
12667 in tmode rather than the sign bit and any bits above it.
12669 2014-07-08 Roman Gareev <gareevroman@gmail.com>
12671 * graphite-isl-ast-to-gimple.c (generate_isl_context):
12672 Add __isl_give to the declaration.
12673 (generate_isl_schedule): Likewise.
12674 (scop_to_isl_ast): Likewise.
12676 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12678 * config/arm/arm.c (cortexa5_extra_costs): New table.
12679 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
12681 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12683 PR tree-optimization/61725
12684 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
12685 range, use range_includes_zerop_p instead of integer_zerop on
12686 vr0->min, only use log2 of max if min is not negative.
12688 2014-07-08 Richard Biener <rguenther@suse.de>
12690 * tree-ssa-dom.h (loop_depth_of_name): Remove.
12691 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
12692 restriction on loop depth difference.
12693 (record_equality): Likewise.
12694 (propagate_rhs_into_lhs): Likewise. Simplify condition.
12695 (loop_depth_of_name): Remove.
12696 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
12697 restriction on loop depth difference.
12698 (init_copy_prop): Likewise.
12700 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12702 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
12704 (walk_aliased_vdefs): Likewise.
12705 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
12706 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
12707 (detect_type_change_from_memory_writes): Check if entry was reached.
12709 2014-07-08 Richard Biener <rguenther@suse.de>
12711 PR tree-optimization/61681
12712 * tree-ssa-structalias.c (find_what_var_points_to): Expand
12713 NONLOCAL inside ESCAPED.
12715 2014-07-08 Richard Biener <rguenther@suse.de>
12717 PR tree-optimization/61680
12718 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12719 Handle properly all read-write dependences with group accesses.
12721 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12723 PR tree-optimization/61576
12724 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
12725 block containing reduction statement is predecessor of phi basi block.
12727 2014-07-08 Marek Polacek <polacek@redhat.com>
12730 * fold-const.c (round_up_loc): Change the parameter type.
12732 * fold-const.h (round_up_loc): Adjust declaration.
12733 * stor-layout.c (finalize_record_size): Check for too large types.
12735 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
12737 * symtab.c: Include calls.h.
12738 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
12740 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
12742 * config/rs6000/rs6000.c (output_vec_const_move): Handle
12743 little-endian code generation.
12744 * config/rs6000/spe.md (spe_evmergehi): Rename to...
12745 (vec_perm00_v2si): ... this. Handle little-endian code generation.
12746 (spe_evmergehilo): Rename to...
12747 (vec_perm01_v2si): ... this. Handle little-endian code generation.
12748 (spe_evmergelo): Rename to...
12749 (vec_perm11_v2si): ... this. Handle little-endian code generation.
12750 (spe_evmergelohi): Rename to...
12751 (vec_perm10_v2si): ... this. Handle little-endian code generation.
12752 (spe_evmergehi, spe_evmergehilo): New expanders.
12753 (spe_evmergelo, spe_evmergelohi): Likewise.
12754 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
12755 (*frob_tf_ti): Likewise.
12756 (*frob_<mode>_di_2): Likewise.
12757 (*frob_tf_di_8_2): Likewise.
12758 (*frob_di_<mode>): Likewise.
12759 (*frob_ti_tf): Likewise.
12760 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
12761 (*frob_ti_<mode>_8_2): Likewise.
12762 (*frob_ti_tf_2): Likewise.
12763 (mov_si<mode>_e500_subreg0): Rename to...
12764 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
12766 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
12767 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
12768 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
12769 the big endianness only.
12770 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
12771 (*mov_si<mode>_e500_subreg0_2): Rename to...
12772 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
12773 big big endianness only.
12774 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
12775 (*mov_si<mode>_e500_subreg4): Rename to...
12776 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
12778 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
12779 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
12780 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
12781 the big endianness only.
12782 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
12784 (*mov_si<mode>_e500_subreg4_2): Rename to...
12785 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
12787 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
12788 (*mov_sitf_e500_subreg8): Rename to...
12789 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
12791 (*mov_sitf_e500_subreg8_le): New instruction pattern.
12792 (*mov_sitf_e500_subreg8_2): Rename to...
12793 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
12795 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12796 (*mov_sitf_e500_subreg12): Rename to...
12797 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
12799 (*mov_sitf_e500_subreg12_le): New instruction pattern.
12800 (*mov_sitf_e500_subreg12_2): Rename to...
12801 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
12803 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12805 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
12807 * asan.c (instrument_strlen_call): Do not instrument first byte
12808 in strlen if already instrumented.
12810 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12812 * config/arm/arm.opt (mwords-little-endian): Delete.
12813 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12814 of TARGET_LITTLE_WORDS.
12815 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12816 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12818 * doc/invoke.texi: Remove references to -mwords-little-endian.
12820 2014-07-07 Jakub Jelinek <jakub@redhat.com>
12822 * expmed.c (struct init_expmed_rtl): Change all fields but
12823 pow2 and cint from struct rtx_def to rtx.
12824 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12825 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
12828 2014-07-06 Marek Polacek <polacek@redhat.com>
12831 * doc/invoke.texi: Document -Wsizeof-array-argument.
12833 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
12835 * wide-int.h (wide_int_storage): Change declaration from struct
12838 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
12840 * cgraph.c (cgraph_create_indirect_edge): Update call of
12841 get_polymorphic_call_info.
12842 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12843 (possible_polymorphic_call_targets): Add parameter call.
12844 (decl_maybe_in_construction_p): New predicate.
12845 (get_polymorphic_call_info): Add parameter call;
12846 use decl_maybe_in_construction_p.
12847 * gimple-fold.c (fold_gimple_assign): Update use of
12848 possible_polymorphic_call_targets.
12849 (gimple_fold_call): Likewise.
12850 * ipa-prop.c: Inlcude calls.h
12851 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12852 (param_type_may_change_p): New predicate.
12853 (detect_type_change_from_memory_writes): Break out from ...
12854 (detect_type_change): ... this one; use param_type_may_change_p.
12855 (detect_type_change_ssa): Use param_type_may_change_p.
12856 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12858 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
12861 * config/arm/arm-protos.h (arm_legitimate_address_p,
12862 arm_is_constant_pool_ref): Add prototypes.
12863 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12864 (arm_is_constant_pool_ref) New function.
12865 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12866 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12867 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12868 operand. Remove pool_range and neg_pool_range attributes.
12869 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12870 pool_range and neg_pool_range attributes.
12871 * config/arm/constraints.md (Uh): New constraint.
12872 (Uq): Don't allow constant pool references.
12874 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
12876 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12877 (move_lo_quad_internal_be_<mode>): Likewise.
12878 (move_lo_quad_<mode>): Convert to define_expand.
12879 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12880 (aarch64_simd_move_hi_quad_be_<mode>): New.
12881 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12882 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12883 (aarch64_combinez_be<mode>): New.
12884 (aarch64_combine<mode>): Convert to define_expand.
12885 (aarch64_combine_internal<mode>): New.
12886 (aarch64_simd_combine<mode>): Remove bogus RTL description.
12888 2014-07-04 Tom de Vries <tom@codesourcery.com>
12890 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12891 combination of earlyclobber and read/write modifiers.
12893 2014-07-04 Tom de Vries <tom@codesourcery.com>
12895 * config/aarch64/aarch64-simd.md
12896 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12898 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
12901 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12903 2014-07-04 Jakub Jelinek <jakub@redhat.com>
12905 PR middle-end/61654
12906 * cgraphunit.c (expand_thunk): Call free_dominance_info.
12908 PR tree-optimization/61684
12909 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12910 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12912 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12913 Kito Cheng <kito@0xlab.org>
12914 Monk Chiang <sh.chiang04@gmail.com>
12916 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12917 (nds32_symbol_load_store_p): Move to ...
12918 (nds32_fp_as_gp_check_available): Move to ...
12919 * config/nds32/nds32-fp-as-gp.c: ... here.
12920 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12921 extern declaration.
12923 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12924 Kito Cheng <kito@0xlab.org>
12925 Monk Chiang <sh.chiang04@gmail.com>
12927 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12928 (nds32_expand_store_multiple): Move to ...
12929 (nds32_expand_movmemqi): Move to ...
12930 * config/nds32/nds32-memory-manipulation.c: ... here.
12932 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12933 Kito Cheng <kito@0xlab.org>
12934 Monk Chiang <sh.chiang04@gmail.com>
12936 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
12937 (nds32_output_casesi_pc_relative): Move to ...
12938 (nds32_output_casesi): Move to ...
12939 (nds32_mem_format): Move to ...
12940 (nds32_output_16bit_store): Move to ...
12941 (nds32_output_16bit_load): Move to ...
12942 (nds32_output_32bit_store): Move to ...
12943 (nds32_output_32bit_load): Move to ...
12944 (nds32_output_32bit_load_s): Move to ...
12945 (nds32_output_stack_push): Move to ...
12946 (nds32_output_stack_pop): Move to ...
12947 * config/nds32/nds32-md-auxiliary.c: ... here.
12949 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12950 Ling-Hua Tseng <uranus@tinlans.org>
12952 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12953 the purpose of this file.
12955 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12956 Kito Cheng <kito@0xlab.org>
12957 Monk Chiang <sh.chiang04@gmail.com>
12959 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12960 (nds32_address_cost): Move implementation to ...
12961 * config/nds32/nds32-cost.c: ... here.
12962 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12963 (nds32_address_cost_impl): Declare.
12965 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12966 Kito Cheng <kito@0xlab.org>
12967 Monk Chiang <sh.chiang04@gmail.com>
12969 * config/nds32/nds32.c
12970 (nds32_consecutive_registers_load_store_p): Move to ...
12971 (nds32_valid_multiple_load_store): Move to ...
12972 (nds32_valid_stack_push_pop): Move to ...
12973 (nds32_can_use_bclr_p): Move to ...
12974 (nds32_can_use_bset_p): Move to ...
12975 (nds32_can_use_btgl_p): Move to ...
12976 (nds32_can_use_bitci_p): Move to ...
12977 * config/nds32/nds32-predicates.c: ... here.
12979 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12980 Kito Cheng <kito@0xlab.org>
12981 Monk Chiang <sh.chiang04@gmail.com>
12983 * config/nds32/nds32.c
12984 (nds32_expand_builtin_null_ftype_reg): Move to ...
12985 (nds32_expand_builtin_reg_ftype_imm): Move to ...
12986 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12987 (nds32_init_builtins): Move implementation to ...
12988 (nds32_expand_builtin): Move implementation to ...
12989 * config/nds32/nds32-intrinsic.c: ... here.
12990 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12991 (nds32_expand_builtin_impl): Declare.
12993 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12994 Kito Cheng <kito@0xlab.org>
12995 Monk Chiang <sh.chiang04@gmail.com>
12997 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12998 (nds32_emit_section_tail_template): Move to ...
12999 (nds32_emit_isr_jmptbl_section): Move to ...
13000 (nds32_emit_isr_vector_section): Move to ...
13001 (nds32_emit_isr_reset_conten): Move to ...
13002 (nds32_check_isr_attrs_conflict): Move to ...
13003 (nds32_construct_isr_vectors_information): Move to ...
13004 (nds32_asm_file_start): Move implementation to ...
13005 (nds32_asm_file_end): Move implementation to ...
13006 * config/nds32/nds32-isr.c: ... here.
13007 * config/nds32/nds32-protos.h
13008 (nds32_check_isr_attrs_conflict): Declare.
13009 (nds32_construct_isr_vectors_information): Declare.
13010 (nds32_asm_file_start_for_isr): Declare.
13011 (nds32_asm_file_end_for_isr): Declare.
13013 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
13014 Kito Cheng <kito@0xlab.org>
13015 Monk Chiang <sh.chiang04@gmail.com>
13017 * config.gcc (nds32*): Add new modules to extra_objs.
13018 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
13019 (nds32be-*-*): Likewise.
13020 * config/nds32/nds32-cost.c: New file.
13021 * config/nds32/nds32-fp-as-gp.c: New file.
13022 * config/nds32/nds32-intrinsic.c: New file.
13023 * config/nds32/nds32-isr.c: New file.
13024 * config/nds32/nds32-md-auxiliary.c: New file.
13025 * config/nds32/nds32-memory-manipulation.c: New file.
13026 * config/nds32/nds32-pipelines-auxiliary.c: New file.
13027 * config/nds32/nds32-predicates.c: New file.
13028 * config/nds32/t-nds32: New file.
13030 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13032 PR tree-optimization/61682
13033 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
13034 using cases and when one of the operands is equal to 1.
13036 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
13038 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
13039 ashr<mode>3): Correct mode of operands[2].
13040 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
13041 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
13042 Correct mode of operands[2]. Fix split condition.
13044 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
13046 * arm.md (arch): Add armv6_or_vfpv3.
13047 (arch_enabled): Add test for the above.
13048 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
13050 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
13052 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13054 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
13055 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
13056 HWI 1 and negate the unsigned value.
13057 * expmed.c (expand_sdiv_pow2): For modes wider than word always
13058 use AND instead of shift.
13059 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
13061 2014-07-03 Marek Polacek <polacek@redhat.com>
13063 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
13064 (-fsanitize=float-divide-by-zero): Move to the table with
13065 -fsanitize=undefined suboptions.
13066 (-fsanitize=float-cast-overflow): Likewise.
13068 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
13070 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
13071 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
13074 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13076 * loop-invariant.c (struct invariant): Add a new member: eqno;
13077 (find_identical_invariants): Update eqno;
13078 (create_new_invariant): Init eqno;
13079 (get_inv_cost): Compute comp_cost with eqno;
13081 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
13083 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
13084 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
13085 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
13086 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
13087 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
13089 2014-07-02 Christian Bruel <christian.bruel@st.com>
13093 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
13094 (make_preds_opaque): Delete.
13095 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
13096 (commit_mode_sets): New function.
13097 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
13098 Process all modes at once.
13099 * basic-block.h (pre_edge_lcm_avs): Declare.
13100 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
13101 Call clear_aux_for_edges. Fix comments.
13102 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
13103 (pre_edge_rev_lcm): Idem.
13104 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
13106 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
13107 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13109 * config/i386/i386.c (x96_emit_mode_set): Idem.
13110 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
13111 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
13112 (fpscr_toggle) Disallow from delay slot.
13113 * target.def (emit_mode_set): Add prev_mode parameter.
13114 * doc/tm.texi: Regenerate.
13116 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13118 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
13121 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13123 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
13124 vtable_pointer_value_to_vtable): Constify.
13125 (contains_polymorphic_type_p): Declare.
13126 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
13127 vtable_pointer_value_to_vtable): Constify.
13128 (contains_polymorphic_type_p): New predicate.
13129 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
13131 (ipa_set_ancestor_jf): Likewise.
13132 (detect_type_change): Return false in easy cases.
13133 (compute_complex_assign_jump_func): Require type to contain
13135 (compute_known_type_jump_func): Likewise.
13137 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
13139 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
13141 (type_in_anonymous_namespace_p): Constify argument.
13142 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
13143 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
13144 (main_odr_variant): New function.
13145 (hash_type_name): Make static; update assert; do not ICE on
13147 (types_same_for_odr): Bring here from tree.c; simplify and remove
13148 old structural comparing code that doesn't work for templates.
13149 (odr_hasher::equal): Update assert.
13150 (add_type_duplicate): Return true when bases should be computed;
13151 replace incomplete loader by complete; do not output duplicated
13152 warnings; do not ICE on non-records; set odr_violated flag.
13153 (get_odr_type): Be ready to replace incomplete type by complete
13154 one; work on ODR variants instead of main variants; reorder item
13155 in array so bases have still smaller indexes.
13156 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13157 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13159 2014-07-01 Cary Coutant <ccoutant@google.com>
13161 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13163 (resolve_addr_in_expr): When replacing the rtx in a location list
13164 entry, get a new address table entry.
13165 (dwarf2out_finish): Call index_location_lists even if there are no
13166 addr_index_table entries yet.
13168 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13170 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13171 change for not being obvious.
13173 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13175 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13178 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13180 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13181 (vcagt_f64): Likewise.
13182 (vcale_f64): Likewise.
13183 (vcaled_f64): Likewise.
13184 (vcales_f32): Likewise.
13185 (vcalt_f64): Likewise.
13186 (vcaltd_f64): Likewise.
13187 (vcalts_f32): Likewise.
13189 2014-07-01 Marek Polacek <polacek@redhat.com>
13191 * doc/invoke.texi: Document -Wint-conversion.
13193 2014-07-01 Marek Polacek <polacek@redhat.com>
13196 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13198 2014-07-01 Martin Liska <mliska@suse.cz>
13200 IPA REF alias refactoring
13201 * cgraph.h (iterate_direct_aliases): New function.
13202 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13203 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13204 FOR_EACH_ALIAS added.
13205 (cgraph_for_node_and_aliases): Likewise.
13206 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13207 * ipa-inline.c (reset_edge_caches): Likewise.
13208 (update_caller_keys): Likewise.
13209 * trans-mem.c (ipa_tm_execute): Likewise.
13210 *varpool.c (varpool_analyze_node): Likewise.
13211 (varpool_for_node_and_aliases): Likewise.
13212 * ipa-ref.h (first_alias): New function.
13213 (last_alias): Likewise.
13214 (has_aliases_p): Likewise.
13215 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13216 is sensitive to IPA_REF_ALIASes.
13217 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13218 are put at the beginning of the list.
13219 (symtab_node::iterate_direct_aliases): New function.
13221 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13224 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13226 (write_ts_type_common_tree_pointers): Do not stream fields not set
13227 for incomplete types; do not stream duplicated fields for variants;
13228 sanity check that variant and type match.
13229 (write_ts_type_non_common_tree_pointers): Likewise.
13230 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13231 TYPE_SIZE whether type is complete.
13232 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13233 write_ts_type_common_tree_pointers
13234 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13236 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13238 * var-tracking.c (add_stores): Return instead of asserting if old
13239 and new values for conditional store are the same.
13241 2014-06-30 Richard Henderson <rth@redhat.com>
13245 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13246 the cfg if there were any changes.
13247 * passes.def: Revert move of peephole2 after reorder_blocks;
13248 move duplicate_computed_gotos before peephole2.
13250 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13252 * except.c (emit_note_eh_region_end): New helper function.
13253 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13254 emit EH_REGION_END note.
13255 * jump.c (cleanup_barriers): Do not split a call and its
13256 corresponding CALL_ARG_LOCATION note.
13258 2014-06-30 Jeff Law <law@redhat.com>
13260 PR tree-optimization/61607
13261 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13262 deeper into the SSA_NAME_VALUE chain.
13264 2014-06-30 Marek Polacek <polacek@redhat.com>
13266 * convert.c (convert_to_integer): Don't instrument conversions if the
13267 function has no_sanitize_undefined attribute.
13268 * ubsan.c: Don't run the ubsan pass if the function has
13269 no_sanitize_undefined attribute.
13271 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13273 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13274 -fsanitize=undefined suboptions.
13276 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13278 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13279 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13280 against bigendian and adjust indices.
13282 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13284 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13286 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13289 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13290 Add alternative; make early clobber. Adjust both split patterns
13291 to use operand 0 as the working register.
13293 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13295 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13296 as ira_object_id_map might be NULL, or 1.
13298 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13300 * loop-invariant.c (get_inv_cost): Handle register class.
13301 (gain_for_invariant): Check the register pressure of the inv
13302 and its overlapped register class, other than all.
13304 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13306 * doc/invoke.texi (Optimize Options): Fix descriptions of
13307 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13309 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13311 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13314 2014-06-29 Tobias Grosser <tobias@grosser.es>
13317 * graphite-isl-ast-to-gimple.c: Add missing guards.
13319 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13321 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13322 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13323 * flag-types.h: Add new enum fgraphite_generator.
13324 * graphite-isl-ast-to-gimple.c: New.
13325 * graphite-isl-ast-to-gimple.h: New.
13326 * graphite.c (graphite_transform_loops): Add choice of Graphite
13327 code generator, which depends on flag_graphite_code_gen.
13329 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13331 * graphite-dependences.c (subtract_commutative_associative_deps):
13332 Add NULL checking of the following variables: must_raw_no_source,
13333 may_raw_no_source, must_war_no_source, may_war_no_source,
13334 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13335 must_war, may_war, must_waw, may_waw.
13337 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13339 * graphite-clast-to-gimple.c: gloog is renamed to
13340 graphite_regenerate_ast_cloog. gloog_error is renamed to
13341 graphite_regenerate_error.
13342 * graphite-clast-to-gimple.h: The definition of the struct
13343 bb_pbb_def is moved to graphite-htab.h.
13344 Add inclusion of the hash-table.h.
13345 * graphite-htab.h: The declaration of the function gloog is moved
13346 to graphite-clast-to-gimple.h and renamed to
13347 graphite_regenerate_ast_cloog.
13348 * graphite.c (graphite_transform_loops): gloog is renamed
13349 to graphite_regenerate_ast_cloog.
13351 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13353 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13355 (write_ts_type_common_tree_pointers): Do not stream fields not set
13356 for incomplete types; do not stream duplicated fields for variants;
13357 sanity check that variant and type match.
13358 (write_ts_type_non_common_tree_pointers): Likewise.
13359 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13360 TYPE_SIZE whether type is complete.
13361 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13362 write_ts_type_common_tree_pointers
13363 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13365 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13367 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13369 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13371 * tree-inline.c (remap_type_1): Do not duplicate fields
13372 that are shared in between type and its main variant.
13374 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13376 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13378 (ipa_set_ancestor_jf) Likewise.
13379 (check_stmt_for_type_change): Check that we work on main variant.
13380 (detect_type_change): Look into main variant.
13381 (compute_known_type_jump_func): Check that main variant has BINFO.
13383 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13385 * ipa-devirt.c (set_type_binfo): New function.
13386 (add_type_duplicate): Use it.
13387 (get_odr_type): Sanity check that binfos points to main variants.
13388 (get_class_context): Be sure the context's outer_type is main variant.
13389 (contains_type_p): Walk main variant.
13390 (get_polymorphic_call_info_for_decl): Set outer_type to be
13392 (get_polymorphic_call_info): Likewise.
13393 (possible_polymorphic_call_targets): Sanity check that we operate
13396 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13398 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13400 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13402 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13403 accidental change due to wide-int branch merge.
13405 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13407 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13408 compressed debug support.
13409 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13410 * configure: Regenerate.
13411 * config.in: Regenerate.
13412 * common.opt (compressed_debug_sections): New enum.
13413 (gz, gz=): New options.
13414 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13415 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13416 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13417 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13418 LINK_COMPRESS_DEBUG_SPEC.
13419 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13420 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13421 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13422 (Debugging Options): Document -gz[=type].
13424 2014-06-27 Martin Jambor <mjambor@suse.cz>
13427 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13428 args_to_skip, use those from node instead. Copy args_to_skip and
13429 combined_args_to_skip from node to the new thunk.
13430 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13431 (cgraph_create_virtual_clone): Moved computation of
13432 combined_args_to_skip...
13433 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13435 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13437 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13438 redundant diagnostic machinary.
13440 2014-06-27 Richard Biener <rguenther@suse.de>
13442 * tree-ssa-math-opts.c (bswap_replace): Fix
13443 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13445 2014-06-27 Martin Liska <mliska@suse.cz>
13447 * gimple.h (gimple_location_safe): New function introduced.
13448 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13449 of gimple_location_safe replaces gimple_location.
13450 (gimple_fold_call): Likewise.
13451 * ipa-devirt.c (ipa_devirt): Likewise.
13452 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13453 * ipa.c (walk_polymorphic_call_targets): Likewise.
13454 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13456 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13458 PR tree-optimization/57233
13459 PR tree-optimization/61299
13460 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13462 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13463 would be lowered to scalar shifts, check if corresponding
13464 shifts and vector BIT_IOR_EXPR are supported and don't lower
13465 or lower just to narrower vector type in that case.
13466 * expmed.c (expand_shift_1): Fix up handling of vector
13467 shifts and rotates.
13469 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13472 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13474 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13476 * doc/invoke.texi (-fsemantic-interposition): Document.
13477 * common.opt (fsemantic-interposition): New flag.
13478 * varasm.c (decl_replaceable_p): Use it.
13480 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13483 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13484 extraction other than index 3.
13486 2014-06-26 Teresa Johnson <tejohnson@google.com>
13488 * doc/invoke.texi: Fix typo.
13489 * dumpfile.c: Add support for documented -fdump-* options
13490 optimized/missed/note/optall.
13492 2014-06-26 Martin Jambor <mjambor@suse.cz>
13494 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13495 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13496 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13497 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13498 * opts.c (default_options_optimization): Set
13499 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13500 * doc/invoke.texi (allow-load-data-races)
13501 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13502 (allow-store-data-races): Document the new default.
13504 2014-06-26 Martin Jambor <mjambor@suse.cz>
13506 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13507 renamed to ipa_impossible_devirt_target. Fix typo.
13508 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13509 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13510 ipa_impossible_devirt_target.
13512 2014-06-26 Richard Biener <rguenther@suse.de>
13514 PR tree-optimization/61607
13515 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
13516 explaining why we restrict copies on loop depth.
13517 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13519 (record_equivalences_from_phis): Instead add it here.
13521 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
13523 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
13524 (LTO_WRAPPER_OBJS): New variable.
13525 (lto-wrapper$(exeext)): Use it.
13526 * collect2.c: Include "collect-utils.h".
13527 (verbose, debug): Remove variables.
13528 (at_file_supplied): No longer static.
13529 (tool_name): New variable.
13530 (do_wait, fork_execute, maybe_unlink): Don't declare.
13531 (tool_cleanup): No longer static.
13532 (notice): Remove function.
13533 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
13534 fork_execute calls.
13535 (collect_wait, do_wait, collect_execute): Remove functions.
13536 (maybe_unlink): No longer static.
13537 * collect2.h (verbose, debug): Don't declare.
13538 (at_file_supplied): Declare.
13539 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
13541 (collect_execute): Replace with implementation from collect2, plus a
13542 new arg use_atfile. All callers changed.
13543 (collect_wait): Replace with implementation from collect2.
13544 (maybe_unlink_file): Remove function.
13545 (fork_execute): Replace with implementation from collect2, plus a
13546 new arg use_atfile. All callers changed.
13547 (do_wait): Add call to utils_cleanup to the error path.
13548 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
13549 (tool_cleanup): Adjust declarations.
13550 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
13551 * tlink.c: Include "collect-utils.h".
13552 (tlink_execute): New arg use_atfile. All callers changed.
13553 (tlink_init, tlink_execute): Remove declarations.
13555 * collect-utils.c (save_temps): New variable.
13556 (do_wait): Use it instead of debug. Use fatal_error.
13557 * collect-utils.h (save_temps): Declare.
13558 * collect2.c (verbose): Rename from vflag. All uses changed.
13559 (tool_cleanup): New function, copied from collect_atexit.
13560 (collect_atexit, handler): Just call it.
13561 * collect2.h (verbose): Declaration renamed from vflag.
13562 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
13565 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
13566 (lto-wrapper$(exeext)): Link with collect-utils.o.
13567 * collect-utils.c: New file.
13568 * collect-utils.h: New file.
13569 * lto-wrapper.c: Include "collect-utils.h".
13570 (args_name): Delete variable.
13571 (tool_name): New variable.
13572 (tool_cleanup): New function.
13573 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
13574 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
13575 (fork_execute): Remove functions.
13577 2014-06-26 Nick Clifton <nickc@redhat.com>
13579 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
13581 * doc/extend.texi (Function Attributes): Fix typo in description
13582 of RX vector attribute.
13584 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13586 * config.gcc (supported_defaults): Error when passing either
13587 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
13589 2014-06-26 Richard Biener <rguenther@suse.de>
13591 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13592 propagating volatile pointers.
13594 2014-06-26 Richard Biener <rguenther@suse.de>
13596 PR tree-optimization/61607
13597 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
13598 loop if we redirected its latch edge.
13599 (thread_block_1): Do not cancel loops prematurely.
13601 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
13603 * toplev.c (backend_init_target): Move init_emit_regs and
13605 (backend_init) ... here; skip ira_init_once and backend_init_target.
13606 (target_reinit) ... and here; clear
13607 this_target_rtl->lang_dependent_initialized.
13608 (lang_dependent_init_target): Clear
13609 this_target_rtl->lang_dependent_initialized;
13610 break out rtl initialization to ...
13611 (initialize_rtl): ... here; call also backend_init_target
13613 * toplev.h (initialize_rtl): New function.
13614 * function.c: Include toplev.h
13615 (init_function_start): Call initialize_rtl.
13616 * rtl.h (target_rtl): Add target_specific_initialized,
13617 lang_dependent_initialized.
13619 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
13620 Jakub Jelinek <jakub@redhat.com>
13622 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
13624 2014-06-25 Tom de Vries <tom@codesourcery.com>
13626 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
13628 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13630 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
13631 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
13632 Issue a strict overflow warning if appropriate.
13634 2014-06-25 Martin Liska <mliska@suse.cz>
13636 IPA REF refactoring
13637 * Makefile.in: Removed header file (ipa-ref-inline.h).
13638 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
13640 (cgraph_speculative_call_info): Likewise.
13641 (cgraph_for_node_thunks_and_aliases): Likewise.
13642 (cgraph_for_node_and_aliases): Likewise.
13643 (verify_cgraph_node): Likewise.
13644 * cgraph.h: Batch of IPA REF functions become member functions of
13645 symtab_node: add_reference, maybe_add_reference, clone_references,
13646 clone_referring, clone_reference, find_reference,
13647 remove_stmt_references, remove_all_references,
13648 remove_all_referring, dump_references, dump_referring,
13649 has_alias_p, iterate_reference, iterate_referring.
13650 * cgraphbuild.c (record_reference): New IPA REF function used.
13651 (record_type_list): Likewise.
13652 (record_eh_tables): Likewise.
13653 (mark_address): Likewise.
13654 (mark_load): Likewise.
13655 (mark_store): Likewise.
13656 (pass_build_cgraph_edges): Likewise.
13657 (rebuild_cgraph_edge): Likewise.
13658 (cgraph_rebuild_references): Likewise.
13659 (pass_remove_cgraph_callee_edges): Likewise.
13660 * cgraphclones.c (cgraph_clone_node): Likewise.
13661 (cgraph_create_virtual_clone): Likewise.
13662 (cgraph_materialize_clone): Likewise.
13663 (cgraph_materialize_all_clones): Likewise.
13664 * cgraphunit.c (cgraph_reset_node): Likewise.
13665 (cgraph_reset_node): Likewise.
13666 (analyze_function): Likewise.
13667 (assemble_thunks_and_aliases): Likewise.
13668 (expand_function): Likewise.
13669 * ipa-comdats.c (propagate_comdat_group): Likewise.
13670 (enqueue_references): Likewise.
13671 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
13672 (create_specialized_node): Likewise.
13673 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
13674 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
13675 * ipa-inline.c (reset_edge_caches): Likewise.
13676 (update_caller_keys): Likewise.
13677 (execute): Likewise.
13678 * ipa-prop.c (remove_described_reference): Likewise.
13679 (propagate_controlled_uses): Likewise.
13680 (ipa_edge_duplication_hook): Likewise.
13681 (ipa_modify_call_arguments): Likewise.
13682 * ipa-pure-const.c (propagate_pure_const): Likewise.
13683 * ipa-ref-inline.h: Header file removed, functions moved
13684 to symtab_node class.
13685 * ipa-ref.c (remove_reference): New class member function.
13686 (cannot_lead_to_return): New class member function.
13687 (referring_ref_list): Likewise.
13688 (referred_ref_list): Likewise.
13689 Rest of functions moved to symtab_node class.
13690 * ipa-ref.h: New member functions remove_reference,
13691 cannot_lead_to_return, referring_ref_list, referred_ref_list added
13693 ipa_ref_list class has new member functions: first_reference,
13694 first_referring, clear, nreferences.
13695 * ipa-reference.c (analyze_function): New IPA REF function used.
13696 (write_node_summary_p): Likewise.
13697 (ipa_reference_write_optimization_summary): Likewise.
13698 * ipa-split.c (split_function): Likewise.
13699 * ipa-utils.c (ipa_reverse_postorder): Likewise.
13700 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
13701 (function_and_variable_visibility): Likewise.
13702 * ipa.c (has_addr_references_p): Likewise.
13703 (process_references): Argument type changed.
13704 (symtab_remove_unreachable_nodes): New IPA REF function used.
13705 (process_references): Likewise.
13706 (set_writeonly_bit): Likewise.
13707 * lto-cgraph.c: Implementation of new symtab_node member functions
13708 that uses new IPA REF functions.
13709 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
13711 * lto-streamer-out.c (output_symbol_p): Likewise.
13712 * lto-streamer.h (referenced_from_this_partition_p): Argument type
13714 * symtab.c: Implementation of new IPA REF API.
13715 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
13716 (ipa_tm_create_version): Likewise.
13717 (ipa_tm_execute): Likewise.
13718 * tree-emutls.c (gen_emutls_addr): Likewise.
13719 * tree-inline.c (copy_bb): Likewise.
13720 (delete_unreachable_blocks_update_callgraph): Likewise.
13721 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
13722 (varpool_for_node_and_aliases): Likewise.
13724 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13726 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
13728 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13731 * fold-const.c (fold_checksum_tree): Use a hash_table of const
13732 tree_node * instead of tree_node *.
13734 (print_fold_checksum): Likewise.
13735 (fold_check_failed): Likewise.
13736 (debug_fold_checksum): Likewise.
13737 (fold_build1_stat_loc): Likewise.
13738 (fold_build2_stat_loc): Likewise.
13739 (fold_build3_stat_loc): Likewise.
13740 (fold_build_call_array_loc): Likewise.
13742 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
13744 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
13745 implementation with call to...
13746 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
13748 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
13751 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
13753 PR tree-optimization/57742
13754 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
13755 after replacing the statement.
13757 2014-06-25 Nick Clifton <nickc@redhat.com>
13759 * config/v850/v850.c (GHS_default_section_names): Change to const
13761 (GHS_current_section_names): Likewise.
13762 (v850_insert_attributes): Do not build strings, just assign the
13763 names directly. Change the type of 'chosen_section' to const
13765 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
13766 directly to the array entry.
13767 * config/v850/v850.h (GHS_default_section_names): Change to const
13769 (GHS_current_section_names): Likewise.
13771 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13773 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
13774 (LANG_HOOKS_DECLS): Add it.
13775 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
13777 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
13778 * langhooks.h (struct lang_hooks_for_decls): Add
13779 omp_clause_linear_ctor hook.
13780 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
13781 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
13782 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
13783 combined simd loop use omp_clause_linear_ctor hook.
13785 2014-06-24 Cong Hou <congh@google.com>
13787 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
13788 pattern recognition.
13789 (type_conversion_p): PROMOTION is true if it's a type promotion
13790 conversion, and false otherwise. Return true if the given expression
13791 is a type conversion one.
13792 * tree-vectorizer.h: Adjust the number of patterns.
13793 * tree.def: Add SAD_EXPR.
13794 * optabs.def: Add sad_optab.
13795 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13796 * expr.c (expand_expr_real_2): Likewise.
13797 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13798 * gimple.c (get_gimple_rhs_num_ops): Likewise.
13799 * optabs.c (optab_for_tree_code): Likewise.
13800 * tree-cfg.c (estimate_operator_cost): Likewise.
13801 * tree-ssa-operands.c (get_expr_operands): Likewise.
13802 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13803 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13804 * doc/generic.texi: Add document for SAD_EXPR.
13805 * doc/md.texi: Add document for ssad and usad.
13807 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13809 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13810 qualification in cast.
13812 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
13814 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13815 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13816 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13817 (tree_function_decl): ... here.
13818 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13819 streaming of vindex to ...
13820 (write_ts_function_decl_tree_pointers): ... here.
13821 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13822 Do not stream DECL_VINDEX.
13823 (lto_input_ts_function_decl_tree_pointers): Stream it here.
13825 2014-06-24 Catherine Moore <clm@codesourcery.com>
13826 Sandra Loosemore <sandra@codesourcery.com>
13828 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13829 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13830 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13832 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13834 * doc/invoke.texi (Warning Options): Remove duplicated
13835 -Wmaybe-uninitialized.
13837 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13839 PR tree-optimization/57742
13840 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13841 (handle_builtin_malloc, handle_builtin_memset): New functions.
13842 (strlen_optimize_stmt): Call them.
13843 * passes.def: Move strlen after loop+dom but before vrp.
13845 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13848 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13849 model family 6 CPU with has_longmode never use a CPU without
13852 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
13855 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13858 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13860 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13861 * dominance.c (iterate_fix_dominators): Use hash_map instead of
13863 * hash-map.h: New file.
13864 * ipa-comdats.c: Use hash_map instead of pointer_map.
13866 * lto-section-out.c: Adjust.
13867 * lto-streamer.h: Replace pointer_map with hash_map.
13868 * symtab.c (verify_symtab): Likewise.
13869 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13870 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13871 * tree-streamer.h: Likewise.
13872 * tree-streamer.c: Adjust.
13873 * pointer-set.h: Remove pointer_map.
13875 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13877 * hash-table.h: Add a template arg to choose between storing values
13878 and storing pointers to values, and then provide partial
13879 specializations for both.
13880 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13881 should store, not the type values should point to.
13882 * tree-into-ssa.c (var_info_hasher): Likewise.
13883 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13884 * tree-complex.c: Adjust.
13885 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13886 table instead of int_tree_map *.
13887 * tree-parloops.c: Adjust.
13888 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13889 type is being stored.
13890 * tree-vectorizer.c: Adjust.
13892 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13894 * hash-table.h: Remove a layer of indirection from hash_table so that
13895 it contains the hash table's data instead of a pointer to the data.
13896 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13897 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13898 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13899 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13900 fold-const.c, gcse.c, ggc-common.c,
13901 gimple-ssa-strength-reduction.c, gimplify.c,
13902 graphite-clast-to-gimple.c, graphite-dependences.c,
13903 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13904 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13905 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13906 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13907 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13908 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13909 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13910 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13911 tree-ssa-live.c, tree-ssa-loop-im.c,
13912 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13913 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13914 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13915 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13916 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13917 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13918 vtable-verify.c, vtable-verify.h: Adjust.
13920 2014-06-24 Richard Biener <rguenther@suse.de>
13922 PR tree-optimization/61572
13923 * tree-ssa-sink.c (statement_sink_location): Do not sink
13924 loads from hard registers.
13926 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13928 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13929 not mentioned in clauses use private clause if the iterator is
13930 declared in #pragma omp for simd, and when adding lastprivate
13931 instead, add it to the outer #pragma omp for too. Diagnose
13932 if the variable is private in outer context. For simd collapse > 1
13933 loops, replace all iterators with temporaries.
13934 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13935 same even in collapse > 1 loops.
13937 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13938 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13940 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13941 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13943 (gimplify_adjust_omp_clauses): Likewise.
13944 * omp-low.c (lower_rec_simd_input_clauses,
13945 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13946 safelen the same as safelen(1).
13947 * tree-nested.c (convert_nonlocal_omp_clauses,
13948 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
13949 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13950 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13951 Fixup handling of GIMPLE_OMP_TARGET.
13952 (convert_tramp_reference_stmt, convert_gimple_call): Handle
13955 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
13957 PR tree-optimization/61554
13958 * tree-ssa-propagate.c: Include "bitmap.h".
13959 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13960 properly update constructor/destructor.
13961 (substitute_and_fold_dom_walker::before_dom_children):
13962 Remove call to gimple_purge_dead_eh_edges, add bb->index to
13963 need_eh_cleaup instead.
13964 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13967 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13969 * varpool.c (dump_varpool_node): Dump used_by_single_function.
13970 * tree-pass.h (make_pass_ipa_single_use): New pass.
13971 * cgraph.h (used_by_single_function): New flag.
13972 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13974 * passes.def (pass_ipa_single_use): Scedule.
13975 * ipa.c (BOTTOM): New macro.
13976 (meet): New function
13977 (propagate_single_user): New function.
13978 (ipa_single_use): New function.
13979 (pass_data_ipa_single_use): New pass.
13980 (pass_ipa_single_use): New pass.
13981 (pass_ipa_single_use::gate): New gate.
13982 (make_pass_ipa_single_use): New function.
13984 2014-06-23 Kai Tietz <ktietz@redhat.com>
13987 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13988 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13990 2014-06-23 Richard Biener <rguenther@suse.de>
13992 * tree-ssa-loop.c (gate_loop): New function.
13993 (pass_tree_loop::gate): Call it.
13994 (pass_data_tree_no_loop, pass_tree_no_loop,
13995 make_pass_tree_no_loop): New.
13996 * tree-vectorizer.c: Include tree-scalar-evolution.c
13997 (pass_slp_vectorize::execute): Initialize loops and SCEV if
13999 (pass_slp_vectorize::clone): New method.
14000 * timevar.def (TV_TREE_NOLOOP): New.
14001 * tree-pass.h (make_pass_tree_no_loop): Declare.
14002 * passes.def (pass_tree_no_loop): New pass group with
14005 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
14008 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
14009 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
14011 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14013 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
14014 "yes" where needed.
14016 2014-06-23 Alan Modra <amodra@gmail.com>
14019 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
14020 to zero on debug statements.
14022 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14025 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
14026 Ignore third operand if present by marking qualifier_internal.
14028 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
14030 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
14032 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
14033 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
14034 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
14035 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
14036 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
14037 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
14038 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
14039 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
14040 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
14041 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
14042 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
14043 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
14044 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
14045 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
14046 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
14047 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
14048 logic in GCC vector extensions
14050 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
14051 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
14052 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
14053 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
14054 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
14055 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
14056 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
14057 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
14058 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
14059 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
14061 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
14063 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
14066 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
14067 (vget_low_s64): Use __GET_LOW macro.
14068 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
14069 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
14070 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
14071 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
14072 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
14074 (vcombine_s64): Use GCC vector extensions; remove cast.
14075 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
14076 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
14077 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
14078 Fix type signature; remove cast.
14080 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
14083 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
14085 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
14087 (BUILTIN_VD1): New.
14088 (BUILTIN_VD_RE): Remove.
14089 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
14090 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
14091 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
14092 variant but not df.
14093 (vreinterpretv1df*, vreinterpret*v1df): New.
14094 (vreinterpretdf*, vreinterpret*df): Remove.
14095 * config/aarch64/aarch64-simd.md (aarch64_create,
14096 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
14097 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
14099 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
14100 (vcreate_f64): Remove cast, use v1df builtin.
14101 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
14102 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
14103 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
14104 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
14105 vmov_n_f64, vst1_f64): Use gcc vector extensions.
14106 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
14107 add range check using __builtin_aarch64_im_lane_boundsi.
14108 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
14109 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
14110 type signature, use gcc vector extensions.
14111 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
14112 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
14113 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
14114 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
14115 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
14116 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
14117 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
14118 vreinterpret_u64_f64): Use v1df builtin not df.
14120 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
14122 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
14125 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
14127 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
14130 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14132 * loop-invariant.c (pre_check_invariant_p): New function.
14133 (find_invariant_insn): Call pre_check_invariant_p.
14135 2014-06-22 Richard Henderson <rth@redhat.com>
14138 * compare-elim.c (struct comparison): Add eh_note.
14139 (find_comparison_dom_walker::before_dom_children): Don't eliminate
14140 a redundant comparison in a different EH region. Purge EH edges if
14143 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14145 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14146 (var_shift): Use it.
14147 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14148 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14149 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14150 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14151 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14152 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14153 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14154 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14155 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14156 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14157 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14158 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14159 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14160 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14161 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14162 *rotldi3_internal15be): Use the new attribute. Merge register and
14163 integer alternatives.
14165 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14167 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14168 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14169 split, *ashrdi3_internal3 and split): Delete, merge into...
14170 (ashr<mode>3): New expander.
14171 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14172 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14174 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14176 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14177 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14178 *rotldi3_internal3 and split): Delete, merge into...
14179 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14180 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14181 Use "rotlw" extended mnemonic.
14183 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14185 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14186 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14187 and split, *ashldi3_internal3 and split): Delete, merge into...
14188 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14189 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14191 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14193 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14194 (lshrsi3, two anonymous define_insns and define_splits,
14195 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14196 *lshrdi3_internal3 and split): Delete, merge into...
14197 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14198 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14200 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14202 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14203 Remove "O" alternative.
14205 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14207 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14208 (mips_move_from_gpr_cost): Likewise.
14209 (mips_register_move_cost): Update accordingly.
14210 (mips_secondary_reload_class): Remove name of in_p.
14212 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14215 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14216 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14218 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14220 * config/nios2/nios2.c: Include "builtins.h".
14222 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14224 * cgraph.h (tls_model_names): New variable.
14225 * print-tree.c (print_node): Simplify.
14226 * varpool.c (tls_model_names): New variable.
14227 (dump_varpool_node): Output tls model.
14229 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14231 * ipa-visibility.c (function_and_variable_visibility): Disable
14232 temporarily local aliases for some targets.
14234 2014-06-20 Marek Polacek <polacek@redhat.com>
14236 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14237 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14238 into SANITIZE_UNDEFINED.
14239 * doc/invoke.texi: Describe -fsanitize=bounds.
14240 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14241 functions created in the FEs.
14242 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14243 (expand_UBSAN_BOUNDS): New function.
14244 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14245 * internal-fn.h: Don't define internal functions here.
14246 * opts.c (common_handle_option): Add -fsanitize=bounds.
14247 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14248 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14249 * tree-core.h: Define internal functions here.
14250 (struct tree_base): Add ifn field.
14251 * tree-pretty-print.c: Include "internal-fn.h".
14252 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14253 * tree.c (get_callee_fndecl): Likewise.
14254 (build_call_expr_internal_loc): New function.
14255 * tree.def (CALL_EXPR): Update description.
14256 * tree.h (CALL_EXPR_IFN): Define.
14257 (build_call_expr_internal_loc): Declare.
14258 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14260 (ubsan_type_descriptor): Change bool parameter to enum
14261 ubsan_print_style. Adjust the code. Add handling of
14263 (ubsan_expand_bounds_ifn): New function.
14264 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14265 (ubsan_build_overflow_builtin): Likewise.
14266 (instrument_bool_enum_load): Likewise.
14267 (ubsan_instrument_float_cast): Likewise.
14268 * ubsan.h (enum ubsan_print_style): New enum.
14269 (ubsan_expand_bounds_ifn): Declare.
14270 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14272 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14274 * config/rs6000/rs6000.md: Append `DONE' to preparation
14275 statements of `bswap' pattern splitters.
14277 2014-06-20 Tom de Vries <tom@codesourcery.com>
14279 * target.def (call_fusage_contains_non_callee_clobbers): Update
14281 * doc/tm.texi: Regenerate.
14283 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14284 Max Ostapenko <m.ostapenko@partner.samsung.com>
14287 * asan.c (instrument_strlen_call): Fixed instrumentation of
14290 2014-06-20 Martin Jambor <mjambor@suse.cz>
14293 * ipa-prop.c (impossible_devirt_target): New function.
14294 (try_make_edge_direct_virtual_call): Use it, also instead of
14297 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14298 Max Ostapenko <m.ostapenko@partner.samsung.com>
14301 * asan.c (build_check_stmt): Add condition.
14303 2014-06-20 Martin Jambor <mjambor@suse.cz>
14306 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14309 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14311 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14313 (VCONQ): Make comment more helpful.
14315 * config/aarch64/aarch64-simd.md
14316 (aarch64_sqdmulh_lane<mode>):
14317 Use VCOND for operands 2. Update lane checking and flipping logic.
14318 (aarch64_sqrdmulh_lane<mode>): Likewise.
14319 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14320 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14321 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14322 attribute of operand 3 to VCOND.
14323 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14324 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14325 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14326 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14327 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14328 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14330 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14331 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14332 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14333 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14334 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14335 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14336 operand to VCOND. Update lane flipping and bounds checking logic.
14337 (aarch64_sqdmlal2_lane<mode>): Likewise.
14338 (aarch64_sqdmlsl_lane<mode>): Likewise.
14339 (aarch64_sqdmull_lane<mode>): Likewise.
14340 (aarch64_sqdmull2_lane<mode>): Likewise.
14341 (aarch64_sqdmlal_laneq<mode>):
14342 Replace VCON usage with VCONQ.
14343 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14344 (aarch64_sqdmlal2_laneq<mode>): Emit
14345 aarch64_sqdmlal2_laneq<mode>_internal insn.
14346 Replace VCON with VCONQ.
14347 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14348 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14349 (aarch64_sqdmull_laneq<mode>): Emit
14350 aarch64_sqdmull_laneq<mode>_internal insn.
14351 Replace VCON with VCONQ.
14352 (aarch64_sqdmull2_laneq<mode>): Emit
14353 aarch64_sqdmull2_laneq<mode>_internal insn.
14354 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14355 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14356 of 3rd argument to int16x4_t.
14357 (vqdmlalh_lane_s16): Likewise.
14358 (vqdmlslh_lane_s16): Likewise.
14359 (vqdmull_high_lane_s16): Likewise.
14360 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14361 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14362 (vqdmlsl_lane_s16): Likewise.
14363 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14364 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14365 (vqdmlals_lane_s32): Likewise.
14366 (vqdmlsls_lane_s32): Likewise.
14367 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14368 (vqdmulls_lane_s32): Likewise.
14369 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14370 (vqdmlsl_lane_s32): Likewise.
14371 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14372 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14373 (vqrdmulhh_lane_s16): Likewise.
14374 (vqdmlsl_high_lane_s16): Likewise.
14375 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14376 (vqdmlsl_high_lane_s32): Likewise.
14377 (vqrdmulhs_lane_s32): Likewise.
14379 2014-06-20 Tom de Vries <tom@codesourcery.com>
14381 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14382 get_call_reg_set_usage.
14384 2014-06-20 Tom de Vries <tom@codesourcery.com>
14386 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14387 it contains all call_used_regs.
14389 2014-06-20 Tom de Vries <tom@codesourcery.com>
14391 * final.c (collect_fn_hard_reg_usage): Add and use variable
14392 function_used_regs.
14394 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14396 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14397 (set_init_priority, get_init_priority, set_fini_priority,
14398 get_fini_priority): New methods.
14399 * tree.c (init_priority_for_decl): Remove.
14400 (init_ttree): Do not initialize init priority.
14401 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14402 (decl_priority_info): Remove.
14403 (decl_init_priority_insert): Rewrite.
14404 (decl_fini_priority_insert): Rewrite.
14405 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14406 tree_priority_map_marked_p): Remove.
14407 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14408 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14409 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14410 not output priorities.
14411 (pack_ts_function_decl_value_fields): Likewise.
14412 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14413 not input priorities.
14414 (unpack_ts_function_decl_value_fields): Likewise.
14415 * symtab.c (symbol_priority_map): Declare.
14416 (init_priority_hash): Declare.
14417 (symtab_unregister_node): Unregister from priority hash, too.
14418 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14420 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14421 (symbol_priority_info): New function.
14422 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14424 * tree-core.h (tree_priority_map): Remove.
14426 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14428 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14429 0xff to uint64_t before shifting it up.
14431 2014-06-20 Julian Brown <julian@codesourcery.com>
14432 Chung-Lin Tang <cltang@codesourcery.com>
14434 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14435 TARGET_THUMB1_ONLY. Add comments.
14437 2014-06-19 Tom de Vries <tom@codesourcery.com>
14439 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14440 return type to void.
14441 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14443 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14445 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14446 as "move", from depends_on.
14448 2014-06-19 Terry Guo <terry.guo@arm.com>
14450 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14453 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14455 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14457 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14459 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14462 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14463 addresses here if reload in progress or completed.
14465 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14467 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14468 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14469 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14470 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14471 (mips_register_priority): New function that implements the target
14472 hook TARGET_REGISTER_PRIORITY.
14473 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14474 (mips_lra_p): Likewise for TARGET_LRA_P.
14475 (TARGET_REGISTER_PRIORITY): Define macro.
14476 (TARGET_SPILL_CLASS): Likewise.
14477 (TARGET_LRA_P): Likewise.
14478 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14480 (REG_CLASS_NAMES): Likewise.
14481 (REG_CLASS_CONTENTS): Likewise.
14482 (BASE_REG_CLASS): Use M16_SP_REGS.
14483 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14484 New set attribute to enable alternatives depending on the register
14486 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14487 (*lea64): Disable pattern for MIPS16.
14488 * config/mips/mips.opt (mlra): New option.
14490 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14492 * lra-constraints.c (base_to_reg): New function.
14493 (process_address): Use new function.
14495 2014-06-18 Tom de Vries <tom@codesourcery.com>
14497 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14498 * config/aarch64/aarch64.c
14499 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14500 (aarch64_emit_call_insn): New function.
14501 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14503 * config/aarch64/aarch64.md (define_expand "call_internal")
14504 (define_expand "call_value_internal", define_expand "sibcall_internal")
14505 (define_expand "sibcall_value_internal"): New.
14506 (define_expand "call", define_expand "call_value")
14507 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14508 expand variant and aarch64_emit_call_insn.
14510 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14511 Tom de Vries <tom@codesourcery.com>
14513 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
14514 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14516 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
14517 clobbers to CALL_INSN_FUNCTION_USAGE.
14518 (define_expand "sibcall_internal")
14519 (define_expand "sibcall_value_internal"): New.
14520 (define_expand "call", define_expand "call_value"): Add argument to
14521 arm_emit_call_insn.
14522 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
14523 (define_expand "sibcall_value"): Use sibcall_value_internal and
14524 arm_emit_call_insn.
14526 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14528 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
14530 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14532 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
14535 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14537 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
14538 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
14539 annotations. Fix DWARF information.
14541 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14543 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
14544 __udivmoddi4, and fixups for negative operands.
14546 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14548 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
14550 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14552 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
14555 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14557 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
14560 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14562 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
14563 describing register usage on function entry and exit.
14565 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14567 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
14568 (__aeabi_ldivmod): Fix whitespace.
14570 2014-06-18 Andreas Schwab <schwab@suse.de>
14572 * doc/md.texi (Standard Names): Use @itemx for grouped items.
14573 Remove blank line after @item.
14575 2014-06-18 Richard Henderson <rth@redhat.com>
14578 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
14580 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14582 * config/arm/arm.c (neon_vector_mem_operand): Allow register
14583 POST_MODIFY for neon loads and stores.
14584 (arm_print_operand): Output post-index register for neon loads and
14587 2014-06-18 Richard Biener <rguenther@suse.de>
14589 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
14591 2014-06-18 Richard Biener <rguenther@suse.de>
14593 * tree-pass.h (make_pass_dce_loop): Remove.
14594 * passes.def: Replace pass_dce_loop with pass_dce.
14595 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
14596 changed free niter estimates and reset the scev cache.
14597 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
14598 make_pass_dce_loop): Remove.
14599 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
14600 (fini_copy_prop): Return whether something changed. Always
14601 let substitute_and_fold perform DCE and free niter estimates
14602 and reset the scev cache if so.
14603 (execute_copy_prop): If sth changed schedule cleanup-cfg.
14604 (pass_data_copy_prop): Do not unconditionally schedule
14605 cleanup-cfg or update-ssa.
14607 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14609 PR tree-optimization/61518
14610 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14611 reduction var is used in reduction stmt or phi-function only.
14613 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14615 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
14617 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14619 PR tree-optimization/61517
14620 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
14621 whose rhs's first tree is the source expression instead of the
14623 (find_bswap_or_nop): Likewise.
14624 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
14625 gimple stmt whose rhs's first tree is the source. In the memory source
14626 case, move the stmt to be replaced close to one of the original load to
14627 avoid the problem of a store between the load and the stmt's original
14629 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
14632 2014-06-18 Andreas Schwab <schwab@suse.de>
14634 PR rtl-optimization/54555
14635 * postreload.c (move2add_use_add2_insn): Substitute
14636 STRICT_LOW_PART only if it is cheaper.
14638 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
14640 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
14641 Do not use unspec as call operand. Use memory_operand instead of
14642 memory_nox32_operand and add "m" operand constraint. Disable
14643 pattern for TARGET_X32.
14644 (*sibcall_pop_memory): Ditto.
14645 (*sibcall_value_memory): Ditto.
14646 (*sibcall_value_pop_memory): Ditto.
14647 (sibcall peepholes): Merge SImode and DImode patterns using
14648 W mode iterator. Use memory_operand instead of memory_nox32_operand.
14649 Disable pattern for TARGET_X32. Check if eliminated register is
14650 really dead after call insn. Generate call RTX without unspec operand.
14651 (sibcall_value peepholes): Ditto.
14652 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
14653 instead of memory_nox32_operand. Check if eliminated register is
14654 really dead after call insn. Generate call RTX without unspec operand.
14655 (sibcall_value_pop peepholes): Ditto.
14656 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
14658 2014-06-18 Terry Guo <terry.guo@arm.com>
14661 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
14664 2014-06-18 Olivier Hainque <hainque@adacore.com>
14666 * tree-core.h (tree_block): Add an "end_locus" field, allowing
14667 memorization of the end of block source location.
14668 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
14669 * gimplify.c (gimplify_bind_expr): Propagate the block start and
14670 end source location info we have on the block entry/exit code we
14673 2014-06-18 Richard Biener <rguenther@suse.de>
14675 * common.opt (fssa-phiopt): New option.
14676 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
14678 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
14679 * doc/invoke.texi (-fssa-phiopt): Document.
14681 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14683 * genattrtab.c (n_bypassed): New variable.
14684 (process_bypasses): Initialise n_bypassed.
14685 Count number of bypassed reservations.
14686 (make_automaton_attrs): Allocate space for bypassed reservations
14687 rather than number of bypasses.
14689 2014-06-18 Richard Biener <rguenther@suse.de>
14691 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
14692 we propagated anything.
14693 (substitute_and_fold_dom_walker::before_dom_children): Something
14694 changed if we propagated into PHI arguments.
14695 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
14698 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
14700 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
14702 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
14703 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
14704 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
14705 Introduces alternative way of loads group permutaions.
14706 (vect_transform_grouped_load): Try alternative way of permutations.
14708 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14710 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
14711 changed in ORT_TARGET region, don't jump to do_outer.
14712 (struct gimplify_adjust_omp_clauses_data): New type.
14713 (gimplify_adjust_omp_clauses_1): Adjust for data being
14714 a struct gimplify_adjust_omp_clauses_data pointer instead
14715 of tree *. Pass pre_p as a new argument to
14716 lang_hooks.decls.omp_finish_clause hook.
14717 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
14718 splay_tree_foreach to pass both list_p and pre_p.
14719 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
14720 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
14721 gimplify_adjust_omp_clauses callers.
14722 * langhooks.c (lhd_omp_finish_clause): New function.
14723 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
14724 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
14725 * langhooks.h (struct lang_hooks_for_decls): Add a new
14726 gimple_seq * argument to omp_finish_clause hook.
14727 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
14728 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
14729 (scan_omp_parallel, lower_omp_for): When adding
14730 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
14731 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
14732 * tree-nested.c (convert_nonlocal_omp_clauses,
14733 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
14734 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
14736 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
14738 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
14739 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
14741 2014-06-17 Xinliang David Li <davidxl@google.com>
14743 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
14744 * passes.c (pass_init_dump_file): Do not set initialize
14745 flag to false unconditionally.
14747 2014-06-17 Richard Biener <rguenther@suse.de>
14749 * genopinit.c (main): Use vec<>::qsort method.
14750 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14752 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
14754 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
14756 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
14757 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
14758 (mips_move_to_gpr_cost): Remove ST_REGS case.
14759 (mips_move_from_gpr_cost): Likewise.
14760 (mips_register_move_cost): Likewise.
14761 (mips_secondary_reload_class): Likewise.
14763 2014-06-17 Richard Biener <rguenther@suse.de>
14765 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
14766 (pass_all_optimizations): Move 3rd copy-prop pass from after
14767 fre to before ifcombine/phiopt.
14769 2014-06-17 Richard Biener <rguenther@suse.de>
14771 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
14772 and allow all blocks to be forwarders.
14774 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
14777 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
14778 variable 'size'; calculate 'size' right in the front; use
14779 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
14780 pcum->aapcs_stack_words.
14782 2014-06-17 Nick Clifton <nickc@redhat.com>
14784 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
14785 (umulhi3, mulsidi3, umulsidi3): Likewise.
14787 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
14789 PR middle-end/61508
14790 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14791 check for section name.
14793 2014-06-17 Richard Biener <rguenther@suse.de>
14795 * tree-ssa-propagate.c: Include domwalk.h.
14796 (substitute_and_fold): Outline main worker into a domwalker ...
14797 (substitute_and_fold_dom_walker::before_dom_children): ... here.
14798 Schedule stmts we can fully propagate for removal. Remove
14800 (substitute_and_fold): Apply a dominator walk to perform
14801 substitution. Process stmts scheduled for removal here.
14803 2014-06-17 Richard Biener <rguenther@suse.de>
14805 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14806 of PHI node moving.
14808 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14810 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14811 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14812 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14813 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14814 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14816 (get_fpscr) : Likewise.
14818 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14820 PR rtl-optimization/61325
14821 * lra-constraints.c (valid_address_p): Add forward declaration.
14822 (simplify_operand_subreg): Check address validity before and after
14823 alter_reg of memory subreg.
14825 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
14827 * config/i386/i386.c (decide_alg): Correctly handle
14828 maximum size of stringop algorithm.
14830 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14832 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14834 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14836 PR rtl-optimization/61522
14837 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14839 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
14842 * symtab.c (symtab_node::reset_section): New method.
14843 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14845 * cgraph.h (reset_section): Declare.
14846 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14847 do not consider comdat locals.
14848 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14850 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14851 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14852 reset sections of symbols dragged out of the comdats.
14853 (function_and_variable_visibility): Reset sections of
14856 2014-06-16 Richard Biener <rguenther@suse.de>
14858 PR tree-optimization/61482
14859 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14860 [-INF(OVF), +INF(OVF)] range.
14862 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14864 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14865 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14866 handling 32-bit multiplication.
14868 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
14870 PR middle-end/61430
14871 * lra-lives.c (process_bb_lives): Skip creating copy during
14872 insn scan when src/dest has constrained to same regno.
14874 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14876 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14877 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14879 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14881 * asan.c (check_func): New function.
14882 (maybe_create_ssa_name): Likewise.
14883 (build_check_stmt_with_calls): Likewise.
14884 (use_calls_p): Likewise.
14885 (report_error_func): Change interface.
14886 (build_check_stmt): Allow non-integer lengths; add support
14888 (asan_instrument): Likewise.
14889 (instrument_mem_region_access): Moved code to build_check_stmt.
14890 (instrument_derefs): Likewise.
14891 (instrument_strlen_call): Likewise.
14892 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14893 * doc/invoke.texi: Describe new parameter.
14894 * params.def: Define new parameter.
14895 * params.h: Likewise.
14896 * sanitizer.def: Describe new builtins.
14898 2014-06-16 Richard Biener <rguenther@suse.de>
14900 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14901 Make all defs available at the end.
14902 (eliminate): If we remove a PHI node schedule cfg-cleanup.
14904 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14907 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14909 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
14912 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14913 initialization. Replace remaining use of uid.
14915 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14917 * c-family/c-common.c (handle_tls_model_attribute): Use
14918 set_decl_tls_model.
14919 * c-family/c-common.c (handle_tls_model_attribute): Use
14920 set_decl_tls_model.
14921 * cgraph.h (struct varpool_node): Add tls_model.
14922 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14923 * tree.h (DECL_TLS_MODEL): Update.
14924 (DECL_THREAD_LOCAL_P): Check that variable is static.
14925 (decl_tls_model): Declare.
14926 (set_decl_tls_model): Declare.
14927 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14928 set symbol prorperties.
14929 (get_emutls_init_templ_addr): Cleanup.
14930 (new_emutls_decl): Update.
14931 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14932 (lto_input_varpool_node): Likewise.
14933 * lto-streamer-out.c (hash_tree): Likewise.
14934 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14935 not stream DECL_TLS_MODEL.
14936 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14937 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14939 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14941 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14943 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14945 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14946 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14948 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14949 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14950 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14951 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14952 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14953 (df_get_artificial_defs, df_get_artificial_uses)
14954 (df_single_def, df_single_use): Update accordingly.
14955 (df_refs_chain_dump): Take the first element in a linked list as
14956 parameter, rather than a pointer to an array of pointers.
14957 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14958 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14959 (df_chain_create_bb_process_use): Likewise.
14960 (df_md_bb_local_compute_process_def): Likewise.
14961 * fwprop.c (process_defs, process_uses): Likewise.
14962 (register_active_defs, update_uses): Likewise.
14963 (forward_propagate_asm): Update for new df_ref linking.
14964 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14965 (df_null_ref_rec, df_null_mw_rec): Likewise.
14966 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14968 (df_scan_free_bb_info): Remove check for null artificial_defs.
14969 (df_install_ref_incremental): Adjust for new df_ref linking.
14970 Use a single-element insertion rather than a full sort.
14971 (df_ref_chain_delete_du_chain): Take the first element
14972 in a linked list as parameter, rather than a pointer to an array of
14974 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14975 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14976 (df_insn_info_delete): Remove check for null defs and call to
14977 df_scan_free_mws_vec.
14978 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14979 null rather than df_null_*_rec.
14980 (df_insn_rescan_debug_internal): Likewise, and update null
14981 checks in the same way. Remove check for null defs.
14982 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14983 Move a single element rather doing a full sort.
14984 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14986 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
14987 Initialize df_ref and df_mw_hardreg lists to null rather than
14989 (df_ref_compare): Take df_refs as parameter, transferring the
14990 old interface to...
14991 (df_ref_ptr_compare): ...this new function.
14992 (df_sort_and_compress_refs): Update accordingly.
14993 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14994 old interface to...
14995 (df_mw_ptr_compare): ...this new function.
14996 (df_sort_and_compress_mws): Update accordingly.
14997 (df_install_refs, df_install_mws): Return a linked list rather than
14998 an array of pointers.
14999 (df_refs_add_to_chains): Assert that old lists are empty rather
15001 (df_insn_refs_verify): Don't handle null defs speciailly.
15002 * web.c (union_match_dups): Update for new df_ref linking.
15004 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15006 * df.h (df_ref_create, df_ref_remove): Delete.
15007 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
15008 (df_ref_remove): Likewise.
15010 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15012 * df.h (df_single_def, df_single_use): New functions.
15013 * ira.c (find_moveable_pseudos): Use them.
15015 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15017 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
15018 * df-problems.c (df_note_bb_compute): Use it.
15019 * regstat.c (regstat_bb_compute_ri): Likewise.
15021 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15023 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
15024 * cse.c (cse_extended_basic_block): Use them.
15025 * dce.c (mark_artificial_use): Likewise.
15026 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
15027 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15028 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
15029 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
15030 (df_simulate_initialize_backwards): Likewise.
15031 (df_simulate_finalize_backwards): Likewise.
15032 (df_simulate_initialize_forwards): Likewise.
15033 (df_md_simulate_artificial_defs_at_top): Likewise.
15034 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15035 * regrename.c (init_rename_info): Likewise.
15036 * regstat.c (regstat_bb_compute_ri): Likewise.
15037 (regstat_bb_compute_calls_crossed): Likewise.
15039 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
15041 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
15042 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
15043 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
15044 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
15045 * combine.c (create_log_links): Likewise.
15046 * compare-elim.c (find_flags_uses_in_insn): Likewise.
15047 (try_eliminate_compare): Likewise.
15048 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
15049 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
15050 (remove_reg_equal_equiv_notes_for_defs): Likewise.
15051 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
15052 (word_dce_process_block, dce_process_block): Likewise.
15053 * ddg.c (def_has_ccmode_p): Likewise.
15054 * df-core.c (df_bb_regno_first_def_find): Likewise.
15055 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
15056 * df-problems.c (df_rd_simulate_one_insn): Likewise.
15057 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
15058 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
15059 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
15060 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
15061 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
15062 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
15063 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
15064 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
15065 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
15066 * fwprop.c (local_ref_killed_between_p): Likewise.
15067 (all_uses_available_at, free_load_extend): Likewise.
15068 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
15069 * hw-doloop.c (scan_loop): Likewise.
15070 * ifcvt.c (dead_or_predicable): Likewise.
15071 * init-regs.c (initialize_uninitialized_regs): Likewise.
15072 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
15073 (process_bb_node_lives): Likewise.
15074 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
15075 (find_moveable_pseudos): Likewise.
15076 * loop-invariant.c (check_dependencies, record_uses): Likewise.
15077 * recog.c (peep2_find_free_register): Likewise.
15078 * ree.c (get_defs): Likewise.
15079 * regstat.c (regstat_bb_compute_ri): Likewise.
15080 (regstat_bb_compute_calls_crossed): Likewise.
15081 * sched-deps.c (find_inc, find_mem): Likewise.
15082 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
15083 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
15084 * shrink-wrap.c (requires_stack_frame_p): Likewise.
15085 (prepare_shrink_wrap): Likewise.
15086 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
15087 * web.c (union_defs, pass_web::execute): Likewise.
15088 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
15089 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
15091 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
15093 * lra-assign.c (assign_by_spills): Add code to assign vector regs
15094 to inheritance pseudos.
15095 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
15097 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
15100 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
15101 (BU_MISC_2): Rename to ...
15102 (BU_LDBL128_2): ... this.
15103 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
15104 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
15105 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
15106 RS6000_BTM_LDBL128.
15107 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
15108 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
15109 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
15110 (unpacktf_1): Likewise.
15111 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
15112 (__builtin_longdouble_dw1): Likewise.
15113 * doc/sourcebuild.texi (longdouble128): Document.
15115 2014-06-13 Jeff Law <law@redhat.com>
15117 PR rtl-optimization/61094
15118 PR rtl-optimization/61446
15119 * ree.c (combine_reaching_defs): Get the mode for the copy from
15120 the extension insn rather than the defining insn.
15122 2014-06-13 Dehao Chen <dehao@google.com>
15124 * dwarf2out.c (add_linkage_name): Emit more linkage name.
15126 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
15128 * doc/install.texi (--enable-linker-plugin-configure-flags)
15129 (--enable-linker-plugin-flags): Document new flags.
15131 2014-06-13 Martin Jambor <mjambor@suse.cz>
15134 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
15135 cache_token if returning early.
15137 2014-06-13 Nick Clifton <nickc@redhat.com>
15139 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
15140 requested alignment is active.
15141 (LABEL_ALIGN): Likewise.
15142 (LOOP_ALIGN): Likewise.
15144 2014-06-13 Richard Biener <rguenther@suse.de>
15146 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15147 Rewrite to propagate the VN result into all uses where
15148 possible and to remove stmts becoming dead because of that.
15149 (eliminate): Generalize stmt removal handling, remove in
15150 reverse dominator order to support proper debug stmt
15151 generation. Update stmts before removing stmts.
15152 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15154 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15156 PR tree-optimization/61375
15157 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15158 symbolic number cannot be represented in an uint64_t.
15159 (find_bswap_or_nop_1): Likewise.
15161 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15163 * symtab.c (symtab_node::reset_section): New method.
15164 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15166 * cgraph.h (reset_section): Declare.
15167 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15168 do not consider comdat locals.
15169 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15171 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15172 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15173 reset sections of symbols dragged out of the comdats.
15174 (function_and_variable_visibility): Reset sections of
15177 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15179 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15180 to use symtab and decl_binds_to_current_def_p
15181 * tree-vectorizer.c (increase_alignment): Increase alignment
15182 of alias target, too.
15184 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15186 PR middle-end/61486
15187 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15188 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15189 if outer combined construct is distribute.
15190 (gimplify_omp_for): For OMP_DISTRIBUTE set
15191 gimplify_omp_ctxp->distribute.
15192 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15193 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15194 mapping into decl map.
15196 2014-06-12 Jason Merrill <jason@redhat.com>
15198 * common.opt (fabi-version): Change default to 0.
15200 2014-06-12 Jason Merrill <jason@redhat.com>
15202 * toplev.c (process_options): Reject -fabi-version=1.
15204 2014-06-12 Jeff Law <law@redhat.com>
15206 PR tree-optimization/61009
15207 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15208 value when we stop processing a block due to problematic PHIs.
15210 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15212 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15213 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15214 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15215 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15216 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15217 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15218 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15219 are not in the spec.
15221 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15224 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15225 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15228 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15230 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15232 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15235 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15236 loading from address spaces.
15238 2014-06-12 Martin Liska <mliska@suse.cz>
15241 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15242 statement is reachable.
15244 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15246 * symtab.c (section_hash): New hash.
15247 (symtab_unregister_node): Clear section before freeing.
15248 (hash_section_hash_entry): New haser.
15249 (eq_sections): New function.
15250 (symtab_node::set_section_for_node): New method.
15251 (set_section_1): Update.
15252 (symtab_node::set_section): Take string instead of tree as parameter.
15253 (symtab_resolve_alias): Update.
15254 * cgraph.h (section_hash_entry_d): New structure.
15255 (section_hash_entry): New typedef.
15256 (cgraph_node): Change comdat_group_ to x_comdat_group,
15257 change section_ to x_section and turn into section_hash_entry;
15258 update accestors; put set_section_for_node offline.
15259 * tree.c (decl_section_name): Turn into string.
15260 (set_decl_section_name): Change parameter to be string.
15261 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15262 * sdbout.c (sdbout_one_type): Update.
15263 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15264 * varasm.c (IN_NAMED_SECTION, get_named_section,
15265 resolve_unique_section, hot_function_section, get_named_text_section,
15266 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15267 make_decl_rtl, default_unique_section): Update.
15268 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15269 (c6x_elf_unique_section): Update.
15270 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15271 * config/pa/pa.c (pa_function_section): Update.
15272 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15273 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15274 * config/arc/arc.c (arc_in_small_data_p): Update.
15275 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15276 * config/mcore/mcore.c (mcore_unique_section): Update.
15277 * config/mips/mips.c (mips16_build_function_stub): Update.
15278 (mips16_build_call_stub): Update.
15279 (mips_function_rodata_section): Update.
15280 (mips_in_small_data_p): Update.
15281 * config/score/score.c (score_in_small_data_p): Update.
15282 * config/rx/rx.c (rx_in_small_data): Update.
15283 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15284 (rs6000_xcoff_asm_named_section): Update.
15285 (rs6000_xcoff_unique_section): Update.
15286 * config/frv/frv.c (frv_string_begins_with): Update.
15287 (frv_in_small_data_p): Update.
15288 * config/v850/v850.c (v850_encode_data_area): Update.
15289 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15290 (bfin_handle_l1_data_attribute): Update.
15291 (bfin_handle_l2_attribute): Update.
15292 * config/mep/mep.c (mep_unique_section): Update.
15293 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15295 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15296 (h8300_handle_tiny_data_attribute): Update.
15297 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15298 (m32r_in_small_data_p): Update.
15299 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15300 * config/i386/i386.c (ix86_in_large_data_p): Update.
15301 * config/i386/winnt.c (i386_pe_unique_section): Update.
15302 * config/darwin.c (darwin_function_section): Update.
15303 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15304 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15305 (new_emutls_decl): Update.
15306 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15307 input_varpool_node): Update.
15308 (ead_string_cst): Turn to ...
15309 (read_string): ... this one.
15310 * dwarf2out.c (secname_for_decl): Update.
15311 * asan.c (asan_protect_global): Update.
15313 2014-06-11 DJ Delorie <dj@redhat.com>
15315 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15317 * config/rx/rx.c (rx_option_override): Likewise.
15318 (rx_align_for_label): Likewise.
15320 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15322 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15324 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15327 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15329 * common.md: New file.
15330 * doc/md.texi: Update description of generic, machine-independent
15332 * config/s390/constraints.md (e): Delete.
15333 * Makefile.in (md_file): Include common.md.
15334 * config/m32c/t-m32c (md_file): Likewise.
15335 * genpreds.c (general_mem): New array.
15336 (generic_constraint_letters): Remove constraints now defined by
15338 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15339 Allow the first character to be '<' or '>' as well.
15340 * genoutput.c (general_mem): New array.
15341 (indep_constraints): Remove constraints now defined by common.md.
15342 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15343 Remove special handling of 'm'.
15344 * ira-costs.c (record_reg_classes): Remove special handling of
15345 constraints now defined by common.md.
15346 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15347 * ira-lives.c (single_reg_class): Likewise.
15348 (ira_implicitly_set_insn_hard_regs): Likewise.
15349 * lra-constraints.c (reg_class_from_constraints): Likewise.
15350 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15351 * postreload.c (reload_cse_simplify_operands): Likewise.
15352 * reload.c (push_secondary_reload, scratch_reload_class)
15353 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15354 * reload1.c (maybe_fix_stack_asms): Likewise.
15355 * targhooks.c (default_secondary_reload): Likewise.
15356 * stmt.c (parse_output_constraint): Likewise.
15357 * recog.c (preprocess_constraints): Likewise.
15358 (constrain_operands, peep2_find_free_register): Likewise.
15359 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15360 must be handled specially.
15362 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15364 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15365 * genpreds.c (have_const_dbl_constraints): Delete.
15366 (add_constraint): Don't set it.
15367 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15368 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15369 constraints using the lookup_constraint logic.
15370 * ira-lives.c (single_reg_class): Likewise.
15371 * ira.c (ira_setup_alts): Likewise.
15372 * lra-constraints.c (process_alt_operands): Likewise.
15373 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15374 * reload.c (find_reloads): Likewise.
15376 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15378 * genpreds.c (const_int_start, const_int_end): New variables.
15379 (choose_enum_order): Output CONST_INT constraints before memory
15381 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15383 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15384 * ira.c (ira_setup_alts): Likewise.
15385 * lra-constraints.c (process_alt_operands): Likewise.
15386 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15387 * reload.c (find_reloads): Likewise.
15389 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15391 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15392 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15393 * recog.c (preprocess_constraints): Update accordingly.
15395 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15397 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15398 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15399 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15400 * genpreds.c (print_type_tree): New function.
15401 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15402 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15403 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15404 Write out enum constraint_type and get_constraint_type.
15405 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15406 constraint_num rather than a constraint string.
15407 (satisfies_address_constraint_p): Likewise.
15408 (reg_class_from_constraints): Avoid old constraint macros.
15409 (process_alt_operands, process_address_1): Likewise.
15410 (curr_insn_transform): Likewise.
15411 * ira-costs.c (record_reg_classes): Likewise.
15412 (record_operand_costs): Likewise.
15413 * ira-lives.c (single_reg_class): Likewise.
15414 (ira_implicitly_set_insn_hard_regs): Likewise.
15415 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15416 * postreload.c (reload_cse_simplify_operands): Likewise.
15417 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15418 (constrain_operands, peep2_find_free_register): Likewise.
15419 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15420 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15421 * reload1.c (maybe_fix_stack_asms): Likewise.
15422 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15423 * targhooks.c (default_secondary_reload): Likewise.
15424 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15425 to EXTRA_CONSTRAINT_STR.
15426 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15428 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15430 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15431 (write_constraint_satisfied_p_array): ...this new function.
15432 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15434 (write_insn_preds_c): Update accordingly.
15436 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15438 * genpreds.c (write_lookup_constraint): Rename to...
15439 (write_lookup_constraint_1): ...this.
15440 (write_lookup_constraint_array): New function.
15441 (write_tm_preds_h): Define lookup_constraint as an inline function
15442 that uses write_lookup_constraint_array where possible.
15443 (write_insn_preds_c): Update for the changes above.
15445 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15447 * doc/md.texi (regclass_for_constraint): Rename to...
15448 (reg_class_for_constraint): ...this.
15449 * genpreds.c (num_constraints, enum_order, register_start)
15450 (register_end, satisfied_start, memory_start, memory_end)
15451 (address_start, address_end): New variables.
15452 (add_constraint): Count the number of constraints.
15453 (choose_enum_order): New function.
15454 (write_enum_constraint_num): Iterate over enum_order.
15455 (write_regclass_for_constraint): Rename to...
15456 (write_reg_class_for_constraint_1): ...this and update output
15458 (write_constraint_satisfied_p): Rename to...
15459 (write_constraint_satisfied_p_1): ...this and update output
15460 accordingly. Do nothing if all extra constraints are register
15462 (write_insn_extra_memory_constraint): Delete.
15463 (write_insn_extra_address_constraint): Delete.
15464 (write_range_function): New function.
15465 (write_tm_preds_h): Define constraint_satisfied_p and
15466 reg_class_for_constraint as inline functions that do a range check
15467 before calling the out-of-line function. Use write_range_function
15468 to implement insn_extra_{register,memory,address}_constraint,
15469 the first of which is new.
15470 (write_insn_preds_c): Update after above changes to write_* functions.
15471 (main): Call choose_enum_order.
15473 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15475 PR tree-optimization/61306
15476 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15477 expression instead of its size.
15478 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15479 false to prevent optimization when the result is unpredictable due to
15480 arithmetic right shift of signed type with highest byte is set.
15481 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15482 (init_symbolic_number): Likewise.
15483 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15484 when the result is unpredictable due to sign extension.
15486 2014-06-11 Terry Guo <terry.guo@arm.com>
15488 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15489 (*thumb1_addsi3): Ditto.
15490 (*thumb_subdi3): Ditto.
15491 (thumb1_subsi3_insn): Ditto.
15492 (*thumb_mulsi3): Ditto.
15493 (*thumb_mulsi3_v6): Ditto.
15494 (*thumb1_andsi3_insn): Ditto.
15495 (thumb1_bicsi3): Ditto.
15496 (*thumb1_iorsi3_insn): Ditto.
15497 (*thumb1_xorsi3_insn): Ditto.
15498 (*thumb1_ashlsi3): Ditto.
15499 (*thumb1_ashrsi3): Ditto.
15500 (*thumb1_lshrsi3): Ditto.
15501 (*thumb1_rotrsi3): Ditto.
15502 (*thumb1_negdi2): Ditto.
15503 (*thumb1_negsi2): Ditto.
15504 (*thumb1_abssi2): Ditto.
15505 (*thumb1_neg_abssi2): Ditto.
15506 (*thumb1_one_cmplsi2): Ditto.
15507 (*thumb1_zero_extendhisi2): Ditto.
15508 (*thumb1_zero_extendqisi2): Ditto.
15509 (*thumb1_zero_extendqisi2_v6): Ditto.
15510 (thumb1_extendhisi2): Ditto.
15511 (thumb1_extendqisi2): Ditto.
15512 (*thumb1_movdi_insn): Ditto.
15513 (*thumb1_movsi_insn): Ditto.
15514 (*thumb1_movhi_insn): Ditto.
15515 (thumb_movhi_clobber): Ditto.
15516 (*thumb1_movqi_insn): Ditto.
15517 (*thumb1_movhf): Ditto.
15518 (*thumb1_movsf_insn): Ditto.
15519 (*thumb_movdf_insn): Ditto.
15520 (movmem12b): Ditto.
15522 (cbranchqi4): Ditto.
15523 (cbranchsi4_insn): Ditto.
15524 (cbranchsi4_scratch): Ditto.
15525 (*negated_cbranchsi4): Ditto.
15526 (*tbit_cbranch): Ditto.
15527 (*tlobits_cbranch): Ditto.
15528 (*tstsi3_cbranch): Ditto.
15529 (*cbranchne_decr1): Ditto.
15530 (*addsi3_cbranch): Ditto.
15531 (*addsi3_cbranch_scratch): Ditto.
15532 (*thumb_cmpdi_zero): Ditto.
15533 (cstoresi_eq0_thumb1): Ditto.
15534 (cstoresi_ne0_thumb1): Ditto.
15535 (*cstoresi_eq0_thumb1_insn): Ditto.
15536 (*cstoresi_ne0_thumb1_insn): Ditto.
15537 (cstoresi_nltu_thumb1): Ditto.
15538 (cstoresi_ltu_thumb1): Ditto.
15539 (thumb1_addsi3_addgeu): Ditto.
15540 (*thumb_jump): Ditto.
15541 (*call_reg_thumb1_v5): Ditto.
15542 (*call_reg_thumb1): Ditto.
15543 (*call_value_reg_thumb1_v5): Ditto.
15544 (*call_value_reg_thumb1): Ditto.
15545 (*call_insn): Ditto.
15546 (*call_value_insn): Ditto.
15547 (thumb1_casesi_internal_pic): Ditto.
15548 (thumb1_casesi_dispatch): Ditto.
15549 (*thumb1_indirect_jump): Ditto.
15550 (prologue_thumb1_interwork): Ditto.
15551 (*epilogue_insns): Ditto.
15552 (consttable_1): Ditto.
15553 (consttable_2): Ditto.
15554 (tablejump): Ditto.
15555 (*thumb1_tablejump): Ditto.
15556 (thumb_eh_return): Ditto.
15557 (define_peephole2): Two of them are thumb1 only and got moved into
15558 new file thumb1.md.
15559 (define_split): Six of them are thumb1 only and got moved into new
15561 * config/arm/thumb1.md: New file comprised of above thumb1 only
15564 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15566 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
15567 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
15569 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
15570 (aarch64_crc_builtin_datum): New struct.
15571 (aarch64_crc_builtin_data): New.
15572 (aarch64_init_crc32_builtins): New function.
15573 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
15574 (aarch64_crc32_expand_builtin): New.
15575 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
15576 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15577 __ARM_FEATURE_CRC32 when appropriate.
15578 (TARGET_CRC32): Define.
15579 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
15580 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
15581 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
15582 (aarch64_<crc_variant>): New pattern.
15583 * config/aarch64/arm_acle.h: New file.
15584 * config/aarch64/iterators.md (CRC): New int iterator.
15585 (crc_variant, crc_mode): New int attributes.
15586 * doc/aarch64-acle-intrinsics.texi: New file.
15587 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
15588 Include aarch64-acle-intrinsics.texi.
15590 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
15592 * tree-vect-data-refs.c (vect_grouped_store_supported): New
15593 check for stores group of length 3.
15594 (vect_permute_store_chain): New permutations for stores group of
15596 * tree-vect-stmts.c (vect_model_store_cost): Change cost
15597 of vec_perm_shuffle for the new permutations.
15599 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15601 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
15602 table rewriting temporarily on targets not supporting ONE_ONLY.
15604 2014-06-11 Richard Biener <rguenther@suse.de>
15606 PR middle-end/61437
15608 2014-06-04 Richard Biener <rguenther@suse.de>
15610 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15611 TREE_PUBLIC and DECL_EXTERNAL decls.
15613 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15615 * varasm.c (set_implicit_section): New function.
15616 (resolve_unique_section): Use it to set implicit section
15618 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
15619 (default_function_section): Likewise.
15620 (decl_binds_to_current_def_p): Constify argument.
15621 * varasm.h (decl_binds_to_current_def_p): Update prototype.
15622 * asan.c (asan_protect_global): Use
15623 symtab_get_node (decl)->implicit_section.
15624 * symtab.c (dump_symtab_base): Dump implicit sections.
15625 (verify_symtab_base): Verify sanity of sectoins and comdats.
15626 (symtab_resolve_alias): Alias share the section of its target.
15627 (set_section_1): New function.
15628 (symtab_node::set_section): Move here, recurse to aliases.
15629 (verify_symtab): Check for duplicated symtab lists.
15630 * tree-core.h (implicit_section_name_p): Remove.
15631 * tree-vect-data-refs.c: Include varasm.h.
15632 (vect_can_force_dr_alignment_p): Fix conditional on when
15633 decl bints to current definition; use
15634 symtab_get_node (decl)->implicit_section.
15635 * cgraph.c (cgraph_make_node_local_1): Fix section set.
15636 * cgraph.h (struct symtab_node): Add implicit_section.
15637 (set_section): Rename to ...
15638 (set_section_for_node): ... this one.
15639 (set_section): Declare.
15640 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
15641 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15642 input_overwrite_node, input_varpool_node): Stream implicit_section.
15643 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
15644 removal; it will fail in LTO.
15646 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15648 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
15649 Change second alternative type to f_mcr.
15650 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
15651 and 12th alternatives' types to f_mcr and f_mrc.
15652 (*movdi_aarch64): Same for 12th and 13th alternatives.
15653 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
15654 (aarch64_movtilow_tilow): Change type to fmov.
15656 2014-06-10 Jiong Wang <jiong.wang@arm.com>
15658 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
15659 (aarch64_save_or_restore_callee_save_registers): Fix layout.
15661 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15663 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
15665 (aarch64_sqrdmulh_lane<mode>): Likewise.
15666 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15667 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15668 (aarch64_sqdmulh_laneq<mode>): New expander.
15669 (aarch64_sqrdmulh_laneq<mode>): Likewise.
15670 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
15671 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
15672 (aarch64_sqdmulh_lane<mode>): New expander.
15673 (aarch64_sqrdmulh_lane<mode>): Likewise.
15674 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15675 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15676 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
15677 (aarch64_sqdmlal_laneq<mode>): Likewise.
15678 (aarch64_sqdmlsl_lane<mode>): Likewise.
15679 (aarch64_sqdmlsl_laneq<mode>): Likewise.
15680 (aarch64_sqdmlal2_lane<mode>): Likewise.
15681 (aarch64_sqdmlal2_laneq<mode>): Likewise.
15682 (aarch64_sqdmlsl2_lane<mode>): Likewise.
15683 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15684 (aarch64_sqdmull_lane<mode>): Likewise.
15685 (aarch64_sqdmull_laneq<mode>): Likewise.
15686 (aarch64_sqdmull2_lane<mode>): Likewise.
15687 (aarch64_sqdmull2_laneq<mode>): Likewise.
15689 2014-06-10 Richard Biener <rguenther@suse.de>
15691 PR tree-optimization/61438
15692 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
15693 (eliminate_dom_walker::before_dom_children): Only try to inhibit
15694 insertion of IVs if running PRE.
15695 (eliminate): Adjust.
15696 (pass_pre::execute): Likewise.
15697 (pass_fre::execute): Likewise.
15699 2014-06-10 Richard Biener <rguenther@suse.de>
15701 PR middle-end/61456
15702 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15703 Do not use the main variant for the type comparison.
15704 (ncr_compar): Likewise.
15705 (nonoverlapping_component_refs_p): Likewise.
15707 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
15709 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
15710 REG_CFA_RESTORE mode.
15712 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
15714 * config/i386/i386.c (expand_vec_perm_pblendv): New.
15715 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
15716 expand_vec_perm_pblendv.
15718 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15720 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
15722 Simplify description of __crc32d and __crc32cd intrinsics.
15723 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
15726 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
15729 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
15730 * config.in: Regenerate.
15731 * configure: Likewise.
15733 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15735 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
15737 (intersect_static_var_sets): Remove.
15738 (propagate): Do not prune local statics.
15740 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15743 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
15744 Set lastprivate_firstprivate even if omp_private_outer_ref
15745 langhook returns true.
15746 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
15747 langhook, call unshare_expr on new_var and call
15748 build_outer_var_ref to get the last argument.
15750 2014-06-10 Marek Polacek <polacek@redhat.com>
15753 * doc/extend.texi: Add cindex for transparent_union.
15755 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
15757 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
15758 init_symbolic_number ().
15760 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
15762 PR middle-end/61141
15763 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
15764 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
15765 (verify_rtl_sharing): Likewise.
15767 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
15770 * tree.c (build_qualified_type): Use a canonical type for
15773 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15775 * config/arm/arm-modes.def: Remove XFmode.
15777 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
15780 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
15781 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
15782 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
15783 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
15784 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
15785 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
15786 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
15787 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
15788 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
15790 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
15792 * tree-core.h (tree_decl_with_vis): Remove section_name.
15794 2014-06-09 Kito Cheng <kito@0xlab.org>
15796 * ira.c (ira): Don't call init_caller_save if LRA enabled
15797 since LRA use its own infrastructure to handle that.
15799 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15801 * symtab.c (dump_symtab_base): Update dumping.
15802 (symtab_make_decl_local): Clear only DECL_COMDAT.
15803 * tree-vect-data-refs.c (Check that variable is static before
15804 tampering with sections.
15805 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15806 (cgraph_create_virtual_clone): Likewise.
15807 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15808 (decl_section_name, set_decl_section_name): New accessors.
15809 (find_decls_types_r): Do not walk section name
15810 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15811 (decl_comdat_group, decl_comdat_group_id): Constify.
15812 (decl_section_name, set_decl_section_name): Update.
15813 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15814 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15815 (cgraph_make_node_local_1): Clear section and comdat group.
15816 * cgraph.h (set_comdat_group): Sanity check.
15817 (get_section, set_section): New.
15818 * ipa-comdats.c (ipa_comdats): Use get_section.
15819 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15820 * lto-streamer-out.c: Do not follow section names.
15821 * c-family/c-common.c (handle_section_attribute): Update.
15822 * lto-cgraph.c (lto_output_node): Output section.
15823 (lto_output_varpool_node): Likewise.
15824 (read_comdat_group): Rename to ...
15825 (read_identifier): ... this one.
15826 (read_string_cst): New function.
15827 (input_node, input_varpool_node): Input section names.
15828 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15829 (new_emutls_decl): Update.
15830 (secname_for_decl): Check section names only of static vars.
15831 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15832 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15833 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15834 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15835 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15836 * config/mcore/mcore.c (mcore_unique_section): Likewise.
15837 * config/mips/mips.c (mips16_build_function_stub): Likewise.
15838 * config/v850/v850.c (v850_insert_attributes): Likewise.
15839 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15841 (h8300_handle_tiny_data_attribute): Likewise.
15842 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15843 (bfin_handle_l2_attribute): Likewise.
15845 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15847 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15848 remove static initializer.
15850 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15852 * varasm.c (use_blocks_for_decl_p): Check symbol table
15853 instead of alias attribute.
15854 (place_block_symbol): Recurse on aliases.
15856 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15858 * ipa-visibility.c: Include varasm.h
15859 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15861 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15863 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15864 outputting aliases.
15866 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
15868 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15869 from test_insn into GGC space escape via SET_SRC.
15871 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
15873 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15874 call statement, if any.
15875 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15876 statements, if any. Tidy up.
15878 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15881 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15882 iterators, VSX_D that handles 64-bit types, and VSX_LE that
15883 handles swapping the two 64-bit double words on little endian
15884 systems. Include V1TImode and optionally TImode in VSX_LE so that
15885 these types are properly swapped. Change all of the insns and
15886 splits that do the 64-bit swaps to use VSX_LE.
15887 (vsx_le_perm_load_<mode>): Likewise.
15888 (vsx_le_perm_store_<mode>): Likewise.
15889 (splitters for little endian memory operations): Likewise.
15890 (vsx_xxpermdi2_le_<mode>): Likewise.
15891 (vsx_lxvd2x2_le_<mode>): Likewise.
15892 (vsx_stxvd2x2_le_<mode>): Likewise.
15894 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
15897 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15898 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15899 and corresponding splitters. Zero extend general register
15900 or memory input operand to XMM temporary. Enable for
15901 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15902 (floatunssi<mode>2): Update expander predicate.
15904 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
15906 PR rtl-optimization/61325
15907 * lra-constraints.c (process_address_1): Check scale equal to one
15908 to prevent transformation: base + scale * index => base + new_reg.
15910 2014-06-06 Richard Biener <rguenther@suse.de>
15912 PR tree-optimization/59299
15913 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15915 (nearest_common_dominator_of_uses): Likewise.
15916 (statement_sink_location): Adjust. Support sinking loads.
15918 2014-06-06 Martin Jambor <mjambor@suse.cz>
15920 * ipa-prop.c (get_place_in_agg_contents_list): New function.
15921 (build_agg_jump_func_from_list): Likewise.
15922 (determine_known_aggregate_parts): Renamed to
15923 determine_locally_known_aggregate_parts. Moved some functionality
15924 to the two functions above, removed bound checks.
15926 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
15928 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15929 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15930 (aarch64_progress_pointer): Likewise.
15931 (aarch64_copy_one_part_and_move_pointers): Likewise.
15932 (aarch64_expand_movmen): Likewise.
15933 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15934 * config/aarch64/aarch64.md (movmem<mode>): New.
15936 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
15938 * targhooks.c (default_add_stmt_cost): Call target specific
15939 hook instead of default one.
15941 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
15943 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15944 endianness instead of host endianness.
15945 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15948 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15951 * function.c (instantiate_decls): Process the saved static chain.
15952 (expand_function_start): If not optimizing, save the static chain
15954 * tree-nested.c (convert_all_function_calls): Always create the static
15955 chain for nested functions if not optimizing.
15957 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15959 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15961 2014-06-06 Richard Biener <rguenther@suse.de>
15963 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15964 (construct_init_block): Likewise.
15965 (construct_exit_block): Likewise.
15966 (pass_expand::execute): Likewise.
15967 * graphite.c (graphite_transforms): Replace check for current_loops
15968 with a check for > 1 loops.
15969 (pass_graphite_transforms::execute): Adjust.
15970 * ipa-split.c (split_function): Remove check for current_loops.
15971 * omp-low.c (expand_parallel_call): Likewise.
15972 (expand_omp_for_init_counts): Likewise.
15973 (extract_omp_for_update_vars): Likewise.
15974 (expand_omp_for_generic): Likewise.
15975 (expand_omp_sections): Likewise.
15976 (expand_omp_target): Likewise.
15977 * tracer.c (tail_duplicate): Likewise.
15978 (pass_tracer::execute): Likewise.
15979 * trans-mem.c (expand_transaction): Likewise.
15980 * tree-complex.c (expand_complex_div_wide): Likewise.
15981 * tree-eh.c (lower_resx): Likewise.
15982 (cleanup_empty_eh_merge_phis): Likewise.
15983 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15984 current_loops with a check for > 1 loops.
15985 (pass_predcom::execute): Adjust.
15986 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15987 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15988 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15989 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15990 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15991 * tree-switch-conversion.c (process_switch): Likewise.
15992 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15993 * tree-vrp.c (vrp_visit_phi_node): Likewise.
15994 (execute_vrp): Likewise.
15995 * ubsan.c (ubsan_expand_null_ifn): Likewise.
15997 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15999 * rtl.h (insn_location): Declare.
16000 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
16001 with UNKNOWN_LOCATION.
16002 * emit-rtl.c (insn_location): New function.
16003 * final.c (notice_source_line): Check that the instruction has a
16004 location before retrieving it and use insn_location.
16005 * modulo-sched.c (loop_single_full_bb_p): Likewise.
16006 * print-rtl.c (print_rtx): Likewise.
16008 2014-06-06 Richard Biener <rguenther@suse.de>
16010 * passes.def: Move 2nd VRP pass before phi-only-cprop.
16012 2014-06-06 Christian Bruel <christian.bruel@st.com>
16014 PR tree-optimization/43934
16015 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
16018 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16020 * ira-lives.c (single_reg_class): Add missing break. Explicitly
16021 return NO_REGS for extra address and memory constraints. Handle
16022 operands that match (or are equivalent to something that matches)
16023 extra constant constraints. Ignore other non-register operands.
16025 2014-06-06 Alan Modra <amodra@gmail.com>
16028 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
16029 * doc/tm.texi: Regenerate.
16030 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
16031 Use throughout in place of REG_PARM_STACK_SPACE.
16032 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
16033 "incoming" param. Pass to rs6000_function_parms_need_stack.
16034 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
16035 prototype_p when incoming. Use function decl when incoming
16036 to handle K&R style functions.
16037 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
16038 (INCOMING_REG_PARM_STACK_SPACE): Define.
16040 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16043 * cfgexpand.c (expand_debug_expr): Use address space of nested
16044 TREE_TYPE for ADDR_EXPR and MEM_REF.
16046 2014-06-05 Jeff Law <law@redhat.com>
16048 PR tree-optimization/61289
16049 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
16050 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
16051 looking for those which match LHS. All callers changed.
16052 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
16053 parameters and code which manipulated them. All callers changed.
16054 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
16055 and DST_MAP parameters. Simplify invalidation code by just calling
16056 invalidate_equivalences. All callers changed.
16057 (thread_across_edge): Simplify now that we don't need to maintain
16058 the map of equivalences to invalidate.
16060 2014-06-05 Kai Tietz <ktietz@redhat.com>
16061 Richard Henderson <rth@redhat.com>
16064 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
16065 checking for !TARGET_X32.
16066 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
16067 (sibcall_intern): New define_insn, plus required peepholes.
16068 (sibcall_pop_intern): Likewise.
16069 (sibcall_value_intern): Likewise.
16070 (sibcall_value_pop_intern): Likewise.
16072 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
16074 * tree-inline.c (tree_function_versioning): Check DF info existence
16075 before accessing it.
16077 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16079 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
16081 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
16082 aarch64_frame hard_fp_offset and frame_size.
16083 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
16084 frame_size; remove original_frame_size.
16085 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
16086 (aarch64_initial_elimination_offset): Remove frame_size and
16087 offset. Use aarch64_frame frame_size.
16089 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16090 Jiong Wang <jiong.wang@arm.com>
16091 Renlin <renlin.li@arm.com>
16093 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
16094 initialization of R30 offset. Update offset. Iterate core
16095 regisers upto X30. Remove X29, X30 specific code.
16097 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16098 Jiong Wang <jiong.wang@arm.com>
16100 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
16101 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
16102 (aarch64_register_saved_on_entry): Adjust test.
16104 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16106 * config/aarch64/aarch64.h (machine_function): Move
16107 saved_varargs_size from here...
16108 (aarch64_frame): ... to here.
16110 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16111 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
16112 (aarch64_initial_elimination_offset)
16113 (aarch64_setup_incoming_varargs): Adjust location of
16114 saved_varargs_size.
16116 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
16118 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
16121 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
16122 Prachi Godbole <Prachi.Godbole@imgtec.com>
16124 * config/mips/mips-cpus.def: Add definition for p5600. Updated
16125 mips32r5 entry to use PROCESSOR_P5600.
16126 * config/mips/mips-tables.opt: Regenerate.
16127 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
16128 * config/mips/mips.c (mips_fmadd_bypass): New function.
16129 (mips_rtx_cost_data): Add costs for p5600.
16130 (mips_issue_rate): Add support for p5600.
16131 (mips_multipass_dfa_lookahead): Likewise.
16132 * config/mips/mips.h (TUNE_P5600): New define.
16133 (TUNE_MACC_CHAINS): Add TUNE_P5600.
16134 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
16135 * config/mips/mips.md: Include p5600.md.
16136 (processor): Add p5600.
16137 * config/mips/p5600.md: New file.
16139 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
16141 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
16142 * config/i386/predicates.md (palignr_operand): New.
16143 Indicates if permutation is suitable for palignr instruction.
16145 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16147 PR tree-optimization/61319
16148 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16149 stmt belongs to loop.
16151 2014-06-05 Richard Biener <rguenther@suse.de>
16153 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16154 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16155 (lookup_tmp_var): Adjust.
16156 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16158 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16160 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16162 2014-06-05 Marek Polacek <polacek@redhat.com>
16165 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16167 2014-06-04 Tom de Vries <tom@codesourcery.com>
16169 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16172 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16174 PR tree-optimization/61385
16175 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16177 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16179 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16180 changed to use fatal_error.
16181 (main): Ensure lto_wrapper_cleanup is run atexit.
16183 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16185 * lra-constraints.c (valid_address_p): Move earlier in file.
16186 (address_eliminator): New structure.
16187 (satisfies_memory_constraint_p): New function.
16188 (satisfies_address_constraint_p): Likewise.
16189 (process_alt_operands, process_address, curr_insn_transform): Use them.
16191 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16193 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16195 (target_lra_int, default_target_lra_int, this_target_lra_int)
16196 (op_alt_data): Delete.
16197 * lra.h (lra_init): Delete.
16198 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16199 (init_insn_code_data_once): Remove op_alt_data handling.
16200 (finish_insn_code_data_once): Likewise.
16201 (init_op_alt_data): Delete.
16202 (get_static_insn_data): Initialize operand_alternative to null.
16203 (free_insn_recog_data): Cast operand_alternative before freeing it.
16204 (setup_operand_alternative): Take the operand_alternative as
16205 parameter and assume it isn't already cached in the static
16207 (lra_set_insn_recog_data): Update accordingly.
16208 (lra_init): Delete.
16209 * ira.c (ira_init): Don't call lra_init.
16210 * target-globals.h (this_target_lra_int): Declare.
16211 (target_globals): Remove lra_int.
16212 (restore_target_globals): Update accordingly.
16213 * target-globals.c: Don't include lra-int.h.
16214 (default_target_globals, save_target_globals): Remove lra_int.
16216 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16218 * recog.h (operand_alternative): Convert reg_class, reject,
16219 matched and matches into bitfields.
16220 (preprocess_constraints): New overload.
16221 (preprocess_insn_constraints): New function.
16222 (preprocess_constraints): Take the insn as parameter.
16223 (recog_op_alt): Change into a pointer.
16224 (target_recog): Add x_op_alt.
16225 * recog.c (asm_op_alt): New variable.
16226 (recog_op_alt): Change into a pointer.
16227 (preprocess_constraints): New overload, replacing the old function
16228 definition with one that doesn't use global state.
16229 (preprocess_insn_constraints): New function.
16230 (preprocess_constraints): Use them. Take the insn as parameter.
16231 Use asm_op_alt for asms.
16232 (recog_init): Free existing x_op_alt entries.
16233 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16235 (make_early_clobber_and_input_conflicts): Likewise.
16236 (process_bb_node_lives): Pass the insn to process_constraints.
16237 * reg-stack.c (check_asm_stack_operands): Likewise.
16238 (subst_asm_stack_regs): Likewise.
16239 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16240 * regrename.c (build_def_use): Likewise.
16241 * sched-deps.c (sched_analyze_insn): Likewise.
16242 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16243 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16244 (note_invalid_constants): Likewise.
16245 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16246 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16249 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16251 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16252 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16254 (make_early_clobber_and_input_conflicts): Likewise.
16255 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16257 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16259 * recog.h (alternative_class): New function.
16260 (which_op_alt): Return a const recog_op_alt.
16261 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16262 (subst_asm_stack_regs): Likewise.
16263 * config/arm/arm.c (note_invalid_constants): Likewise.
16264 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16265 the operand_alternative; use alternative class instead.
16266 * sel-sched.c (get_reg_class): Likewise.
16267 * regrename.c (build_def_use): Likewise.
16268 (hide_operands, restore_operands, record_out_operands): Update type
16271 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16273 * recog.h (recog_op_alt): Convert to a flat array.
16274 (which_op_alt): New function.
16275 * recog.c (recog_op_alt): Convert to a flat array.
16276 (preprocess_constraints): Update accordingly, grouping all
16277 operands of the same alternative together, rather than the
16279 * ira-lives.c (check_and_make_def_conflict): Likewise.
16280 (make_early_clobber_and_input_conflicts): Likewise.
16281 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16282 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16283 (subst_asm_stack_regs): Likewise.
16284 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16285 * regrename.c (hide_operands, record_out_operands): Likewise.
16286 (build_def_use): Likewise.
16287 * sel-sched.c (get_reg_class): Likewise.
16288 * config/arm/arm.c (note_invalid_constants): Likewise.
16290 2014-06-04 Jason Merrill <jason@redhat.com>
16294 * gimplify.c (gimplify_arg): Non-static.
16295 * gimplify.h: Declare it.
16297 2014-06-04 Richard Biener <rguenther@suse.de>
16299 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16300 TREE_PUBLIC and DECL_EXTERNAL decls.
16302 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16304 * regcprop.c (copyprop_hardreg_forward_1): Account for
16305 HARD_REGNO_CALL_PART_CLOBBERED.
16307 2014-06-04 Richard Biener <rguenther@suse.de>
16309 * configure.ac: Check whether the underlying type of int64_t
16310 is long or long long.
16311 * configure: Regenerate.
16312 * config.in: Likewise.
16313 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16314 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16316 2014-06-04 Richard Biener <rguenther@suse.de>
16318 PR tree-optimization/60098
16319 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16321 (dse_optimize_stmt): Simplify, now that we found a kill
16324 2014-06-04 Richard Biener <rguenther@suse.de>
16326 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16327 of accesses with non-invariant address.
16329 2014-06-04 Martin Liska <mliska@suse.cz>
16331 * cgraph.h (cgraph_make_wrapper): New function introduced.
16332 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16333 * ipa-inline.h (inline_analyze_function): The function is global.
16334 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16336 2014-06-04 Martin Liska <mliska@suse.cz>
16338 * tree.h (private_lookup_attribute_starting): New function.
16339 (lookup_attribute_starting): Likewise.
16340 * tree.c (private_lookup_attribute_starting): Likewise.
16342 2014-06-04 Martin Liska <mliska@suse.cz>
16344 * cgraph.h (expand_thunk): New argument added.
16345 (address_taken_from_non_vtable_p): New global function.
16346 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16347 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16348 * cgraphunit.c (analyze_function): Likewise.
16349 (assemble_thunks_and_aliases): Argument added to call.
16350 (expand_thunk): New argument forces to produce GIMPLE thunk.
16352 2014-06-04 Martin Liska <mliska@suse.cz>
16354 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16355 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16356 * profile.c (branch_prob): Likewise.
16358 2014-06-04 Martin Jambor <mjambor@suse.cz>
16361 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16362 handler for switch on an ipa_ref_use enum.
16363 * ipa-reference.c (analyze_function): Likewise.
16365 2014-06-04 Kai Tietz <ktietz@redhat.com>
16367 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16368 from old call-instruction.
16370 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16372 * config/aarch64/aarch64.c (aarch64_classify_address)
16373 (aarch64_legitimize_reload_address): Support full addressing modes
16375 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16376 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16378 2014-06-03 Andrew Pinski <apinski@cavium.com>
16380 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16383 2014-06-03 Andrew Pinski <apinski@cavium.com>
16385 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16386 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16388 2014-06-03 Kai Tietz <ktietz@redhat.com>
16390 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16393 2014-06-03 Dehao Chen <dehao@google.com>
16395 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16398 2014-06-03 Marek Polacek <polacek@redhat.com>
16401 * doc/invoke.texi: Document -Wswitch-bool.
16402 * function.c (stack_protect_epilogue): Cast controlling expression of
16404 * gengtype.c (walk_type): Generate switch expression with its
16405 controlling expression cast to int.
16407 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16409 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16411 * config/avr/avr-tables.opt: Regenerate.
16412 * config/avr/t-multilib: Regenerate.
16413 * doc/avr-mmcu.texi: Regenerate.
16415 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16416 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16418 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16419 (ata6617c, ata664251): Add new avr35 devices.
16420 (ata6612c): Add new avr4 device.
16421 (ata6613c, ata6614q): Add new avr5 devices.
16422 * config/avr/avr-tables.opt: Regenerate.
16423 * config/avr/t-multilib: Regenerate.
16424 * doc/avr-mmcu.texi: Regenerate.
16426 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16428 * gcc/config/aarch64/aarch64-builtins.c
16429 (aarch64_types_binop_ssu_qualifiers): New static data.
16430 (TYPES_BINOP_SSU): Define.
16431 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16432 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16433 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16434 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16435 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16436 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16437 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16438 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16439 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16440 suffix to builtin function name, remove cast.
16441 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16442 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16443 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16445 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16447 * gcc/config/aarch64/aarch64-builtins.c
16448 (aarch64_types_binop_uus_qualifiers,
16449 aarch64_types_shift_to_unsigned_qualifiers,
16450 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16451 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16452 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16453 sqshlu_n, uqshl_n): Update qualifiers.
16454 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16455 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16456 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16457 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16458 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16459 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16460 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16461 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16462 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16463 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16464 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16465 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16466 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16467 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16468 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16469 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16470 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16471 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16472 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16473 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16474 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16475 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16476 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16477 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16478 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16479 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16480 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16482 2014-06-03 Teresa Johnson <tejohnson@google.com>
16484 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16486 2014-06-02 Jason Merrill <jason@redhat.com>
16489 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16491 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16493 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16496 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16498 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16500 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16501 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16502 * config/aarch64/iterators.md (REVERSE): New iterator.
16503 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16504 (rev_op): New int_attribute.
16505 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16506 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16507 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16508 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16509 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16510 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16511 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16512 Replace temporary __asm__ with __builtin_shuffle.
16514 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16516 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
16518 * config/mips/mips-tables.opt: Regenerate.
16519 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
16520 to use mips_isa_rev rather than ISA_MIPS32R2.
16521 * config/mips/mips.h (ISA_MIPS32R3): New define.
16522 (ISA_MIPS32R5): New define.
16523 (ISA_MIPS64R3): New define.
16524 (ISA_MIPS64R5): New define.
16525 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
16526 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
16527 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
16529 (MIPS_ISA_SYNCI_SPEC): Likewise.
16530 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
16531 (LINK_SPEC): Added mips32r3 and mips32r5.
16532 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
16533 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
16534 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
16535 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
16536 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
16537 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
16538 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
16540 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16542 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
16544 * config/mips/mips.opt (mxpa): New option.
16545 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
16548 2014-06-03 Martin Jambor <mjambor@suse.cz>
16551 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
16554 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
16556 PR tree-optimization/61328
16557 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
16558 initialization from find_bswap_or_nop_1.
16559 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
16560 in source_expr2 before using the size value the function sets. Also
16561 make use of init_symbolic_number () in both the old place and
16562 find_bswap_or_nop_load () to avoid reading uninitialized memory when
16563 doing recursion in the GIMPLE_BINARY_RHS case.
16565 2014-06-03 Richard Biener <rguenther@suse.de>
16567 PR tree-optimization/61383
16568 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
16571 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
16573 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
16574 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
16575 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
16576 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
16578 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16579 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
16580 * system.h: ...here and make it unconditional.
16581 * target.def (conditional_register_usage): Mention
16582 define_register_constraint instead of old-style constraint macros.
16583 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
16584 * doc/tm.texi: Regenerate.
16585 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
16586 protected by !USE_MD_CONSTRAINTS.
16587 * config/frv/frv.md: Remove quote from old version of documentation.
16588 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
16589 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
16590 CONST_DOUBLE_OK_FOR_LETTER.
16591 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
16593 2014-06-02 Andrew Pinski <apinski@cavium.com>
16595 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
16596 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
16597 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
16598 file whose name depends on -mabi= and -mbig-endian.
16599 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
16600 Handle LP64 better and handle ilp32 too.
16601 (MULTILIB_OPTIONS): Delete.
16602 (MULTILIB_DIRNAMES): Delete.
16604 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
16606 * expr.h: Remove prototypes of functions defined in builtins.c.
16607 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
16608 Remove prototypes of functions defined in builtins.c.
16609 * builtins.h: Update prototype list to include all exported functions.
16610 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
16611 no_c99_libc_has_function): Move to targhooks.c
16612 (build_string_literal, build_call_expr_loc_array,
16613 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
16615 (expand_builtin_object_size, fold_builtin_object_size): Make static.
16616 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
16617 no_c99_libc_has_function): Relocate from builtins.c.
16618 * tree.c: Include builtins.h.
16619 (build_call_expr_loc_array, build_call_expr_loc_vec,
16620 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
16622 * fold-const.h (fold_fma): Move prototype to builtins.h.
16623 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
16624 * asan.c: Include builtins.h.
16625 * cfgexpand.c: Likewise.
16626 * convert.c: Likewise.
16627 * emit-rtl.c: Likewise.
16628 * except.c: Likewise.
16629 * expr.c: Likewise.
16630 * fold-const.c: Likewise.
16631 * gimple-fold.c: Likewise.
16632 * gimple-ssa-strength-reduction.c: Likewise.
16633 * gimplify.c: Likewise.
16634 * ipa-inline.c: Likewise.
16635 * ipa-prop.c: Likewise.
16636 * lto-streamer-out.c: Likewise.
16637 * stmt.c: Likewise.
16638 * tree-inline.c: Likewise.
16639 * tree-object-size.c: Likewise.
16640 * tree-sra.c: Likewise.
16641 * tree-ssa-ccp.c: Likewise.
16642 * tree-ssa-forwprop.c: Likewise.
16643 * tree-ssa-loop-ivcanon.c: Likewise.
16644 * tree-ssa-loop-ivopts.c: Likewise.
16645 * tree-ssa-math-opts.c: Likewise.
16646 * tree-ssa-reassoc.c: Likewise.
16647 * tree-ssa-threadedge.c: Likewise.
16648 * tree-streamer-in.c: Likewise.
16649 * tree-vect-data-refs.c: Likewise.
16650 * tree-vect-patterns.c: Likewise.
16651 * tree-vect-stmts.c: Likewise.
16652 * config/aarch64/aarch64.c: Likewise.
16653 * config/alpha/alpha.c: Likewise.
16654 * config/arc/arc.c: Likewise.
16655 * config/arm/arm.c: Likewise.
16656 * config/avr/avr.c: Likewise.
16657 * config/bfin/bfin.c: Likewise.
16658 * config/c6x/c6x.c: Likewise.
16659 * config/cr16/cr16.c: Likewise.
16660 * config/cris/cris.c: Likewise.
16661 * config/epiphany/epiphany.c: Likewise.
16662 * config/fr30/fr30.c: Likewise.
16663 * config/frv/frv.c: Likewise.
16664 * config/h8300/h8300.c: Likewise.
16665 * config/i386/i386.c: Likewise.
16666 * config/i386/winnt.c: Likewise.
16667 * config/ia64/ia64.c: Likewise.
16668 * config/iq2000/iq2000.c: Likewise.
16669 * config/lm32/lm32.c: Likewise.
16670 * config/m32c/m32c.c: Likewise.
16671 * config/m32r/m32r.c: Likewise.
16672 * config/m68k/m68k.c: Likewise.
16673 * config/mcore/mcore.c: Likewise.
16674 * config/mep/mep.c: Likewise.
16675 * config/microblaze/microblaze.c: Likewise.
16676 * config/mips/mips.c: Likewise.
16677 * config/mmix/mmix.c: Likewise.
16678 * config/mn10300/mn10300.c: Likewise.
16679 * config/moxie/moxie.c: Likewise.
16680 * config/msp430/msp430.c: Likewise.
16681 * config/nds32/nds32.c: Likewise.
16682 * config/pa/pa.c: Likewise.
16683 * config/pdp11/pdp11.c: Likewise.
16684 * config/picochip/picochip.c: Likewise.
16685 * config/rl78/rl78.c: Likewise.
16686 * config/rs6000/rs6000.c: Likewise.
16687 * config/rx/rx.c: Likewise.
16688 * config/s390/s390.c: Likewise.
16689 * config/score/score.c: Likewise.
16690 * config/sh/sh.c: Likewise.
16691 * config/sparc/sparc.c: Likewise.
16692 * config/spu/spu.c: Likewise.
16693 * config/stormy16/stormy16.c: Likewise.
16694 * config/tilegx/tilegx.c: Likewise.
16695 * config/tilepro/tilepro.c: Likewise.
16696 * config/v850/v850.c: Likewise.
16697 * config/vax/vax.c: Likewise.
16698 * config/xtensa/xtensa.c: Likewise.
16700 2014-06-02 Jeff Law <law@redhat.com>
16702 PR rtl-optimization/61094
16703 * ree.c (combine_reaching_defs): Do not reextend an insn if it
16704 was marked as do_no_reextend. If a copy is needed to eliminate
16705 an extension, then mark it as do_not_reextend.
16707 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
16709 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
16711 2014-06-02 Richard Henderson <rth@redhat.com>
16714 * config/alpha/alpha.c (print_operand_address): Allow symbolic
16715 addresses inside asms. Use output_operand_lossage instead of
16718 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
16721 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
16722 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
16724 2014-06-02 Tom de Vries <tom@codesourcery.com>
16726 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
16727 case that x has VOIDmode.
16729 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
16731 * varasm.c (copy_constant): Delete function.
16732 (build_constant_desc): Don't call it.
16734 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16737 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
16738 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
16739 with immediate_operand.
16741 2014-06-02 Andreas Schwab <schwab@suse.de>
16743 * config/ia64/ia64.c
16744 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
16745 pending_data_specs first.
16747 2014-06-02 Richard Biener <rguenther@suse.de>
16749 PR tree-optimization/61378
16750 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
16751 valueized_anything.
16753 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
16755 * config/i386/constraints.md (Bw): Rename from 'w'.
16756 (Bz): Rename from 'z'.
16757 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
16759 2014-06-01 Kai Tietz <ktietz@redhat.com>
16762 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
16763 * config/i386/i386.md (sibcall_insn_operand): Use Bs
16764 instead of m constraint.
16766 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
16768 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
16769 a separate alternative where the scratch operand 2 is marked as
16772 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16774 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16775 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
16776 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
16777 and __builtins_arm_get_fpscr.
16778 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16779 __builtins_arm_get_fpscr.
16780 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
16781 __builtins_arm_ldfpscr.
16782 (arm_atomic_assign_expand_fenv): New function.
16783 * config/arm/vfp.md (set_fpscr): New pattern.
16784 (get_fpscr) : Likewise.
16785 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
16787 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16788 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
16790 2014-05-30 Jakub Jelinek <jakub@redhat.com>
16792 * asan.c (report_error_func): Add SLOW_P argument, use
16793 BUILT_IN_ASAN_*_N if set.
16794 (build_check_stmt): Likewise.
16795 (instrument_derefs): If T has insufficient alignment,
16796 force same handling as for odd sizes.
16798 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16799 BUILT_IN_ASAN_REPORT_STORE_N): New.
16800 * asan.c (struct asan_mem_ref): Change access_size type to
16802 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16803 update_mem_ref_hash_table): Likewise.
16804 (asan_mem_ref_hasher::hash): Hash in a HWI.
16805 (report_error_func): Change size_in_bytes argument to HWI.
16806 Use *_N builtins if size_in_bytes is larger than 16 or not power of
16808 (build_shadow_mem_access): New function.
16809 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
16810 Handle size_in_bytes not power of two or larger than 16.
16811 (instrument_derefs): Don't give up if size_in_bytes is not
16812 power of two or is larger than 16.
16814 2014-05-30 Kai Tietz <ktietz@redhat.com>
16817 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16818 for sibling-tail-calls.
16819 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16821 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16822 (sibcall_insn_operand): Add check for sibcall_memory_operand.
16824 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16826 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16827 * config/avr/avr-tables.opt: Regenerate.
16828 * config/avr/t-multilib: Regenerate.
16829 * doc/avr-mmcu.texi: Regenerate.
16831 2014-05-30 Ian Lance Taylor <iant@google.com>
16833 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16836 2014-05-30 Tom de Vries <tom@codesourcery.com>
16838 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16841 2014-05-30 Tom de Vries <tom@codesourcery.com>
16843 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16844 * lra.c (initialize_lra_reg_info_element): Add init of
16845 actual_call_used_reg_set field.
16846 (lra): Call lra_create_live_ranges before lra_inheritance for
16848 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16850 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16851 instead of call_used_reg_set for -fuse-caller-save.
16852 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16854 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16856 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16858 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16860 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16862 * ira.c (ira_get_dup_out_num): Check for output operands at
16863 the start of the loop. Handle cases where an included alternative
16864 follows an excluded one.
16866 2014-05-29 Mike Stump <mikestump@comcast.net>
16869 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16870 post ld passes when lto is used.
16872 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
16874 PR rtl-optimization/61325
16875 * lra-constraints.c (process_address): Rename to process_address_1.
16876 (process_address): New function.
16878 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
16880 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16881 TYPES_BINOPV): New static data.
16882 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16884 * config/aarch64/aarch64-simd.md (aarch64_ext,
16885 aarch64_im_lane_boundsi): New patterns.
16886 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16888 (aarch64_evpc_ext): New function.
16890 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16892 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16893 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16894 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16895 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16896 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16898 2014-05-29 Tom de Vries <tom@codesourcery.com>
16900 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16902 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
16903 Richard Sandiford <rdsandiford@googlemail.com>
16905 * arm/iterators.md (shiftable_ops): New code iterator.
16906 (t2_binop0, arith_shift_insn): New code attributes.
16907 * arm/predicates.md (shift_nomul_operator): New predicate.
16908 * arm/arm.md (insn_enabled): Delete.
16909 (enabled): Remove insn_enabled test.
16910 (*arith_shiftsi): Delete. Replace with ...
16911 (*<arith_shift_insn>_multsi): ... new pattern.
16912 (*<arith_shift_insn>_shiftsi): ... new pattern.
16913 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16915 2014-05-29 Radovan Obradovic <robradovic@mips.com>
16916 Tom de Vries <tom@codesourcery.com>
16918 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16919 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16921 (mips_split_call): Use POST_CALL_TMP_REG.
16922 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16924 2014-05-29 Tom de Vries <tom@codesourcery.com>
16926 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16927 with #ifdef STACK_REGS.
16929 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
16931 * varasm.c (get_variable_section): Walk aliases.
16932 (place_block_symbol): Walk aliases.
16934 2014-05-28 Tom de Vries <tom@codesourcery.com>
16937 2014-05-28 Tom de Vries <tom@codesourcery.com>
16939 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16940 * lra.c (initialize_lra_reg_info_element): Add init of
16941 actual_call_used_reg_set field.
16942 (lra): Call lra_create_live_ranges before lra_inheritance for
16944 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16946 * lra-constraints.c (need_for_call_save_p): Use
16947 actual_call_used_reg_set instead of call_used_reg_set for
16949 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16951 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16953 * doc/md.texi: Document that the % constraint character must
16954 be at the beginning of the string.
16955 * genoutput.c (validate_insn_alternatives): Check that '=',
16956 '+' and '%' only appear at the beginning of a constraint.
16957 * ira.c (commutative_constraint_p): Delete.
16958 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16959 at the start of the string.
16960 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16962 * config/arm/neon.md (bicdi3_neon): Likewise.
16963 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16964 (slt_si, sltu_si): Likewise.
16965 * config/vax/vax.md (sbcdi3): Likewise.
16966 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16967 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16968 (mul64): Move '%' to beginning of constraint.
16969 * config/arm/arm.md (*xordi3_insn): Likewise.
16970 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16971 (xorsi3): Likewise.
16973 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16975 * doc/md.texi: Document the restrictions on the "enabled" attribute.
16977 2014-05-28 Jason Merrill <jason@redhat.com>
16980 * cgraph.h (symtab_node::get_comdat_group_id): New.
16981 * cgraphunit.c (analyze_functions): Call it.
16982 * symtab.c (dump_symtab_node): Likewise.
16983 * tree.c (decl_comdat_group_id): New.
16984 * tree.h: Declare it.
16985 * lto-streamer-out.c (write_symbol): Use it.
16986 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16988 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16990 PR bootstrap/PR61146
16991 * wide-int.cc: Do not include longlong.h when compiling with clang.
16993 2014-05-28 Richard Biener <rguenther@suse.de>
16995 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16996 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16997 (vrp_visit_assignment_or_call): Print less vertical space.
16998 (vrp_visit_stmt): Likewise.
16999 (vrp_visit_phi_node): Likewise. For a PHI argument with
17000 VR_VARYING range consider recording it as copy.
17002 2014-05-28 Richard Biener <rguenther@suse.de>
17005 2014-05-28 Richard Biener <rguenther@suse.de>
17007 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17009 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17011 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
17012 sufficiently aligned and an offset is used at the same time.
17013 (expand_expr_real_1): Likewise.
17015 2014-05-28 Richard Biener <rguenther@suse.de>
17017 PR middle-end/61045
17018 * fold-const.c (fold_comparison): When folding
17019 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
17020 the sign of the remaining constant operand stays the same.
17022 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
17024 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17025 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
17026 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
17028 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
17029 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
17030 (m32bit-doubles) Likewise.
17031 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
17032 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
17035 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17037 * configure.ac ($gcc_cv_ld_clearcap): New test.
17038 * configure: Regenerate.
17039 * config.in: Regenerate.
17040 * config/sol2.opt (mclear-hwcap): New option.
17041 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
17042 * config/sol2-clearcap.map: Moved here from
17043 testsuite/gcc.target/i386/clearcap.map.
17044 * config/sol2-clearcapv2.map: Move here from
17045 gcc.target/i386/clearcapv2.map.
17046 * config/t-sol2 (install): Depend on install-clearcap-map.
17047 (install-clearcap-map): New target.
17048 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
17051 2014-05-28 Richard Biener <rguenther@suse.de>
17053 * hwint.h (*_HALF_WIDE_INT*): Move to ...
17054 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
17055 ... here and remove the rest.
17056 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17058 2014-05-28 Richard Biener <rguenther@suse.de>
17060 PR tree-optimization/61335
17061 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
17062 new range fails, drop to varying.
17064 2014-05-28 Olivier Hainque <hainque@adacore.com>
17066 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
17067 (CPP_SPEC): Add entry for -mcpu=8548.
17068 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
17069 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
17071 2014-05-28 Tom de Vries <tom@codesourcery.com>
17073 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17074 * lra.c (initialize_lra_reg_info_element): Add init of
17075 actual_call_used_reg_set field.
17076 (lra): Call lra_create_live_ranges before lra_inheritance for
17078 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17080 * lra-constraints.c (need_for_call_save_p): Use
17081 actual_call_used_reg_set instead of call_used_reg_set for
17083 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17085 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17086 Tom de Vries <tom@codesourcery.com>
17088 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
17090 (@item -fuse-caller-save): New item.
17092 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17093 Tom de Vries <tom@codesourcery.com>
17095 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
17096 OPT_fuse_caller_save.
17098 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17099 Tom de Vries <tom@codesourcery.com>
17101 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
17102 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
17103 get_call_reg_set_usage.
17104 * resource.c (mark_set_resources, mark_target_live_regs): Use
17105 get_call_reg_set_usage.
17106 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
17108 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
17109 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
17110 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17111 * ira-build.c (ira_create_allocno): Init
17112 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17113 (create_cap_allocno, propagate_allocno_info)
17114 (propagate_some_info_from_allocno)
17115 (copy_info_to_removed_store_destinations): Handle
17116 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
17117 * ira-costs.c (ira_tune_allocno_costs): Use
17118 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
17120 2014-05-28 Radovan Obradovic <robradovic@mips.com>
17121 Tom de Vries <tom@codesourcery.com>
17123 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
17124 and function_used_regs_valid fields.
17125 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
17126 find_all_hard_reg_sets.
17127 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
17128 (get_call_reg_set_usage): New function.
17129 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
17130 * regs.h (get_call_reg_set_usage): Declare.
17132 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17135 * config/dbx.h (License): Add Runtime Library Exception.
17136 * config/newlib-stdint.h (License): Same.
17137 * config/rtems.h (License): Same
17138 * config/initfini-array.h (License): Same
17139 * config/v850/v850.h (License): Same.
17140 * config/v850/v850-opts.h (License): Same
17141 * config/v850/rtems.h (License): Same.
17143 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
17146 * doc/extend.texi (Local Labels): Note that label differences are
17147 not supported for AVR.
17149 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17150 Olivier Hainque <hainque@adacore.com>
17152 * rtl.h (set_for_reg_notes): Declare.
17153 * emit-rtl.c (set_for_reg_notes): New function.
17154 (set_unique_reg_note): Use it.
17155 * optabs.c (add_equal_note): Likewise
17157 2014-05-27 Andrew Pinski <apinski@cavium.com>
17159 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17160 Use <w> for the register in assembly template.
17161 (stack_protect_test): Use the mode of operands[0] for the result.
17162 (stack_protect_test_<mode>): Use <w> for the register
17163 in assembly template.
17165 2014-05-27 DJ Delorie <dj@redhat.com>
17167 * config/rx/rx.c (add_vector_labels): New.
17168 (rx_output_function_prologue): Call it.
17169 (rx_handle_func_attribute): Don't require empty arguments.
17170 (rx_handle_vector_attribute): New.
17171 (rx_attribute_table): Add "vector" attribute.
17172 * doc/extend.texi (interrupt, vector): Document new/changed
17173 RX-specific attributes.
17175 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17177 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17179 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17180 predicate to detect a negative quotient.
17182 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17184 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17185 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17186 Add X - Y CMP 0 to X CMP Y transformation.
17187 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17189 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17191 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17194 2014-05-27 Steve Ellcey <sellcey@mips.com>
17196 * config/mips/mips.c: Add include of cgraph.h.
17198 2014-05-27 Richard Biener <rguenther@suse.de>
17200 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17202 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17205 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17206 * config/arm/arm-cores.def (License): Same.
17207 * config/arm/arm-opts.h (License): Same.
17208 * config/arm/aout.h (License): Same.
17209 * config/arm/bpabi.h (License): Same.
17210 * config/arm/elf.h (License): Same.
17211 * config/arm/linux-elf.h (License): Same.
17212 * config/arm/linux-gas.h (License): Same.
17213 * config/arm/netbsd-elf.h (License): Same.
17214 * config/arm/uclinux-eabi.h (License): Same.
17215 * config/arm/uclinux-elf.h (License): Same.
17216 * config/arm/vxworks.h (License): Same.
17218 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17220 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17221 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17222 (arm_init_neon_builtins): Handle NEON_BSWAP.
17223 Define required type nodes.
17224 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17225 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17226 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17227 * config/arm/iterators.md (VDQHSD): New mode iterator.
17229 2014-05-27 Richard Biener <rguenther@suse.de>
17231 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17232 Try using literal operands when comparing value-ranges failed.
17234 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17236 * ira.c (commutative_operand): Adjust for change to recog_data.
17237 [Missing from previous commit.]
17239 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17241 * system.h (TEST_BIT): New macro.
17242 * recog.h (alternative_mask): New type.
17243 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17244 (recog_data_d): Replace alternative_enabled_p array with
17245 enabled_alternatives.
17246 (target_recog): New structure.
17247 (default_target_recog, this_target_recog): Declare.
17248 (get_enabled_alternatives, recog_init): Likewise.
17249 * recog.c (default_target_recog, this_target_recog): New variables.
17250 (get_enabled_alternatives): New function.
17251 (extract_insn): Use it.
17252 (recog_init): New function.
17253 (preprocess_constraints, constrain_operands): Adjust for change to
17255 * postreload.c (reload_cse_simplify_operands): Likewise.
17256 * reload.c (find_reloads): Likewise.
17257 * ira-costs.c (record_reg_classes): Likewise.
17258 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17259 all alternatives after a disabled one would be skipped.
17260 (ira_implicitly_set_insn_hard_regs): Likewise.
17261 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17262 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17263 with enabled_alternatives.
17264 * lra.c (free_insn_recog_data): Update accordingly.
17265 (lra_update_insn_recog_data): Likewise.
17266 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17267 * lra-constraints.c (process_alt_operands): Likewise. Handle
17268 only_alternative as part of the enabled mask.
17269 * target-globals.h (this_target_recog): Declare.
17270 (target_globals): Add a recog field.
17271 (restore_target_globals): Restore this_target_recog.
17272 * target-globals.c: Include recog.h.
17273 (default_target_globals): Initialize recog field.
17274 (save_target_globals): Likewise.
17275 * reginfo.c (reinit_regs): Call recog_init.
17276 * toplev.c (backend_init_target): Likewise.
17278 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17280 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17281 rather than any named insn's code.
17283 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17286 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17287 * config/arm/arm-cores.def (License): Same.
17289 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17291 * tree.h (decl_comdat_group): Declare.
17292 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17293 * tree.c (decl_comdat_group): Here.
17295 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17297 PR rtl-optimization/61222
17298 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17299 the shift, truncate the PLUS operand to the result mode.
17301 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17304 * config/i386/i386.c (ix86_rtx_costs)
17305 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17308 2014-05-26 Martin Jambor <mjambor@suse.cz>
17310 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17313 2014-05-26 Richard Biener <rguenther@suse.de>
17315 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17316 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17317 Provide specializations.
17318 (wi::int_traits <HOST_WIDE_INT>,
17319 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17321 2014-05-26 Alan Modra <amodra@gmail.com>
17324 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17325 params and return a bool. Remove dead code. Update comment.
17326 Assert we have a const_int source. Remove bogus code from
17327 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17328 handling of constants > 2G and reg_equal note, from..
17329 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17330 return value. Update comment. If we can, use a new pseudo
17331 for intermediate calculations.
17332 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17334 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17335 call to rs6000_emit_set_const in splitter.
17336 (movdi_internal64+2, +3): Likewise.
17338 2014-05-26 Richard Biener <rguenther@suse.de>
17340 * system.h: Define __STDC_FORMAT_MACROS before
17341 including inttypes.h.
17342 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17343 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17344 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17345 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17346 HOST_WIDEST_INT_C): Remove.
17347 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17348 if C99 inttypes.h is not available.
17349 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17350 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17351 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17352 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17353 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17354 (struct output_info): Likewise.
17355 (print_statistics): Adjust.
17356 (dump_bitmap_statistics): Likewise.
17357 * bt-load.c (migrate_btr_defs): Print with PRId64.
17358 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17359 (MAX_SAFE_MULTIPLIER): Adjust.
17360 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17361 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17362 dump_cgraph_node): Likewise.
17363 * final.c (dump_basic_block_info): Likewise.
17364 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17365 * gcov.c (format_gcov): Likewise.
17366 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17368 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17369 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17370 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17371 Use PRId64 for dumping.
17372 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17373 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17374 (add_allocno_hard_regs): Adjust.
17375 * loop-doloop.c (doloop_modify): Print using PRId64.
17376 * loop-iv.c (inverse): Compute in uint64_t.
17377 (determine_max_iter, iv_number_of_iterations): Likewise.
17378 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17379 Print using PRId64.
17380 * lto-streamer-out.c (write_symbol): Use uint64_t.
17381 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17382 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17383 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17384 * modulo-sched.c (const_iteration_count): Use int64_t.
17385 (sms_schedule): Dump using PRId64.
17386 * predict.c (dump_prediction): Likewise.
17387 * pretty-print.h (pp_widest_integer): Remove.
17388 * profile.c (get_working_sets, is_edge_inconsistent,
17389 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17390 * tree-pretty-print.c (pp_double_int): Remove case handling
17391 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17392 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17394 (pass_optimize_bswap::execute): Remove restriction on hosts.
17395 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17396 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17397 * tree.c (widest_int_cst_value): Remove.
17398 * tree.h (widest_int_cst_value): Likewise.
17399 * value-prof.c (dump_histogram_value): Print using PRId64.
17400 * gengtype.c (main): Also inject int64_t.
17401 * ggc-page.c (struct max_alignment): Use int64_t.
17402 * alloc-pool.c (struct allocation_object_def): Likewise.
17403 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17405 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17406 * doc/tm.texi: Regenerated.
17407 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17408 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17409 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17410 mmix_output_register_setting): Use [u]int64_t in prototypes.
17411 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17412 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17413 mmix_output_octa, mmix_output_shifted_value): Adjust.
17414 (mmix_intval): Adjust. Remove unreachable case.
17415 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17417 2014-05-26 Richard Biener <rguenther@suse.de>
17419 * configure.ac: Drop __int64 type check. Insist that we
17420 found uint64_t and int64_t.
17421 * hwint.h (HOST_BITS_PER___INT64): Remove.
17422 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17423 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17424 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17425 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17426 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17427 for dst_q_src_df_rms_cdt.
17428 * configure: Regenerate.
17429 * config.in: Likewise.
17431 2014-05-26 Michael Tautschnig <mt@debian.org>
17434 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17435 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17437 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17439 PR rtl-optimization/61278
17440 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17442 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17444 PR rtl-optimization/61220
17445 Part of PR rtl-optimization/61225
17446 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17447 insn; skip split_edge for a block with only one successor.
17449 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17451 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17454 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17456 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17457 (update_vtable_references): New function.
17458 (function_and_variable_visibility): Rewrite also vtable initializers.
17459 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17461 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17463 * ggc.h (ggc_grow): New function.
17464 * ggc-none.c (ggc_grow): New function.
17465 * ggc-page.c (ggc_grow): Likewise.
17467 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17469 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17470 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17471 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17472 varpool_externally_visible_p, can_replace_by_local_alias,
17473 update_visibility_by_resolution_info, function_and_variable_visibility,
17474 pass_data_ipa_function_and_variable_visibility,
17475 make_pass_ipa_function_and_variable_visibility,
17476 whole_program_function_and_variable_visibility,
17477 pass_data_ipa_whole_program_visibility,
17478 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17479 * cgraph.h (cgraph_local_node_p): Declare.
17480 * ipa-visibility.c: New file.
17481 * Makefile.in (OBJS): Add ipa-visiblity.o
17483 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17485 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17486 that var decl is available.
17488 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17490 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17491 symtab_node pointer.
17492 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17493 (find_decls_types_r): Do not walk COMDAT_GROUP.
17494 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17495 * varasm.c (make_decl_one_only): Use set_comdat_group;
17496 create node if needed.
17497 * ipa-inline-transform.c (save_inline_function_body): Update
17498 way we decl->symtab mapping.
17499 * symtab.c (symtab_hash, hash_node, eq_node
17500 symtab_insert_node_to_hashtable): Remove.
17501 (symtab_register_node): Update.
17502 (symtab_unregister_node): Update.
17503 (symtab_get_node): Reimplement as inline function.
17504 (symtab_add_to_same_comdat_group): Update.
17505 (symtab_dissolve_same_comdat_group_list): Update.
17506 (dump_symtab_base): Update.
17507 (verify_symtab_base): Update.
17508 (symtab_make_decl_local): Update.
17509 (fixup_same_cpp_alias_visibility): Update.
17510 (symtab_nonoverwritable_alias): Update.
17511 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17512 * ipa.c (update_visibility_by_resolution_info): UPdate.
17513 * bb-reorder.c: Include cgraph.h
17514 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
17515 with comdat groups.
17516 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
17517 * cgraph.c (cgraph_get_create_node): Update.
17518 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
17520 (symtab_get_node): Make inline.
17521 (symtab_insert_node_to_hashtable): Remove.
17522 (symtab_can_be_discarded): Update.
17523 (decl_comdat_group): New function.
17524 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
17526 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
17528 (read_comdat_group): New function.
17529 (input_node, input_varpool_node): Use it.
17530 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
17532 * mips.c (mips_start_unique_function): Likewise.
17533 (ix86_code_end): Likewise.
17534 (rs6000_code_end): Likweise.
17535 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
17537 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17539 * gengtype-state.c (fatal_reading_state): Bring offline.
17540 * optabs.c (widening_optab_handler): Bring offline.
17541 * optabs.h (widening_optab_handler): Likewise.
17542 * final.c (get_attr_length_1): Likewise.
17544 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17546 * sched-int.h (sd_iterator_cond): Manually tail recurse.
17548 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17550 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
17551 (ppc440-compare): Include shift with dot.
17552 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
17553 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
17555 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
17557 (e6500_sfx2): Include it.
17558 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
17559 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17560 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
17561 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
17562 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
17563 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
17564 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
17565 *lshiftrt_internal1le, *lshiftrt_internal1be,
17566 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
17567 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
17568 *rotldi3_internal10le, *rotldi3_internal10be,
17569 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
17570 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
17571 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
17572 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
17573 define_insns): Use type "shift" in the appropriate alternatives.
17575 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17577 * config/rs6000/rs6000.md (type): Add "logical". Delete
17579 (dot): Adjust comment.
17580 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
17581 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
17582 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
17583 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
17584 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
17585 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
17586 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
17587 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17589 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17590 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17591 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17592 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17593 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17594 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17595 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17596 * config/rs6000/8540.md (ppc8540_su): Adjust.
17597 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17598 cell-cmp-microcoded): Adjust.
17599 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17600 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17601 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17602 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17603 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17604 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17605 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17606 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17607 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17609 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17610 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
17611 Adjust. Adjust comment.
17612 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17613 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17615 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17617 * config/rs6000/rs6000.md (type): Add "add".
17618 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
17619 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
17620 define_insns): Use it.
17621 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17623 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17624 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17625 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17626 * config/rs6000/601.md (ppc601-integer): Adjust.
17627 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17628 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17629 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17630 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17631 * config/rs6000/8540.md (ppc8540_su): Adjust.
17632 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17633 cell-cmp-microcoded): Adjust.
17634 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17635 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17636 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17637 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17638 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17639 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17640 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17641 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17642 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17644 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17645 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
17646 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17647 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17649 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17651 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
17652 "delayed_compare", "var_delayed_compare".
17653 (var_shift): New attribute.
17654 (cell_micro): Adjust.
17655 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
17656 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
17657 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
17658 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17659 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17660 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17661 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17662 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
17663 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
17664 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17665 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
17666 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
17667 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
17668 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
17669 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
17670 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
17671 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
17672 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
17673 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
17674 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
17675 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
17676 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
17677 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
17678 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17679 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17681 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17682 * config/rs6000/440.md (ppc440-integer): Adjust.
17683 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17684 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
17685 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17686 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17687 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17688 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17689 * config/rs6000/8540.md (ppc8540_su): Adjust.
17690 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17691 cell-cmp-microcoded): Adjust.
17692 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
17693 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17694 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
17695 e500mc64_delayed): Adjust.
17696 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
17697 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
17698 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17699 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
17700 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
17701 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
17702 power6-delayed-compare, power6-var-delayed-compare): Adjust.
17703 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
17704 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
17706 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17707 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17709 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17711 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
17712 (bits): New mode_attr.
17713 (idiv_ldiv): Delete mode_attr.
17714 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
17715 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17716 rs6000_adjust_priority, is_nonpipeline_insn,
17717 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17719 * config/rs6000/40x.md (ppc403-idiv): Adjust.
17720 * config/rs6000/440.md (ppc440-idiv): Adjust.
17721 * config/rs6000/476.md (ppc476-idiv): Adjust.
17722 * config/rs6000/601.md (ppc601-idiv): Adjust.
17723 * config/rs6000/603.md (ppc603-idiv): Adjust.
17724 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
17725 ppc620-ldiv): Adjust.
17726 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
17727 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
17728 * config/rs6000/8540.md (ppc8540_divide): Adjust.
17729 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
17730 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
17731 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
17732 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
17733 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
17734 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
17735 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
17736 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
17737 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
17738 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
17739 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
17740 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
17741 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
17742 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
17743 * config/rs6000/titan.md (titan_fxu_div): Adjust.
17745 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17747 * config/rs6000/rs6000.md (type): Delete "insert_word",
17748 "insert_dword". Add "insert".
17749 (size): Update comment.
17750 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17751 insn_must_be_first_in_group): Adjust.
17752 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17753 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17754 *insvsi_internal6, insvdi_internal): Adjust.
17756 * config/rs6000/40x.md (ppc403-integer): Adjust.
17757 * config/rs6000/440.md (ppc440-integer): Adjust.
17758 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
17759 * config/rs6000/601.md (ppc601-integer): Adjust.
17760 * config/rs6000/603.md (ppc603-integer): Adjust.
17761 * config/rs6000/6xx.md (ppc604-integer): Adjust.
17762 * config/rs6000/7450.md (ppc7450-integer): Adjust.
17763 * config/rs6000/7xx.md (ppc750-integer): Adjust.
17764 * config/rs6000/8540.md (ppc8540_su): Adjust.
17765 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
17766 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
17767 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17768 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
17769 * config/rs6000/e5500.md (e5500_sfx): Adjust.
17770 * config/rs6000/e6500.md (e6500_sfx): Adjust.
17771 * config/rs6000/mpc.md (mpccore-integer): Adjust.
17772 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
17773 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
17774 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
17775 * config/rs6000/power7.md (power7-integer): Adjust.
17776 * config/rs6000/power8.md (power8-1cyc): Adjust.
17777 * config/rs6000/rs64.md (rs64a-integer): Adjust.
17778 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17780 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17782 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
17783 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
17784 (size): New attribute.
17785 (dot): New attribute.
17786 (cell_micro): Adjust.
17787 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
17788 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
17789 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
17790 umuldi3_highpart): Adjust.
17791 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17792 rs6000_adjust_priority, is_nonpipeline_insn,
17793 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17795 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17796 ppc405-imul3): Adjust.
17797 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17798 * config/rs6000/476.md (ppc476-imul): Adjust.
17799 * config/rs6000/601.md (ppc601-imul): Adjust.
17800 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17801 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17802 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17803 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17804 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17806 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17807 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17808 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17809 cell-imul): Adjust.
17810 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17811 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17812 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17813 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17814 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17815 * config/rs6000/mpc.md (mpccore-imul): Adjust.
17816 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17817 power4-lmul, power4-imul, power4-imul3): Adjust.
17818 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17819 power5-lmul, power5-imul, power5-imul3): Adjust.
17820 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17821 power6-lmul, power6-imul, power6-imul3): Adjust.
17822 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17823 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17825 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17826 rs64a-lmul): Adjust.
17827 * config/rs6000/titan.md (titan_imul): Adjust.
17829 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17831 * config/rs6000/rs6000.md (type): Add new value "halfmul".
17832 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17833 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17834 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17835 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17836 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17837 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17838 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17839 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17840 * config/rs6000/titan.md: Delete nonsensical comment.
17841 (titan_imul): Add type imul3.
17842 (titan_mulhw): Remove type imul3; add type halfmul.
17844 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17846 * config/rs6000/rs6000.md (type): Reorder, reformat.
17848 2014-05-23 Martin Jambor <mjambor@suse.cz>
17850 PR tree-optimization/53787
17851 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17852 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17853 analysis_done, update all uses.
17854 * ipa-prop.c: Include domwalk.h
17855 (param_analysis_info): Removed.
17856 (param_aa_status): New type.
17857 (ipa_bb_info): Likewise.
17858 (func_body_info): Likewise.
17859 (ipa_get_bb_info): New function.
17860 (aa_overwalked): Likewise.
17861 (find_dominating_aa_status): Likewise.
17862 (parm_bb_aa_status_for_bb): Likewise.
17863 (parm_preserved_before_stmt_p): Changed to use new param AA info.
17864 (load_from_unmodified_param): Accept func_body_info as a parameter
17865 instead of parms_ainfo.
17866 (parm_ref_data_preserved_p): Changed to use new param AA info.
17867 (parm_ref_data_pass_through_p): Likewise.
17868 (ipa_load_from_parm_agg_1): Likewise. Update callers.
17869 (compute_complex_assign_jump_func): Changed to use new param AA info.
17870 (compute_complex_ancestor_jump_func): Likewise.
17871 (ipa_compute_jump_functions_for_edge): Likewise.
17872 (ipa_compute_jump_functions): Removed.
17873 (ipa_compute_jump_functions_for_bb): New function.
17874 (ipa_analyze_indirect_call_uses): Likewise, moved variable
17876 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17877 and info, moved variable declarations down.
17878 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17880 (ipa_analyze_stmt_uses): Likewise.
17881 (ipa_analyze_params_uses): Removed.
17882 (ipa_analyze_params_uses_in_bb): New function.
17883 (ipa_analyze_controlled_uses): Likewise.
17884 (free_ipa_bb_info): Likewise.
17885 (analysis_dom_walker): New class.
17886 (ipa_analyze_node): Handle node-specific forbidden analysis,
17887 initialize and free func_body_info, use dominator walker.
17888 (ipcp_modif_dom_walker): New class.
17889 (ipcp_transform_function): Create and free func_body_info, use
17890 ipcp_modif_dom_walker, moved a lot of functionality there.
17892 2014-05-23 Marek Polacek <polacek@redhat.com>
17893 Jakub Jelinek <jakub@redhat.com>
17895 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17896 * gcc.c (sanitize_spec_function): Likewise.
17897 * convert.c (convert_to_integer): Include "ubsan.h". Add
17898 floating-point to integer instrumentation.
17899 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17900 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17901 SANITIZE_NONDEFAULT.
17902 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17903 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17904 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17905 * ubsan.c: Include "realmpfr.h" and "dfp.h".
17906 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17907 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17908 float/double/long double.
17909 (ubsan_instrument_float_cast): New function.
17910 * ubsan.h (ubsan_instrument_float_cast): Declare.
17912 2014-05-23 Jiong Wang <jiong.wang@arm.com>
17914 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17916 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
17917 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17918 Adjust for tailcalling through registers.
17919 * config/aarch64/aarch64.h (enum reg_class): New caller save
17921 (REG_CLASS_NAMES): Likewise.
17922 (REG_CLASS_CONTENTS): Likewise.
17923 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17924 Allow tailcalling without decls.
17926 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17928 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17929 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17931 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17932 gsi, and variables v_* to v*.
17934 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
17936 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17938 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17940 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17941 * omp-low.c: Update accordingly.
17943 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17944 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17945 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17946 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17947 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17948 GF_OMP_TARGET_KIND_UPDATE.
17950 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17951 Explicitly enumerate the expected region types.
17953 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
17956 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
17957 documentation; the old documentation didn't clearly state the
17958 constraints on the contents of the pointed-to storage.
17960 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17962 Fix bootstrap error on ia64
17963 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17964 Return default value.
17966 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
17968 PR tree-optimization/54733
17969 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17971 (find_bswap_or_nop_load): New.
17972 (find_bswap_1): Renamed to ...
17973 (find_bswap_or_nop_1): This. Also add support for memory source.
17974 (find_bswap): Renamed to ...
17975 (find_bswap_or_nop): This. Also add support for memory source and
17976 detection of bitwise operations equivalent to load in target
17978 (execute_optimize_bswap): Likewise. Also move its leading comment back
17979 in place and split statement transformation into ...
17980 (bswap_replace): This.
17982 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17984 PR rtl-optimization/61215
17985 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17986 simplify_gen_subreg until final substitution.
17988 2014-05-23 Alan Modra <amodra@gmail.com>
17991 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17992 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17993 Use "Y" constraint rather than "m".
17995 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17997 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17999 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
18000 New function declaration.
18001 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
18002 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
18003 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
18004 (aarch64_init_builtins) : Initialize builtins
18005 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18006 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18007 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
18008 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
18009 and __builtins_aarch64_set_fpsr.
18010 (aarch64_atomic_assign_expand_fenv): New function.
18011 * config/aarch64/aarch64.md (set_fpcr): New pattern.
18012 (get_fpcr) : Likewise.
18013 (set_fpsr) : Likewise.
18014 (get_fpsr) : Likewise.
18015 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
18016 and UNSPECV_SET_FPSR.
18017 * doc/extend.texi (AARCH64 Built-in Functions) : Document
18018 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
18019 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
18021 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
18023 PR rtl-optimization/60969
18024 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
18025 constraints. Set up mem cost for NO_REGS case.
18027 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
18029 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
18031 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
18033 * config/darwin.c: Include "lto-section-names.h".
18034 (LTO_SEGMENT_NAME): Don't define.
18035 * config/i386/winnt.c: Include "lto-section-names.h".
18036 * lto-streamer.c: Include "lto-section-names.h".
18037 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
18038 * lto-wrapper.c: Include "lto-section-names.h".
18039 (LTO_SECTION_NAME_PREFIX): Don't define.
18040 * lto-section-names.h: New file.
18041 * cgraphunit.c: Include "lto-section-names.h".
18043 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
18045 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
18047 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
18050 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
18052 2014-05-22 Nick Clifton <nickc@redhat.com>
18054 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
18056 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
18058 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
18059 -> (T)A transformation to integer types.
18061 2014-05-22 Teresa Johnson <tejohnson@google.com>
18063 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
18064 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
18065 (gcov_rewrite): Use gcov_nonruntime_assert.
18066 (gcov_open): Ditto.
18067 (gcov_write_words): Ditto.
18068 (gcov_write_length): Ditto.
18069 (gcov_read_words): Use gcov_nonruntime_assert, and remove
18070 gcc_assert from IN_LIBGCOV code.
18071 (gcov_read_summary): Use gcov_error to flag profile corruption.
18072 (gcov_sync): Use gcov_nonruntime_assert.
18073 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
18074 (gcov_histo_index): Use gcov_nonruntime_assert.
18075 (static void gcov_histogram_merge): Ditto.
18076 (compute_working_sets): Ditto.
18077 * gcov-io.h (gcov_nonruntime_assert): Define.
18078 (gcov_error): Define for !IN_LIBGCOV
18080 2014-05-22 Richard Biener <rguenther@suse.de>
18082 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18083 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
18084 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
18085 and deallocation site.
18086 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18087 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
18088 passing through the incoming points-to set.
18089 (handle_lhs_call): Use flags argument instead of recomputing it.
18090 (find_func_aliases_for_call): Call handle_lhs_call with proper
18093 2014-05-22 Jakub Jelinek <jakub@redhat.com>
18095 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
18096 all padding bits in REAL_VALUE_TYPE are cleared.
18098 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18100 Cleanup and improve multipass_dfa_lookahead_guard
18101 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
18102 (core2i7_first_cycle_multipass_begin,)
18103 (core2i7_first_cycle_multipass_issue,)
18104 (core2i7_first_cycle_multipass_backtrack): Update signature.
18105 * config/ia64/ia64.c
18106 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
18107 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
18108 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
18110 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
18111 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
18113 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
18115 * doc/tm.texi: Regenerate.
18117 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
18118 * haifa-sched.c (ready_try): Make signed to allow negative values.
18119 (rebug_ready_list_1): Update.
18120 (choose_ready): Simplify.
18121 (sched_extend_ready_list): Update.
18123 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18125 Remove IA64 speculation tweaking flags
18126 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
18127 speculation tuning flags.
18128 (msched-prefer-non-data-spec-insns,)
18129 (msched-prefer-non-control-spec-insns): Obsolete options.
18130 * haifa-sched.c (choose_ready): Remove handling of
18131 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18132 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
18133 and PREFER_NON_DATA_SPEC.
18134 * sel-sched.c (process_spec_exprs): Remove handling of
18135 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
18137 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18139 Improve scheduling debug output
18140 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
18141 (advance_one_cycle): Update.
18142 (schedule_insn, queue_to_ready): Add debug printouts.
18143 (debug_ready_list_1): New static function.
18144 (debug_ready_list): Update.
18145 (max_issue): Add debug printouts.
18146 (dump_insn_stream): New static function.
18147 (schedule_block): Use it. Also better indent printouts.
18149 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18151 Fix sched_insn debug counter
18152 * haifa-sched.c (schedule_insn): Update.
18153 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18154 (save_backtrack_point, restore_backtrack_point): Update.
18155 (first_nonscheduled_insn): New static function.
18156 (queue_to_ready, choose_ready): Use it.
18157 (schedule_block): Init nonscheduled_insns_begin.
18158 (sched_emit_insn): Update.
18161 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18163 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18165 (aarch64_secondary_reload) : LikeWise.
18166 (aarch64_class_max_nregs) : Remove CORE_REGS.
18167 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18168 (REG_CLASS_NAMES) : Likewise.
18169 (REG_CLASS_CONTENTS) : LikeWise.
18170 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18172 2014-05-21 Guozhi Wei <carrot@google.com>
18175 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18177 (vqdmulhq_n_s16): Likewise.
18179 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18181 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18183 2014-05-21 Marek Polacek <polacek@redhat.com>
18186 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18188 2014-05-21 Martin Jambor <mjambor@suse.cz>
18190 * doc/invoke.texi (Optimize Options): Document parameters
18191 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18192 ipa-cp-array-index-hint-bonus.
18194 2014-05-21 Mark Wielaard <mjw@redhat.com>
18197 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18198 version >= 3 or not strict DWARF.
18199 * langhooks.h (struct lang_hooks_for_types): Add
18200 enum_underlying_base_type.
18201 * langhooks.c (lhd_enum_underlying_base_type): New function.
18202 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18203 enum_underlying_base_type.
18204 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18205 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18206 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18208 2014-05-21 Richard Biener <rguenther@suse.de>
18210 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18212 2014-05-21 John Marino <gnugcc@marino.st>
18214 * config.gcc (*-*-dragonfly*): New target.
18215 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18216 * configure: Regenerate.
18217 * config/dragonfly-stdint.h: New.
18218 * config/dragonfly.h: New.
18219 * config/dragonfly.opt: New.
18220 * config/i386/dragonfly.h: New.
18221 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18223 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18225 * tree.def (VOID_CST): New.
18226 * tree-core.h (TI_VOID): New.
18227 * tree.h (void_node): New.
18228 * tree.c (tree_node_structure_for_code, tree_code_size)
18229 (iterative_hash_expr): Handle VOID_CST.
18230 (build_common_tree_nodes): Initialize void_node.
18232 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18234 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18236 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18238 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18241 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18242 flag_reorder_blocks_and_partition.
18243 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18245 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18248 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18250 (*addc_r_t): Add new insn_and_split.
18252 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18254 PR middle-end/61252
18255 * omp-low.c (handle_simd_reference): New function.
18256 (lower_rec_input_clauses): Use it. Defer adding reference
18257 initialization even for reduction without placeholder if in simd,
18258 handle it properly later on.
18260 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18262 PR tree-optimization/60899
18263 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18264 assume all static symbols will have definition wile parsing and
18265 check the do have definition later in compilation; check that
18266 variable referring symbol will be output before concluding that
18267 reference is safe; be conservative for referring local statics;
18268 be more precise about when comdat is output in other partition.
18270 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18273 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18275 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18276 (ipa_inline): Loop inline_to_all_callers until no more aliases
18279 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18281 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18282 set writeonly flag only for vars actually written to.
18284 2014-05-20 Dehao Chen <dehao@google.com>
18286 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18287 and callee count to get clone count.
18288 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18289 count in copy_body.
18291 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18293 PR rtl-optimization/61243
18294 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18296 2014-05-20 Xinliang David Li <davidxl@google.com>
18298 * cgraphunit.c (walk_polymorphic_call_targets): Add
18299 dbgcnt and fopt-info support.
18300 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18301 * ipa-devirt.c (ipa_devirt): Ditto.
18302 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18303 * ipa.c (walk_polymorphic_call_targets): Ditto.
18304 * gimple-fold.c (fold_gimple_assign): Ditto.
18305 (gimple_fold_call): Ditto.
18306 * dbgcnt.def: New counter.
18308 2014-05-20 DJ Delorie <dj@redhat.com>
18310 * config/msp430/msp430.md (split): Don't allow subregs when
18311 splitting SImode adds.
18312 (andneghi): Fix subtraction logic.
18313 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18315 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18317 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18319 * except.c (switch_to_exception_section, resolve_unique_section,
18320 get_named_text_section, default_function_rodata_section,
18321 align_variable, get_block_for_decl, default_section_type_flags):
18322 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18323 * symtab.c (symtab_add_to_same_comdat_group,
18324 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18325 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18327 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18328 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18329 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18330 (c6x_function_in_section_p): Likewise.
18331 * config/darwin.c (machopic_select_section): Likewise.
18332 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18333 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18334 * config/mep/mep.c (mep_select_section): LIkewise.
18335 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18337 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18339 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18340 EH region of calls to pure functions that can throw an exception.
18341 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18342 (copy_reference_ops_from_call): Also copy the EH region of the call if
18343 it can throw an exception.
18345 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18347 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18348 nested VEC_SELECTs that are inverses of each other.
18350 2014-05-20 Richard Biener <rguenther@suse.de>
18352 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18353 (extract_and_process_scc_for_name): not here.
18354 (cond_dom_walker::before_dom_children): Only process
18355 stmts that end the BB in interesting ways.
18356 (run_scc_vn): Mark param uses as visited.
18358 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18360 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18363 2014-05-20 Nick Clifton <nickc@redhat.com>
18365 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18366 (msp430_gimplify_va_arg_expr): New function.
18367 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18369 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18370 operand 0 in order to prevent confusion about the number of
18371 registers involved.
18373 2014-05-20 Richard Biener <rguenther@suse.de>
18375 PR tree-optimization/61221
18376 * tree-ssa-pre.c (el_to_update): Remove.
18377 (eliminate_dom_walker::before_dom_children): Handle released
18378 VDEFs by value-numbering them to the associated VUSE. Update
18379 stmt immediately for substituted call address.
18380 (eliminate): Remove delayed stmt updating code.
18381 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18382 possibly late re-numbered vuses.
18383 (vn_reference_lookup_2): Adjust.
18384 (vn_reference_lookup_pieces): Likewise.
18385 (vn_reference_lookup): Likewise.
18387 2014-05-20 Richard Biener <rguenther@suse.de>
18389 * config.gcc: Remove need_64bit_hwint.
18390 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18391 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18393 * config.in: Regenerate.
18394 * configure: Likewise.
18396 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18398 * doc/extend.texi: Create Label Attributes section,
18399 move all label attributes into it and reference it.
18401 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18403 * arm.c (thumb1_reorg): When scanning backwards skip anything
18404 that's not a proper insn.
18406 2014-05-19 Richard Biener <rguenther@suse.de>
18408 PR tree-optimization/61221
18409 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18410 Do nothing for unreachable blocks.
18411 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18412 Improve unreachability detection.
18414 2014-05-19 Richard Biener <rguenther@suse.de>
18416 PR tree-optimization/61209
18417 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18419 2014-05-19 Nick Clifton <nickc@redhat.com>
18421 * except.c (init_eh): Fix computation of builtin setjmp buffer
18422 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18424 2014-05-19 Richard Biener <rguenther@suse.de>
18426 PR tree-optimization/61184
18427 * tree-vrp.c (is_negative_overflow_infinity): Use
18428 TREE_OVERFLOW_P and do that check first.
18429 (is_positive_overflow_infinity): Likewise.
18430 (is_overflow_infinity): Likewise.
18431 (vrp_operand_equal_p): Properly treat operands with
18432 differing overflow as not equal.
18434 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18436 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18437 shift simplification where it was intended.
18439 2014-05-19 Christian Bruel <christian.bruel@st.com>
18442 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18444 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18447 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18450 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18452 * reg-notes.def (CROSSING_JUMP): Likewise.
18453 * rtl.h (rtx_def): Update comment for jump flag.
18454 (CROSSING_JUMP_P): Define.
18455 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18456 of a REG_CROSSING_JUMP note.
18457 * cfghooks.c (tidy_fallthru_edges): Likewise.
18458 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18459 * emit-rtl.c (try_split): Likewise.
18460 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18461 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18462 * jump.c (redirect_jump_2): Likewise.
18463 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18464 (relax_delay_slots): Likewise.
18465 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18466 (bbit_di): Likewise.
18467 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18468 * config/sh/sh.md (jump_compact): Likewise.
18469 * bb-reorder.c (rotate_loop): Likewise.
18470 (pass_duplicate_computed_gotos::execute): Likewise.
18471 (add_reg_crossing_jump_notes): Rename to...
18472 (update_crossing_jump_flags): ...this.
18473 (pass_partition_blocks::execute): Update accordingly.
18475 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18477 * tree.h: Remove extraneous template <>.
18479 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18481 * ipa.c (symtab_remove_unreachable_nodes): Remove
18482 symbol from comdat group if its body was eliminated.
18483 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18484 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18485 (symtab_unregister_node): ... this one.
18486 (verify_symtab_base): More strict checking of comdats.
18487 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18489 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18491 * tree-pass.h (make_pass_ipa_comdats): New pass.
18492 * timevar.def (TV_IPA_COMDATS): New timevar.
18493 * passes.def (pass_ipa_comdats): Add.
18494 * Makefile.in (OBJS): Add ipa-comdats.o
18495 * ipa-comdats.c: New file.
18497 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18499 * ipa.c (update_visibility_by_resolution_info): New function.
18500 (function_and_variable_visibility): Use it.
18502 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18504 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18506 (FOR_EACH_DEFINED_SYMBOL): New macro.
18507 (varpool_first_static_initializer, varpool_next_static_initializer,
18508 varpool_first_defined_variable, varpool_next_defined_variable):
18510 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18512 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18514 * ggc-page.c (ggc_handle_finalizers): Add comment.
18516 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18518 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
18519 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
18520 (ggc_internal_cleared_alloc): Likewise.
18521 * ggc-page.c (finalizer): New class.
18522 (vec_finalizer): Likewise.
18523 (globals::finalizers): New member.
18524 (globals::vec_finalizers): Likewise.
18525 (ggc_internal_alloc): Record the finalizer if any for the block being
18527 (ggc_handle_finalizers): New function.
18528 (ggc_collect): Call ggc_handle_finalizers.
18529 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
18531 (ggc_internal_cleared_alloc): Likewise.
18532 (finalize): New function.
18533 (need_finalization_p): Likewise.
18534 (ggc_alloc): Install the type's destructor as the finalizer if it
18535 might do something.
18536 (ggc_cleared_alloc): Likewise.
18537 (ggc_vec_alloc): Likewise.
18538 (ggc_cleared_vec_alloc): Likewise.
18540 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18542 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
18544 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18546 * alias.c (record_alias_subset): Adjust.
18547 * bitmap.c (bitmap_element_allocate): Likewise.
18548 (bitmap_gc_alloc_stat): Likewise.
18549 * cfg.c (init_flow): Likewise.
18550 (alloc_block): Likewise.
18551 (unchecked_make_edge): Likewise.
18552 * cfgloop.c (alloc_loop): Likewise.
18553 (flow_loops_find): Likewise.
18554 (rescan_loop_exit): Likewise.
18555 * cfgrtl.c (init_rtl_bb_info): Likewise.
18556 * cgraph.c (insert_new_cgraph_node_version): Likewise.
18557 (cgraph_allocate_node): Likewise.
18558 (cgraph_create_edge_1): Likewise.
18559 (cgraph_allocate_init_indirect_info): Likewise.
18560 * cgraphclones.c (cgraph_clone_edge): Likewise.
18561 * cgraphunit.c (add_asm_node): Likewise.
18562 (init_lowered_empty_function): Likewise.
18563 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
18564 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18565 (alpha_use_linkage): Likewise.
18566 * config/arc/arc.c (arc_init_machine_status): Likewise.
18567 * config/arm/arm.c (arm_init_machine_status): Likewise.
18568 * config/avr/avr.c (avr_init_machine_status): Likewise.
18569 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18570 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
18571 * config/cris/cris.c (cris_init_machine_status): Likewise.
18572 * config/darwin.c (machopic_indirection_name): Likewise.
18573 (darwin_build_constant_cfstring): Likewise.
18574 (darwin_enter_string_into_cfstring_table): Likewise.
18575 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
18576 * config/frv/frv.c (frv_init_machine_status): Likewise.
18577 * config/i386/i386.c (get_dllimport_decl): Likewise.
18578 (ix86_init_machine_status): Likewise.
18579 (assign_386_stack_local): Likewise.
18580 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18581 (i386_pe_maybe_record_exported_symbol): Likewise.
18582 (i386_pe_record_stub): Likewise.
18583 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18584 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18585 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18586 (m32c_note_pragma_address): Likewise.
18587 * config/mep/mep.c (mep_init_machine_status): Likewise.
18588 (mep_note_pragma_flag): Likewise.
18589 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18590 (mips16_local_alias): Likewise.
18591 (mips_init_machine_status): Likewise.
18592 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18593 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18594 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
18595 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
18596 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
18597 * config/pa/pa.c (pa_init_machine_status): Likewise.
18598 (pa_get_deferred_plabel): Likewise.
18599 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
18600 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18601 (rs6000_init_machine_status): Likewise.
18602 (output_toc): Likewise.
18603 * config/s390/s390.c (s390_init_machine_status): Likewise.
18604 * config/score/score.c (score_output_external): Likewise.
18605 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18606 * config/spu/spu.c (spu_init_machine_status): Likewise.
18607 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
18608 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
18609 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18610 * coverage.c (coverage_end_function): Likewise.
18611 * dbxout.c (dbxout_init): Likewise.
18612 * doc/gty.texi: Don't mention variable_size attribute.
18613 * dwarf2cfi.c (new_cfi): Adjust.
18614 (new_cfi_row): Likewise.
18615 (copy_cfi_row): Likewise.
18616 (create_cie_data): Likewise.
18617 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
18618 (new_loc_descr): Likewise.
18619 (find_AT_string_in_table): Likewise.
18620 (add_addr_table_entry): Likewise.
18621 (new_die): Likewise.
18622 (add_var_loc_to_decl): Likewise.
18623 (clone_die): Likewise.
18624 (clone_as_declaration): Likewise.
18625 (break_out_comdat_types): Likewise.
18626 (new_loc_list): Likewise.
18627 (add_loc_descr_to_each): Likewise.
18628 (add_location_or_const_value_attribute): Likewise.
18629 (add_linkage_name): Likewise.
18630 (lookup_filename): Likewise.
18631 (dwarf2out_var_location): Likewise.
18632 (new_line_info_table): Likewise.
18633 (dwarf2out_init): Likewise.
18634 (mem_loc_descriptor): Likewise.
18635 (loc_descriptor): Likewise.
18636 (add_const_value_attribute): Likewise.
18637 (tree_add_const_value_attribute): Likewise.
18638 (comp_dir_string): Likewise.
18639 (dwarf2out_vms_debug_main_pointer): Likewise.
18640 (string_cst_pool_decl): Likewise.
18641 * emit-rtl.c (set_mem_attrs): Likewise.
18642 (get_reg_attrs): Likewise.
18643 (start_sequence): Likewise.
18644 (init_emit): Likewise.
18645 (init_emit_regs): Likewise.
18646 * except.c (init_eh_for_function): Likewise.
18647 (gen_eh_region): Likewise.
18648 (gen_eh_region_catch): Likewise.
18649 (gen_eh_landing_pad): Likewise.
18650 (add_call_site): Likewise.
18651 * function.c (add_frame_space): Likewise.
18652 (insert_temp_slot_address): Likewise.
18653 (assign_stack_temp_for_type): Likewise.
18654 (get_hard_reg_initial_val): Likewise.
18655 (allocate_struct_function): Likewise.
18656 (prepare_function_start): Likewise.
18657 (types_used_by_var_decl_insert): Likewise.
18658 * gengtype.c (variable_size_p): Remove function.
18659 (enum alloc_quantity): Remove enum.
18660 (write_typed_alloc_def): Remove function.
18661 (write_typed_struct_alloc_def): Likewise.
18662 (write_typed_typedef_alloc_def): Likewise.
18663 (write_typed_alloc_defns): Likewise.
18665 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
18666 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
18667 * ggc.h (ggc_alloc): new function.
18668 (ggc_cleared_alloc): Likewise.
18669 (ggc_vec_alloc): Template on type of vector element, and remove
18670 element size argument.
18671 (ggc_cleared_vec_alloc): Likewise.
18672 * gimple.c (gimple_build_omp_for): Adjust.
18673 (gimple_copy): Likewise.
18674 * ipa-cp.c (get_replacement_map): Likewise.
18675 (find_aggregate_values_for_callers_subset): Likewise.
18676 (known_aggs_to_agg_replacement_list): Likewise.
18677 * ipa-devirt.c (get_odr_type): Likewise.
18678 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
18679 (read_agg_replacement_chain): Likewise.
18680 * loop-iv.c (get_simple_loop_desc): Likewise.
18681 * lto-cgraph.c (input_node_opt_summary): Likewise.
18682 * lto-section-in.c (lto_new_in_decl_state): Likewise.
18683 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18684 (input_eh_region): Likewise.
18685 (input_eh_lp): Likewise.
18686 (input_cfg): Likewise.
18687 * optabs.c (set_optab_libfunc): Likewise.
18688 (init_tree_optimization_optabs): Likewise.
18689 (set_conv_libfunc): Likewise.
18690 * passes.c (do_per_function_toporder): Likewise.
18691 * rtl.h: Don't use variable_size gty attribute.
18692 * sese.c (if_region_set_false_region): Adjust.
18693 * stringpool.c (gt_pch_save_stringpool): Likewise.
18694 * target-globals.c (save_target_globals): Likewise.
18695 * toplev.c (general_init): Likewise.
18696 * trans-mem.c (record_tm_replacement): Likewise.
18697 (split_bb_make_tm_edge): Likewise.
18698 * tree-cfg.c (move_sese_region_to_fn): Likewise.
18699 * tree-data-ref.h (lambda_vector_new): Likewise.
18700 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18701 * tree-iterator.c (tsi_link_before): Likewise.
18702 (tsi_link_after): Likewise.
18703 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18704 * tree-ssa-loop-niter.c (record_estimate): Likewise.
18705 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18706 * tree-ssa-operands.h: Don't use variable_size gty attribute.
18707 * tree-ssa.c (init_tree_ssa): Adjust.
18708 * tree-ssanames.c (set_range_info): Likewise.
18709 (get_ptr_info): Likewise.
18710 (duplicate_ssa_name_ptr_info): Likewise.
18711 (duplicate_ssa_name_range_info): Likewise.
18712 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
18713 (unpack_ts_fixed_cst_value_fields): Likewise.
18714 * tree.c (build_fixed): Likewise.
18715 (build_real): Likewise.
18716 (build_string): Likewise.
18717 (decl_priority_info): Likewise.
18718 (decl_debug_expr_insert): Likewise.
18719 (decl_value_expr_insert): Likewise.
18720 (decl_debug_args_insert): Likewise.
18721 (type_hash_add): Likewise.
18722 (build_omp_clause): Likewise.
18723 * ubsan.c (decl_for_type_insert): Likewise.
18724 * varasm.c (get_unnamed_section): Likewise.
18725 (get_noswitch_section): Likewise.
18726 (get_section): Likewise.
18727 (get_block_for_section): Likewise.
18728 (create_block_symbol): Likewise.
18729 (build_constant_desc): Likewise.
18730 (create_constant_pool): Likewise.
18731 (force_const_mem): Likewise.
18732 (record_tm_clone_pair): Likewise.
18733 * varpool.c (varpool_create_empty_node): Likewise.
18735 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18737 * dwarf2out.c (tree_add_const_value_attribute): Call
18738 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
18739 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
18740 instead of ggc_internal_<x>alloc_stat.
18741 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
18742 (ggc_realloc): Likewise.
18743 * ggc-none.c (ggc_internal_alloc): Likewise.
18744 (ggc_internal_cleared_alloc): Likewise.
18745 * ggc-page.c: Likewise.
18746 * ggc.h (ggc_internal_alloc_stat): Likewise.
18747 (ggc_internal_alloc): Remove macro.
18748 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
18749 (ggc_internal_cleared_alloc): Remove macro.
18750 (GGC_RESIZEVEC): Adjust.
18751 (ggc_resizevar): Remove macro.
18752 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
18753 (ggc_internal_cleared_vec_alloc_stat): Likewise.
18754 (ggc_internal_vec_cleared_alloc): Remove macro.
18755 (ggc_alloc_atomic_stat): Drop _stat suffix.
18756 (ggc_alloc_atomic): Remove macro.
18757 (ggc_alloc_cleared_atomic): Remove macro.
18758 (ggc_alloc_string_stat): Drop _stat suffix.
18759 (ggc_alloc_string): Remove macro.
18760 (ggc_alloc_rtx_def_stat): Adjust.
18761 (ggc_alloc_tree_node_stat): Likewise.
18762 (ggc_alloc_cleared_tree_node_stat): Likewise.
18763 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
18764 (ggc_alloc_cleared_simd_clone_stat): Likewise.
18765 * gimple.c (gimple_build_omp_for): Likewise.
18766 (gimple_copy): Likewise.
18767 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
18768 * toplev.c (realloc_for_line_map): Adjust.
18769 * tree-data-ref.h (lambda_vector_new): Likewise.
18770 * tree-phinodes.c (allocate_phi_node): Likewise.
18771 * tree.c (grow_tree_vec_stat): Likewise.
18772 * vec.h (va_gc::reserve): Adjust.
18774 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
18776 * config/microblaze/microblaze.c (break_handler): New Declaration.
18777 (microblaze_break_function_p,microblaze_is_break_handler): New.
18778 (compute_frame_size): Use microblaze_break_function_p.
18779 Add the test of break_handler.
18780 (microblaze_function_prologue) : Add the test of variable
18781 break_handler. Check the fnname by BREAK_HANDLER_NAME.
18782 (microblaze_function_epilogue) : Add the test of break_handler.
18783 (microblaze_globalize_label) : Add the test of break_handler.
18784 Check the name by BREAK_HANDLER_NAME.
18786 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
18788 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
18789 microblaze_is_break_handler test.
18790 (call_internal1,call_value_intern): Use microblaze_break_function_p.
18791 Use SYMBOL_REF_DECL.
18793 * config/microblaze/microblaze-protos.h
18794 (microblaze_break_function_p,microblaze_is_break_handler):
18797 * doc/extend.texi (MicroBlaze break_handler Functions): Document
18798 new MicroBlaze break_handler functions.
18800 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18802 * doc/extend.texi (Size of an asm): Move node text according
18803 to its @menu entry position.
18805 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
18807 PR tree-optimization/61140
18808 PR tree-optimization/61150
18809 PR tree-optimization/61197
18810 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18812 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18814 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
18816 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
18818 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18819 __SIZEOF_INT128__ is defined.
18821 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18823 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18824 (rs6000_delegitimize_address): Use it.
18826 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18828 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18829 inplace argument. Store the new address in the original MEM when true.
18830 * emit-rtl.c (change_address_1): Likewise.
18831 (adjust_address_1, adjust_automodify_address_1, offset_address):
18832 Update accordingly.
18833 * rtl.h (plus_constant): Add an inplace argument.
18834 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
18835 when true. Avoid generating (plus X (const_int 0)).
18836 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18837 in-place. Pass true to plus_constant.
18838 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18840 2014-05-16 Dehao Chen <dehao@google.com>
18842 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18844 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18847 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18849 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18851 2014-05-16 Dehao Chen <dehao@google.com>
18853 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18854 optimize_function_for_size_p.
18855 * regs.h (REG_FREQ_FROM_BB): Likewise.
18857 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18860 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18861 negt_reg_operand cases.
18862 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18864 * config/sh/predicates.md (cbranch_treg_value): Simplify.
18866 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18868 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18871 2014-05-16 David Malcolm <dmalcolm@redhat.com>
18874 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18876 * tree-cfg.c (dump_function_to_file): Dump the return type of
18877 functions, in a line to itself before the function body, mimicking
18878 the layout of a C function.
18880 2014-05-16 Dehao Chen <dehao@google.com>
18882 * cfghooks.c (make_forwarder_block): Use direct computation to
18883 get fall-through edge's count and frequency.
18885 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
18887 * config/arc/arc.c (arc_init): Fix typo in error message.
18888 * config/i386/i386.c (ix86_expand_builtin): Likewise.
18889 (split_stack_prologue_scratch_regno): Likewise.
18890 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18891 word from error message.
18893 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18895 * ira-costs.c: Fix typo in comment.
18897 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
18899 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18901 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
18903 * varpool.c (dump_varpool_node): Dump write-only flag.
18904 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18906 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18907 write-only variables.
18908 * ipa.c (process_references): New function.
18909 (set_readonly_bit): New function.
18910 (set_writeonly_bit): New function.
18911 (clear_addressable_bit): New function.
18912 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18913 fix handling of aliases.
18914 * cgraph.h (struct varpool_node): Add writeonly flag.
18916 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
18918 PR rtl-optimization/60969
18919 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18920 Calculate costs for this case.
18922 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
18924 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18925 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18927 2014-05-16 Richard Biener <rguenther@suse.de>
18929 PR tree-optimization/61194
18930 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18931 bool patterns ending in a COND_EXPR.
18933 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18935 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18937 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18939 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18940 where we were unable to cost an RTX.
18942 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18944 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18947 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18948 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18950 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18952 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18953 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18955 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18956 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18958 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18959 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18961 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18964 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18965 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18967 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18970 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18971 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18973 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18974 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18976 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18977 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18979 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18980 rotates and shifts.
18982 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18983 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18985 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18986 ZERO_EXTEND and SIGN_EXTEND better.
18988 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18989 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18991 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18992 logical operations.
18994 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18995 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18997 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18998 costs when costing loads and stores to memory.
19000 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19001 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
19003 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
19006 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19008 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
19010 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19011 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19013 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
19015 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
19017 (aarch64_rtx_mult_cost): New.
19018 (aarch64_rtx_costs): Use it, refactor as appropriate.
19020 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19021 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
19023 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
19024 emit instructions, return number of instructions which would
19026 (aarch64_add_constant): Update call to aarch64_build_constant.
19027 (aarch64_output_mi_thunk): Likewise.
19028 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
19031 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19033 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
19034 (TARGET_RTX_COSTS): Call it.
19036 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19038 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
19039 (cortexa57_vector_cost): Likewise.
19040 (cortexa57_tunings): Use them.
19042 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
19044 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
19045 (cpu_addrcost_table): Use it.
19046 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
19047 (aarch64_address_cost): Rewrite using aarch64_classify_address,
19050 2014-05-16 Richard Biener <rguenther@suse.de>
19052 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
19053 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
19054 (visit_phi): Ignore edges marked as not executable.
19055 (class cond_dom_walker): New.
19056 (cond_dom_walker::before_dom_children): Value-number
19057 control statements and mark successor edges as not
19058 executable if possible.
19059 (run_scc_vn): First walk all control statements in
19060 dominator order, marking edges as not executable.
19061 * tree-inline.c (copy_edges_for_bb): Be not confused
19062 about random edge flags.
19064 2014-05-16 Richard Biener <rguenther@suse.de>
19066 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
19068 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
19071 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
19072 (__TM_simple_begin): Use it.
19073 (__TM_begin): Likewise.
19075 2014-05-15 Martin Jambor <mjambor@suse.cz>
19078 * ipa-prop.c (update_indirect_edges_after_inlining): Check
19079 type_preserved flag when the indirect edge is polymorphic.
19081 2014-05-15 Martin Jambor <mjambor@suse.cz>
19083 PR tree-optimization/61090
19084 * tree-sra.c (sra_modify_expr): Pass the current gsi to
19085 build_ref_for_model.
19087 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19089 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
19090 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
19092 2014-05-15 Jakub Jelinek <jakub@redhat.com>
19094 PR tree-optimization/61158
19095 * fold-const.c (fold_binary_loc): If X is zero-extended and
19096 shiftc >= prec, make sure zerobits is all ones instead of
19097 invoking undefined behavior.
19099 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19101 * regcprop.h: New file.
19102 * regcprop.c (skip_debug_insn_p): New decl.
19103 (replace_oldest_value_reg): Check skip_debug_insn_p.
19104 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
19105 * shrink-wrap.c: Include regcprop.h.
19106 (prepare_shrink_wrap): Call
19107 copyprop_hardreg_forward_bb_without_debug_insn.
19109 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19111 * shrink-wrap.h: Update comment.
19112 * shrink-wrap.c: Update comment.
19113 (next_block_for_reg): Rename to live_edge_for_reg.
19114 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
19115 (move_insn_for_shrink_wrap): Split live_edge.
19116 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
19118 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19120 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
19122 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
19123 * config/sparc/sparc.md (fptype_ut699): New attribute.
19124 (in_branch_delay): Return false if -mfix-ut699 is specified and
19125 fptype_ut699 is set to single.
19126 (truncdfsf2): Add fptype_ut699 attribute.
19127 (fix_truncdfsi2): Likewise.
19128 (floatsisf2): Change fptype attribute.
19129 (fix_truncsfsi2): Likewise.
19130 (negtf2_notv9): Delete.
19131 (negtf2_v9): Likewise.
19132 (negtf2_hq): New instruction.
19133 (negtf2): New instruction and splitter.
19134 (negdf2_notv9): Rewrite.
19135 (abstf2_notv9): Delete.
19136 (abstf2_hq_v9): Likewise.
19137 (abstf2_v9): Likewise.
19138 (abstf2_hq): New instruction.
19139 (abstf2): New instruction and splitter.
19140 (absdf2_notv9): Rewrite.
19142 2014-05-14 Cary Coutant <ccoutant@google.com>
19145 * opts.c (common_handle_option): Don't special-case "-g".
19146 (set_debug_level): Default to at least level 2 with "-g".
19148 2014-05-14 DJ Delorie <dj@redhat.com>
19150 * config/msp430/msp430.c (msp430_builtin): Add
19151 MSP430_BUILTIN_DELAY_CYCLES.
19152 (msp430_init_builtins): Register void __delay_cycles(long long).
19153 (msp430_builtin_decl): Add it.
19154 (cg_magic_constant): New.
19155 (msp430_expand_delay_cycles): New.
19156 (msp430_expand_builtin): Call it.
19157 (msp430_print_operand_raw): Change integer printing from "int" to
19159 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19160 (delay_cycles_start): New.
19161 (delay_cycles_end): New.
19162 (delay_cycles_32): New.
19163 (delay_cycles_32x): New.
19164 (delay_cycles_16): New.
19165 (delay_cycles_16x): New.
19166 (delay_cycles_2): New.
19167 (delay_cycles_1): New.
19168 * doc/extend.texi: Document __delay_cycles().
19170 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19172 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19173 length attribute computation.
19175 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19178 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19180 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19183 * config/sparc/sparc.md: Fix types of low and high in DI constant
19184 splitter. Use gen_int_mode in some other splitters.
19186 2014-05-14 Martin Jambor <mjambor@suse.cz>
19189 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19191 2014-05-14 James Norris <jnorris@codesourcery.com>
19193 * omp-low.c (expand_parallel_call): Remove shadow variable.
19194 (expand_omp_taskreg): Likewise.
19196 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19198 * common/config/i386/i386-common.c
19199 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19200 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19201 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19202 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19203 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19204 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19205 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19206 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19207 xsavecintrin.h, xsavesintrin.h.
19208 (x86_64-*-*): Ditto.
19209 * config/i386/clflushoptintrin.h: New.
19210 * config/i386/xsavecintrin.h: Ditto.
19211 * config/i386/xsavesintrin.h: Ditto.
19212 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19213 (bit_XSAVES): Ditto.
19214 (bit_XSAVES): Ditto.
19215 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19216 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19218 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19219 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19220 OPTION_MASK_ISA_XSAVES.
19221 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19222 -mxsavec, -mxsaves.
19223 (PTA_CLFLUSHOPT) Define.
19224 (PTA_XSAVEC): Ditto.
19225 (PTA_XSAVES): Ditto.
19226 (ix86_option_override_internal): Handle new options.
19227 (ix86_valid_target_attribute_inner_p): Ditto.
19228 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19229 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19230 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19231 (bdesc_special_args): Add __builtin_ia32_xsaves,
19232 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19233 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19234 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19235 (ix86_expand_builtin): Handle new builtins.
19236 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19237 (TARGET_CLFLUSHOPT_P): Ditto.
19238 (TARGET_XSAVEC): Ditto.
19239 (TARGET_XSAVEC_P): Ditto.
19240 (TARGET_XSAVES): Ditto.
19241 (TARGET_XSAVES_P): Ditto.
19242 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19243 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19244 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19246 (ANY_XRSTOR64): Ditto.
19248 (xrstor): Change into <xrstor>.
19249 (xrstor_rex64): Change into <xrstor>_rex64.
19250 (xrstor64): Change into <xrstor>64
19252 * config/i386/i386.opt (mclflushopt): New.
19255 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19257 * doc/invoke.texi: Document new options.
19259 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19261 PR rtl-optimization/60866
19262 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19263 Default it to -1. Pass it down to init_simplejump_data.
19264 (init_simplejump_data): New parameter old_seqno. Pass it down
19265 to get_seqno_for_a_jump.
19266 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19267 initializing new jump seqno as a last resort. Add comment.
19268 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19269 jump and pass it down to sel_init_new_insn.
19270 (sel_redirect_edge_and_branch_force): Likewise.
19272 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19274 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19275 shifted values to avoid build warning.
19277 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19279 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19280 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19281 (cfg_layout_merge_blocks): Likewise.
19282 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19284 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19286 PR rtl-optimization/60901
19287 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19288 bb predecessor belongs to the same scheduling region. Adjust comment.
19290 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19292 * doc/sourcebuild.texi: (dfp_hw): Document.
19293 (p8vector_hw): Likewise.
19294 (powerpc_eabi_ok): Likewise.
19295 (powerpc_elfv2): Likewise.
19296 (powerpc_htm_ok): Likewise.
19297 (ppc_recip_hw): Likewise.
19298 (vsx_hw): Likewise.
19300 2014-05-13 Cary Coutant <ccoutant@google.com>
19302 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19304 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19306 * gengtype-parse.c (require3): Eliminate in favor of...
19308 (require_template_declaration): Update to support optional single *
19311 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19312 (create_user_defined_type): Handle a single level of explicit
19313 pointerness within template arguments.
19314 (struct write_types_data): Add field "kind".
19315 (filter_type_name): Handle "*" character.
19316 (write_user_func_for_structure_ptr): Require a write_types_data
19317 rather than just a prefix string, so that we can look up the kind
19318 of the wtd and use it as an index into wrote_user_func_for_ptr,
19319 ensuring that such functions are written at most once. Support
19320 subclasses by invoking the marking function of the ultimate base class.
19321 (write_user_func_for_structure_body): Require a write_types_data
19322 rather than just a prefix string, so that we can pass this to
19323 write_user_func_for_structure_ptr.
19324 (write_func_for_structure): Likewise.
19325 (ggc_wtd): Add initializer of new "kind" field.
19326 (pch_wtd): Likewise.
19328 * gengtype.h (enum write_types_kinds): New.
19329 (struct type): Add field wrote_user_func_for_ptr to the "s"
19332 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19334 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19335 instead of const_binop.
19336 (fold_binary_loc): Likewise.
19338 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19340 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19341 calculation to match get_ref_base_and_extent.
19343 2014-05-13 Catherine Moore <clm@codesourcery.com>
19344 Sandra Loosemore <sandra@codesourcery.com>
19346 * configure.ac: Fix assembly for explicit JALR relocation check.
19347 * configure: Regenerate.
19349 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19351 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19352 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19353 Remove associated type declarations and initialisations.
19354 (arm_expand_neon_builtin): Likewise.
19355 (neon_emit_pair_result_insn): Delete.
19356 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19357 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19358 (neon_vzip<mode>): Likewise.
19359 (neon_vuzp<mode>): Likewise.
19361 2014-05-13 Richard Biener <rguenther@suse.de>
19364 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19365 it needs revisiting whether the call still may be tail-called.
19367 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19369 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19370 * rtl.h (block_symbol): Reduce number of fields to 2.
19371 (rtx_def): Add u2.symbol_ref_flags.
19372 (SYMBOL_REF_FLAGS): Use it.
19373 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19374 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19375 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19376 Lower index of SYMBOL_REF_DATA.
19377 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19378 Print SYMBOL_REF_FLAGS at the same time.
19379 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19381 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19383 * rtl.def (VAR_LOCATION): Remove "i" field.
19384 * rtl.h (rtx_def): Add u2.var_location_status.
19385 (PAT_VAR_LOCATION_STATUS): Use it.
19386 (gen_rtx_VAR_LOCATION): Declare.
19387 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19388 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19389 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19391 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19393 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19394 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19396 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19398 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19399 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19400 * rtl.h (rtx_def): Add insn_uid to u2 field.
19401 (RTX_FLAG_CHECK8): Delete in favor of...
19402 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19403 (INSN_DELETED_P): Update accordingly.
19404 (INSN_UID): Use u2.insn_uid.
19405 (INSN_CHAIN_CODE_P): Define.
19406 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19407 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19408 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19409 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19410 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19411 indices accordingly.
19412 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19413 Update indices for insn-chain rtxes.
19414 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19415 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19416 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19417 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19418 * combine.c (try_combine): Likewise.
19419 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19421 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19423 * rtl.def (REG): Remove middle field.
19424 * rtl.h (rtx_def): Add orignal_regno to u2.
19425 (ORIGINAL_REGNO): Use it instead of field 1.
19426 (REG_ATTRS): Lower field index accordingly.
19427 * gengtype.c (adjust_field_rtx_def): Remove handling of
19428 ORIGINAL_REGNO. Move REG_ATTRS index down.
19429 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19430 code that prints the REGNO.
19432 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19434 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19437 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19439 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19441 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19443 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19444 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19446 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19448 * config/aarch64/aarch64-protos.h
19449 (aarch64_hard_regno_caller_save_mode): New prototype.
19450 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19452 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19454 2014-05-13 Christian Bruel <christian.bruel@st.com>
19456 * target.def (mode_switching): New hook vector.
19457 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19458 (mode_exit, modepriority_to_mode): Likewise.
19459 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19460 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19461 * target.h: Include tm.h and hard-reg-set.h.
19462 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19463 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19464 * doc/tm.texi Regenerate.
19465 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19466 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19467 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19468 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19469 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19470 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19471 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19472 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19473 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19474 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19475 (ix86_emit_mode_set): Hookify.
19476 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19478 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19479 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19480 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19481 (epiphany_mode_priority_to_mode): Remove declaration.
19482 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19483 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19484 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19486 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19487 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19488 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19490 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19493 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19494 is const0_rtx, return immediately. Don't test count == 0 when
19497 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19499 * Makefile.in: add shrink-wrap.o.
19500 * config/i386/i386.c: include "shrink-wrap.h"
19501 * function.c: Likewise.
19502 (requires_stack_frame_p, next_block_for_reg,
19503 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19504 dup_block_and_redirect): Move to shrink-wrap.c
19505 (thread_prologue_and_epilogue_insns): Extract three code segments
19506 as functions in shrink-wrap.c
19507 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19509 * shrink-wrap.c: New file.
19510 * shrink-wrap.h: New file.
19512 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19514 * doc/extend.texi: Reflect current numbers of pragmas. Remove
19515 reference to Solaris.
19517 2014-05-12 Mike Stump <mikestump@comcast.net>
19520 * genattrtab.c (filename): Add.
19521 (convert_set_attr_alternative): Improve error message.
19522 (check_defs): Restore read_md_filename for error messages.
19523 (gen_insn): Save filename.
19525 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
19527 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
19528 -fno-local-ivars and -fivar-visibility.
19529 * c-family/c.opt: Make -Wshadow also implicitly enable
19532 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19534 * doc/tm.texi: Remove reference to deleted macro.
19535 * doc/tm.texi.in: Likewise.
19537 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19540 * config/avr/avr.c (avr_out_store_psi): Use correct constant
19543 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
19546 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
19547 * config/arm/aout.h (License): Same.
19548 * config/arm/bpabi.h (License): Same.
19549 * config/arm/elf.h (License): Same.
19550 * config/arm/linux-elf.h (License): Same.
19551 * config/arm/linux-gas.h (License): Same.
19552 * config/arm/netbsd-elf.h (License): Same.
19553 * config/arm/uclinux-eabi.h (License): Same.
19554 * config/arm/uclinux-elf.h (License): Same.
19555 * config/arm/vxworks.h (License): Same.
19557 2014-05-11 Jakub Jelinek <jakub@redhat.com>
19559 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
19560 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
19561 number of operands to 3.
19562 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
19563 * tree-nested.c (convert_nonlocal_omp_clauses,
19564 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
19565 * gimplify.c (gimplify_scan_omp_clauses): Handle
19566 OMP_CLAUSE_LINEAR_STMT.
19567 * omp-low.c (lower_rec_input_clauses): Fix typo.
19568 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
19569 cast between Fortran boolean_type_node and C _Bool if
19572 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
19574 PR tree-optimization/61136
19575 * wide-int.h (multiple_of_p): Define a version that doesn't return
19577 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
19578 integer_zerop/const_binop pair.
19579 (multiple_of_p): Likewise, converting both operands to widest_int
19582 2014-05-09 Teresa Johnson <tejohnson@google.com>
19584 * cgraphunit.c (analyze_functions): Use correct dump file.
19586 2014-05-09 Florian Weimer <fweimer@redhat.com>
19588 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
19590 (stack_protect_return_slot_p): New function.
19591 (expand_used_vars): Call stack_protect_decl_p and
19592 stack_protect_return_slot_p for -fstack-protector-strong.
19594 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
19595 Andrew Haley <aph@redhat.com>
19596 Richard Sandiford <rdsandiford@googlemail.com>
19598 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
19601 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19603 PR middle-end/61111
19604 * fold-const.c (fold_binary_loc): Changed width of mask.
19606 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19608 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
19609 unsigned int initializers for regno_in, regno_out.
19611 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19614 * config/avr/avr.md (cc): Add new attribute set_vzn.
19615 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
19616 Set cc insn attribute to set_vzn instead of set_zn for alternatives
19617 with INC, DEC or NEG.
19618 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
19619 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
19620 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
19622 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19625 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19627 * wide-int.cc (UTItype): Define.
19628 (UDWtype): Define for appropriate W_TYPE_SIZE.
19630 2014-05-09 Richard Biener <rguenther@suse.de>
19632 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
19633 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
19634 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
19635 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
19636 ssa_propagate): Adjust.
19638 2014-05-08 Jeff Law <law@redhat.com>
19640 PR tree-optimization/61009
19641 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
19642 tri-state rather than a boolean. When a block is too big to
19643 thread through, inform caller via negative return value.
19644 (thread_across_edge): If a block was too big for normal threading,
19645 then it's too big for a joiner too, so remove temporary equivalences
19646 and return immediately.
19648 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
19649 Matthias Klose <doko@ubuntu.com>
19652 * optc-gen.awk: Fix option handling for -Wunused-parameter.
19654 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19657 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
19659 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19662 * config/alpha/alpha.c: Include gimple-iterator.h.
19663 (alpha_gimple_fold_builtin): New function. Move
19664 ALPHA_BUILTIN_UMULH folding from ...
19665 (alpha_fold_builtin): ... here.
19666 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
19668 2014-05-08 Wei Mi <wmi@google.com>
19671 * config/i386/i386.c (ix86_compute_frame_layout): Update
19672 preferred_stack_boundary for call, expanded from tls descriptor.
19673 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
19674 to depend on SP register.
19675 (*tls_local_dynamic_base_32_gnu): Ditto.
19676 (*tls_local_dynamic_32_once): Ditto.
19677 (tls_global_dynamic_64_<mode>): Set
19678 ix86_tls_descriptor_calls_expanded_in_cfun.
19679 (tls_local_dynamic_base_64_<mode>): Ditto.
19680 (tls_global_dynamic_32): Set
19681 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
19682 to depend on SP register.
19683 (tls_local_dynamic_base_32): Ditto.
19685 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19687 * config/arm/arm_neon.h: Update comment.
19688 * config/arm/neon-docgen.ml: Delete.
19689 * config/arm/neon-gen.ml: Delete.
19690 * doc/arm-neon-intrinsics.texi: Update comment.
19692 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19694 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
19696 (vand, vorr, veor, vorn, vbic): Remove.
19697 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
19699 (neon_vsub_unspec): Likewise.
19700 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
19702 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19704 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
19705 (vadd_s16): Likewise.
19706 (vadd_s32): Likewise.
19707 (vadd_f32): Likewise.
19708 (vadd_u8): Likewise.
19709 (vadd_u16): Likewise.
19710 (vadd_u32): Likewise.
19711 (vadd_s64): Likewise.
19712 (vadd_u64): Likewise.
19713 (vaddq_s8): Likewise.
19714 (vaddq_s16): Likewise.
19715 (vaddq_s32): Likewise.
19716 (vaddq_s64): Likewise.
19717 (vaddq_f32): Likewise.
19718 (vaddq_u8): Likewise.
19719 (vaddq_u16): Likewise.
19720 (vaddq_u32): Likewise.
19721 (vaddq_u64): Likewise.
19722 (vmul_s8): Likewise.
19723 (vmul_s16): Likewise.
19724 (vmul_s32): Likewise.
19725 (vmul_f32): Likewise.
19726 (vmul_u8): Likewise.
19727 (vmul_u16): Likewise.
19728 (vmul_u32): Likewise.
19729 (vmul_p8): Likewise.
19730 (vmulq_s8): Likewise.
19731 (vmulq_s16): Likewise.
19732 (vmulq_s32): Likewise.
19733 (vmulq_f32): Likewise.
19734 (vmulq_u8): Likewise.
19735 (vmulq_u16): Likewise.
19736 (vmulq_u32): Likewise.
19737 (vsub_s8): Likewise.
19738 (vsub_s16): Likewise.
19739 (vsub_s32): Likewise.
19740 (vsub_f32): Likewise.
19741 (vsub_u8): Likewise.
19742 (vsub_u16): Likewise.
19743 (vsub_u32): Likewise.
19744 (vsub_s64): Likewise.
19745 (vsub_u64): Likewise.
19746 (vsubq_s8): Likewise.
19747 (vsubq_s16): Likewise.
19748 (vsubq_s32): Likewise.
19749 (vsubq_s64): Likewise.
19750 (vsubq_f32): Likewise.
19751 (vsubq_u8): Likewise.
19752 (vsubq_u16): Likewise.
19753 (vsubq_u32): Likewise.
19754 (vsubq_u64): Likewise.
19755 (vand_s8): Likewise.
19756 (vand_s16): Likewise.
19757 (vand_s32): Likewise.
19758 (vand_u8): Likewise.
19759 (vand_u16): Likewise.
19760 (vand_u32): Likewise.
19761 (vand_s64): Likewise.
19762 (vand_u64): Likewise.
19763 (vandq_s8): Likewise.
19764 (vandq_s16): Likewise.
19765 (vandq_s32): Likewise.
19766 (vandq_s64): Likewise.
19767 (vandq_u8): Likewise.
19768 (vandq_u16): Likewise.
19769 (vandq_u32): Likewise.
19770 (vandq_u64): Likewise.
19771 (vorr_s8): Likewise.
19772 (vorr_s16): Likewise.
19773 (vorr_s32): Likewise.
19774 (vorr_u8): Likewise.
19775 (vorr_u16): Likewise.
19776 (vorr_u32): Likewise.
19777 (vorr_s64): Likewise.
19778 (vorr_u64): Likewise.
19779 (vorrq_s8): Likewise.
19780 (vorrq_s16): Likewise.
19781 (vorrq_s32): Likewise.
19782 (vorrq_s64): Likewise.
19783 (vorrq_u8): Likewise.
19784 (vorrq_u16): Likewise.
19785 (vorrq_u32): Likewise.
19786 (vorrq_u64): Likewise.
19787 (veor_s8): Likewise.
19788 (veor_s16): Likewise.
19789 (veor_s32): Likewise.
19790 (veor_u8): Likewise.
19791 (veor_u16): Likewise.
19792 (veor_u32): Likewise.
19793 (veor_s64): Likewise.
19794 (veor_u64): Likewise.
19795 (veorq_s8): Likewise.
19796 (veorq_s16): Likewise.
19797 (veorq_s32): Likewise.
19798 (veorq_s64): Likewise.
19799 (veorq_u8): Likewise.
19800 (veorq_u16): Likewise.
19801 (veorq_u32): Likewise.
19802 (veorq_u64): Likewise.
19803 (vbic_s8): Likewise.
19804 (vbic_s16): Likewise.
19805 (vbic_s32): Likewise.
19806 (vbic_u8): Likewise.
19807 (vbic_u16): Likewise.
19808 (vbic_u32): Likewise.
19809 (vbic_s64): Likewise.
19810 (vbic_u64): Likewise.
19811 (vbicq_s8): Likewise.
19812 (vbicq_s16): Likewise.
19813 (vbicq_s32): Likewise.
19814 (vbicq_s64): Likewise.
19815 (vbicq_u8): Likewise.
19816 (vbicq_u16): Likewise.
19817 (vbicq_u32): Likewise.
19818 (vbicq_u64): Likewise.
19819 (vorn_s8): Likewise.
19820 (vorn_s16): Likewise.
19821 (vorn_s32): Likewise.
19822 (vorn_u8): Likewise.
19823 (vorn_u16): Likewise.
19824 (vorn_u32): Likewise.
19825 (vorn_s64): Likewise.
19826 (vorn_u64): Likewise.
19827 (vornq_s8): Likewise.
19828 (vornq_s16): Likewise.
19829 (vornq_s32): Likewise.
19830 (vornq_s64): Likewise.
19831 (vornq_u8): Likewise.
19832 (vornq_u16): Likewise.
19833 (vornq_u32): Likewise.
19834 (vornq_u64): Likewise.
19836 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19838 * wide-int.cc (UTItype): Define.
19839 (UDWtype): Define for appropriate W_TYPE_SIZE.
19841 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
19843 PR tree-optimization/59100
19844 * tree-ssa-phiopt.c: Include tree-inline.h.
19845 (neutral_element_p, absorbing_element_p): New functions.
19846 (value_replacement): Handle conditional binary operations with a
19847 neutral or absorbing element.
19849 2014-05-08 Richard Biener <rguenther@suse.de>
19851 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19852 folding the expression.
19853 (valueize_expr): Remove.
19854 (visit_reference_op_load): Do not valueize the result of
19856 (simplify_binary_expression): Likewise.
19857 (simplify_unary_expression): Likewise.
19859 2014-05-08 Richard Biener <rguenther@suse.de>
19861 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19862 looking at TYPE_ARG_TYPES.
19864 2014-05-08 Richard Biener <rguenther@suse.de>
19866 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19867 pointer propagation special-case.
19869 2014-05-08 Bin Cheng <bin.cheng@arm.com>
19871 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19872 core part of address expressions.
19874 2014-05-08 Alan Modra <amodra@gmail.com>
19877 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19878 loads and stores when -mno-strict-align at any alignment.
19879 (expand_block_clear): Similarly. Also correct calculation of
19882 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
19884 PR middle-end/39246
19885 * tree-complex.c (expand_complex_move): Keep line info when expanding
19887 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19888 of complex expression. Use new argument to display correct location
19889 for values coming from phi statement.
19890 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19891 (warn_uninitialized_phi): Pass location of phi argument to
19893 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19894 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19896 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19898 * config/rs6000/predicates.md (indexed_address_mem): New.
19899 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19900 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19901 fpstore_ux, fpstore_u.
19902 (sign_extend, indexed, update): New.
19903 (cell_micro): Adjust.
19904 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19905 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19906 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19907 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19908 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19909 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19910 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19911 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19912 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19913 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19914 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19915 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19916 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19917 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19918 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19920 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19921 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19922 *vsx_extract_<mode>_store): Adjust.
19923 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19924 is_cracked_insn, insn_must_be_first_in_group,
19925 insn_must_be_last_in_group): Adjust.
19927 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19929 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19930 ppc440-fpstore): Adjust.
19931 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19932 ppc476-fpstore): Adjust.
19933 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19934 ppc601-fpstore): Adjust.
19935 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19937 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19939 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19940 ppc7450-fpstore): Adjust.
19941 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19942 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19943 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19945 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19946 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19947 cell-fpstore, cell-fpstore-update): Adjust.
19948 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19949 ppce300c3_store, ppce300c3_fpstore): Adjust.
19950 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19951 e500mc_fpstore): Adjust.
19952 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19953 e500mc64_store, e500mc64_fpstore): Adjust.
19954 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19955 e5500_fpstore): Adjust.
19956 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19957 e6500_fpstore): Adjust.
19958 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19960 * config/rs6000/power4.md (power4-load, power4-load-ext,
19961 power4-load-ext-update, power4-load-ext-update-indexed,
19962 power4-load-update-indexed, power4-load-update, power4-fpload,
19963 power4-fpload-update, power4-store, power4-store-update,
19964 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19966 * config/rs6000/power5.md (power5-load, power5-load-ext,
19967 power5-load-ext-update, power5-load-ext-update-indexed,
19968 power5-load-update-indexed, power5-load-update, power5-fpload,
19969 power5-fpload-update, power5-store, power5-store-update,
19970 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19972 * config/rs6000/power6.md (power6-load, power6-load-ext,
19973 power6-load-update, power6-load-update-indexed,
19974 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19975 power6-fpload-update, power6-store, power6-store-update,
19976 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19978 * config/rs6000/power7.md (power7-load, power7-load-ext,
19979 power7-load-update, power7-load-update-indexed,
19980 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19981 power7-fpload-update, power7-store, power7-store-update,
19982 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19984 * config/rs6000/power8.md (power8-load, power8-load-update,
19985 power8-load-ext, power8-load-ext-update, power8-fpload,
19986 power8-fpload-update, power8-store, power8-store-update-indexed,
19987 power8-fpstore, power8-fpstore-update): Adjust.
19988 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19990 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19991 titan_lsu_store, titan_lsu_fpstore): Adjust.
19992 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19994 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
19997 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19998 unrolled byte insns. Emit address increments after move insns.
20000 2014-05-07 David Malcolm <dmalcolm@redhat.com>
20002 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
20003 const_gimple, rather than a gimple.
20004 (gimple_call_builtin_p): Likewise, for the three variants.
20006 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
20007 (gimple_call_builtin_p): Likewise, for the three variants.
20009 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20011 PR tree-optimization/61095
20012 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
20014 2014-05-07 Richard Biener <rguenther@suse.de>
20016 PR tree-optimization/61034
20017 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
20018 (maybe_skip_until): Use translate to take into account
20019 lattices when trying to do disambiguations.
20020 (get_continuation_for_phi_1): Likewise.
20021 (get_continuation_for_phi): Adjust for added translate arguments.
20022 (walk_non_aliased_vuses): Likewise.
20023 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
20024 (walk_non_aliased_vuses): Likewise.
20025 (call_may_clobber_ref_p_1): Declare.
20026 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
20027 calls. Stop early if we are only supposed to disambiguate.
20028 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
20030 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
20032 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
20033 Emit an error when the function has arguments.
20035 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20037 * cfgloop.h (unswitch_loops): Remove.
20038 * doc/passes.texi: Remove references to loop-unswitch.c
20039 * timevar.def (TV_LOOP_UNSWITCH): Remove.
20041 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
20043 * tree-vect-data-refs.c (vect_grouped_load_supported): New
20044 check for loads group of length 3.
20045 (vect_permute_load_chain): New permutations for loads group of
20047 * tree-vect-stmts.c (vect_model_load_cost): Change cost
20048 of vec_perm_shuffle for the new permutations.
20050 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
20052 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
20053 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
20054 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
20055 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
20056 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
20057 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
20058 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
20059 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
20061 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
20063 * loop-unswitch.c: Delete.
20065 2014-05-07 Richard Biener <rguenther@suse.de>
20067 * config.gcc: Always set need_64bit_hwint to yes.
20069 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
20071 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
20072 of using optimize_size.
20074 2014-05-06 Mike Stump <mikestump@comcast.net>
20076 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
20078 2014-05-06 Joseph Myers <joseph@codesourcery.com>
20080 * config/i386/sse.md (*mov<mode>_internal)
20081 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
20082 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
20083 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
20084 (*<code><mode>3, *andnot<mode>3<mask_name>)
20085 (<mask_codefor><code><mode>3<mask_name>): Only consider
20086 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
20088 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20091 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20093 * lra-constraints.c (valid_address_p): Move earlier in file.
20094 Add a constraint argument to the address_info version.
20095 (satisfies_memory_constraint_p): New function.
20096 (satisfies_address_constraint_p): Likewise.
20097 (process_alt_operands, curr_insn_transform): Use them.
20098 (process_address): Pass the constraint to valid_address_p when
20099 checking address operands.
20101 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
20103 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
20104 to their respective blocks. Fix inadvertent use of "node".
20106 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20108 * emit-rtl.c (init_derived_machine_modes): New functionm, split
20110 (init_emit_once): ...here.
20111 * rtl.h (init_derived_machine_modes): Declare.
20112 * toplev.c (do_compile): Call it even if no_backend.
20114 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
20115 Mike Stump <mikestump@comcast.net>
20116 Richard Sandiford <rdsandiford@googlemail.com>
20117 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20119 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
20120 (rtx_equal_for_memref_p): Update comment.
20121 (adjust_offset_for_component_ref): Use wide-int interfaces.
20122 * builtins.c (get_object_alignment_2): Likewise.
20123 (c_readstr): Likewise.
20124 (target_char_cast): Add comment.
20125 (determine_block_size): Use wide-int interfaces.
20126 (expand_builtin_signbit): Likewise.
20127 (fold_builtin_int_roundingfn): Likewise.
20128 (fold_builtin_bitop): Likewise.
20129 (fold_builtin_bswap): Likewise.
20130 (fold_builtin_logarithm): Use signop.
20131 (fold_builtin_pow): Likewise.
20132 (fold_builtin_memory_op): Use wide-int interfaces.
20133 (fold_builtin_object_size): Likewise.
20134 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
20135 nb_iterations_estimate.
20136 (record_niter_bound): Use wide-int interfaces.
20137 (get_estimated_loop_iterations_int): Likewise.
20138 (get_estimated_loop_iterations): Likewise.
20139 (get_max_loop_iterations): Likewise.
20140 * cfgloop.h: Include wide-int.h.
20141 (struct nb_iter_bound): Change bound to widest_int.
20142 (struct loop): Change nb_iterations_upper_bound and
20143 nb_iterations_estimate to widest_int.
20144 (record_niter_bound): Switch to use widest_int.
20145 (get_estimated_loop_iterations): Likewise.
20146 (get_max_loop_iterations): Likewise.
20147 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20148 update for wide-int.
20149 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20150 * combine.c (try_combine): Likewise.
20151 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20152 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20154 (aarch64_float_const_representable_p): Likewise.
20155 * config/arc/arc.c: Include wide-int.h.
20156 (arc_can_use_doloop_p): Use wide-int interfaces.
20157 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20158 (vfp3_const_double_index): Likewise.
20159 * config/avr/avr.c (avr_out_round): Likewise.
20160 (avr_fold_builtin): Likewise.
20161 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20162 (bfin_can_use_doloop_p): Likewise.
20163 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20164 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20165 * config/i386/i386.c: Include wide-int.h.
20166 (ix86_data_alignment): Use wide-int interfaces.
20167 (ix86_local_alignment): Likewise.
20168 (ix86_emit_swsqrtsf): Update real_from_integer.
20169 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20170 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20171 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20172 (zero_constant): Likewise.
20173 (input_operand): Likewise.
20174 (splat_input_operand): Likewise.
20175 (non_logical_cint_operand): Change const_double to const_wide_int.
20176 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20177 (easy_altivec_constant): Remove comment.
20178 (paired_expand_vector_init): Use CONSTANT_P.
20179 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20180 (rs6000_emit_move): Update checks.
20181 (rs6000_aggregate_candidate): Use wide-int interfaces.
20182 (rs6000_expand_ternop_builtin): Likewise.
20183 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20184 (rs6000_assemble_integer): Likewise.
20185 (rs6000_hash_constant): Likewise.
20186 (output_toc): Likewise.
20187 (rs6000_rtx_costs): Likewise.
20188 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20189 * config/rs6000/rs6000-c.c: Include wide-int.h.
20190 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20191 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20192 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20193 Handle CONST_WIDE_INT.
20194 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20195 Use tree_fits_uhwi_p.
20196 * config/sparc/sparc.c: Include wide-int.h.
20197 (sparc_fold_builtin): Use wide-int interfaces.
20198 * config/vax/vax.c: Include wide-int.h.
20199 (vax_float_literal): Use real_from_integer.
20200 * coretypes.h (struct hwivec_def): New.
20202 (const_hwivec): New.
20203 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20204 (equiv_constant): Handle CONST_WIDE_INT.
20205 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20206 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20207 * dbxout.c (stabstr_U): Use wide-int interfaces.
20208 (dbxout_type): Update to use cst_fits_shwi_p.
20209 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20210 (TARGET_SUPPORTS_WIDE_INT): Add default.
20211 * dfp.c: Include wide-int.h.
20212 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20213 decimal_real_to_integer.
20214 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20215 decimal_real_to_integer.
20216 * doc/generic.texi (Constant expressions): Update for wide_int.
20217 * doc/rtl.texi (const_double): Likewise.
20218 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20219 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20220 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20221 (REAL_VALUE_FROM_INT): Remove.
20222 (TARGET_SUPPORTS_WIDE_INT): New.
20223 * doc/tm.texi: Regenerate.
20224 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20225 * double-int.h: Include wide-int.h.
20226 (struct wi::int_traits): New.
20227 * dwarf2out.c (get_full_len): New.
20228 (dw_val_equal_p): Add case dw_val_class_wide_int.
20229 (size_of_loc_descr): Likewise.
20230 (output_loc_operands): Likewise.
20231 (insert_double): Remove.
20232 (insert_wide_int): New.
20233 (add_AT_wide): New.
20234 (print_die): Add case dw_val_class_wide_int.
20235 (attr_checksum): Likewise.
20236 (attr_checksum_ordered): Likewise.
20237 (same_dw_val_p): Likewise.
20238 (size_of_die): Likewise.
20239 (value_format): Likewise.
20240 (output_die): Likewise.
20241 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20243 (clz_loc_descriptor): Use wide-int interfaces.
20244 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20245 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20246 (round_up_to_align): Use wide-int interfaces.
20247 (field_byte_offset): Likewise.
20248 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20249 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20250 CONST_DOUBLE handling. Use wide-int interfaces.
20251 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20252 (gen_enumeration_type_die): Use add_AT_wide.
20253 (hash_loc_operands): Add case dw_val_class_wide_int.
20254 (compare_loc_operands): Likewise.
20255 * dwarf2out.h: Include wide-int.h.
20256 (wide_int_ptr): New.
20257 (enum dw_val_class): Add dw_val_class_wide_int.
20258 (struct dw_val_struct): Add val_wide.
20259 * emit-rtl.c (const_wide_int_htab): New.
20260 (const_wide_int_htab_hash): New.
20261 (const_wide_int_htab_eq): New.
20262 (lookup_const_wide_int): New.
20263 (const_double_htab_hash): Use wide-int interfaces.
20264 (const_double_htab_eq): Likewise.
20265 (rtx_to_double_int): Conditionally compile for wide-int.
20266 (immed_double_int_const): Rename to immed_wide_int_const and
20267 update for wide-int.
20268 (immed_double_const): Conditionally compile for wide-int.
20269 (init_emit_once): Use wide-int interfaces.
20270 * explow.c (plus_constant): Likewise.
20271 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20272 (lshift_value): Use wide-int interfaces.
20273 (expand_mult): Likewise.
20274 (choose_multiplier): Likewise.
20275 (expand_smod_pow2): Likewise.
20276 (make_tree): Likewise.
20277 * expr.c (convert_modes): Consolidate handling of constants.
20278 Use wide-int interfaces.
20279 (emit_group_load_1): Add note.
20280 (store_expr): Update comment.
20281 (get_inner_reference): Use wide-int interfaces.
20282 (expand_constructor): Update comment.
20283 (expand_expr_real_2): Use wide-int interfaces.
20284 (expand_expr_real_1): Likewise.
20285 (reduce_to_bit_field_precision): Likewise.
20286 (const_vector_from_tree): Likewise.
20287 * final.c: Include wide-int-print.h.
20288 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20289 * fixed-value.c: Include wide-int.h.
20290 (fixed_from_string): Use wide-int interfaces.
20291 (fixed_to_decimal): Likewise.
20292 (fixed_convert_from_real): Likewise.
20293 (real_convert_from_fixed): Likewise.
20294 * fold-const.h (mem_ref_offset): Return an offset_int.
20295 (div_if_zero_remainder): Remove code parameter.
20296 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20297 Use wide-int interfaces.
20298 (may_negate_without_overflow_p): Use wide-int interfaces.
20299 (negate_expr_p): Likewise.
20300 (fold_negate_expr): Likewise.
20301 (int_const_binop_1): Likewise.
20302 (const_binop): Likewise.
20303 (fold_convert_const_int_from_int): Likewise.
20304 (fold_convert_const_int_from_real): Likewise.
20305 (fold_convert_const_int_from_fixed): Likewise.
20306 (fold_convert_const_fixed_from_int): Likewise.
20307 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20308 (sign_bit_p): Use wide-int interfaces.
20309 (make_range_step): Likewise.
20310 (build_range_check): Likewise. Pass an integer of the correct type
20311 instead of using integer_one_node.
20312 (range_predecessor): Pass an integer of the correct type instead
20313 of using integer_one_node.
20314 (range_successor): Likewise.
20315 (merge_ranges): Likewise.
20316 (unextend): Use wide-int interfaces.
20317 (extract_muldiv_1): Likewise.
20318 (fold_div_compare): Likewise.
20319 (fold_single_bit_test): Likewise.
20320 (fold_sign_changed_comparison): Likewise.
20321 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20322 (fold_plusminus_mult_expr): Use wide-int interfaces.
20323 (native_encode_int): Likewise.
20324 (native_interpret_int): Likewise.
20325 (fold_unary_loc): Likewise.
20326 (pointer_may_wrap_p): Likewise.
20327 (size_low_cst): Likewise.
20328 (mask_with_tz): Likewise.
20329 (fold_binary_loc): Likewise.
20330 (fold_ternary_loc): Likewise.
20331 (multiple_of_p): Likewise.
20332 (tree_call_nonnegative_warnv_p): Update calls to
20333 tree_int_cst_min_precision and real_from_integer.
20334 (fold_negate_const): Use wide-int interfaces.
20335 (fold_abs_const): Likewise.
20336 (fold_relational_const): Use tree_int_cst_lt.
20337 (round_up_loc): Use wide-int interfaces.
20338 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20339 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20340 * gengtype.c: Remove include of double-int.h.
20341 (do_typedef): Use wide-int interfaces.
20342 (open_base_files): Add wide-int.h.
20343 (main): Add offset_int and widest_int typedefs.
20344 * gengtype-lex.l: Handle "^".
20345 (CXX_KEYWORD): Add "static".
20346 * gengtype-parse.c (require3): New.
20347 (require_template_declaration): Handle constant template arguments
20348 and nested templates.
20349 * gengtype-state.c: Don't include "double-int.h".
20350 * genpreds.c (write_one_predicate_function): Update comment.
20351 (write_tm_constrs_h): Add check for hval and lval use in
20353 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20354 (add_to_sequence): Likewise.
20355 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20356 and const_double_operand.
20357 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20359 * gimple-fold.c (get_base_constructor): Likewise.
20360 (fold_array_ctor_reference): Likewise.
20361 (fold_nonarray_ctor_reference): Likewise.
20362 (fold_const_aggregate_ref_1): Likewise.
20363 (gimple_val_nonnegative_real_p): Likewise.
20364 (gimple_fold_indirect_ref): Likewise.
20365 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20366 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20367 (struct slsr_cand_d): Change index to be widest_int.
20368 (struct incr_info_d): Change incr to be widest_int.
20369 (alloc_cand_and_find_basis): Use wide-int interfaces.
20370 (slsr_process_phi): Likewise.
20371 (backtrace_base_for_ref): Likewise. Return a widest_int.
20372 (restructure_reference): Take a widest_int instead of a double_int.
20373 (slsr_process_ref): Use wide-int interfaces.
20374 (create_mul_ssa_cand): Likewise.
20375 (create_mul_imm_cand): Likewise.
20376 (create_add_ssa_cand): Likewise.
20377 (create_add_imm_cand): Take a widest_int instead of a double_int.
20378 (slsr_process_add): Use wide-int interfaces.
20379 (slsr_process_cast): Likewise.
20380 (slsr_process_copy): Likewise.
20381 (dump_candidate): Likewise.
20382 (dump_incr_vec): Likewise.
20383 (replace_ref): Likewise.
20384 (cand_increment): Likewise. Return a widest_int.
20385 (cand_abs_increment): Likewise.
20386 (replace_mult_candidate): Take a widest_int instead of a double_int.
20387 (replace_unconditional_candidate): Use wide-int interfaces.
20388 (incr_vec_index): Take a widest_int instead of a double_int.
20389 (create_add_on_incoming_edge): Likewise.
20390 (create_phi_basis): Use wide-int interfaces.
20391 (replace_conditional_candidate): Likewise.
20392 (record_increment): Take a widest_int instead of a double_int.
20393 (record_phi_increments): Use wide-int interfaces.
20394 (phi_incr_cost): Take a widest_int instead of a double_int.
20395 (lowest_cost_path): Likewise.
20396 (total_savings): Likewise.
20397 (analyze_increments): Use wide-int interfaces.
20398 (ncd_with_phi): Take a widest_int instead of a double_int.
20399 (ncd_of_cand_and_phis): Likewise.
20400 (nearest_common_dominator_for_cands): Likewise.
20401 (insert_initializers): Use wide-int interfaces.
20402 (all_phi_incrs_profitable): Likewise.
20403 (replace_one_candidate): Likewise.
20404 (replace_profitable_candidates): Likewise.
20405 * godump.c: Include wide-int-print.h.
20406 (go_output_typedef): Use wide-int interfaces.
20407 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20408 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20409 (build_loop_iteration_domains): Likewise.
20410 * hooks.h: Include wide-int.h rather than double-int.h.
20411 (hook_bool_dint_dint_uint_bool_true): Delete.
20412 (hook_bool_wint_wint_uint_bool_true): Declare.
20413 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20414 (hook_bool_wint_wint_uint_bool_true): New.
20415 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20417 (ubsan_expand_si_overflow_mul_check): Likewise.
20418 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20419 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20420 (get_ancestor_addr_info): Likewise.
20421 (ipa_modify_call_arguments): Likewise.
20422 * loop-doloop.c (doloop_modify): Likewise.
20423 (doloop_optimize): Likewise.
20424 * loop-iv.c (iv_number_of_iterations): Likewise.
20425 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20426 (unroll_loop_constant_iterations): Likewise.
20427 (decide_unroll_runtime_iterations): Likewise.
20428 (unroll_loop_runtime_iterations): Likewise.
20429 (decide_peel_simple): Likewise.
20430 (decide_unroll_stupid): Likewise.
20431 * lto-streamer-in.c (streamer_read_wi): Add.
20432 (input_cfg): Use wide-int interfaces.
20433 (lto_input_tree_1): Likewise.
20434 * lto-streamer-out.c (streamer_write_wi): Add.
20435 (hash_tree): Use wide-int interfaces.
20436 (output_cfg): Likewise.
20437 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20438 (GTFILES): Add wide-int.h and signop.h.
20439 (TAGS): Look for .cc files too.
20440 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20441 * optabs.c (expand_subword_shift): Likewise.
20442 (expand_doubleword_shift): Likewise.
20443 (expand_absneg_bit): Likewise.
20444 (expand_copysign_absneg): Likewise.
20445 (expand_copysign_bit): Likewise.
20446 * postreload.c (reload_cse_simplify_set): Likewise.
20447 * predict.c (predict_iv_comparison): Likewise.
20448 * pretty-print.h: Include wide-int-print.h.
20450 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20451 * print-tree.c: Include wide-int-print.h.
20452 (print_node_brief): Use wide-int interfaces.
20453 (print_node): Likewise.
20454 * read-rtl.c (validate_const_wide_int): New.
20455 (read_rtx_code): Add CONST_WIDE_INT case.
20456 * real.c: Include wide-int.h.
20457 (real_to_integer2): Delete.
20458 (real_to_integer): New function, returning a wide_int.
20459 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20460 (ten_to_ptwo): Update call to real_from_integer.
20461 (real_digit): Likewise.
20462 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20463 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20464 (REAL_VALUE_TO_INT): Delete.
20465 (real_to_integer): Declare a wide-int form.
20466 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20467 * recog.c (const_int_operand): Improve comment.
20468 (const_scalar_int_operand): New.
20469 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20470 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20471 (split_double): Likewise.
20472 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20473 (rtx_size): Likewise.
20474 (rtx_alloc_stat_v): New.
20475 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20476 (cwi_output_hex): New.
20477 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20478 (cwi_check_failed_bounds): New.
20479 * rtl.def (CONST_WIDE_INT): New.
20480 * rtl.h: Include <utility> and wide-int.h.
20481 (struct hwivec_def): New.
20482 (CWI_GET_NUM_ELEM): New.
20483 (CWI_PUT_NUM_ELEM): New.
20484 (struct rtx_def): Add num_elem and hwiv.
20485 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20486 (CASE_CONST_UNIQUE): Likewise.
20487 (CASE_CONST_ANY): Likewise.
20488 (CONST_SCALAR_INT_P): Likewise.
20489 (CONST_WIDE_INT_P): New.
20491 (HWIVEC_CHECK): New.
20492 (cwi_check_failed_bounds): New.
20494 (HWIVEC_CHECK): New.
20495 (CONST_WIDE_INT_VEC) New.
20496 (CONST_WIDE_INT_NUNITS) New.
20497 (CONST_WIDE_INT_ELT) New.
20498 (rtx_mode_t): New type.
20499 (wi::int_traits <rtx_mode_t>): New.
20501 (wi::min_value): New.
20502 (wi::max_value): New.
20504 (const_wide_int_alloc): New.
20505 (immed_wide_int_const): New.
20506 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20507 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20508 * signop.h: New file.
20509 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20510 (simplify_const_unary_operation): Use wide-int interfaces.
20511 (simplify_binary_operation_1): Likewise.
20512 (simplify_const_binary_operation): Likewise.
20513 (simplify_const_relational_operation): Likewise.
20514 (simplify_immed_subreg): Likewise.
20515 * stmt.c (expand_case): Likewise.
20516 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
20517 signop rather than a bool.
20518 * stor-layout.c (layout_type): Use wide-int interfaces.
20519 (initialize_sizetypes): Update calls to
20520 set_min_and_max_values_for_integral_type.
20521 (set_min_and_max_values_for_integral_type): Take a signop rather
20522 than a bool. Use wide-int interfaces.
20523 (fixup_signed_type): Update accordingly. Remove
20524 HOST_BITS_PER_DOUBLE_INT limit.
20525 (fixup_unsigned_type): Likewise.
20526 * system.h (STATIC_CONSTANT_P): New.
20527 (STATIC_ASSERT): New.
20528 * target.def (can_use_doloop_p): Take widest_ints rather than
20530 * target.h: Include wide-int.h rather than double-int.h.
20531 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
20533 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
20534 rather than INT_CST_LT_UNSIGNED.
20535 (can_use_doloop_if_innermost): Take widest_ints rather than
20537 * tree-affine.c: Include wide-int-print.h.
20538 (double_int_ext_for_comb): Delete.
20539 (wide_int_ext_for_comb): New.
20540 (aff_combination_zero): Use wide-int interfaces.
20541 (aff_combination_const): Take a widest_int instead of a double_int.
20542 (aff_combination_elt): Use wide-int interfaces.
20543 (aff_combination_scale): Take a widest_int instead of a double_int.
20544 (aff_combination_add_elt): Likewise.
20545 (aff_combination_add_cst): Likewise.
20546 (aff_combination_add): Use wide-int interfaces.
20547 (aff_combination_convert): Likewise.
20548 (tree_to_aff_combination): Likewise.
20549 (add_elt_to_tree): Take a widest_int instead of a double_int.
20550 (aff_combination_to_tree): Use wide-int interfaces.
20551 (aff_combination_remove_elt): Likewise.
20552 (aff_combination_add_product): Take a widest_int instead of
20554 (aff_combination_mult): Use wide-int interfaces.
20555 (aff_combination_expand): Likewise.
20556 (double_int_constant_multiple_p): Delete.
20557 (wide_int_constant_multiple_p): New.
20558 (aff_combination_constant_multiple_p): Take a widest_int pointer
20559 instead of a double_int pointer.
20560 (print_aff): Use wide-int interfaces.
20561 (get_inner_reference_aff): Take a widest_int pointer
20562 instead of a double_int pointer.
20563 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
20564 * tree-affine.h: Include wide-int.h.
20565 (struct aff_comb_elt): Change type of coef to widest_int.
20566 (struct affine_tree_combination): Change type of offset to widest_int.
20567 (double_int_ext_for_comb): Delete.
20568 (wide_int_ext_for_comb): New.
20569 (aff_combination_const): Use widest_int instead of double_int.
20570 (aff_combination_scale): Likewise.
20571 (aff_combination_add_elt): Likewise.
20572 (aff_combination_constant_multiple_p): Likewise.
20573 (get_inner_reference_aff): Likewise.
20574 (aff_comb_cannot_overlap_p): Likewise.
20575 (aff_combination_zero_p): Use wide-int interfaces.
20576 * tree.c: Include tree.h.
20577 (init_ttree): Use make_int_cst.
20578 (tree_code_size): Removed code for INTEGER_CST case.
20579 (tree_size): Add INTEGER_CST case.
20580 (make_node_stat): Update comment.
20581 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
20582 (build_int_cst_type): Use wide-int interfaces.
20583 (double_int_to_tree): Likewise.
20584 (double_int_fits_to_tree_p): Delete.
20585 (force_fit_type_double): Delete.
20586 (force_fit_type): New.
20587 (int_cst_hash_hash): Use wide-int interfaces.
20588 (int_cst_hash_eq): Likewise.
20589 (build_int_cst_wide): Delete.
20590 (wide_int_to_tree): New.
20591 (cache_integer_cst): Use wide-int interfaces.
20592 (build_low_bits_mask): Likewise.
20593 (cst_and_fits_in_hwi): Likewise.
20594 (real_value_from_int_cst): Likewise.
20595 (make_int_cst_stat): New.
20596 (integer_zerop): Use wide_int interfaces.
20597 (integer_onep): Likewise.
20598 (integer_all_onesp): Likewise.
20599 (integer_pow2p): Likewise.
20600 (integer_nonzerop): Likewise.
20601 (tree_log2): Likewise.
20602 (tree_floor_log2): Likewise.
20603 (tree_ctz): Likewise.
20604 (int_size_in_bytes): Likewise.
20605 (mem_ref_offset): Return an offset_int rather than a double_int.
20606 (build_type_attribute_qual_variant): Use wide_int interfaces.
20607 (type_hash_eq): Likewise
20608 (tree_int_cst_equal): Likewise.
20609 (tree_int_cst_lt): Delete.
20610 (tree_int_cst_compare): Likewise.
20611 (tree_fits_shwi_p): Use wide_int interfaces.
20612 (tree_fits_uhwi_p): Likewise.
20613 (tree_int_cst_sign_bit): Likewise.
20614 (tree_int_cst_sgn): Likewise.
20615 (tree_int_cst_min_precision): Take a signop rather than a bool.
20616 (simple_cst_equal): Use wide_int interfaces.
20617 (compare_tree_int): Likewise.
20618 (iterative_hash_expr): Likewise.
20619 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
20621 (get_type_static_bounds): Use wide_int interfaces.
20622 (tree_int_cst_elt_check_failed): New.
20623 (build_common_tree_nodes): Reordered to set prec before filling in
20625 (int_cst_value): Check cst_and_fits_in_hwi.
20626 (widest_int_cst_value): Use wide_int interfaces.
20627 (upper_bound_in_type): Likewise.
20628 (lower_bound_in_type): Likewise.
20629 (num_ending_zeros): Likewise.
20630 (drop_tree_overflow): Likewise.
20631 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
20632 (gen_conditions_for_pow_cst_base): Likewise.
20633 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
20634 (group_case_labels_stmt): Use wide-int interfaces.
20635 (verify_gimple_assign_binary): Likewise.
20636 (print_loop): Likewise.
20637 * tree-chrec.c (tree_fold_binomial): Likewise.
20638 * tree-core.h (struct tree_base): Add int_length.
20639 (struct tree_int_cst): Change rep of value.
20640 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
20641 (dr_may_alias_p): Likewise.
20642 (max_stmt_executions_tree): Likewise.
20643 * tree.def (INTEGER_CST): Update comment.
20644 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
20645 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
20646 * tree-dump.c: Include wide-int.h and wide-int-print.h.
20647 (dequeue_and_dump): Use wide-int interfaces.
20648 * tree.h: Include wide-int.h.
20649 (NULL_TREE): Moved to earlier loc in file.
20650 (TREE_INT_CST_ELT_CHECK): New.
20651 (tree_int_cst_elt_check_failed): New.
20653 (TREE_INT_CST): Delete.
20654 (TREE_INT_CST_LOW): Use wide-int interfaces.
20655 (TREE_INT_CST_HIGH): Delete.
20656 (TREE_INT_CST_NUNITS): New.
20657 (TREE_INT_CST_EXT_NUNITS): Likewise.
20658 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
20659 (TREE_INT_CST_ELT): Likewise.
20660 (INT_CST_LT): Delete.
20661 (tree_int_cst_elt_check): New (two forms).
20662 (type_code_size): Update comment.
20663 (make_int_cst_stat, make_int_cst): New.
20664 (tree_to_double_int): Delete.
20665 (double_int_fits_to_tree_p): Delete.
20666 (force_fit_type_double): Delete.
20667 (build_int_cstu): Replace with out-of-line function.
20668 (build_int_cst_wide): Delete.
20669 (tree_int_cst_lt): Define inline.
20670 (tree_int_cst_le): New.
20671 (tree_int_cst_compare): Define inline.
20672 (tree_int_cst_min_precision): Take a signop rather than a bool.
20673 (wi::int_traits <const_tree>): New.
20674 (wi::int_traits <tree>): New.
20675 (wi::extended_tree): New.
20676 (wi::int_traits <wi::extended_tree>): New.
20677 (wi::to_widest): New.
20678 (wi::to_offset): New.
20679 (wi::fits_to_tree_p): New.
20680 (wi::min_value): New.
20681 (wi::max_value): New.
20682 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
20683 (copy_tree_body_r): Likewise.
20684 * tree-object-size.c (compute_object_offset): Likewise.
20685 (addr_object_size): Likewise.
20686 * tree-predcom.c: Include wide-int-print.h.
20687 (struct dref_d): Change type of offset to widest_int.
20688 (dump_dref): Call wide-int printer.
20689 (aff_combination_dr_offset): Use wide-int interfaces.
20690 (determine_offset): Take a widest_int pointer rather than a
20691 double_int pointer.
20692 (split_data_refs_to_components): Use wide-int interfaces.
20693 (suitable_component_p): Likewise.
20694 (order_drefs): Likewise.
20695 (add_ref_to_chain): Likewise.
20696 (valid_initializer_p): Likewise.
20697 (determine_roots_comp): Likewise.
20698 * tree-pretty-print.c: Include wide-int-print.h.
20699 (dump_generic_node): Use wide-int interfaces.
20700 * tree-sra.c (sra_ipa_modify_expr): Likewise.
20701 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
20702 (move_fixed_address_to_symbol): Likewise.
20703 (move_hint_to_base): Likewise.
20704 (move_pointer_to_base): Likewise.
20705 (move_variant_to_index): Likewise.
20706 (most_expensive_mult_to_index): Likewise.
20707 (addr_to_parts): Likewise.
20708 (copy_ref_info): Likewise.
20709 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20710 (indirect_refs_may_alias_p): Likewise.
20711 (stmt_kills_ref_p_1): Likewise.
20712 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
20713 * tree-ssa-ccp.c: Update comment at top of file. Include
20715 (struct prop_value_d): Change type of mask to widest_int.
20716 (extend_mask): New function.
20717 (dump_lattice_value): Use wide-int interfaces.
20718 (get_default_value): Likewise.
20719 (set_constant_value): Likewise.
20720 (set_value_varying): Likewise.
20721 (valid_lattice_transition): Likewise.
20722 (set_lattice_value): Likewise.
20723 (value_to_double_int): Delete.
20724 (value_to_wide_int): New.
20725 (get_value_from_alignment): Use wide-int interfaces.
20726 (get_value_for_expr): Likewise.
20727 (do_dbg_cnt): Likewise.
20728 (ccp_finalize): Likewise.
20729 (ccp_lattice_meet): Likewise.
20730 (bit_value_unop_1): Use widest_ints rather than double_ints.
20731 (bit_value_binop_1): Likewise.
20732 (bit_value_unop): Use wide-int interfaces.
20733 (bit_value_binop): Likewise.
20734 (bit_value_assume_aligned): Likewise.
20735 (evaluate_stmt): Likewise.
20736 (ccp_fold_stmt): Likewise.
20737 (visit_cond_stmt): Likewise.
20738 (ccp_visit_stmt): Likewise.
20739 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20740 (constant_pointer_difference): Likewise.
20741 (associate_pointerplus): Likewise.
20742 (combine_conversions): Likewise.
20743 * tree-ssa-loop.h: Include wide-int.h.
20744 (struct tree_niter_desc): Change type of max to widest_int.
20745 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
20746 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
20747 (remove_redundant_iv_tests): Likewise.
20748 (canonicalize_loop_induction_variables): Likewise.
20749 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
20750 (constant_multiple_of): Take a widest_int pointer instead of
20751 a double_int pointer.
20752 (get_computation_aff): Use wide-int interfaces.
20753 (ptr_difference_cost): Likewise.
20754 (difference_cost): Likewise.
20755 (get_loop_invariant_expr_id): Likewise.
20756 (get_computation_cost_at): Likewise.
20757 (iv_elimination_compare_lt): Likewise.
20758 (may_eliminate_iv): Likewise.
20759 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
20760 instead of double_int.
20761 (max_loop_iterations): Likewise.
20762 (max_stmt_executions): Likewise.
20763 (estimated_stmt_executions): Likewise.
20764 * tree-ssa-loop-niter.c: Include wide-int-print.h.
20765 (split_to_var_and_offset): Use wide-int interfaces.
20766 (determine_value_range): Likewise.
20767 (bound_difference_of_offsetted_base): Likewise.
20768 (bounds_add): Take a widest_int instead of a double_int.
20769 (number_of_iterations_ne_max): Use wide-int interfaces.
20770 (number_of_iterations_ne): Likewise.
20771 (number_of_iterations_lt_to_ne): Likewise.
20772 (assert_loop_rolls_lt): Likewise.
20773 (number_of_iterations_lt): Likewise.
20774 (number_of_iterations_le): Likewise.
20775 (number_of_iterations_cond): Likewise.
20776 (number_of_iterations_exit): Likewise.
20777 (finite_loop_p): Likewise.
20778 (derive_constant_upper_bound_assign): Likewise.
20779 (derive_constant_upper_bound): Return a widest_int.
20780 (derive_constant_upper_bound_ops): Likewise.
20781 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
20782 (record_estimate): Take a widest_int rather than a double_int.
20783 (record_nonwrapping_iv): Use wide-int interfaces.
20784 (double_int_cmp): Delete.
20785 (wide_int_cmp): New.
20786 (bound_index): Take a widest_int rather than a double_int.
20787 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
20788 (maybe_lower_iteration_bound): Likewise.
20789 (estimate_numbers_of_iterations_loop): Likewise.
20790 (estimated_loop_iterations): Take a widest_int pointer than than
20791 a double_int pointer.
20792 (estimated_loop_iterations_int): Use wide-int interfaces.
20793 (max_loop_iterations): Take a widest_int pointer than than
20794 a double_int pointer.
20795 (max_loop_iterations_int): Use wide-int interfaces.
20796 (max_stmt_executions): Take a widest_int pointer than than
20797 a double_int pointer.
20798 (estimated_stmt_executions): Likewise.
20799 (n_of_executions_at_most): Use wide-int interfaces.
20800 (scev_probably_wraps_p): Likewise.
20801 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20802 to real_to_integer.
20803 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20805 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20806 double_ints. Adjust for trailing_wide_ints <3> representation.
20807 (set_nonzero_bits): Likewise.
20808 (get_range_info): Return wide_ints rather than double_ints.
20809 Adjust for trailing_wide_ints <3> representation.
20810 (get_nonzero_bits): Likewise.
20811 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20813 * tree-ssanames.h (struct range_info_def): Replace min, max and
20814 nonzero_bits with a trailing_wide_ints <3>.
20815 (set_range_info): Use wide_int_refs rather than double_ints.
20816 (set_nonzero_bits): Likewise.
20817 (get_range_info): Return wide_ints rather than double_ints.
20818 (get_nonzero_bits): Likewise.
20819 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20820 * tree-ssa-pre.c (phi_translate_1): Likewise.
20821 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20822 (acceptable_pow_call): Likewise.
20823 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20825 (vn_reference_fold_indirect): Likewise.
20826 (vn_reference_maybe_forwprop_address): Likewise.
20827 (valueize_refs_1): Likewise.
20828 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20829 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20830 tree_int_cst_lt and tree_int_cst_le.
20831 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20833 (streamer_alloc_tree): Likewise.
20834 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20835 (streamer_write_tree_header): Likewise.
20836 (streamer_write_integer_cst): Likewise.
20837 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20838 (build_constructors): Likewise.
20839 (array_value_type): Likewise.
20840 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20841 (vect_check_gather): Likewise.
20842 * tree-vect-generic.c (build_replicated_const): Likewise.
20843 (expand_vector_divmod): Likewise.
20844 * tree-vect-loop.c (vect_transform_loop): Likewise.
20845 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20846 (vect_do_peeling_for_alignment): Likewise.
20847 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20848 * tree-vrp.c: Include wide-int.h.
20849 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20850 (extract_range_from_assert): Use wide-int interfaces.
20851 (vrp_int_const_binop): Likewise.
20852 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20853 double_int pointers.
20854 (ranges_from_anti_range): Use wide-int interfaces.
20855 (quad_int_cmp): Delete.
20856 (quad_int_pair_sort): Likewise.
20857 (extract_range_from_binary_expr_1): Use wide-int interfaces.
20858 (extract_range_from_unary_expr_1): Likewise.
20859 (adjust_range_with_scev): Likewise.
20860 (masked_increment): Take and return wide_ints rather than double_ints.
20861 (register_edge_assert_for_2): Use wide-int interfaces.
20862 (check_array_ref): Likewise.
20863 (search_for_addr_array): Likewise.
20864 (maybe_set_nonzero_bits): Likewise.
20865 (union_ranges): Pass an integer of the correct type instead of
20866 using integer_one_node.
20867 (intersect_ranges): Likewise.
20868 (simplify_truth_ops_using_ranges): Likewise.
20869 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20870 (range_fits_type_p): Likewise.
20871 (simplify_cond_using_ranges): Likewise. Take a signop rather than
20873 (simplify_conversion_using_ranges): Use wide-int interfaces.
20874 (simplify_float_conversion_using_ranges): Likewise.
20875 (vrp_finalize): Likewise.
20876 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20877 (gimple_stringops_transform): Likewise.
20878 * varasm.c (decode_addr_const): Likewise.
20879 (const_hash_1): Likewise.
20880 (const_rtx_hash_1): Likewise
20881 (output_constant): Likewise.
20882 (array_size_for_constructor): Likewise.
20883 (output_constructor_regular_field): Likewise.
20884 (output_constructor_bitfield): Likewise.
20885 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20886 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20888 * gencheck.c: Define BITS_PER_UNIT.
20889 * wide-int.cc: New.
20891 * wide-int-print.cc: New.
20892 * wide-int-print.h: New.
20894 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20896 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20898 2014-05-06 Richard Biener <rguenther@suse.de>
20900 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20901 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20902 (TODO_verify_all): Adjust.
20903 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20904 TODO_verify_stmts and TODO_verify_rtl_sharing.
20905 * bb-reorder.c: Likewise.
20906 * cfgexpand.c: Likewise.
20907 * cprop.c: Likewise.
20909 * function.c: Likewise.
20910 * fwprop.c: Likewise.
20911 * gcse.c: Likewise.
20912 * gimple-ssa-isolate-paths.c: Likewise.
20913 * gimple-ssa-strength-reduction.c: Likewise.
20914 * ipa-split.c: Likewise.
20915 * loop-init.c: Likewise.
20916 * loop-unroll.c: Likewise.
20917 * lower-subreg.c: Likewise.
20918 * modulo-sched.c: Likewise.
20919 * postreload-gcse.c: Likewise.
20920 * predict.c: Likewise.
20921 * recog.c: Likewise.
20922 * sched-rgn.c: Likewise.
20923 * store-motion.c: Likewise.
20924 * tracer.c: Likewise.
20925 * trans-mem.c: Likewise.
20926 * tree-call-cdce.c: Likewise.
20927 * tree-cfg.c: Likewise.
20928 * tree-cfgcleanup.c: Likewise.
20929 * tree-complex.c: Likewise.
20930 * tree-eh.c: Likewise.
20931 * tree-emutls.c: Likewise.
20932 * tree-if-conv.c: Likewise.
20933 * tree-into-ssa.c: Likewise.
20934 * tree-loop-distribution.c: Likewise.
20935 * tree-object-size.c: Likewise.
20936 * tree-parloops.c: Likewise.
20937 * tree-pass.h: Likewise.
20938 * tree-sra.c: Likewise.
20939 * tree-ssa-ccp.c: Likewise.
20940 * tree-ssa-copy.c: Likewise.
20941 * tree-ssa-copyrename.c: Likewise.
20942 * tree-ssa-dce.c: Likewise.
20943 * tree-ssa-dom.c: Likewise.
20944 * tree-ssa-dse.c: Likewise.
20945 * tree-ssa-forwprop.c: Likewise.
20946 * tree-ssa-ifcombine.c: Likewise.
20947 * tree-ssa-loop-ch.c: Likewise.
20948 * tree-ssa-loop-ivcanon.c: Likewise.
20949 * tree-ssa-loop.c: Likewise.
20950 * tree-ssa-math-opts.c: Likewise.
20951 * tree-ssa-phiopt.c: Likewise.
20952 * tree-ssa-phiprop.c: Likewise.
20953 * tree-ssa-pre.c: Likewise.
20954 * tree-ssa-reassoc.c: Likewise.
20955 * tree-ssa-sink.c: Likewise.
20956 * tree-ssa-strlen.c: Likewise.
20957 * tree-ssa-tail-merge.c: Likewise.
20958 * tree-ssa-uncprop.c: Likewise.
20959 * tree-switch-conversion.c: Likewise.
20960 * tree-tailcall.c: Likewise.
20961 * tree-vect-generic.c: Likewise.
20962 * tree-vectorizer.c: Likewise.
20963 * tree-vrp.c: Likewise.
20964 * tsan.c: Likewise.
20965 * var-tracking.c: Likewise.
20966 * bt-load.c: Likewise.
20967 * cfgcleanup.c: Likewise.
20968 * combine-stack-adj.c: Likewise.
20969 * combine.c: Likewise.
20970 * compare-elim.c: Likewise.
20971 * config/epiphany/resolve-sw-modes.c: Likewise.
20972 * config/i386/i386.c: Likewise.
20973 * config/mips/mips.c: Likewise.
20974 * config/s390/s390.c: Likewise.
20975 * config/sh/sh_treg_combine.cc: Likewise.
20976 * config/sparc/sparc.c: Likewise.
20979 * final.c: Likewise.
20980 * ifcvt.c: Likewise.
20981 * mode-switching.c: Likewise.
20982 * passes.c: Likewise.
20983 * postreload.c: Likewise.
20985 * reg-stack.c: Likewise.
20986 * regcprop.c: Likewise.
20987 * regrename.c: Likewise.
20990 2014-05-06 Richard Biener <rguenther@suse.de>
20992 PR middle-end/61070
20993 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20994 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20996 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
20999 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
21001 2014-05-05 Radovan Obradovic <robradovic@mips.com>
21002 Tom de Vries <tom@codesourcery.com>
21004 * target.def (call_fusage_contains_non_callee_clobbers): New
21006 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
21008 (@node Miscellaneous Register Hooks): New node.
21009 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
21010 * doc/tm.texi: Regenerate.
21012 2014-05-05 Marek Polacek <polacek@redhat.com>
21015 * opts.c (common_handle_option): Call error_at instead of warning_at.
21017 2014-05-05 Richard Biener <rguenther@suse.de>
21019 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
21020 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
21021 under the TODO_verify_il umbrella.
21023 2014-05-05 Richard Biener <rguenther@suse.de>
21025 * passes.c (execute_function_todo): Move TODO_verify_flow under
21026 the TODO_verify_ul umbrella.
21028 2014-05-05 Richard Biener <rguenther@suse.de>
21030 PR middle-end/61010
21031 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
21032 X & CST away from a CST that is the mask of a mode.
21034 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21036 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
21037 int argument to enum machine_mode.
21038 (picochip_class_max_nregs): Ditto.
21039 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
21040 (picochip_class_max_nregs): Ditto.
21042 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21044 * target.def: Add new target hook.
21045 * doc/tm.texi: Regenerate.
21046 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
21047 * targhooks.c (default_keep_leaf_when_profiled): New function.
21049 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
21050 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
21052 2014-05-05 Bin Cheng <bin.cheng@arm.com>
21054 PR tree-optimization/60363
21055 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
21056 (copy_phi_args): New parameters. Call get_value_locus_in_path.
21057 (update_destination_phis): New parameter.
21058 (create_edge_and_update_destination_phis): Ditto.
21059 (ssa_fix_duplicate_block_edges): Pass new arguments.
21060 (thread_single_edge): Ditto.
21062 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
21064 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
21065 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
21066 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
21067 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
21068 Use RS6000_BTM_HARD_FLOAT.
21069 (BU_MISC_2): Likewise.
21070 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21071 RS6000_BTM_HARD_FLOAT.
21072 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
21073 is explicitly used.
21074 (rs6000_invalid_builtin): Add hard floating builtin support.
21075 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
21076 hard float builtins.
21077 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
21079 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21081 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
21082 Add missing function* argument.
21084 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21086 * lra-constraints.c (valid_address_p): Move earlier in file.
21087 Add a constraint argument to the address_info version.
21088 (satisfies_memory_constraint_p): New function.
21089 (satisfies_address_constraint_p): Likewise.
21090 (process_alt_operands, curr_insn_transform): Use them.
21091 (process_address): Pass the constraint to valid_address_p when
21092 checking address operands.
21094 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21096 * config/mips/mips.c (mips_isa_rev): New variable.
21097 (mips_set_architecture): Set it.
21098 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
21100 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
21101 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
21102 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
21103 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
21104 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
21105 conditions in terms of mips_isa_rev.
21106 (mips_isa_rev): Declare.
21108 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21110 * config/sh/sh-mem.cc: Use tabs instead of spaces.
21111 (prob_unlikely, prob_likely): Make variables const.
21113 2014-05-03 Denis Chertykov <chertykov@gmail.com>
21115 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
21117 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21119 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
21121 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21123 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
21124 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
21125 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
21127 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
21128 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
21130 Replace usage of ROUND_REG with sh_round_reg.
21131 Use CEIL instead of ROUND_ADVANCE.
21133 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21136 * config/sh/sh.c: Include stdlib headers before everything else.
21138 2014-05-02 Jakub Jelinek <jakub@redhat.com>
21140 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
21141 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
21142 (gimplify_adjust_omp_clauses): Simd region is never
21143 directly nested in combined parallel. Instead, for linear
21144 with copyin/copyout, if in combined for simd loop, make decl
21145 firstprivate/lastprivate on OMP_FOR.
21146 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21147 expand_omp_for_static_chunk): When setting endvar, also set
21148 fd->loop.v to the same value.
21150 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21152 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21154 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21156 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21159 2014-05-02 Marek Polacek <polacek@redhat.com>
21161 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21163 2014-05-02 Kito Cheng <kito@0xlab.org>
21165 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21166 to a C expression marco.
21167 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21168 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21169 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21170 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21171 HONOR_REG_ALLOC_ORDER.
21172 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21174 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21176 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21178 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21180 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21182 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21184 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21185 (convert_scalar_cond_reduction): Likewise.
21186 (predicate_scalar_phi): Add recognition and transformation
21187 of simple conditioanl reduction to be vectorizable.
21189 2014-05-01 Marek Polacek <polacek@redhat.com>
21192 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21194 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21196 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21197 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21198 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21199 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21200 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21201 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21202 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21203 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21205 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21207 * config/arc/arc.opt (mlra): Move comment above option name
21208 to avoid mis-parsing as language options.
21210 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21212 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21213 * config/sol2.h: ... here.
21214 * config/sol2-10.h: Remove.
21216 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21217 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21218 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21219 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21220 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21221 * config/sol2.h: ... here.
21222 (SECTION_NAME_FORMAT): Don't redefine.
21223 (STARTFILE_ARCH32_SPEC): Rename to ...
21224 (STARTFILE_ARCH_SPEC): ... this.
21225 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21226 * config/sparc/sol2.h: ... here.
21227 (SECTION_NAME_FORMAT): Don't undef.
21228 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21229 (SUBTARGET_EXTRA_SPECS): Remove.
21230 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21232 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21233 (MD_STARTFILE_PREFIX): Remove.
21234 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21235 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21236 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21237 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21238 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21239 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21240 * config/i386/sol2.h: ... here.
21241 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21242 * config/i386/sol2-bi.h: Remove.
21243 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21244 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21246 * config/i386/t-sol2-64: Rename to ...
21247 * config/i386/t-sol2: ... this.
21248 * config/sparc/t-sol2-64: Rename to ...
21249 * config/sparc/t-sol2: ... this.
21251 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21252 sol2_tm_file_head, sol2_tm_file_tail.
21253 Include ${cpu_type}/sol2.h before sol2.h.
21255 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21256 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21257 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21258 Reflect i386/t-sol2-64 renaming.
21259 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21260 Reflect sparc/t-sol2-64 renaming.
21262 2014-04-30 Richard Biener <rguenther@suse.de>
21264 * passes.c (execute_function_todo): Move TODO_verify_stmts
21265 and TODO_verify_ssa under the TODO_verify_il umbrella.
21266 * tree-ssa.h (verify_ssa): Adjust prototype.
21267 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21268 we should verify SSA operands.
21269 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21270 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21271 whether we should verify whether not throwing stmts have EH info.
21272 * graphite-scop-detection.c (create_sese_edges): Adjust.
21273 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21274 * tree-eh.c (lower_try_finally_switch): Do not add the
21275 default case label twice.
21277 2014-04-30 Marek Polacek <polacek@redhat.com>
21279 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21280 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21281 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21282 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21284 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21286 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21287 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21288 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21289 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21290 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21291 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21292 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21293 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21295 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21297 * tree-cfg.c (dump_function_to_file): Dump the return type of
21298 functions, in a line to itself before the function body, mimicking
21299 the layout of a C function.
21301 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21303 PR tree-optimization/60971
21304 * tree-tailcall.c (process_assignment): Reject conversions which
21307 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21309 * calls.c (initialize_argument_information): Always treat
21310 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21311 (expand_call): Likewise.
21312 (emit_library_call_calue_1): Likewise.
21313 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21314 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21317 2014-04-29 Nick Clifton <nickc@redhat.com>
21319 * config/msp430/msp430.md (umulsidi): Fix typo.
21320 (mulhisi3): Enable even inside interrupt handlers.
21321 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21322 bigger return address pushed in large mode.
21324 2014-04-29 Nick Clifton <nickc@redhat.com>
21326 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21327 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21329 * config/m32r/m32r.c (init_reg_tables): Likewise.
21330 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21331 enum to hold the modes.
21333 2014-04-29 Richard Biener <rguenther@suse.de>
21335 * dominance.c (free_dominance_info): Add overload with
21336 function parameter.
21337 (dom_info_state): Likewise.
21338 (dom_info_available_p): Likewise.
21339 * basic-block.h (free_dominance_info, dom_info_state,
21340 dom_info_available_p): Declare overloads.
21341 * passes.c (execute_function_todo): Verify that verifiers
21342 don't change dominator info state. Drop dominator info
21343 for IPA pass invocations.
21344 * cgraph.c (release_function_body): Restore asserts that
21345 dominator information is released.
21347 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21349 * doc/invoke.texi: Fix typo.
21350 * tree-vrp.c: Fix typos.
21351 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21353 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21355 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21357 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21359 * config/aarch64/aarch64-builtins.c
21360 (aarch64_types_storestruct_lane_qualifiers): New.
21361 (TYPES_STORESTRUCT_LANE): Likewise.
21362 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21363 (st3_lane): Likewise.
21364 (st4_lane): Likewise.
21365 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21366 (vec_store_lanesci_lane<mode>): Likewise.
21367 (vec_store_lanesxi_lane<mode>): Likewise.
21368 (aarch64_st2_lane<VQ:mode>): Likewise.
21369 (aarch64_st3_lane<VQ:mode>): Likewise.
21370 (aarch64_st4_lane<VQ:mode>): Likewise.
21371 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21372 * config/aarch64/arm_neon.h
21373 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21374 use new macro arguments.
21375 (__ST3_LANE_FUNC): Likewise.
21376 (__ST4_LANE_FUNC): Likewise.
21377 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21378 (V_THREE_ELEM): Likewise.
21379 (V_FOUR_ELEM): Likewise.
21381 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21383 * doc/gimple.texi: Replace the description of the now-defunct
21384 union gimple_statement_d with a diagram showing the
21385 gimple_statement_base class hierarchy and its relationships to
21386 the GSS_ and GIMPLE_ enums.
21388 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21390 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21391 * config/aarch64/aarch64.c
21392 (aarch64_cannot_change_mode_class): Weaken conditions.
21393 (aarch64_modes_tieable_p): New.
21394 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21396 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21398 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21399 (loadsync_<mode>): Change mode.
21400 (load_quadpti, store_quadpti): New.
21401 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21402 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21404 2014-04-28 Martin Jambor <mjambor@suse.cz>
21406 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21407 same alias type as the original statement.
21408 (subreplacement_assignment_data): New type.
21409 (handle_unscalarized_data_in_subtree): New type of parameter,
21410 generate new memory accesses with same alias type as the original
21412 (load_assign_lhs_subreplacements): Likewise.
21413 (sra_modify_constructor_assign): Generate new memory accesses with
21414 same alias type as the original statement.
21416 2014-04-28 Richard Biener <rguenther@suse.de>
21418 * tree-pass.h (TODO_verify_il): Define.
21419 (TODO_verify_all): Complete properly.
21420 * passes.c (execute_function_todo): Move existing loop-closed
21421 SSA verification under TODO_verify_il.
21422 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21423 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21424 Fix tree sharing issue.
21426 2014-04-28 Richard Biener <rguenther@suse.de>
21428 PR middle-end/60092
21429 * builtins.def (DEF_C11_BUILTIN): Add.
21430 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21431 * coretypes.h (enum function_class): Add function_c11_misc.
21432 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21433 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21434 (call_may_clobber_ref_p_1): Likewise.
21435 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21436 (mark_all_reaching_defs_necessary_1): Likewise.
21437 (propagate_necessity): Likewise.
21438 (eliminate_unnecessary_stmts): Likewise.
21439 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21441 2014-04-28 Richard Biener <rguenther@suse.de>
21443 * tree-vrp.c (vrp_var_may_overflow): Remove.
21444 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21445 with overflow immediately bump to one before that value and
21446 let iteration figure out overflow status.
21448 2014-04-28 Richard Biener <rguenther@suse.de>
21450 * configure.ac: Do valgrind header checks unconditionally.
21451 Add --enable-valgrind-annotations.
21452 * system.h: Guard valgrind header inclusion with
21453 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21454 * alloc-pool.c (pool_alloc, pool_free): Use
21455 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21456 to guard possibly dead code.
21457 * config.in: Regenerated.
21458 * configure: Likewise.
21460 2014-04-28 Jeff Law <law@redhat.com>
21462 PR tree-optimization/60902
21463 * tree-ssa-threadedge.c
21464 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21465 over real defs when invalidating outputs from statements that do not
21466 produce useful outputs for threading.
21468 2014-04-28 Richard Biener <rguenther@suse.de>
21470 PR tree-optimization/60979
21471 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21472 SCOPs that end in a block with a successor with abnormal
21475 2014-04-28 Richard Biener <rguenther@suse.de>
21477 * tree-pass.h (execute_pass_list): Adjust prototype.
21478 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21479 (do_per_function): Change callback signature, push all actual
21480 work to the callbals.
21481 (do_per_function_toporder): Likewise.
21482 (execute_function_dump): Adjust.
21483 (execute_function_todo): Likewise.
21484 (clear_last_verified): Likewise.
21485 (verify_curr_properties): Likewise.
21486 (update_properties_after_pass): Likewise.
21487 (execute_pass_list_1): Split out from ...
21488 (execute_pass_list): ... here. Adjust.
21489 (execute_ipa_pass_list): Likewise.
21490 * cgraphunit.c (cgraph_add_new_function): Adjust.
21491 (analyze_function): Likewise.
21492 (expand_function): Likewise.
21493 * cgraph.c (release_function_body): Free dominance info
21494 here instead of asserting it was magically freed elsewhere.
21496 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21498 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21499 * configure: Regenerate.
21500 * config/sparc/sparc.opt (muser-mode): New option.
21501 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21503 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21504 * doc/invoke.texi (SPARC options): Document -muser-mode.
21506 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21508 * cselib.c (find_slot_memmode): Delete.
21509 (cselib_hasher): Change compare_type to a struct.
21510 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21512 (preserve_constants_and_equivs): Adjust for new compare_type.
21513 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
21514 (wrap_constant): Delete.
21515 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
21517 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21519 * doc/install.texi (Building with profile feedback): Remove
21522 2014-04-26 Tom de Vries <tom@codesourcery.com>
21524 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
21527 2014-04-25 Cary Coutant <ccoutant@google.com>
21530 * dwarf2out.c (should_move_die_to_comdat): A type definition
21531 can contain a subprogram definition, but don't move it to a
21533 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
21534 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
21536 (clone_tree_hash): Rename to...
21537 (clone_tree_partial): ...this; change callers. Copy
21538 DW_TAG_subprogram DIEs as declarations.
21539 (copy_decls_walk): Don't copy children of a declaration into a
21542 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
21545 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
21548 2014-04-25 Jiong Wang <jiong.wang@arm.com>
21550 * config/arm/predicates.md (call_insn_operand): Add long_call check.
21551 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
21553 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
21556 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21558 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
21560 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21562 PR tree-optimization/60930
21563 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
21564 creating a multiply candidate by folding two constant
21565 multiplicands when the result overflows.
21567 2014-04-25 Jakub Jelinek <jakub@redhat.com>
21569 PR tree-optimization/60960
21570 * tree-vect-generic.c (expand_vector_operation): Only call
21571 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
21573 2014-04-25 Tom de Vries <tom@codesourcery.com>
21575 * expr.c (clobber_reg_mode): New function.
21576 * expr.h (clobber_reg): New function.
21578 2014-04-25 Tom de Vries <tom@codesourcery.com>
21580 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
21583 2014-04-25 Radovan Obradovic <robradovic@mips.com>
21584 Tom de Vries <tom@codesourcery.com>
21586 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
21588 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
21589 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
21590 new argument to find_all_hard_reg_sets call.
21592 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21594 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
21595 Use HOST_WIDE_INT_C for mask literal.
21596 (aarch_rev16_shleft_mask_imm_p): Likewise.
21598 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
21601 * config/sparc/sparc.md (ashlsi3_extend): Delete.
21603 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
21605 PR preprocessor/56540
21606 * config/i386/i386-c.c (ix86_target_macros): Define
21607 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
21609 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21611 * configure.ac (tga_func): Remove.
21612 (LIB_TLS_SPEC): Remove.
21613 * configure: Regenerate.
21614 * config.in: Regenerate.
21615 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
21617 2014-04-25 Richard Biener <rguenther@suse.de>
21620 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
21621 call stmt use/clobber sets during stmt walk instead of
21622 walking the possibly incomplete set of caller edges.
21624 2014-04-25 Richard Biener <rguenther@suse.de>
21627 * passes.c (apply_ipa_transforms): Inline into only caller ...
21628 (execute_one_pass): ... here. Properly bring in function
21629 bodies for nodes we want to apply IPA transforms to.
21631 2014-04-24 Cong Hou <congh@google.com>
21633 PR tree-optimization/60896
21634 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
21635 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
21636 (vect_mark_pattern_stmts): Set the def type of all statements in
21637 PATTERN_DEF_SEQ as vect_internal_def.
21639 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21641 * doc/extend.texi (PowerPC Built-in Functions): Document new
21642 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
21643 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
21645 * config/rs6000/predicates.md (const_0_to_3_operand): New
21646 predicate to match 0..3 integer constants.
21648 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
21649 to support adding miscellaneous builtin functions.
21650 (BU_DFP_MISC_2): Likewise.
21651 (BU_P7_MISC_1): Likewise.
21652 (BU_P7_MISC_2): Likewise.
21653 (BU_P8V_MISC_3): Likewise.
21654 (BU_MISC_1): Likewise.
21655 (BU_MISC_2): Likewise.
21656 (DIVWE): Add extended divide builtin functions.
21657 (DIVWEO): Likewise.
21658 (DIVWEU): Likewise.
21659 (DIVWEUO): Likewise.
21661 (DIVDEO): Likewise.
21662 (DIVDEU): Likewise.
21663 (DIVDEUO): Likewise.
21664 (DXEX): Add decimal floating-point builtin functions.
21666 (DDEDPD): Likewise.
21667 (DDEDPDQ): Likewise.
21668 (DENBCD): Likewise.
21669 (DENBCDQ): Likewise.
21673 (DSCLIQ): Likewise.
21675 (DSCRIQ): Likewise.
21676 (CDTBCD): Add new BCD builtin functions.
21677 (CBCDTD): Likewise.
21678 (ADDG6S): Likewise.
21679 (BCDADD): Likewise.
21680 (BCDADD_LT): Likewise.
21681 (BCDADD_EQ): Likewise.
21682 (BCDADD_GT): Likewise.
21683 (BCDADD_OV): Likewise.
21684 (BCDSUB): Likewise.
21685 (BCDSUB_LT): Likewise.
21686 (BCDSUB_EQ): Likewise.
21687 (BCDSUB_GT): Likewise.
21688 (BCDSUB_OV): Likewise.
21689 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
21690 (UNPACK_TD): Likewise.
21691 (PACK_TF): Likewise.
21692 (UNPACK_TF): Likewise.
21693 (UNPACK_TF_0): Likewise.
21694 (UNPACK_TF_1): Likewise.
21695 (PACK_V1TI): Likewise.
21696 (UNPACK_V1TI): Likewise.
21698 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21699 support for decimal floating point builtin functions.
21700 (rs6000_expand_ternop_builtin): Add checks for the new builtin
21701 functions that take constant arguments.
21702 (rs6000_invalid_builtin): Add decimal floating point builtin support.
21703 (rs6000_init_builtins): Setup long double, _Decimal64, and
21704 _Decimal128 types for new builtin functions.
21705 (builtin_function_type): Set the unsigned flags appropriately for
21706 the new builtin functions.
21707 (rs6000_opt_masks): Add support for decimal floating point builtin
21710 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
21711 floating point builtin functions.
21712 (RS6000_BTM_COMMON): Likewise.
21713 (RS6000_BTI_long_double): Likewise.
21714 (RS6000_BTI_dfloat64): Likewise.
21715 (RS6000_BTI_dfloat128): Likewise.
21716 (long_double_type_internal_node): Likewise.
21717 (dfloat64_type_internal_node): Likewise.
21718 (dfloat128_type_internal_node): Likewise.
21720 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
21721 2.07 bcd arithmetic instructions.
21722 (UNSPEC_BCDSUB): Likewise.
21723 (UNSPEC_BCD_OVERFLOW): Likewise.
21724 (UNSPEC_BCD_ADD_SUB): Likewise.
21725 (bcd_add_sub): Likewise.
21726 (BCD_TEST): Likewise.
21727 (bcd<bcd_add_sub>): Likewise.
21728 (bcd<bcd_add_sub>_test): Likewise.
21729 (bcd<bcd_add_sub>_test2): Likewise.
21730 (bcd<bcd_add_sub>_<code>): Likewise.
21731 (peephole2 for combined bcd ops): Likewise.
21733 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
21734 decimal floating point builtin functions.
21735 (UNSPEC_DENBCD): Likewise.
21736 (UNSPEC_DXEX): Likewise.
21737 (UNSPEC_DIEX): Likewise.
21738 (UNSPEC_DSCLI): Likewise.
21739 (UNSPEC_DSCRI): Likewise.
21740 (D64_D128): Likewise.
21741 (dfp_suffix): Likewise.
21742 (dfp_ddedpd_<mode>): Likewise.
21743 (dfp_denbcd_<mode>): Likewise.
21744 (dfp_dxex_<mode>): Likewise.
21745 (dfp_diex_<mode>): Likewise.
21746 (dfp_dscli_<mode>): Likewise.
21747 (dfp_dscri_<mode>): Likewise.
21749 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
21751 (UNSPEC_CDTBCD): Likewise.
21752 (UNSPEC_CBCDTD): Likewise.
21753 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
21754 (UNSPEC_DIVEO): Likewise.
21755 (UNSPEC_DIVEU): Likewise.
21756 (UNSPEC_DIVEUO): Likewise.
21757 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
21758 pack/unpack 128-bit types.
21759 (UNSPEC_PACK_128BIT): Likewise.
21760 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
21761 (udiv<mode>3): Use idiv_ldiv mode attribute.
21762 (div<mode>3): Likewise.
21763 (addg6s): Add new BCD builtin functions.
21764 (cdtbcd): Likewise.
21765 (cbcdtd): Likewise.
21766 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
21767 (div_extend): Likewise.
21768 (div<div_extend>_<mode>"): Likewise.
21769 (FP128_64): Add support for new builtin functions to pack/unpack
21771 (unpack<mode>): Likewise.
21772 (unpacktf_0): Likewise.
21773 (unpacktf_1): Likewise.
21774 (unpack<mode>_dm): Likewise.
21775 (unpack<mode>_nodm): Likewise.
21776 (pack<mode>): Likewise.
21777 (unpackv1ti): Likewise.
21778 (packv1ti): Likewise.
21780 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
21782 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
21785 2014-04-24 Jakub Jelinek <jakub@redhat.com>
21787 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
21788 * gimplify.c (omp_is_private): Change last argument's type to int.
21789 Only diagnose lastprivate if the simd argument is 1, only diagnose
21790 linear if the simd argument is 2.
21791 (gimplify_omp_for): Adjust omp_is_private callers. When adding
21792 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
21793 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
21794 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21795 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21796 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21797 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21798 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21799 * tree-nested.c (convert_nonlocal_omp_clauses,
21800 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21802 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
21805 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21808 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
21810 * flag-types.h (enum ivar_visibility): Add.
21812 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
21814 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21815 function * argument.
21817 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
21819 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21821 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21822 Tom de Vries <tom@codesourcery.com>
21824 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21825 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21827 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21828 * emit-rtl.c (try_split): Same.
21830 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21831 Tom de Vries <tom@codesourcery.com>
21833 * common.opt (fuse-caller-save): New option.
21835 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
21837 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21838 elements for big-endian.
21840 2014-04-24 Richard Biener <rguenther@suse.de>
21842 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21843 during TER and instead use the sepops interface for expanding
21844 non-GIMPLE_SINGLE_RHS.
21846 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21848 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21849 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21851 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21853 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21854 assembler 64-bit option.
21855 * configure: Regenerate.
21857 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21859 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21860 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21861 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21862 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21863 (TARGET_CRYPTO): Take TARGET_SIMD into account.
21865 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21867 * config/aarch64/aarch64-builtins.c
21868 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21869 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21870 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21871 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21873 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21874 (Vrevsuff): New mode attribute.
21876 2014-04-24 Terry Guo <terry.guo@arm.com>
21878 * config/arm/arm.h (machine_function): Define variable
21879 after_arm_reorg here.
21880 * config/arm/arm.c (after_arm_reorg): Remove the definition.
21881 (arm_split_constant): Update the way to access variable
21883 (arm_reorg): Ditto.
21884 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21886 2014-04-23 Tom de Vries <tom@codesourcery.com>
21888 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21890 2014-04-23 David Malcolm <dmalcolm@redhat.com>
21892 * is-a.h: Update comments to reflect the following changes to the
21893 "pointerness" of the API, making the template parameter match the
21894 return type, allowing use of is-a.h with typedefs of pointers.
21895 (is_a_helper::cast): Return a T rather then a pointer to a T, so
21896 that the return type matches the parameter to the is_a_helper.
21898 (dyn_cast): Likewise.
21900 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21901 pointer from the is-a.h API.
21903 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21904 (is_a_helper <cgraph_node *>::test): ...this, matching change to
21906 (is_a_helper <varpool_node>::test): Likewise, convert to...
21907 (is_a_helper <varpool_node *>::test): ...this.
21909 (varpool_first_variable): Update for removal of implicit pointer
21910 from the is-a.h API.
21911 (varpool_next_variable): Likewise.
21912 (varpool_first_static_initializer): Likewise.
21913 (varpool_next_static_initializer): Likewise.
21914 (varpool_first_defined_variable): Likewise.
21915 (varpool_next_defined_variable): Likewise.
21916 (cgraph_first_defined_function): Likewise.
21917 (cgraph_next_defined_function): Likewise.
21918 (cgraph_first_function): Likewise.
21919 (cgraph_next_function): Likewise.
21920 (cgraph_first_function_with_gimple_body): Likewise.
21921 (cgraph_next_function_with_gimple_body): Likewise.
21922 (cgraph_alias_target): Likewise.
21923 (varpool_alias_target): Likewise.
21924 (cgraph_function_or_thunk_node): Likewise.
21925 (varpool_variable_node): Likewise.
21926 (symtab_real_symbol_p): Likewise.
21927 * cgraphunit.c (referred_to_p): Likewise.
21928 (analyze_functions): Likewise.
21929 (handle_alias_pairs): Likewise.
21930 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21931 * gimple-ssa.h (gimple_vuse_op): Likewise.
21932 (gimple_vdef_op): Likewise.
21933 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21934 * gimple.c (gimple_build_asm_1): Likewise.
21935 (gimple_build_try): Likewise.
21936 (gimple_build_resx): Likewise.
21937 (gimple_build_eh_dispatch): Likewise.
21938 (gimple_build_omp_for): Likewise.
21939 (gimple_omp_for_set_clauses): Likewise.
21941 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21942 (is_a_helper <gimple_statement_asm *>::test): ...this.
21943 (is_a_helper <gimple_statement_bind>::test): Convert to...
21944 (is_a_helper <gimple_statement_bind *>::test): ...this.
21945 (is_a_helper <gimple_statement_call>::test): Convert to...
21946 (is_a_helper <gimple_statement_call *>::test): ...this.
21947 (is_a_helper <gimple_statement_catch>::test): Convert to...
21948 (is_a_helper <gimple_statement_catch *>::test): ...this.
21949 (is_a_helper <gimple_statement_resx>::test): Convert to...
21950 (is_a_helper <gimple_statement_resx *>::test): ...this.
21951 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21952 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21953 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21954 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21955 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21956 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21957 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21958 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21959 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21960 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21961 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21962 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21963 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21964 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21965 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21966 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21967 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21968 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21969 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21970 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21971 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21972 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21973 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21974 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21975 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21976 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21977 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21978 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21979 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21980 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21981 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21982 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21983 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21984 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21985 (is_a_helper <gimple_statement_phi>::test): Convert to...
21986 (is_a_helper <gimple_statement_phi *>::test): ...this.
21987 (is_a_helper <gimple_statement_transaction>::test): Convert to...
21988 (is_a_helper <gimple_statement_transaction *>::test): ...this.
21989 (is_a_helper <gimple_statement_try>::test): Convert to...
21990 (is_a_helper <gimple_statement_try *>::test): ...this.
21991 (is_a_helper <gimple_statement_wce>::test): Convert to...
21992 (is_a_helper <gimple_statement_wce *>::test): ...this.
21993 (is_a_helper <const gimple_statement_asm>::test): Convert to...
21994 (is_a_helper <const gimple_statement_asm *>::test): ...this.
21995 (is_a_helper <const gimple_statement_bind>::test): Convert to...
21996 (is_a_helper <const gimple_statement_bind *>::test): ...this.
21997 (is_a_helper <const gimple_statement_call>::test): Convert to...
21998 (is_a_helper <const gimple_statement_call *>::test): ...this.
21999 (is_a_helper <const gimple_statement_catch>::test): Convert to...
22000 (is_a_helper <const gimple_statement_catch *>::test): ...this.
22001 (is_a_helper <const gimple_statement_resx>::test): Convert to...
22002 (is_a_helper <const gimple_statement_resx *>::test): ...this.
22003 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
22004 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
22005 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
22006 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
22007 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
22009 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
22011 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
22013 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
22015 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
22016 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
22017 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
22019 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
22020 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
22022 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
22023 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
22024 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
22025 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
22026 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
22027 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
22029 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
22030 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
22031 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
22032 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
22034 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
22035 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
22036 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
22037 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
22038 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
22039 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
22040 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
22041 (is_a_helper <const gimple_statement_phi>::test): Convert to...
22042 (is_a_helper <const gimple_statement_phi *>::test): ...this.
22043 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
22044 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
22045 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
22046 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
22047 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
22048 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
22049 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
22051 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
22053 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
22054 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
22056 (gimple_use_ops): Update for removal of implicit pointer from the
22058 (gimple_set_use_ops): Likewise.
22059 (gimple_vuse): Likewise.
22060 (gimple_vdef): Likewise.
22061 (gimple_vuse_ptr): Likewise.
22062 (gimple_vdef_ptr): Likewise.
22063 (gimple_set_vuse): Likewise.
22064 (gimple_set_vdef): Likewise.
22065 (gimple_omp_return_set_lhs): Likewise.
22066 (gimple_omp_return_lhs): Likewise.
22067 (gimple_omp_return_lhs_ptr): Likewise.
22068 (gimple_call_fntype): Likewise.
22069 (gimple_call_set_fntype): Likewise.
22070 (gimple_call_set_internal_fn): Likewise.
22071 (gimple_call_use_set): Likewise.
22072 (gimple_call_clobber_set): Likewise.
22073 (gimple_bind_vars): Likewise.
22074 (gimple_bind_set_vars): Likewise.
22075 (gimple_bind_body_ptr): Likewise.
22076 (gimple_bind_set_body): Likewise.
22077 (gimple_bind_add_stmt): Likewise.
22078 (gimple_bind_block): Likewise.
22079 (gimple_bind_set_block): Likewise.
22080 (gimple_asm_ninputs): Likewise.
22081 (gimple_asm_noutputs): Likewise.
22082 (gimple_asm_nclobbers): Likewise.
22083 (gimple_asm_nlabels): Likewise.
22084 (gimple_asm_input_op): Likewise.
22085 (gimple_asm_input_op_ptr): Likewise.
22086 (gimple_asm_output_op): Likewise.
22087 (gimple_asm_output_op_ptr): Likewise.
22088 (gimple_asm_set_output_op): Likewise.
22089 (gimple_asm_clobber_op): Likewise.
22090 (gimple_asm_set_clobber_op): Likewise.
22091 (gimple_asm_label_op): Likewise.
22092 (gimple_asm_set_label_op): Likewise.
22093 (gimple_asm_string): Likewise.
22094 (gimple_catch_types): Likewise.
22095 (gimple_catch_types_ptr): Likewise.
22096 (gimple_catch_handler_ptr): Likewise.
22097 (gimple_catch_set_types): Likewise.
22098 (gimple_catch_set_handler): Likewise.
22099 (gimple_eh_filter_types): Likewise.
22100 (gimple_eh_filter_types_ptr): Likewise.
22101 (gimple_eh_filter_failure_ptr): Likewise.
22102 (gimple_eh_filter_set_types): Likewise.
22103 (gimple_eh_filter_set_failure): Likewise.
22104 (gimple_eh_must_not_throw_fndecl): Likewise.
22105 (gimple_eh_must_not_throw_set_fndecl): Likewise.
22106 (gimple_eh_else_n_body_ptr): Likewise.
22107 (gimple_eh_else_e_body_ptr): Likewise.
22108 (gimple_eh_else_set_n_body): Likewise.
22109 (gimple_eh_else_set_e_body): Likewise.
22110 (gimple_try_eval_ptr): Likewise.
22111 (gimple_try_cleanup_ptr): Likewise.
22112 (gimple_try_set_eval): Likewise.
22113 (gimple_try_set_cleanup): Likewise.
22114 (gimple_wce_cleanup_ptr): Likewise.
22115 (gimple_wce_set_cleanup): Likewise.
22116 (gimple_phi_capacity): Likewise.
22117 (gimple_phi_num_args): Likewise.
22118 (gimple_phi_result): Likewise.
22119 (gimple_phi_result_ptr): Likewise.
22120 (gimple_phi_set_result): Likewise.
22121 (gimple_phi_arg): Likewise.
22122 (gimple_phi_set_arg): Likewise.
22123 (gimple_resx_region): Likewise.
22124 (gimple_resx_set_region): Likewise.
22125 (gimple_eh_dispatch_region): Likewise.
22126 (gimple_eh_dispatch_set_region): Likewise.
22127 (gimple_omp_critical_name): Likewise.
22128 (gimple_omp_critical_name_ptr): Likewise.
22129 (gimple_omp_critical_set_name): Likewise.
22130 (gimple_omp_for_clauses): Likewise.
22131 (gimple_omp_for_clauses_ptr): Likewise.
22132 (gimple_omp_for_set_clauses): Likewise.
22133 (gimple_omp_for_collapse): Likewise.
22134 (gimple_omp_for_index): Likewise.
22135 (gimple_omp_for_index_ptr): Likewise.
22136 (gimple_omp_for_set_index): Likewise.
22137 (gimple_omp_for_initial): Likewise.
22138 (gimple_omp_for_initial_ptr): Likewise.
22139 (gimple_omp_for_set_initial): Likewise.
22140 (gimple_omp_for_final): Likewise.
22141 (gimple_omp_for_final_ptr): Likewise.
22142 (gimple_omp_for_set_final): Likewise.
22143 (gimple_omp_for_incr): Likewise.
22144 (gimple_omp_for_incr_ptr): Likewise.
22145 (gimple_omp_for_set_incr): Likewise.
22146 (gimple_omp_for_pre_body_ptr): Likewise.
22147 (gimple_omp_for_set_pre_body): Likewise.
22148 (gimple_omp_parallel_clauses): Likewise.
22149 (gimple_omp_parallel_clauses_ptr): Likewise.
22150 (gimple_omp_parallel_set_clauses): Likewise.
22151 (gimple_omp_parallel_child_fn): Likewise.
22152 (gimple_omp_parallel_child_fn_ptr): Likewise.
22153 (gimple_omp_parallel_set_child_fn): Likewise.
22154 (gimple_omp_parallel_data_arg): Likewise.
22155 (gimple_omp_parallel_data_arg_ptr): Likewise.
22156 (gimple_omp_parallel_set_data_arg): Likewise.
22157 (gimple_omp_task_clauses): Likewise.
22158 (gimple_omp_task_clauses_ptr): Likewise.
22159 (gimple_omp_task_set_clauses): Likewise.
22160 (gimple_omp_task_child_fn): Likewise.
22161 (gimple_omp_task_child_fn_ptr): Likewise.
22162 (gimple_omp_task_set_child_fn): Likewise.
22163 (gimple_omp_task_data_arg): Likewise.
22164 (gimple_omp_task_data_arg_ptr): Likewise.
22165 (gimple_omp_task_set_data_arg): Likewise.
22166 (gimple_omp_taskreg_clauses): Likewise.
22167 (gimple_omp_taskreg_clauses_ptr): Likewise.
22168 (gimple_omp_taskreg_set_clauses): Likewise.
22169 (gimple_omp_taskreg_child_fn): Likewise.
22170 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22171 (gimple_omp_taskreg_set_child_fn): Likewise.
22172 (gimple_omp_taskreg_data_arg): Likewise.
22173 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22174 (gimple_omp_taskreg_set_data_arg): Likewise.
22175 (gimple_omp_task_copy_fn): Likewise.
22176 (gimple_omp_task_copy_fn_ptr): Likewise.
22177 (gimple_omp_task_set_copy_fn): Likewise.
22178 (gimple_omp_task_arg_size): Likewise.
22179 (gimple_omp_task_arg_size_ptr): Likewise.
22180 (gimple_omp_task_set_arg_size): Likewise.
22181 (gimple_omp_task_arg_align): Likewise.
22182 (gimple_omp_task_arg_align_ptr): Likewise.
22183 (gimple_omp_task_set_arg_align): Likewise.
22184 (gimple_omp_single_clauses): Likewise.
22185 (gimple_omp_single_clauses_ptr): Likewise.
22186 (gimple_omp_single_set_clauses): Likewise.
22187 (gimple_omp_target_clauses): Likewise.
22188 (gimple_omp_target_clauses_ptr): Likewise.
22189 (gimple_omp_target_set_clauses): Likewise.
22190 (gimple_omp_target_child_fn): Likewise.
22191 (gimple_omp_target_child_fn_ptr): Likewise.
22192 (gimple_omp_target_set_child_fn): Likewise.
22193 (gimple_omp_target_data_arg): Likewise.
22194 (gimple_omp_target_data_arg_ptr): Likewise.
22195 (gimple_omp_target_set_data_arg): Likewise.
22196 (gimple_omp_teams_clauses): Likewise.
22197 (gimple_omp_teams_clauses_ptr): Likewise.
22198 (gimple_omp_teams_set_clauses): Likewise.
22199 (gimple_omp_sections_clauses): Likewise.
22200 (gimple_omp_sections_clauses_ptr): Likewise.
22201 (gimple_omp_sections_set_clauses): Likewise.
22202 (gimple_omp_sections_control): Likewise.
22203 (gimple_omp_sections_control_ptr): Likewise.
22204 (gimple_omp_sections_set_control): Likewise.
22205 (gimple_omp_for_set_cond): Likewise.
22206 (gimple_omp_for_cond): Likewise.
22207 (gimple_omp_atomic_store_set_val): Likewise.
22208 (gimple_omp_atomic_store_val): Likewise.
22209 (gimple_omp_atomic_store_val_ptr): Likewise.
22210 (gimple_omp_atomic_load_set_lhs): Likewise.
22211 (gimple_omp_atomic_load_lhs): Likewise.
22212 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22213 (gimple_omp_atomic_load_set_rhs): Likewise.
22214 (gimple_omp_atomic_load_rhs): Likewise.
22215 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22216 (gimple_omp_continue_control_def): Likewise.
22217 (gimple_omp_continue_control_def_ptr): Likewise.
22218 (gimple_omp_continue_set_control_def): Likewise.
22219 (gimple_omp_continue_control_use): Likewise.
22220 (gimple_omp_continue_control_use_ptr): Likewise.
22221 (gimple_omp_continue_set_control_use): Likewise.
22222 (gimple_transaction_body_ptr): Likewise.
22223 (gimple_transaction_label): Likewise.
22224 (gimple_transaction_label_ptr): Likewise.
22225 (gimple_transaction_set_body): Likewise.
22226 (gimple_transaction_set_label): Likewise.
22228 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22229 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22230 * ipa-ref.c (ipa_record_reference): Likewise.
22231 * ipa-reference.c (analyze_function): Likewise.
22232 (ipa_reference_write_optimization_summary): Likewise.
22233 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22234 (address_taken_from_non_vtable_p): Likewise.
22235 (comdat_can_be_unshared_p_1): Likewise.
22236 * lto-cgraph.c (lto_output_ref): Likewise.
22237 (add_references): Likewise.
22238 (compute_ltrans_boundary): Likewise.
22239 (output_symtab): Likewise.
22240 (input_ref): Likewise.
22241 (input_cgraph_1): Likewise.
22242 (output_cgraph_opt_summary): Likewise.
22243 * lto-streamer-out.c (lto_output): Likewise.
22244 (output_symbol_p): Likewise.
22245 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22246 (lsei_start_function_in_partition): Likewise.
22247 (lsei_next_variable_in_partition): Likewise.
22248 (lsei_start_variable_in_partition): Likewise.
22249 * symtab.c (insert_to_assembler_name_hash): Likewise.
22250 (unlink_from_assembler_name_hash): Likewise.
22251 (symtab_unregister_node): Likewise.
22252 (symtab_remove_node): Likewise.
22253 (dump_symtab_node): Likewise.
22254 (verify_symtab_base): Likewise.
22255 (verify_symtab_node): Likewise.
22256 (symtab_make_decl_local): Likewise.
22257 (symtab_alias_ultimate_target): Likewise.
22258 (symtab_resolve_alias): Likewise.
22259 (symtab_get_symbol_partitioning_class): Likewise.
22260 * tree-phinodes.c (allocate_phi_node): Likewise.
22261 (reserve_phi_args_for_new_edge): Likewise.
22262 (remove_phi_args): Likewise.
22263 * varpool.c (varpool_node_for_asm): Likewise.
22264 (varpool_remove_unreferenced_decls): Likewise.
22266 2014-04-23 Jeff Law <law@redhat.com>
22268 PR tree-optimization/60902
22269 * tree-ssa-threadedge.c
22270 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22271 invalidate outputs from statements that do not produce useful
22272 outputs for threading.
22274 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22276 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22277 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22278 machine descriptions for Stack Smashing Protector.
22280 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22282 * aarch64.md (<optab>_rol<mode>3): New pattern.
22283 (<optab>_rolsi3_uxtw): Likewise.
22284 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22286 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22288 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22289 (arm_cortex_a12_tune): Likewise.
22291 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22293 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22295 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22297 * config/arm/arm.md (arm_rev16si2): New pattern.
22298 (arm_rev16si2_alt): Likewise.
22299 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22301 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22303 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22304 (rev16<mode>2_alt): Likewise.
22305 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22306 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22307 (aarch_rev16_shleft_mask_imm_p): Likewise.
22308 (aarch_rev16_p_1): Likewise.
22309 (aarch_rev16_p): Likewise.
22310 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22311 (aarch_rev16_shright_mask_imm_p): Likewise.
22312 (aarch_rev16_shleft_mask_imm_p): Likewise.
22314 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22316 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22317 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22319 (cortex_a53_extra_costs): Likewise.
22320 (cortex_a57_extra_costs): Likewise.
22321 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22322 (cortexa7_extra_costs): Likewise.
22323 (cortexa8_extra_costs): Likewise.
22324 (cortexa12_extra_costs): Likewise.
22325 (cortexa15_extra_costs): Likewise.
22326 (v7m_extra_costs): Likewise.
22327 (arm_new_rtx_costs): Handle BSWAP.
22329 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22331 * config/arm/arm.c (cortexa8_extra_costs): New table.
22332 (arm_cortex_a8_tune): New tuning struct.
22333 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22335 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22337 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22339 2014-04-23 Richard Biener <rguenther@suse.de>
22341 * Makefile.in (OBJS): Remove loop-unswitch.o.
22342 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22343 * passes.def (pass_rtl_unswitch): Likewise.
22344 * loop-init.c (gate_rtl_unswitch): Likewise.
22345 (rtl_unswitch): Likewise.
22346 (pass_data_rtl_unswitch): Likewise.
22347 (pass_rtl_unswitch): Likewise.
22348 (make_pass_rtl_unswitch): Likewise.
22349 * rtl.h (reversed_condition): Likewise.
22350 (compare_and_jump_seq): Likewise.
22351 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22353 * loop-unroll.c (compare_and_jump_seq): Likewise.
22355 2014-04-23 Richard Biener <rguenther@suse.de>
22357 PR tree-optimization/60903
22358 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22359 commented code block.
22360 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22361 loop flags to newly created BBs and edges.
22363 2014-04-23 Nick Clifton <nickc@redhat.com>
22365 * config/msp430/msp430.c (msp430_handle_option): Move function
22367 (msp430_option_override): Simplify mcu and mcpu option handling.
22368 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22369 support for -mhwmult command line option.
22370 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22371 -mhwmult command line option.
22372 (msp430_hwmult_enabled): Delete.
22373 (msp43o_output_labelref): Add support for -mhwmult command line option.
22374 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22375 (umulsidi3): Likewise.
22376 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22377 (mcpu, mlarge, msmall): Likewise.
22378 (mhwmult): New option.
22379 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22381 (msp430_is_f5_mcu): Remove prototype.
22382 (msp430_use_f5_series_hwmult): Add prototype.
22383 * config/msp430/msp430-opts.h: New file.
22384 * common/config/msp430: New directory.
22385 * common/config/msp430/msp430-common.c: New file.
22386 * config.gcc (msp430): Remove target_has_targetm_common.
22387 * doc/invoke.texi: Document -mhwmult command line option.
22389 2014-04-23 Nick Clifton <nickc@redhat.com>
22391 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22392 default-manifest.o if it can be found in the search path.
22393 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22395 2014-04-23 Terry Guo <terry.guo@arm.com>
22397 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22399 2014-04-23 Richard Biener <rguenther@suse.de>
22401 PR middle-end/60895
22402 * tree-inline.c (declare_return_variable): Use mark_addressable.
22404 2014-04-23 Richard Biener <rguenther@suse.de>
22406 PR middle-end/60891
22407 * loop-init.c (loop_optimizer_init): Make sure to apply
22408 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22410 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22413 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22415 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22416 if flag_sanitize_undefined_trap_on_error.
22417 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22418 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22419 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22420 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22421 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22422 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22423 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22424 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22425 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22426 * ubsan.c (ubsan_instrument_unreachable): Return
22427 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22428 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22429 if flag_sanitize_undefined_trap_on_error and
22430 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22431 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22432 instrument_bool_enum_load): Emit __builtin_trap () if
22433 flag_sanitize_undefined_trap_on_error and
22434 __builtin_handle_*_abort () if !flag_sanitize_recover.
22435 * doc/invoke.texi (-fsanitize-recover,
22436 -fsanitize-undefined-trap-on-error): Document.
22438 2014-04-22 Christian Bruel <christian.bruel@st.com>
22440 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22441 Force immediates to SImode.
22443 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22445 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22446 (lroundsfsi2): New.
22447 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22448 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22449 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22450 (nios2_fpu_insn): Add entry for round.
22451 (N2FPU_NO_ERRNO_P): Define.
22452 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22454 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22456 2014-04-22 Richard Henderson <rth@redhat.com>
22458 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22459 (add<GPI>3_compare0): Remove leading * from name.
22460 (add<GPI>3_carryin): Likewise.
22461 (sub<GPI>3_compare0): Likewise.
22462 (sub<GPI>3_carryin): Likewise.
22463 (<su_optab>mulditi3): New expander.
22464 (multi3): New expander.
22465 (madd<GPI>): Remove leading * from name.
22467 2014-04-22 Martin Jambor <mjambor@suse.cz>
22469 * cgraphclones.c (cgraph_function_versioning): Copy
22470 ipa_transforms_to_apply instead of asserting it is empty.
22472 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22475 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22476 on count_exp to get mode.
22478 2014-04-22 Andrew Pinski <apinski@cavium.com>
22480 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22481 Handle TLS for ILP32.
22482 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22483 (tlsie_small_<mode>): this and handle PTR.
22484 (tlsie_small_sidi): New pattern.
22485 (tlsle_small): Change to an expand to handle ILP32.
22486 (tlsle_small_<mode>): New pattern.
22487 (tlsdesc_small): Rename to ...
22488 (tlsdesc_small_<mode>): this and handle PTR.
22490 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22492 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22494 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22496 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22497 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22498 (aarch64_types_signed_poly_qualifiers): Likewise.
22499 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22500 (aarch64_types_poly_signed_qualifiers): Likewise.
22501 (TYPES_REINTERP_SS): Type macro added.
22502 (TYPES_REINTERP_SU): Likewise.
22503 (TYPES_REINTERP_SP): Likewise.
22504 (TYPES_REINTERP_US): Likewise.
22505 (TYPES_REINTERP_PS): Likewise.
22506 (aarch64_fold_builtin): New expression folding added.
22507 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22508 Declarations removed.
22509 (REINTERP_SS): Declarations added.
22510 (REINTERP_US): Likewise.
22511 (REINTERP_PS): Likewise.
22512 (REINTERP_SU): Likewise.
22513 (REINTERP_SP): Likewise.
22514 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
22515 (vreinterpretq_p8_f64): Likewise.
22516 (vreinterpret_p16_f64): Likewise.
22517 (vreinterpretq_p16_f64): Likewise.
22518 (vreinterpret_f32_f64): Likewise.
22519 (vreinterpretq_f32_f64): Likewise.
22520 (vreinterpret_f64_f32): Likewise.
22521 (vreinterpret_f64_p8): Likewise.
22522 (vreinterpret_f64_p16): Likewise.
22523 (vreinterpret_f64_s8): Likewise.
22524 (vreinterpret_f64_s16): Likewise.
22525 (vreinterpret_f64_s32): Likewise.
22526 (vreinterpret_f64_s64): Likewise.
22527 (vreinterpret_f64_u8): Likewise.
22528 (vreinterpret_f64_u16): Likewise.
22529 (vreinterpret_f64_u32): Likewise.
22530 (vreinterpret_f64_u64): Likewise.
22531 (vreinterpretq_f64_f32): Likewise.
22532 (vreinterpretq_f64_p8): Likewise.
22533 (vreinterpretq_f64_p16): Likewise.
22534 (vreinterpretq_f64_s8): Likewise.
22535 (vreinterpretq_f64_s16): Likewise.
22536 (vreinterpretq_f64_s32): Likewise.
22537 (vreinterpretq_f64_s64): Likewise.
22538 (vreinterpretq_f64_u8): Likewise.
22539 (vreinterpretq_f64_u16): Likewise.
22540 (vreinterpretq_f64_u32): Likewise.
22541 (vreinterpretq_f64_u64): Likewise.
22542 (vreinterpret_s64_f64): Likewise.
22543 (vreinterpretq_s64_f64): Likewise.
22544 (vreinterpret_u64_f64): Likewise.
22545 (vreinterpretq_u64_f64): Likewise.
22546 (vreinterpret_s8_f64): Likewise.
22547 (vreinterpretq_s8_f64): Likewise.
22548 (vreinterpret_s16_f64): Likewise.
22549 (vreinterpretq_s16_f64): Likewise.
22550 (vreinterpret_s32_f64): Likewise.
22551 (vreinterpretq_s32_f64): Likewise.
22552 (vreinterpret_u8_f64): Likewise.
22553 (vreinterpretq_u8_f64): Likewise.
22554 (vreinterpret_u16_f64): Likewise.
22555 (vreinterpretq_u16_f64): Likewise.
22556 (vreinterpret_u32_f64): Likewise.
22557 (vreinterpretq_u32_f64): Likewise.
22559 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22561 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22562 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
22563 (vreinterpret_p8_s8): Likewise.
22564 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
22565 (vreinterpret_p8_s16): Likewise.
22566 (vreinterpret_p8_s32): Likewise.
22567 (vreinterpret_p8_s64): Likewise.
22568 (vreinterpret_p8_f32): Likewise.
22569 (vreinterpret_p8_u8): Likewise.
22570 (vreinterpret_p8_u16): Likewise.
22571 (vreinterpret_p8_u32): Likewise.
22572 (vreinterpret_p8_u64): Likewise.
22573 (vreinterpret_p8_p16): Likewise.
22574 (vreinterpretq_p8_s8): Likewise.
22575 (vreinterpretq_p8_s16): Likewise.
22576 (vreinterpretq_p8_s32): Likewise.
22577 (vreinterpretq_p8_s64): Likewise.
22578 (vreinterpretq_p8_f32): Likewise.
22579 (vreinterpretq_p8_u8): Likewise.
22580 (vreinterpretq_p8_u16): Likewise.
22581 (vreinterpretq_p8_u32): Likewise.
22582 (vreinterpretq_p8_u64): Likewise.
22583 (vreinterpretq_p8_p16): Likewise.
22584 (vreinterpret_p16_s8): Likewise.
22585 (vreinterpret_p16_s16): Likewise.
22586 (vreinterpret_p16_s32): Likewise.
22587 (vreinterpret_p16_s64): Likewise.
22588 (vreinterpret_p16_f32): Likewise.
22589 (vreinterpret_p16_u8): Likewise.
22590 (vreinterpret_p16_u16): Likewise.
22591 (vreinterpret_p16_u32): Likewise.
22592 (vreinterpret_p16_u64): Likewise.
22593 (vreinterpret_p16_p8): Likewise.
22594 (vreinterpretq_p16_s8): Likewise.
22595 (vreinterpretq_p16_s16): Likewise.
22596 (vreinterpretq_p16_s32): Likewise.
22597 (vreinterpretq_p16_s64): Likewise.
22598 (vreinterpretq_p16_f32): Likewise.
22599 (vreinterpretq_p16_u8): Likewise.
22600 (vreinterpretq_p16_u16): Likewise.
22601 (vreinterpretq_p16_u32): Likewise.
22602 (vreinterpretq_p16_u64): Likewise.
22603 (vreinterpretq_p16_p8): Likewise.
22604 (vreinterpret_f32_s8): Likewise.
22605 (vreinterpret_f32_s16): Likewise.
22606 (vreinterpret_f32_s32): Likewise.
22607 (vreinterpret_f32_s64): Likewise.
22608 (vreinterpret_f32_u8): Likewise.
22609 (vreinterpret_f32_u16): Likewise.
22610 (vreinterpret_f32_u32): Likewise.
22611 (vreinterpret_f32_u64): Likewise.
22612 (vreinterpret_f32_p8): Likewise.
22613 (vreinterpret_f32_p16): Likewise.
22614 (vreinterpretq_f32_s8): Likewise.
22615 (vreinterpretq_f32_s16): Likewise.
22616 (vreinterpretq_f32_s32): Likewise.
22617 (vreinterpretq_f32_s64): Likewise.
22618 (vreinterpretq_f32_u8): Likewise.
22619 (vreinterpretq_f32_u16): Likewise.
22620 (vreinterpretq_f32_u32): Likewise.
22621 (vreinterpretq_f32_u64): Likewise.
22622 (vreinterpretq_f32_p8): Likewise.
22623 (vreinterpretq_f32_p16): Likewise.
22624 (vreinterpret_s64_s8): Likewise.
22625 (vreinterpret_s64_s16): Likewise.
22626 (vreinterpret_s64_s32): Likewise.
22627 (vreinterpret_s64_f32): Likewise.
22628 (vreinterpret_s64_u8): Likewise.
22629 (vreinterpret_s64_u16): Likewise.
22630 (vreinterpret_s64_u32): Likewise.
22631 (vreinterpret_s64_u64): Likewise.
22632 (vreinterpret_s64_p8): Likewise.
22633 (vreinterpret_s64_p16): Likewise.
22634 (vreinterpretq_s64_s8): Likewise.
22635 (vreinterpretq_s64_s16): Likewise.
22636 (vreinterpretq_s64_s32): Likewise.
22637 (vreinterpretq_s64_f32): Likewise.
22638 (vreinterpretq_s64_u8): Likewise.
22639 (vreinterpretq_s64_u16): Likewise.
22640 (vreinterpretq_s64_u32): Likewise.
22641 (vreinterpretq_s64_u64): Likewise.
22642 (vreinterpretq_s64_p8): Likewise.
22643 (vreinterpretq_s64_p16): Likewise.
22644 (vreinterpret_u64_s8): Likewise.
22645 (vreinterpret_u64_s16): Likewise.
22646 (vreinterpret_u64_s32): Likewise.
22647 (vreinterpret_u64_s64): Likewise.
22648 (vreinterpret_u64_f32): Likewise.
22649 (vreinterpret_u64_u8): Likewise.
22650 (vreinterpret_u64_u16): Likewise.
22651 (vreinterpret_u64_u32): Likewise.
22652 (vreinterpret_u64_p8): Likewise.
22653 (vreinterpret_u64_p16): Likewise.
22654 (vreinterpretq_u64_s8): Likewise.
22655 (vreinterpretq_u64_s16): Likewise.
22656 (vreinterpretq_u64_s32): Likewise.
22657 (vreinterpretq_u64_s64): Likewise.
22658 (vreinterpretq_u64_f32): Likewise.
22659 (vreinterpretq_u64_u8): Likewise.
22660 (vreinterpretq_u64_u16): Likewise.
22661 (vreinterpretq_u64_u32): Likewise.
22662 (vreinterpretq_u64_p8): Likewise.
22663 (vreinterpretq_u64_p16): Likewise.
22664 (vreinterpret_s8_s16): Likewise.
22665 (vreinterpret_s8_s32): Likewise.
22666 (vreinterpret_s8_s64): Likewise.
22667 (vreinterpret_s8_f32): Likewise.
22668 (vreinterpret_s8_u8): Likewise.
22669 (vreinterpret_s8_u16): Likewise.
22670 (vreinterpret_s8_u32): Likewise.
22671 (vreinterpret_s8_u64): Likewise.
22672 (vreinterpret_s8_p8): Likewise.
22673 (vreinterpret_s8_p16): Likewise.
22674 (vreinterpretq_s8_s16): Likewise.
22675 (vreinterpretq_s8_s32): Likewise.
22676 (vreinterpretq_s8_s64): Likewise.
22677 (vreinterpretq_s8_f32): Likewise.
22678 (vreinterpretq_s8_u8): Likewise.
22679 (vreinterpretq_s8_u16): Likewise.
22680 (vreinterpretq_s8_u32): Likewise.
22681 (vreinterpretq_s8_u64): Likewise.
22682 (vreinterpretq_s8_p8): Likewise.
22683 (vreinterpretq_s8_p16): Likewise.
22684 (vreinterpret_s16_s8): Likewise.
22685 (vreinterpret_s16_s32): Likewise.
22686 (vreinterpret_s16_s64): Likewise.
22687 (vreinterpret_s16_f32): Likewise.
22688 (vreinterpret_s16_u8): Likewise.
22689 (vreinterpret_s16_u16): Likewise.
22690 (vreinterpret_s16_u32): Likewise.
22691 (vreinterpret_s16_u64): Likewise.
22692 (vreinterpret_s16_p8): Likewise.
22693 (vreinterpret_s16_p16): Likewise.
22694 (vreinterpretq_s16_s8): Likewise.
22695 (vreinterpretq_s16_s32): Likewise.
22696 (vreinterpretq_s16_s64): Likewise.
22697 (vreinterpretq_s16_f32): Likewise.
22698 (vreinterpretq_s16_u8): Likewise.
22699 (vreinterpretq_s16_u16): Likewise.
22700 (vreinterpretq_s16_u32): Likewise.
22701 (vreinterpretq_s16_u64): Likewise.
22702 (vreinterpretq_s16_p8): Likewise.
22703 (vreinterpretq_s16_p16): Likewise.
22704 (vreinterpret_s32_s8): Likewise.
22705 (vreinterpret_s32_s16): Likewise.
22706 (vreinterpret_s32_s64): Likewise.
22707 (vreinterpret_s32_f32): Likewise.
22708 (vreinterpret_s32_u8): Likewise.
22709 (vreinterpret_s32_u16): Likewise.
22710 (vreinterpret_s32_u32): Likewise.
22711 (vreinterpret_s32_u64): Likewise.
22712 (vreinterpret_s32_p8): Likewise.
22713 (vreinterpret_s32_p16): Likewise.
22714 (vreinterpretq_s32_s8): Likewise.
22715 (vreinterpretq_s32_s16): Likewise.
22716 (vreinterpretq_s32_s64): Likewise.
22717 (vreinterpretq_s32_f32): Likewise.
22718 (vreinterpretq_s32_u8): Likewise.
22719 (vreinterpretq_s32_u16): Likewise.
22720 (vreinterpretq_s32_u32): Likewise.
22721 (vreinterpretq_s32_u64): Likewise.
22722 (vreinterpretq_s32_p8): Likewise.
22723 (vreinterpretq_s32_p16): Likewise.
22724 (vreinterpret_u8_s8): Likewise.
22725 (vreinterpret_u8_s16): Likewise.
22726 (vreinterpret_u8_s32): Likewise.
22727 (vreinterpret_u8_s64): Likewise.
22728 (vreinterpret_u8_f32): Likewise.
22729 (vreinterpret_u8_u16): Likewise.
22730 (vreinterpret_u8_u32): Likewise.
22731 (vreinterpret_u8_u64): Likewise.
22732 (vreinterpret_u8_p8): Likewise.
22733 (vreinterpret_u8_p16): Likewise.
22734 (vreinterpretq_u8_s8): Likewise.
22735 (vreinterpretq_u8_s16): Likewise.
22736 (vreinterpretq_u8_s32): Likewise.
22737 (vreinterpretq_u8_s64): Likewise.
22738 (vreinterpretq_u8_f32): Likewise.
22739 (vreinterpretq_u8_u16): Likewise.
22740 (vreinterpretq_u8_u32): Likewise.
22741 (vreinterpretq_u8_u64): Likewise.
22742 (vreinterpretq_u8_p8): Likewise.
22743 (vreinterpretq_u8_p16): Likewise.
22744 (vreinterpret_u16_s8): Likewise.
22745 (vreinterpret_u16_s16): Likewise.
22746 (vreinterpret_u16_s32): Likewise.
22747 (vreinterpret_u16_s64): Likewise.
22748 (vreinterpret_u16_f32): Likewise.
22749 (vreinterpret_u16_u8): Likewise.
22750 (vreinterpret_u16_u32): Likewise.
22751 (vreinterpret_u16_u64): Likewise.
22752 (vreinterpret_u16_p8): Likewise.
22753 (vreinterpret_u16_p16): Likewise.
22754 (vreinterpretq_u16_s8): Likewise.
22755 (vreinterpretq_u16_s16): Likewise.
22756 (vreinterpretq_u16_s32): Likewise.
22757 (vreinterpretq_u16_s64): Likewise.
22758 (vreinterpretq_u16_f32): Likewise.
22759 (vreinterpretq_u16_u8): Likewise.
22760 (vreinterpretq_u16_u32): Likewise.
22761 (vreinterpretq_u16_u64): Likewise.
22762 (vreinterpretq_u16_p8): Likewise.
22763 (vreinterpretq_u16_p16): Likewise.
22764 (vreinterpret_u32_s8): Likewise.
22765 (vreinterpret_u32_s16): Likewise.
22766 (vreinterpret_u32_s32): Likewise.
22767 (vreinterpret_u32_s64): Likewise.
22768 (vreinterpret_u32_f32): Likewise.
22769 (vreinterpret_u32_u8): Likewise.
22770 (vreinterpret_u32_u16): Likewise.
22771 (vreinterpret_u32_u64): Likewise.
22772 (vreinterpret_u32_p8): Likewise.
22773 (vreinterpret_u32_p16): Likewise.
22774 (vreinterpretq_u32_s8): Likewise.
22775 (vreinterpretq_u32_s16): Likewise.
22776 (vreinterpretq_u32_s32): Likewise.
22777 (vreinterpretq_u32_s64): Likewise.
22778 (vreinterpretq_u32_f32): Likewise.
22779 (vreinterpretq_u32_u8): Likewise.
22780 (vreinterpretq_u32_u16): Likewise.
22781 (vreinterpretq_u32_u64): Likewise.
22782 (vreinterpretq_u32_p8): Likewise.
22783 (vreinterpretq_u32_p16): Likewise.
22785 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22787 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
22789 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
22791 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22792 (vqnegd_s64): Likewise.
22793 (vqabs_s64): Likewise.
22794 (vqabsd_s64): Likewise.
22796 2014-04-22 Richard Henderson <rth@redhat.com>
22798 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22799 computation to the top of the loop.
22801 2014-04-22 Renlin <renlin.li@arm.com>
22802 Jiong Wang <jiong.wang@arm.com>
22804 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22805 * config/aarch64/aarch64.c (aarch64_layout_frame)
22806 (aarch64_initial_elimination_offset): Likewise.
22808 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
22810 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22813 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
22815 * machmode.h (bitwise_mode_for_mode): Declare.
22816 * stor-layout.h (bitwise_type_for_mode): Likewise.
22817 * stor-layout.c (bitwise_mode_for_mode): New function.
22818 (bitwise_type_for_mode): Likewise.
22819 * builtins.c (fold_builtin_memory_op): Use it instead of
22820 int_mode_for_mode and build_nonstandard_integer_type.
22822 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22824 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22825 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22826 (*-*-solaris2*): Simplify.
22827 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22828 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22829 *-*-solaris2.9* handling.
22831 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22833 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22834 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22835 handling, simplify.
22836 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22837 * configure: Regenerate.
22839 * config/i386/sol2-9.h: Remove.
22841 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22842 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22843 Remove Solaris 9 references.
22845 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
22847 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22848 (floatuns<GPI:mode><GPF:mode>2): Remove.
22849 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22850 and floatuns conversions.
22851 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22852 and floatuns conversions.
22853 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22854 (w1,w2): New mode attributes for inequal width conversions.
22856 2014-04-22 Renlin Li <Renlin.Li@arm.com>
22858 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22859 the output asm format.
22861 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
22863 * config/aarch64/aarch64-simd.md
22864 (aarch64_cm<optab>di): Always split.
22865 (*aarch64_cm<optab>di): New.
22866 (aarch64_cmtstdi): Always split.
22867 (*aarch64_cmtstdi): New.
22869 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22871 PR tree-optimization/60823
22872 * omp-low.c (ipa_simd_modify_function_body): Go through
22873 all SSA_NAMEs and for those refering to vector arguments
22874 which are going to be replaced adjust SSA_NAME_VAR and,
22875 if it is a default definition, change it into a non-default
22876 definition assigned at the beginning of function from new_decl.
22877 (ipa_simd_modify_stmt_ops): Rewritten.
22878 * tree-dfa.c (set_ssa_default_def): When removing default def,
22879 check for NULL loc instead of NULL *loc.
22881 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22883 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22884 restrictions on core registers for DImode values in Thumb2.
22886 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22888 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22889 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22891 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22893 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22894 (*iordi_notzesidi_di): Likewise.
22895 (*iordi_notsesidi_di): Likewise.
22897 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22899 * config/arm/arm-protos.h (tune_params): New struct members.
22900 * config/arm/arm.c: Initialise tune_params per processor.
22901 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22902 for speed, based on new tune_params.
22904 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22906 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22907 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22908 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22909 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22910 * config/aarch64/arm_neon.h (vrnd_f64): Added.
22911 (vrnda_f64): Likewise.
22912 (vrndi_f64): Likewise.
22913 (vrndm_f64): Likewise.
22914 (vrndn_f64): Likewise.
22915 (vrndp_f64): Likewise.
22916 (vrndx_f64): Likewise.
22918 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22920 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22921 GET_MODE_SIZE argument is enum machine_mode.
22923 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22926 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22927 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22929 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
22931 PR middle-end/60281
22932 * asan.c (asan_emit_stack_protection): Force the base to align to
22933 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
22934 appropriate bits if STRICT_ALIGNMENT.
22935 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22937 (expand_used_vars): Leave a space in the stack frame for alignment
22938 if STRICT_ALIGNMENT.
22940 2014-04-21 David Malcolm <dmalcolm@redhat.com>
22942 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22944 (gimple_store_p): Likewise.
22945 (gimple_assign_load_p): Likewise.
22946 (gimple_assign_cast_p): Likewise.
22947 (gimple_clobber_p): Likewise.
22949 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22950 rather than a gimple.
22951 (gimple_assign_cast_p): Likewise.
22953 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22956 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22957 If mode is DDmode and TARGET_E500_DOUBLE allow move.
22959 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22960 more debug information for E500 if -mdebug=reg.
22962 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
22965 * config/i386/i386.c (ix86_expand_builtin)
22966 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22967 register for target RTX.
22968 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22970 2014-04-18 Cong Hou <congh@google.com>
22972 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22973 the widen-mult pattern by handling two operands with different sizes,
22974 and operands whose size is smaller than half of the result type.
22976 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22978 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22979 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22980 (do_estimate_edge_time): Compute it.
22981 * ipa-inline.c (want_inline_small_function_p): Bypass
22982 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22984 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22986 * ipa-inline.c (spec_rem): New static variable.
22987 (dump_overall_stats): New function.
22988 (dump_inline_stats): New function.
22990 2014-04-18 Richard Henderson <rth@redhat.com>
22992 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22993 to GET_MODE_SIZE, not a reg_class_t.
22995 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22997 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22998 (vsx_xxmrglw_<mode>): Likewise.
23000 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
23003 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
23004 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
23005 (rs6000_init_hard_regno_mode_ok): Likewise.
23007 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
23009 * ipa-inline.c (inline_small_functions): Account only non-cold
23011 * doc/invoke.texi (inline-unit-growth): Update documentation.
23013 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
23015 * config/rs6000/rs6000.md (addti3, subti3): New.
23017 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
23020 * config/i386/i386.c (ix86_expand_clear): Remove outdated
23021 comment. Check optimize_insn_for_size_p instead of
23022 optimize_insn_for_speed_p.
23024 2014-04-17 Martin Jambor <mjambor@suse.cz>
23026 * gimple-iterator.c (gsi_start_edge): New function.
23027 * gimple-iterator.h (gsi_start_edge): Declare.
23028 * tree-sra.c (single_non_eh_succ): New function.
23029 (disqualify_ops_if_throwing_stmt): Renamed to
23030 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
23031 having one non-EH successor BB.
23032 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
23033 generate loads into replacements.
23034 (sra_modify_assign): Likewise and and also use the simple path for
23036 (sra_modify_function_body): Commit statements on edges.
23038 2014-04-17 Richard Biener <rguenther@suse.de>
23040 PR middle-end/60849
23041 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
23042 comparison results and add clarifying comment.
23044 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23046 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
23047 (blank_mode): Initialize it.
23048 (emit_mode_size_inline, emit_mode_nunits_inline,
23049 emit_mode_inner_inline): New functions.
23050 (emit_insn_modes_h): Call them and surround their output with
23051 #if GCC_VERSION >= 4001 ... #endif.
23052 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
23053 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
23054 mode_* arrays if the argument is __builtin_constant_p.
23055 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
23056 is enum machine_mode.
23058 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23060 * passes.c (opt_pass::execute): Adjust.
23061 (pass_manager::execute_pass_mode_switching): Likewise.
23062 (early_local_passes::execute): Likewise.
23063 (execute_one_pass): Pass cfun to the pass's execute method.
23064 * tree-pass.h (opt_pass::execute): Add function * argument.
23065 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23066 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23067 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23068 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23069 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23070 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
23071 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
23072 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23073 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23074 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
23075 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
23076 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
23077 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
23078 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
23079 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23080 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23081 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23082 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
23083 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
23084 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23085 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23086 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23087 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23088 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23089 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23090 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23091 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23092 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23093 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23096 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23098 * passes.c (opt_pass::gate): Take function * argument.
23099 (gate_all_early_local_passes): Merge into
23100 (early_local_passes::gate): this.
23101 (gate_all_early_optimizations): Merge into
23102 (all_early_optimizations::gate): this.
23103 (gate_all_optimizations): Mege into
23104 (all_optimizations::gate): this.
23105 (gate_all_optimizations_g): Merge into
23106 (all_optimizations_g::gate): this.
23107 (gate_rest_of_compilation): Mege into
23108 (rest_of_compilation::gate): this.
23109 (gate_postreload): Merge into
23110 (postreload::gate): this.
23111 (dump_one_pass): Pass cfun to the pass's gate method.
23112 (execute_ipa_summary_passes): Likewise.
23113 (execute_one_pass): Likewise.
23114 (ipa_write_summaries_2): Likewise.
23115 (ipa_write_optimization_summaries_1): Likewise.
23116 (ipa_read_summaries_1): Likewise.
23117 (ipa_read_optimization_summaries_1): Likewise.
23118 (execute_ipa_stmt_fixups): Likewise.
23119 * tree-pass.h (opt_pass::gate): Add function * argument.
23120 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
23121 combine-stack-adj.c, combine.c, compare-elim.c,
23122 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23123 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
23124 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
23125 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
23126 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
23127 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
23128 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23129 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
23130 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
23131 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
23132 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
23133 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
23134 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
23135 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23136 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23137 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23138 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23139 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23140 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23141 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23142 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23143 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23144 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
23145 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23146 var-tracking.c, vtable-verify.c, web.c: Adjust.
23148 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23150 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23151 * configure: Regenerate.
23153 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23155 * passes.c (dump_one_pass): don't check pass->has_gate.
23156 (execute_ipa_summary_passes): Likewise.
23157 (execute_one_pass): Likewise.
23158 (ipa_write_summaries_2): Likewise.
23159 (ipa_write_optimization_summaries_1): Likewise.
23160 (ipa_read_optimization_summaries_1): Likewise.
23161 (execute_ipa_stmt_fixups): Likewise.
23162 * tree-pass.h (pass_data::has_gate): Remove.
23163 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23164 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23165 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23166 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23167 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23168 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23169 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23170 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23171 gimple-low.c, gimple-ssa-isolate-paths.c,
23172 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23173 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23174 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23175 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23176 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23177 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23178 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23179 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23180 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23181 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23182 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23183 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23184 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23185 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23186 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23187 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23188 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23189 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23190 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23191 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23192 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23193 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23196 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23198 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23200 * passes.c (pass_manager::register_dump_files_1): Merge into
23201 (pass_manager::register_dump_files): this, and remove its handling of
23202 properties since the pass always has the properties anyway.
23203 (pass_manager::pass_manager): Adjust.
23205 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23207 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23208 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23209 dealing with properties.
23210 (pass_manager::register_dump_files): Adjust.
23212 2014-03-20 Mark Wielaard <mjw@redhat.com>
23214 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23215 then represent the bound as normal constant value.
23217 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23220 Forward port from 4.8 branch
23221 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23223 * config/i386/bmiintrin.h (_blsi_u32): New.
23224 (_blsi_u64): Ditto.
23225 (_blsr_u32): Ditto.
23226 (_blsr_u64): Ditto.
23227 (_blsmsk_u32): Ditto.
23228 (_blsmsk_u64): Ditto.
23229 (_tzcnt_u32): Ditto.
23230 (_tzcnt_u64): Ditto.
23232 2014-04-17 Kito Cheng <kito@0xlab.org>
23234 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23236 2014-04-17 Richard Biener <rguenther@suse.de>
23238 PR middle-end/60849
23239 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23240 boolean results for comparisons.
23242 2014-04-17 Richard Biener <rguenther@suse.de>
23244 PR tree-optimization/60836
23245 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23246 initial PHI args to be gimple values.
23248 2014-04-17 Richard Biener <rguenther@suse.de>
23250 PR tree-optimization/60841
23251 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23252 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23253 of stmts to SLP build.
23254 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23255 (vect_analyze_slp): Likewise.
23256 (vect_analyze_slp_instance): Likewise.
23257 (vect_build_slp_tree): Limit overall SLP tree growth.
23258 * tree-vectorizer.h (vect_analyze_data_refs,
23259 vect_analyze_slp): Adjust prototypes.
23261 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23263 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23266 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23268 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23269 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23270 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23271 for TARGET_SLOW_PSHUFB
23273 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23275 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23276 * config/i386/i386.c (intel_cost): Ditto.
23278 2014-04-17 Joey Ye <joey.ye@arm.com>
23280 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23282 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23284 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23285 with -fuse-profile.
23287 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23289 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23290 (type_all_derivations_known_p): New predicate.
23291 (type_all_ctors_visible_p): New predicate.
23292 (type_possibly_instantiated_p): New predicate.
23293 (get_odr_type): Compute all_derivations_known.
23294 (dump_odr_type): Dump the flag.
23295 (maybe_record_type): Cleanup.
23296 (record_target_from_binfo): Add bases_to_consider array;
23297 record bases for types w/o instances and skip CXX destructor.
23298 (possible_polymorphic_call_targets_1): Add bases_to_consider
23299 and consider_construction parameters; check if type may have instance.
23300 (get_polymorphic_call_info): Set maybe_in_construction to true
23301 when we know nothing.
23302 (record_targets_from_bases): Skip CXX destructors; they are
23303 never called for types in construction.
23304 (possible_polymorphic_call_targets): Do not record target when
23305 type may not have instance.
23307 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23310 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23311 external aliases alive, too.
23313 2014-04-16 Andrew Pinski <apinski@cavium.com>
23315 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23318 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23320 * final.c (compute_alignments): Do not apply loop alignment to a block
23321 falling through to the exit.
23323 2014-04-16 Catherine Moore <clm@codesourcery.com>
23325 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23326 Adjust constraints for microMIPS store patterns.
23328 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23330 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23332 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23334 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23335 (append_use): Run at -O0.
23336 (append_vdef): Likewise.
23337 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23338 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23340 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23342 PR tree-optimization/60844
23343 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23344 (propagate_op_to_single_use, remove_visited_stmt_chain,
23345 linearize_expr, repropagate_negates, reassociate_bb): Use it
23346 instead of gsi_remove.
23348 2014-04-16 Martin Jambor <mjambor@suse.cz>
23350 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23351 ipa_transforms_to_apply.
23352 (cgraph_function_versioning): Assert that old_node has empty
23353 ipa_transforms_to_apply.
23354 * trans-mem.c (ipa_tm_create_version): Likewise.
23355 * tree-inline.c (tree_function_versioning): Do not duplicate
23356 ipa_transforms_to_apply.
23358 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23361 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23363 Pass necessary as flags on 64-bit Solaris/x86.
23364 Use lowercase relocs for x86_64-*-*.
23365 * configure: Regenerate.
23367 2014-04-15 Jan Hubicka <jh@suse.cz>
23369 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23370 (maybe_record_node, likely_target_p): Use it.
23372 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23375 Revert following patch
23377 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23380 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23381 software floating point or no floating point registers, do not
23382 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23383 in GPRs that occurs after we tested for GPRs that would never be
23386 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23387 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23388 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23389 specifically allow DDmode, since that does not use the SPE SIMD
23392 2014-03-21 Mark Wielaard <mjw@redhat.com>
23394 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23395 as unsigned or int depending on type and value used.
23397 2014-04-15 Richard Biener <rguenther@suse.de>
23399 PR rtl-optimization/56965
23400 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23401 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23403 * alias.c (true_dependence_1): Do not call
23404 nonoverlapping_component_refs_p.
23405 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23406 nonoverlapping_component_refs_p.
23407 (indirect_refs_may_alias_p): Likewise.
23409 2014-04-15 Teresa Johnson <tejohnson@google.com>
23411 * cfg.c (dump_bb_info): Fix flags check.
23412 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23414 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23416 PR rtl-optimization/60663
23417 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23420 2014-04-15 Richard Biener <rguenther@suse.de>
23422 * lto-streamer.h (LTO_major_version): Bump to 4.
23424 2014-04-15 Richard Biener <rguenther@suse.de>
23426 * common.opt (lto_partition_model): New enum.
23427 (flto-partition=): Merge separate options with a single with argument,
23428 add -flto-partition=one support.
23429 * flag-types.h (enum lto_partition_model): Declare.
23430 * opts.c (finish_options): Remove duplicate -flto-partition=
23432 * lto-wrapper.c (run_gcc): Adjust.
23434 2014-04-15 Richard Biener <rguenther@suse.de>
23436 * alias.c (ncr_compar): New function.
23437 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23439 2014-04-15 Richard Biener <rguenther@suse.de>
23441 * alias.c (record_component_aliases): Do not walk BINFOs.
23443 2014-04-15 Richard Biener <rguenther@suse.de>
23445 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23446 Add struct function argument and adjust.
23447 (find_func_aliases_for_call): Likewise.
23448 (find_func_aliases): Likewise.
23449 (find_func_clobbers): Likewise.
23450 (intra_create_variable_infos): Likewise.
23451 (compute_points_to_sets): Likewise.
23452 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23454 2014-04-15 Richard Biener <rguenther@suse.de>
23456 * tree.c (iterative_hash_expr): Use enum tree_code_class
23457 to store TREE_CODE_CLASS.
23458 (tree_block): Likewise.
23459 (tree_set_block): Likewise.
23460 * tree.h (fold_build_pointer_plus_loc): Use
23461 convert_to_ptrofftype_loc.
23463 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23466 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23469 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23471 * cfgloop.h (struct loop): Move force_vectorize down.
23472 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23473 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23474 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23475 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23476 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23477 * tree-core.h (enum annot_expr_kind): Add new kind values.
23478 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23479 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23481 * tree.def (ANNOTATE_EXPR): Tweak comment.
23483 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23485 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23488 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23490 * tree.h (TYPE_IDENTIFIER): Declare.
23491 * tree.c (subrange_type_for_debug_p): Use it.
23492 * godump.c (go_format_type): Likewise.
23493 * dwarf2out.c (is_cxx_auto, modified_type_die,
23494 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23495 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23497 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23500 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23502 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23504 * config/i386/i386.c (examine_argument): Return bool. Return true if
23505 parameter should be passed in memory.
23506 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23507 (construct_container): Update calls to examine_argument.
23508 (function_arg_advance_64): Ditto.
23509 (return_in_memory_32): Merge with ix86_return_in_memory.
23510 (return_in_memory_64): Ditto.
23511 (return_in_memory_ms_64): Ditto.
23513 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23515 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
23516 * coverage.c (coverage_compute_profile_id): Handle externally visible
23519 2014-04-14 Martin Jambor <mjambor@suse.cz>
23521 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
23522 DECL_DISREGARD_INLINE_LIMITS functions.
23524 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23527 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
23529 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23532 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
23533 optimize_insn_for_speed_p instead of
23534 optimize_function_for_speed_p.
23536 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
23538 * doc/invoke.texi (free): Document AArch64.
23540 2014-04-14 Richard Biener <rguenther@suse.de>
23542 PR tree-optimization/60042
23543 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
23544 (insert_into_preds_of_block): Do not prevent PHI insertion
23545 for REFERENCE exprs here ...
23546 (eliminate_dom_walker::before_dom_children): ... but prevent
23547 their use here under similar conditions when applied to the
23548 IL after PRE optimizations.
23550 2014-04-14 Richard Biener <rguenther@suse.de>
23552 * passes.def: Move early points-to after early SRA.
23554 2014-04-14 Richard Biener <rguenther@suse.de>
23556 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
23557 check for which sign-changes we allow when forwarding
23558 a converted value into a switch.
23560 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23562 * stor-layout.c (place_field): Finalize non-constant offset for the
23565 2014-04-14 Richard Biener <rguenther@suse.de>
23567 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
23569 (expand_switch_using_bit_tests_p): Likewise.
23570 (process_switch): Compute and pass on speed_p based on the
23572 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
23573 optimize_bb_for_speed_p.
23575 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23577 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
23578 * function.h (struct function): Rename has_force_vect_loops into
23579 has_force_vectorize_loops.
23580 * lto-streamer-in.c (input_cfg): Adjust for renaming.
23581 (input_struct_function_base): Likewise.
23582 * lto-streamer-out.c (output_cfg): Likewise.
23583 (output_struct_function_base): Likewise.
23584 * omp-low.c (expand_omp_simd): Likewise.
23585 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23586 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
23587 (version_loop_for_if_conversion): Likewise.
23588 (tree_if_conversion): Likewise.
23589 (main_tree_if_conversion): Likewise.
23590 (gate_tree_if_conversion): Likewise.
23591 * tree-inline.c (copy_loops): Likewise.
23592 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
23593 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
23594 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23595 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
23596 * tree-vectorizer.c (vectorize_loops): Likewise.
23597 * tree-vectorizer.h (unlimited_cost_model): Likewise.
23599 2014-04-14 Richard Biener <rguenther@suse.de>
23602 * lto-streamer-out.c (wrap_refs): New function.
23603 (lto_output): Wrap symbol references in global initializes in
23604 type-preserving MEM_REFs.
23606 2014-04-14 Christian Bruel <christian.bruel@st.com>
23608 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
23610 2014-04-14 Christian Bruel <christian.bruel@st.com>
23612 * config/sh/sh.md (setmemqi): New expand pattern.
23613 * config/sh/sh.h (CLEAR_RATIO): Define.
23614 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
23615 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
23617 2014-04-14 Richard Biener <rguenther@suse.de>
23619 PR middle-end/55022
23620 * fold-const.c (negate_expr_p): Don't negate directional rounding
23622 (fold_negate_expr): Likewise.
23624 2014-04-14 Richard Biener <rguenther@suse.de>
23626 PR tree-optimization/59817
23627 PR tree-optimization/60453
23628 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
23629 recursion to catch all CHRECs in the scalar evolution and restrict
23630 the predicate for the remains appropriately.
23632 2014-04-12 Catherine Moore <clm@codesourcery.com>
23634 * config/mips/constraints.md: Add new register constraint "kb".
23635 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
23636 (*movhi_internal): Likewise.
23637 (*movqi_internal): Likewise.
23638 * config/mips/mips.h (M16_STORE_REGS): New register class.
23639 (REG_CLASS_NAMES): Add M16_STORE_REGS.
23640 (REG_CLASS_CONTENTS): Likewise.
23641 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
23643 2014-04-11 Tobias Burnus <burnus@net-b.de>
23646 * doc/invoke.texi (-Wformat-signedness): Document it.
23647 (Wformat=2): Mention that this enables -Wformat-signedness.
23649 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23651 * common/config/epiphany/epiphany-common.c
23652 (epiphany_option_optimization_table): Enable section anchors by
23653 default at -O1 or higher.
23654 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
23655 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
23656 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
23657 carries no extra cost.
23658 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
23659 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
23660 * config/epiphany/predicates.md (memclob_operand): New predicate.
23661 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
23662 Use memclob_operand predicate and X constraint for operand 3.
23664 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23666 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
23667 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
23670 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23672 PR rtl-optimization/60651
23673 * mode-switching.c (optimize_mode_switching): Make sure to emit
23674 sets of a lower numbered entity before sets of a higher numbered
23675 entity to a mode of the same or lower priority.
23676 When creating a seginfo for a basic block that starts with a code
23677 label, move the insertion point past the code label.
23678 (new_seginfo): Document and enforce requirement that
23679 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
23680 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
23681 * doc/tm.texi: Regenerate.
23683 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
23686 * config/arc/arc.c (arc_save_restore): Fix assert typo.
23688 2013-04-11 Jakub Jelinek <jakub@redhat.com>
23690 * BASE-VER: Set to 4.10.0.
23692 2014-04-11 Tobias Burnus <burnus@net-b.de>
23695 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
23696 * doc/gcc.texi (Service): Update description in the @menu
23697 * doc/invoke.texi (Option Summary): Remove misplaced and
23700 2014-04-11 Steve Ellcey <sellcey@mips.com>
23701 Jakub Jelinek <jakub@redhat.com>
23703 PR middle-end/60556
23704 * expr.c (convert_move): Use emit_store_flag_force instead of
23705 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
23708 2014-04-11 Richard Biener <rguenther@suse.de>
23710 PR middle-end/60797
23711 * varasm.c (assemble_alias): Avoid endless error reporting
23712 recursion by setting TREE_ASM_WRITTEN.
23714 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23716 * config/s390/s390.md: Add a splitter for NOT rtx.
23718 2014-04-11 Jakub Jelinek <jakub@redhat.com>
23720 PR rtl-optimization/60663
23721 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
23723 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
23724 Jakub Jelinek <jakub@redhat.com>
23727 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
23728 flag from decl_node to node.
23730 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23733 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
23734 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
23735 ameliorating the cases where it can be.
23737 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
23740 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23742 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23743 (loadsync_<mode>): Change mode.
23744 (load_quadpti, store_quadpti): New.
23745 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23746 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23747 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
23749 2014-04-09 Cong Hou <congh@google.com>
23752 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
23755 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23757 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
23758 instead of vnor to exploit possible fusion opportunity in the
23760 (altivec_expand_vec_perm_const_le): Likewise.
23762 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23764 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23765 (loadsync_<mode>): Change mode.
23766 (load_quadpti, store_quadpti): New.
23767 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23768 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23770 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
23773 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
23774 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
23775 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
23777 2014-04-08 Richard Biener <rguenther@suse.de>
23779 PR middle-end/60706
23780 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
23781 a 64bit widest int print double-int similar to on HWI64 hosts.
23783 2014-04-08 Richard Biener <rguenther@suse.de>
23785 PR tree-optimization/60785
23786 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
23787 default defs properly.
23789 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
23791 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23792 (Weffc++): Likewise.
23794 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
23796 * ipa-devirt.c (maybe_record_node): When node is not recorded,
23797 set completep to false rather than true.
23799 2014-04-07 Douglas B Rupp <rupp@adacore.com>
23802 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23803 ARM_TARGET2_DWARF_FORMAT.
23805 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
23808 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23809 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23812 2014-04-07 Richard Biener <rguenther@suse.de>
23814 PR tree-optimization/60766
23815 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23816 (may_eliminate_iv): Convert cand_value_at result to desired type.
23818 2014-04-07 Jason Merrill <jason@redhat.com>
23821 * common.opt (-fno-gnu-unique): Add.
23822 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23824 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23826 * haifa-sched.c: Fix outdated function reference and minor
23827 grammar errors in introductory comment.
23829 2014-04-07 Richard Biener <rguenther@suse.de>
23831 PR middle-end/60750
23832 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23833 for noreturn calls.
23834 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23836 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
23839 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23840 size accounting for thunks.
23841 (pa_asm_output_mi_thunk): Use final_start_function() and
23842 final_end_function() to output function start and end directives.
23844 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23846 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23847 device specific ISA/ feature information. Remove short_sp and
23848 errata_skip ds. Add avr_device_specific_features enum to have device
23850 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23851 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23852 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23853 updated device specific info.
23854 * config/avr/avr-mcus.def: Merge device specific details to
23855 dev_attribute field.
23856 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23858 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23859 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23860 assembler if RMW isa supported by current device.
23861 * config/avr/genmultilib.awk: Update as device info structure changed.
23862 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23864 2014-04-04 Cong Hou <congh@google.com>
23866 PR tree-optimization/60656
23867 * tree-vect-stmts.c (supportable_widening_operation):
23868 Fix a bug that elements in a vector with vect_used_by_reduction
23869 property are incorrectly reordered when the operation on it is not
23870 consistant with the one in reduction operation.
23872 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
23874 PR rtl-optimization/60155
23875 * gcse.c (record_set_data): New function.
23876 (single_set_gcse): New function.
23877 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23878 (hoist_code): Likewise.
23879 (get_pressure_class_and_nregs): Likewise.
23881 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
23883 * explow.c (probe_stack_range): Emit a final optimization blockage.
23885 2014-04-04 Anthony Green <green@moxielogic.com>
23887 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23890 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
23893 * lto-cgraph.c (input_overwrite_node): Check that partitioning
23894 flags are set only during streaming.
23895 * ipa.c (process_references, walk_polymorphic_call_targets,
23896 symtab_remove_unreachable_nodes): Drop bodies of always inline
23897 after early inlining.
23898 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23900 2014-04-04 Jakub Jelinek <jakub@redhat.com>
23901 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23904 * dwarf2out.c (const_ok_for_output_1): Reject expressions
23907 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23910 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23912 (cortex_a53_fdivd): Likewise.
23914 2014-04-04 Martin Jambor <mjambor@suse.cz>
23917 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23918 Adjust all callers.
23919 * cgraph.c (clone_of_p): Also return true if thunks match.
23920 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23921 cgraph_function_or_thunk_node and an obsolete comment.
23922 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23924 (build_function_decl_skip_args): Likewise.
23925 (set_new_clone_decl_and_node_flags): New function.
23926 (duplicate_thunk_for_node): Likewise.
23927 (redirect_edge_duplicating_thunks): Likewise.
23928 (cgraph_clone_node): New parameter args_to_skip, pass it to
23929 redirect_edge_duplicating_thunks which is called instead of
23930 cgraph_redirect_edge_callee.
23931 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23932 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23934 2014-04-04 Jeff Law <law@redhat.com>
23937 * config/arm/predicates.md (const_int_I_operand): New predicate.
23938 (const_int_M_operand): Similarly.
23939 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23941 (insv_t2, extv_reg, extzv_t2): Likewise.
23942 (load_multiple_with_writeback): Similarly for const_int_I_operand.
23943 (pop_multiple_with_writeback_and_return): Likewise.
23944 (vfp_pop_multiple_with_writeback): Likewise
23946 2014-04-04 Richard Biener <rguenther@suse.de>
23949 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23950 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23952 * gimplify.h (gimple_add_tmp_var_fn): Declare.
23953 * gimplify.c (gimple_add_tmp_var_fn): New function.
23954 * gimple-expr.h (create_tmp_reg_fn): Declare.
23955 * gimple-expr.c (create_tmp_reg_fn): New function.
23956 * gimple-low.c (record_vars_into): Don't change cfun.
23957 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23958 code generation without cfun.
23960 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
23963 * Makefile.in (install-driver): Fix shell scripting.
23965 2014-04-03 Cong Hou <congh@google.com>
23967 PR tree-optimization/60505
23968 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23969 threshold of number of iterations below which no vectorization
23971 * tree-vect-loop.c (new_loop_vec_info):
23972 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23973 * tree-vect-loop.c (vect_analyze_loop_operations):
23974 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23975 * tree-vect-loop.c (vect_transform_loop):
23976 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23977 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23978 of iterations of the loop and see if we should build the epilogue.
23980 2014-04-03 Richard Biener <rguenther@suse.de>
23982 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23983 (streamer_tree_cache_create): Adjust.
23984 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23985 to allow optional nodes array.
23986 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23987 (streamer_tree_cache_append): Likewise.
23988 (streamer_tree_cache_create): Create nodes array optionally
23989 as specified by parameter.
23990 * lto-streamer-out.c (create_output_block): Avoid maintaining
23991 the node array in the writer cache.
23992 (DFS_write_tree): Remove assertion.
23993 (produce_asm_for_decls): Free the out decl state hash table early.
23994 * lto-streamer-in.c (lto_data_in_create): Adjust for
23995 streamer_tree_cache_create prototype change.
23997 2014-04-03 Richard Biener <rguenther@suse.de>
23999 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
24000 set TREE_CHAIN to NULL_TREE.
24002 2014-04-03 Richard Biener <rguenther@suse.de>
24004 PR tree-optimization/60740
24005 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
24006 over all GIMPLE_COND operands.
24008 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
24010 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
24011 (Weffc++): Remove Scott's numbering, merge lists and reference
24014 2014-04-03 Nick Clifton <nickc@redhat.com>
24016 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
24019 2014-04-03 Martin Jambor <mjambor@suse.cz>
24021 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
24022 mention gcc_unreachable before failing.
24023 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
24026 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
24029 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
24030 inconsistent code and instead mark the context inconsistent.
24031 (possible_polymorphic_call_targets): For inconsistent contexts
24032 return empty complete list.
24034 2014-04-02 Anthony Green <green@moxielogic.com>
24036 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
24037 (extendqisi2, extendhisi2): Define.
24038 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
24039 (WCHAR_TYPE): Change to unsigned int.
24041 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24043 PR tree-optimization/60733
24044 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
24045 insertion point for PHI candidates to be the end of the feeding
24046 block for the PHI argument.
24048 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
24050 PR rtl-optimization/60650
24051 * lra-constraints.c (process_alt_operands): Decrease reject for
24052 earlyclobber matching.
24054 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24056 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
24058 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24060 * config/spu/spu.c (pad_bb): Do not crash when the last
24061 insn is CODE_FOR_blockage.
24063 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24065 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
24066 lies outside the target mode.
24068 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24071 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24072 software floating point or no floating point registers, do not
24073 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24074 in GPRs that occurs after we tested for GPRs that would never be
24077 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24078 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24079 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24080 specifically allow DDmode, since that does not use the SPE SIMD
24083 2014-04-02 Richard Biener <rguenther@suse.de>
24085 PR middle-end/60729
24086 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
24087 MODE_INTs. Properly use negv_optab.
24088 (expand_abs): Likewise.
24090 2014-04-02 Richard Biener <rguenther@suse.de>
24093 * Makefile.in (install-driver): Guard extra installs with special
24096 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
24098 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24099 Document vec_vgbbd.
24101 2014-04-01 Richard Henderson <rth@redhat.com>
24104 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
24105 alternative enabled before register allocation.
24107 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
24109 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
24110 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
24112 (nios2_large_got_address): Remove unneeded 'sym' parameter.
24113 (nios2_got_address): Update nios2_large_got_address call site.
24114 (nios2_delegitimize_address): New function.
24115 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
24116 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
24117 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
24119 2014-04-01 Martin Husemann <martin@duskware.de>
24121 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
24124 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
24126 PR rtl-optimization/60604
24127 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
24128 check from register_operand.
24129 (register_operand): Redefine in terms of general_operand.
24130 (nonmemory_operand): Use register_operand for the non-constant cases.
24132 2014-04-01 Richard Biener <rguenther@suse.de>
24134 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
24136 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
24138 * doc/invoke.texi (mapp-regs): Clarify.
24140 2014-03-31 Ulrich Drepper <drepper@gmail.com>
24142 * config/i386/avx512fintrin.h (__v32hi): Define type.
24143 (__v64qi): Likewise.
24144 (_mm512_set1_epi8): Define.
24145 (_mm512_set1_epi16): Define.
24146 (_mm512_set4_epi32): Define.
24147 (_mm512_set4_epi64): Define.
24148 (_mm512_set4_pd): Define.
24149 (_mm512_set4_ps): Define.
24150 (_mm512_setr4_epi64): Define.
24151 (_mm512_setr4_epi32): Define.
24152 (_mm512_setr4_pd): Define.
24153 (_mm512_setr4_ps): Define.
24154 (_mm512_setzero_epi32): Define.
24156 2014-03-31 Martin Jambor <mjambor@suse.cz>
24158 PR middle-end/60647
24159 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24160 callsite_arguments_match_p. Updated all callers. Also check types of
24161 corresponding formal parameters and actual arguments.
24162 (not_all_callers_have_enough_arguments_p) Renamed to
24163 some_callers_have_mismatched_arguments_p.
24165 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24167 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24169 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24172 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24175 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24177 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24178 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24180 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24181 Use FMAMODE_NOVF512 mode iterator.
24182 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24183 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24184 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24185 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24187 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24188 Use VF_128_256 mode iterator.
24189 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24192 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24194 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24195 static chain if needed.
24197 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24200 * lra-constraints.c (index_part_to_reg): New.
24201 (process_address): Use it.
24203 2014-03-27 Jeff Law <law@redhat.com>
24204 Jakub Jelinek <jakub@redhat.com>
24207 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24208 gen_rtx_{PLUS,MULT} to build up the address expression.
24210 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24211 creating non-canonical RTL.
24213 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24216 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24217 functions; reorganize to make cheap checks first.
24218 (inline_small_functions): Do not estimate growth when dumping;
24220 * ipa-inline.h (inline_summary): Add min_size.
24221 (growth_likely_positive): New function.
24222 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24223 (set_cond_stmt_execution_predicate): Cleanup.
24224 (estimate_edge_size_and_time): Compute min_size.
24225 (estimate_calls_size_and_time): Likewise.
24226 (estimate_node_size_and_time): Likewise.
24227 (inline_update_overall_summary): Update min_size.
24228 (do_estimate_edge_time): Likewise.
24229 (do_estimate_edge_size): Update.
24230 (do_estimate_edge_hints): Update.
24231 (growth_likely_positive): New function.
24233 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24236 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24237 also if addr has VOIDmode.
24239 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24241 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24242 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24244 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24245 instructions as well as AdvancedSIMD loads.
24247 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24249 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24250 Use crypto_aese type.
24251 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24252 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24253 crypto_aese, crypto_aesmc. Move to types.md.
24254 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24256 * config/arm/iterators.md (crypto_type): Likewise.
24258 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24260 * cgraph.c: Include expr.h and tree-dfa.h.
24261 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24264 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24267 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24268 regs from checking multi-reg pseudos.
24270 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24272 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24274 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24276 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24277 if it would clobber the stack pointer, even temporarily.
24279 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24281 * mode-switching.c: Make small adjustments to the top comment.
24283 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24285 * config/rs6000/constraints.md (wD constraint): New constraint to
24286 match the constant integer to get the top DImode/DFmode out of a
24287 vector in a VSX register.
24289 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24290 match the constant integer to get the top DImode/DFmode out of a
24291 vector in a VSX register.
24293 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24296 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24299 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24300 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24302 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24303 Optimize vec_extract of 64-bit values, where the value being
24304 extracted is in the top word, where we can use scalar
24305 instructions. Add direct move and store support. Combine the big
24306 endian/little endian vector select load support into a single insn.
24307 (vsx_extract_<mode>_internal1): Likewise.
24308 (vsx_extract_<mode>_internal2): Likewise.
24309 (vsx_extract_<mode>_load): Likewise.
24310 (vsx_extract_<mode>_store): Likewise.
24311 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24312 combined into vsx_extract_<mode>_load.
24313 (vsx_extract_<mode>_one_le): Likewise.
24315 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24316 define the top 64-bit vector element.
24318 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24321 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24322 Document vec_vbpermq builtin.
24325 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24326 enable use of xxsldwi and xxpermdi builtin functions.
24327 (vec_xxpermdi): Likewise.
24329 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24330 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24332 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24334 PR rtl-optimization/60650
24335 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24337 (find_spills_for): New.
24338 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24339 Spill all pseudos on the second iteration.
24341 2014-03-27 Marek Polacek <polacek@redhat.com>
24344 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24347 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24349 * config/s390/s390.c (s390_can_use_return_insn): Check for
24350 call-saved FPRs on 31 bit.
24352 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24354 PR middle-end/60682
24355 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24356 if they need regimplification, just drop them instead of
24357 calling gimple_regimplify_operands on them.
24359 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24362 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24363 (aarch64_frame_pointer_required): Adjust logic.
24364 (aarch64_can_eliminate): Adjust logic.
24365 (aarch64_override_options_after_change): Adjust logic.
24367 2014-03-27 Dehao Chen <dehao@google.com>
24369 * ipa-inline.c (early_inliner): Update node's inline info.
24371 2014-03-26 Dehao Chen <dehao@google.com>
24373 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24374 compiler inserted conditional jumps for NAN float check.
24376 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24378 * ubsan.h (ubsan_create_data): Change second argument's type
24379 to const location_t *.
24380 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24382 (ubsan_create_data): Change second argument to const location_t *PLOC.
24383 Create Loc field whenever PLOC is non-NULL.
24384 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24385 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24389 * real.c (real_to_integer2): Change type of low to UHWI.
24391 2014-03-26 Tobias Burnus <burnus@net-b.de>
24393 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24394 (CILK_SELF_SPECS): New define.
24395 (driver_self_specs): Use it.
24397 2014-03-26 Richard Biener <rguenther@suse.de>
24399 * tree-pretty-print.c (percent_K_format): Implement special
24400 case for LTO and its stripped down BLOCK tree.
24402 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24405 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24407 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24408 one range is range_int_cst_p, but not both, at least optimize
24409 addition/subtraction of 0 and multiplication by 0 or 1.
24410 * gimple-fold.c (gimple_fold_call): Fold
24411 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24412 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24413 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24415 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24417 PR rtl-optimization/60452
24418 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24419 <case REG>: Return 1 for invalid offsets from the frame pointer.
24421 2014-03-26 Marek Polacek <polacek@redhat.com>
24424 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24427 2014-03-26 Marek Polacek <polacek@redhat.com>
24430 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24433 2014-03-26 Marek Polacek <polacek@redhat.com>
24436 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24437 multiplication in unsigned type.
24439 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24441 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24443 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24445 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24447 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24450 * cif-code.def (UNREACHABLE) New code.
24451 * ipa-inline.c (inline_small_functions): Skip edges to
24452 __builtlin_unreachable.
24453 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24454 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24455 predicate to __bulitin_unreachable.
24456 (set_cond_stmt_execution_predicate): Fix issue when
24457 invert_tree_comparison returns ERROR_MARK.
24458 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24459 propagate to inline clones.
24460 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24462 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24463 * cgraphclones.c (cgraph_clone_node): If call destination is already
24464 ureachable, do not redirect it back.
24465 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24468 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24470 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24471 Do not modify inline clones.
24473 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24475 * config/i386/i386.md (general_sext_operand): New mode attr.
24476 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24477 don't generate (sign_extend (const_int)).
24478 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24479 operands[2]. Use We constraint instead of <i> and
24480 <general_sext_operand> predicate instead of <general_operand>.
24481 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24482 * config/i386/constraints.md (We): New constraint.
24483 * config/i386/predicates.md (x86_64_sext_operand,
24484 sext_operand): New predicates.
24486 2014-03-25 Martin Jambor <mjambor@suse.cz>
24489 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24490 inconsistent devirtualizations to __builtin_unreachable.
24492 2014-03-25 Marek Polacek <polacek@redhat.com>
24495 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24497 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24499 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24500 order of elements for big-endian.
24502 2014-03-25 Richard Biener <rguenther@suse.de>
24504 PR middle-end/60635
24505 * gimplify-me.c (gimple_regimplify_operands): Update the
24508 2014-03-25 Martin Jambor <mjambor@suse.cz>
24511 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24512 (lto_output_varpool_node): Likewise.
24513 (input_overwrite_node): Likewise.
24514 (input_varpool_node): Likewise.
24516 2014-03-25 Richard Biener <rguenther@suse.de>
24518 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
24519 (run_gcc): Likewise.
24521 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24523 * combine.c (simplify_compare_const): Add MODE argument.
24524 Handle mode_width 0 as very large mode_width.
24525 (try_combine, simplify_comparison): Adjust callers.
24527 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
24528 type to avoid signed integer overflow.
24529 * explow.c (plus_constant): Likewise.
24531 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
24533 * doc/generic.texi: Correct typos.
24535 2014-03-24 Tobias Burnus <burnus@net-b.de>
24537 * doc/invoke.texi (-flto): Expand section about
24538 using static libraries with LTO.
24540 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24542 PR rtl-optimization/60501
24543 * optabs.def (addptr3_optab): New optab.
24544 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
24545 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
24546 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
24548 * lra.c (emit_add3_insn): Use the addptr pattern if available.
24550 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
24552 2014-03-24 Ulrich Drepper <drepper@gmail.com>
24554 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
24557 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
24558 (_mm256_undefined_ps): Define.
24559 (_mm256_undefined_pd): Define.
24560 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
24561 (_mm_undefined_pd): Define.
24562 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
24563 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
24564 (_mm512_undefined_ps): Define.
24565 (_mm512_undefined_pd): Define.
24566 Use _mm*_undefined_*.
24567 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
24569 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
24571 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
24572 (lshr_simd): DI mode added.
24573 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
24574 (aarch64_ushr_simddi): Likewise.
24575 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
24576 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
24577 (vshrd_n_u64): Likewise.
24579 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24581 * Makefile.in (s-macro_list): Depend on cc1.
24583 2014-03-23 Teresa Johnson <tejohnson@google.com>
24585 * ipa-utils.c (ipa_print_order): Use specified dump file.
24587 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
24589 PR rtl-optimization/60601
24590 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
24592 * gcc.c (eval_spec_function): Initialize save_growing_value.
24594 2014-03-22 Jakub Jelinek <jakub@redhat.com>
24597 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
24598 code == MINUS_EXPR, never swap op0 with op1.
24600 * toplev.c (init_local_tick): Avoid signed integer multiplication
24602 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
24603 shift by first operand's bitsize.
24605 2014-03-21 Jakub Jelinek <jakub@redhat.com>
24608 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
24609 redefine to 1 or 0.
24610 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
24611 TARGET_ISA_64BIT_P(x).
24613 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24615 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
24616 pattern for vector nor instead of subtract from splat(-1).
24617 (altivec_expand_vec_perm_const_le): Likewise.
24619 2014-03-21 Richard Henderson <rth@twiddle.net>
24622 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
24623 related insns after epilogue_completed.
24625 2014-03-21 Martin Jambor <mjambor@suse.cz>
24628 * cgraph.h (symtab_node): New flag body_removed.
24629 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
24630 when removing bodies.
24631 * symtab.c (dump_symtab_base): Dump body_removed flag.
24632 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
24633 had their bodies removed.
24635 2014-03-21 Martin Jambor <mjambor@suse.cz>
24638 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
24641 2014-03-21 Richard Biener <rguenther@suse.de>
24643 PR tree-optimization/60577
24644 * tree-core.h (struct tree_base): Document nothrow_flag use
24645 in DECL_NONALIASED.
24646 * tree.h (DECL_NONALIASED): New.
24647 (may_be_aliased): Adjust.
24648 * coverage.c (build_var): Set DECL_NONALIASED.
24650 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24652 * expr.c (expand_expr_real_1): Remove outdated comment.
24654 2014-03-20 Jakub Jelinek <jakub@redhat.com>
24656 PR middle-end/60597
24657 * ira.c (adjust_cleared_regs): Call copy_rtx on
24658 *reg_equiv[REGNO (loc)].src_p before passing it to
24659 simplify_replace_fn_rtx.
24662 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
24663 into CONST, put pic register as first operand of PLUS. Use
24664 gen_const_mem for both 32-bit and 64-bit PIC got loads.
24666 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24668 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
24670 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24672 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
24673 around for store forwarding issue in the FPU on the UT699.
24674 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
24675 loads and operations if -mfix-ut699 is specified.
24676 (divtf3_hq): Tweak attribute.
24677 (sqrttf2_hq): Likewise.
24679 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24681 * calls.c (store_one_arg): Remove incorrect const qualification on the
24682 type of the temporary.
24683 * cfgexpand.c (expand_return): Likewise.
24684 * expr.c (expand_constructor): Likewise.
24685 (expand_expr_real_1): Likewise.
24687 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24689 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
24692 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24695 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
24697 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
24699 * config/arm/aarch-common-protos.h
24700 (alu_cost_table): Fix spelling of "extend".
24701 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
24703 2014-03-19 Richard Biener <rguenther@suse.de>
24705 PR middle-end/60553
24706 * tree-core.h (tree_type_common): Re-order pointer members
24707 to reduce recursion depth during GC walks.
24709 2014-03-19 Marek Polacek <polacek@redhat.com>
24712 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
24713 before accessing it.
24715 2014-03-19 Richard Biener <rguenther@suse.de>
24718 * lto-streamer-in.c (input_function): In WPA stage do not drop
24721 2014-03-19 Jakub Jelinek <jakub@redhat.com>
24723 PR tree-optimization/60559
24724 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
24725 with build_zero_cst assignment.
24727 2014-03-18 Kai Tietz <ktietz@redhat.com>
24729 PR rtl-optimization/56356
24730 * sdbout.c (sdbout_parms): Verify that parms'
24731 incoming argument is valid.
24732 (sdbout_reg_parms): Likewise.
24734 2014-03-18 Richard Henderson <rth@redhat.com>
24737 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
24738 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
24739 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
24741 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
24743 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
24744 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
24745 Italicize plugin event names in description. Explain that
24746 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
24747 Remind that no GCC functions should be called after PLUGIN_FINISH.
24748 Explain what pragmas with expansion are.
24750 2014-03-18 Martin Liska <mliska@suse.cz>
24752 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
24753 gimple call statement is update.
24754 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
24755 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
24757 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24760 * ubsan.c (ubsan_instrument_unreachable): Call
24761 initialize_sanitizer_builtins.
24762 (ubsan_pass): Likewise.
24765 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
24766 varpool_finalize_decl instead of rest_of_decl_compilation.
24768 2014-03-18 Richard Biener <rguenther@suse.de>
24770 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
24771 by using bitmap_and_compl instead of bitmap_and_compl_into.
24772 (df_rd_transfer_function): Likewise.
24774 2014-03-18 Richard Biener <rguenther@suse.de>
24776 * doc/lto.texi (fresolution): Fix typo.
24778 2014-03-18 Richard Biener <rguenther@suse.de>
24780 * doc/invoke.texi (flto): Update for changes in 4.9.
24782 2014-03-18 Richard Biener <rguenther@suse.de>
24784 * doc/loop.texi: Remove section on the removed lambda framework.
24785 Update loop docs with recent changes in preserving loop structure.
24787 2014-03-18 Richard Biener <rguenther@suse.de>
24789 * doc/lto.texi (-fresolution): Document.
24791 2014-03-18 Richard Biener <rguenther@suse.de>
24793 * doc/contrib.texi: Adjust my name.
24795 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24798 * internal-fn.c: Include diagnostic-core.h.
24799 (expand_BUILTIN_EXPECT): New function.
24800 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24801 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24802 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24803 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24804 IFN_BUILTIN_EXPECT.
24805 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24806 Revert 3 argument __builtin_expect code.
24807 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24808 * gimple-fold.c (gimple_fold_call): Likewise.
24809 * tree.h (fold_builtin_expect): New prototype.
24810 * builtins.c (build_builtin_expect_predicate): Add predictor
24811 argument, if non-NULL, create 3 argument __builtin_expect.
24812 (fold_builtin_expect): No longer static. Add ARG2 argument,
24813 pass it through to build_builtin_expect_predicate.
24814 (fold_builtin_2): Adjust caller.
24815 (fold_builtin_3): Handle BUILT_IN_EXPECT.
24816 * internal-fn.def (BUILTIN_EXPECT): New.
24818 2014-03-18 Tobias Burnus <burnus@net-b.de>
24821 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24822 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24823 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24825 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
24828 * predict.c (combine_predictions_for_bb): Fix up formatting.
24829 (expr_expected_value_1, expr_expected_value): Add predictor argument,
24830 fill what it points to if non-NULL.
24831 (tree_predict_by_opcode): Adjust caller, use the predictor.
24832 * predict.def (PRED_COMPARE_AND_SWAP): Add.
24834 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
24836 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24837 proper constant for the store mode.
24839 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
24841 * symtab.c (change_decl_assembler_name): Fix transparent alias
24842 chain construction.
24844 2014-03-16 Renlin Li <Renlin.Li@arm.com>
24846 * config/aarch64/aarch64.c: Correct the comments about the
24847 aarch64 stack layout.
24849 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
24851 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24852 check for GF_OMP_FOR_KIND_FOR.
24854 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
24856 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24857 ymm and zmm register names.
24859 2014-03-17 Jakub Jelinek <jakub@redhat.com>
24862 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24863 note creation for the 2010-08-31 changes.
24865 2014-03-17 Marek Polacek <polacek@redhat.com>
24867 PR middle-end/60534
24868 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24869 as -fno-tree-loop-vectorize.
24870 (expand_omp_simd): Likewise.
24872 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
24874 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24875 (eligible_for_call_delay): New prototype.
24876 * config/sparc/sparc.c (tls_call_delay): Rename into...
24877 (eligible_for_call_delay): ...this. Return false if the instruction
24878 cannot be put in the delay slot of a branch.
24879 (eligible_for_restore_insn): Simplify.
24880 (eligible_for_return_delay): Return false if the instruction cannot be
24881 put in the delay slot of a branch and simplify.
24882 (eligible_for_sibcall_delay): Return false if the instruction cannot be
24883 put in the delay slot of a branch.
24884 * config/sparc/sparc.md (fix_ut699): New attribute.
24885 (tls_call_delay): Delete.
24886 (in_call_delay): Reimplement.
24887 (eligible_for_sibcall_delay): Rename into...
24888 (in_sibcall_delay): ...this.
24889 (eligible_for_return_delay): Rename into...
24890 (in_return_delay): ...this.
24891 (in_branch_delay): Reimplement.
24892 (in_uncond_branch_delay): Delete.
24893 (in_annul_branch_delay): Delete.
24895 2014-03-14 Richard Henderson <rth@redhat.com>
24898 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24899 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24900 (*floathi<X87MODEF>2_i387_with_temp): Remove.
24901 (floathi splitters): Remove.
24902 (float<SWI48x>xf2): New pattern.
24903 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
24904 code that tried to handle DImode for 32-bit, but which was excluded
24905 by the pattern's condition. Drop allocation of stack temporary.
24906 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24907 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24908 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24909 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24910 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24911 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24912 (*float<SWI48><MODEF>2_sse_interunit): Remove.
24913 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24914 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24915 (*float<SWI48x><X87MODEF>2_i387): Remove.
24916 (all float _with_temp splitters): Remove.
24917 (*float<SWI48x><MODEF>2_i387): New pattern.
24918 (*float<SWI48><MODEF>2_sse): New pattern.
24919 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24920 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24922 2014-03-14 Jakub Jelinek <jakub@redhat.com>
24923 Marek Polacek <polacek@redhat.com>
24925 PR middle-end/60484
24926 * common.opt (dump_base_name_prefixed): New Variable.
24927 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24928 if x_dump_base_name_prefixed is already set, set it at the end.
24930 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
24932 PR rtl-optimization/60508
24933 * lra-constraints.c (get_reload_reg): Add new parameter
24935 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24936 Pass the new parameter values.
24938 2014-03-14 Richard Biener <rguenther@suse.de>
24940 * common.opt: Revert unintented changes from r205065.
24941 * opts.c: Likewise.
24943 2014-03-14 Richard Biener <rguenther@suse.de>
24945 PR middle-end/60518
24946 * cfghooks.c (split_block): Properly adjust all loops the
24947 block was a latch of.
24949 2014-03-14 Martin Jambor <mjambor@suse.cz>
24952 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24955 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
24958 * config/avr/avr.c (avr_set_current_function): Pass function name
24959 through default_strip_name_encoding before sanity checking instead
24960 of skipping the first char of the assembler name.
24962 2014-03-13 Richard Henderson <rth@redhat.com>
24965 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24966 (ix86_force_to_memory, ix86_free_from_memory): Remove.
24967 * config/i386/i386-protos.h: Likewise.
24968 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24969 in the expander instead of a splitter.
24970 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24971 any possibility of requiring a memory.
24972 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24973 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24974 (fp branch splitters): Update for ix86_split_fp_branch.
24975 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24976 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24977 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24978 (*fop_<MODEF>_2_i387): Remove f/r alternative.
24979 (*fop_<MODEF>_3_i387): Likewise.
24980 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24981 (splitters for the fop_* register patterns): Remove.
24982 (fscalexf4_i387): Rename from *fscalexf4_i387.
24983 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24985 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24987 PR tree-optimization/59779
24988 * tree-dfa.c (get_ref_base_and_extent): Use double_int
24989 type for bitsize and maxsize instead of HOST_WIDE_INT.
24991 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
24993 PR rtl-optimization/57320
24994 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24995 the CFG after thread_prologue_and_epilogue_insns.
24997 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
24999 PR rtl-optimization/57189
25000 * lra-constraints.c (process_alt_operands): Disfavor spilling
25003 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
25005 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
25007 2014-03-13 Jakub Jelinek <jakub@redhat.com>
25009 PR tree-optimization/59025
25010 PR middle-end/60418
25011 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
25012 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
25014 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
25017 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
25018 calls of avr_out_plus_1.
25020 2014-03-13 Bin Cheng <bin.cheng@arm.com>
25022 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
25023 BB's single pred and update the father loop's latch info later.
25025 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25027 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
25031 (VEC_base): Likewise.
25032 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
25033 registers, we need to swap double words in little endian mode.
25035 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
25036 to be a container mode for 128-bit integer operations added in ISA
25037 2.07. Unlike TImode and PTImode, the preferred register set is
25038 the Altivec/VMX registers for the 128-bit operations.
25040 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
25042 (rs6000_split_128bit_ok_p): Likewise.
25044 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
25045 macros for creating ISA 2.07 normal and overloaded builtin
25046 functions with 3 arguments.
25047 (BU_P8V_OVERLOAD_3): Likewise.
25048 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
25049 for use as overloaded functions.
25050 (VPERM_1TI_UNS): Likewise.
25051 (VSEL_1TI): Likewise.
25052 (VSEL_1TI_UNS): Likewise.
25053 (ST_INTERNAL_1ti): Likewise.
25054 (LD_INTERNAL_1ti): Likewise.
25055 (XXSEL_1TI): Likewise.
25056 (XXSEL_1TI_UNS): Likewise.
25057 (VPERM_1TI): Likewise.
25058 (VPERM_1TI_UNS): Likewise.
25059 (XXPERMDI_1TI): Likewise.
25060 (SET_1TI): Likewise.
25061 (LXVD2X_V1TI): Likewise.
25062 (STXVD2X_V1TI): Likewise.
25063 (VEC_INIT_V1TI): Likewise.
25064 (VEC_SET_V1TI): Likewise.
25065 (VEC_EXT_V1TI): Likewise.
25066 (EQV_V1TI): Likewise.
25067 (NAND_V1TI): Likewise.
25068 (ORC_V1TI): Likewise.
25069 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
25070 added in ISA 2.07. Add both normal 'altivec' builtins, and the
25071 overloaded builtin.
25072 (VADDUQM): Likewise.
25073 (VSUBCUQ): Likewise.
25074 (VADDEUQM): Likewise.
25075 (VADDECUQ): Likewise.
25076 (VSUBEUQM): Likewise.
25077 (VSUBECUQ): Likewise.
25079 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
25080 __int128_t and __uint128_t types.
25081 (__uint128_type): Likewise.
25082 (altivec_categorize_keyword): Add support for vector __int128_t,
25083 vector __uint128_t, vector __int128, and vector unsigned __int128
25084 as a container type for TImode operations that need to be done in
25085 VSX/Altivec registers.
25086 (rs6000_macro_to_expand): Likewise.
25087 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
25088 to support 128-bit integer instructions vaddcuq, vadduqm,
25089 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
25090 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
25092 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
25093 for V1TImode, and set up preferences to use VSX/Altivec registers.
25094 Setup VSX reload handlers.
25095 (rs6000_debug_reg_global): Likewise.
25096 (rs6000_init_hard_regno_mode_ok): Likewise.
25097 (rs6000_preferred_simd_mode): Likewise.
25098 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
25099 (easy_altivec_constant): Likewise.
25100 (output_vec_const_move): Likewise.
25101 (rs6000_expand_vector_set): Convert V1TImode set and extract to
25103 (rs6000_expand_vector_extract): Likewise.
25104 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
25106 (rs6000_const_vec): Add support for V1TImode.
25107 (rs6000_emit_le_vsx_load): Swap double words when loading or
25108 storing TImode/V1TImode.
25109 (rs6000_emit_le_vsx_store): Likewise.
25110 (rs6000_emit_le_vsx_move): Likewise.
25111 (rs6000_emit_move): Add support for V1TImode.
25112 (altivec_expand_ld_builtin): Likewise.
25113 (altivec_expand_st_builtin): Likewise.
25114 (altivec_expand_vec_init_builtin): Likewise.
25115 (altivec_expand_builtin): Likewise.
25116 (rs6000_init_builtins): Add support for V1TImode type. Add
25117 support for ISA 2.07 128-bit integer builtins. Define type names
25118 for the VSX/Altivec vector types.
25119 (altivec_init_builtins): Add support for overloaded vector
25120 functions with V1TImode type.
25121 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
25122 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
25124 (rs6000_split_128bit_ok_p): Likewise.
25125 (rs6000_handle_altivec_attribute): Create V1TImode from vector
25126 __int128_t and vector __uint128_t.
25128 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
25129 and mode attributes.
25131 (VSX_M2): Likewise.
25136 (VS_scalar): Likewise.
25137 (VS_double): Likewise.
25138 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
25140 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
25141 we support the ISA 2.07 128-bit integer arithmetic instructions.
25142 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
25143 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
25144 and TImode types for use with the builtin functions.
25145 (V1TI_type_node): Likewise.
25146 (unsigned_V1TI_type_node): Likewise.
25147 (intTI_type_internal_node): Likewise.
25148 (uintTI_type_internal_node): Likewise.
25150 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25151 128-bit builtin functions.
25152 (UNSPEC_VADDEUQM): Likewise.
25153 (UNSPEC_VADDECUQ): Likewise.
25154 (UNSPEC_VSUBCUQ): Likewise.
25155 (UNSPEC_VSUBEUQM): Likewise.
25156 (UNSPEC_VSUBECUQ): Likewise.
25157 (VM): Add V1TImode to vector mode iterators.
25159 (VI_unit): Likewise.
25160 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25161 (altivec_vaddcuq): Likewise.
25162 (altivec_vsubuqm): Likewise.
25163 (altivec_vsubcuq): Likewise.
25164 (altivec_vaddeuqm): Likewise.
25165 (altivec_vaddecuq): Likewise.
25166 (altivec_vsubeuqm): Likewise.
25167 (altivec_vsubecuq): Likewise.
25169 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25171 (BOOL_128): Likewise.
25172 (BOOL_REGS_OUTPUT): Likewise.
25173 (BOOL_REGS_OP1): Likewise.
25174 (BOOL_REGS_OP2): Likewise.
25175 (BOOL_REGS_UNARY): Likewise.
25176 (BOOL_REGS_AND_CR0): Likewise.
25178 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25179 128-bit integer builtin support.
25180 (vec_vadduqm): Likewise.
25181 (vec_vaddecuq): Likewise.
25182 (vec_vaddeuqm): Likewise.
25183 (vec_vsubecuq): Likewise.
25184 (vec_vsubeuqm): Likewise.
25185 (vec_vsubcuq): Likewise.
25186 (vec_vsubuqm): Likewise.
25188 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25189 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25190 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25191 128-bit integer add/subtract to ISA 2.07.
25193 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25195 * config/arc/arc.c (arc_predicate_delay_insns):
25196 Fix third argument passed to conditionalize_nonjump.
25198 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25200 * config/aarch64/aarch64-builtins.c
25201 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25202 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25203 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25204 instead of __builtin_lfloor.
25205 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25207 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25209 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25210 (tree_ssa_ifcombine_bb_1): New function.
25211 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25212 is an empty forwarder block to then_bb or vice versa and then_bb
25213 and else_bb are effectively swapped.
25215 2014-03-12 Christian Bruel <christian.bruel@st.com>
25218 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25219 REG_CFA_DEF_CFA note.
25220 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25221 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25223 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25225 PR tree-optimization/60454
25226 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25228 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25230 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25231 Do not define target_cpu_default2 to generic.
25232 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25233 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25234 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25236 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25237 Marc Glisse <marc.glisse@inria.fr>
25239 PR tree-optimization/60502
25240 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25241 instead of build_low_bits_mask.
25243 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25245 PR middle-end/60482
25246 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25247 if there are multiple uses, but op doesn't live on E edge.
25248 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25249 clobber stmts before __builtin_unreachable.
25251 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25253 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25254 hard_frame_pointer_rtx.
25255 * cse.c (cse_insn): Remove volatile check.
25256 * cselib.c (cselib_process_insn): Likewise.
25257 * dse.c (scan_insn): Likewise.
25259 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25261 * config/arc/arc.c (conditionalize_nonjump): New function,
25263 (arc_ifcvt): ... this.
25264 (arc_predicate_delay_insns): Use it.
25266 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25268 * config/arc/predicates.md (extend_operand): During/after reload,
25269 allow const_int_operand.
25270 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25271 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25272 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25274 (umulsi3_highpart_i): Likewise.
25276 2014-03-11 Richard Biener <rguenther@suse.de>
25278 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25279 Add asserts to guard possible wrong-code bugs.
25281 2014-03-11 Richard Biener <rguenther@suse.de>
25283 PR tree-optimization/60429
25284 PR tree-optimization/60485
25285 * tree-ssa-structalias.c (set_union_with_increment): Properly
25286 take into account all fields that overlap the shifted vars.
25287 (do_sd_constraint): Likewise.
25288 (do_ds_constraint): Likewise.
25289 (get_constraint_for_ptr_offset): Likewise.
25291 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25293 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25294 (nios2_compute_frame_layout):
25295 Add calculation of cfun->machine->fp_save_offset.
25296 (nios2_expand_prologue): Correct setting of frame pointer register
25298 (nios2_expand_epilogue): Update recovery of stack pointer from
25299 frame pointer accordingly.
25300 (nios2_initial_elimination_offset): Update calculation of offset
25301 for eliminating to HARD_FRAME_POINTER_REGNUM.
25303 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25306 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25307 cgraph_get_create_node on VAR_DECLs.
25309 2014-03-10 Richard Biener <rguenther@suse.de>
25311 PR middle-end/60474
25312 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25314 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25316 * config/vms/vms.opt (vms_float_format): New variable.
25318 2014-03-08 Tobias Burnus <burnus@net-b.de>
25320 * doc/invoke.texi (-fcilkplus): Update implementation status.
25322 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25323 Richard Biener <rguenther@suse.de>
25325 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25326 consistently accross all TUs.
25327 (run_gcc): Enable -fshort-double automatically at link at link-time
25328 and disallow override.
25330 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25333 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25334 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25335 if they can't be used.
25337 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25339 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25340 for Solaris 11/x86 ld.
25341 * configure: Regenerate.
25343 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25345 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25346 (LIB_TLS_SPEC): Save as ld_tls_libs.
25347 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25348 (HAVE_AS_IX86_TLSLDM): New test.
25349 * configure, config.in: Regenerate.
25350 * config/i386/i386.c (legitimize_tls_address): Fall back to
25351 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25352 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25353 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25354 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25356 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25358 * common.opt (fira-loop-pressure): Mark as optimization.
25360 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25362 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25363 an OpenMP mappable type.
25365 2014-03-06 Matthias Klose <doko@ubuntu.com>
25367 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25368 MULTILIB_OSDIRNAMES is not defined.
25370 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25371 Meador Inge <meadori@codesourcery.com>
25374 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25375 (arm_legitimize_address): Call legitimize_tls_address for any
25376 arm_tls_referenced_p expression, handle constant addend. Call it
25377 before testing for !TARGET_ARM.
25378 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25380 2014-03-06 Richard Biener <rguenther@suse.de>
25382 PR middle-end/60445
25386 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25388 * tree-streamer.c (record_common_node): Assert we don't record
25389 nodes with type double.
25390 (preload_common_node): Skip type double, complex double and double
25391 pointer since it is now frontend dependent due to fshort-double option.
25393 2014-03-06 Richard Biener <rguenther@suse.de>
25395 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25396 or -fno-lto is specified and the linker has full plugin support.
25397 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25398 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25399 * lto-wrapper.c (merge_and_complain): Merge compile-time
25400 optimization levels.
25401 (run_gcc): And pass it through to the link options.
25403 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25407 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25409 * cselib.c (remove_useless_values): Skip to avoid quadratic
25410 behavior if the condition moved from...
25411 (cselib_process_insn): ... here holds.
25413 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25416 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25417 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25420 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25421 (TM_H): Add x86-tune.def.
25423 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25425 * config/aarch64/aarch64.c (generic_tunings):
25426 Use cortexa57_extra_costs.
25428 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25431 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25432 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25433 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25436 2014-03-04 Heiher <r@hev.cc>
25438 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25439 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25441 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25443 * config/i386/predicates.md (const2356_operand): Change to ...
25444 (const2367_operand): ... this.
25445 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25447 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25448 (*avx512pf_scatterpf<mode>sf): Ditto.
25449 (avx512pf_scatterpf<mode>df): Ditto.
25450 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25451 (*avx512pf_scatterpf<mode>df): Ditto.
25452 * config/i386/i386.c (ix86_expand_builtin): Update
25453 incorrect hint operand error message.
25455 2014-03-04 Richard Biener <rguenther@suse.de>
25457 * lto-section-in.c (lto_get_section_data): Fix const cast.
25459 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25461 * tree-streamer.c (record_common_node): Assert we don't record
25462 nodes with type double.
25463 (preload_common_node): Skip type double, complex double and double
25464 pointer since it is now frontend dependent due to fshort-double option.
25466 2014-03-04 Richard Biener <rguenther@suse.de>
25469 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25470 (lto_input_toplevel_asms): Likewise.
25471 * lto-section-in.c (lto_get_section_data): Instead do it here
25474 2014-03-04 Richard Biener <rguenther@suse.de>
25476 PR tree-optimization/60382
25477 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25478 dead PHIs a reduction.
25480 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25482 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25484 (_mm_prefetch): Move out of GCC target("sse") pragma.
25485 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25486 GCC target("prfchw") pragma.
25487 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25489 * config/i386/i386.c (ix86_option_override_internal): Enable
25490 -mprfchw with -mprefetchwt1.
25492 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25494 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25497 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25499 * opts.h (CL_PCH_IGNORE): Define.
25500 * targhooks.c (option_affects_pch_p):
25501 Return false for options that have CL_PCH_IGNORE set.
25502 * opt-functions.awk: Process PchIgnore.
25503 * doc/options.texi: Document PchIgnore.
25505 * config/arc/arc.opt (misize): Add PchIgnore property.
25507 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25509 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25510 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25511 constraint on constants to permit them being loaded into
25512 GENERAL_REGS or BASE_REGS.
25514 2014-03-03 Nick Clifton <nickc@redhat.com>
25516 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
25517 anti-cacnonical alternatives.
25518 (negandhi3_real): New pattern.
25519 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
25521 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25523 * config/avr/avr-mcus.def: Remove atxmega16x1.
25524 * config/avr/avr-tables.opt: Regenerate.
25525 * config/avr/t-multilib: Regenerate.
25526 * doc/avr-mmcu.texi: Regenerate.
25528 2014-03-03 Tobias Grosser <tobias@grosser.es>
25529 Mircea Namolaru <mircea.namolaru@inria.fr>
25531 PR tree-optimization/58028
25532 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
25535 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25537 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
25538 not handled by recognizers.
25540 2014-03-03 Jakub Jelinek <jakub@redhat.com>
25542 PR middle-end/60175
25543 * function.c (expand_function_end): Don't emit
25544 clobber_return_register sequence if clobber_after is a BARRIER.
25545 * cfgexpand.c (construct_exit_block): Append instructions before
25546 return_label to prev_bb.
25548 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25550 * config/rs6000/constraints.md: Document reserved use of "wc".
25552 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25555 * ipa.c (function_and_variable_visibility): When dissolving comdat
25556 group, also set all symbols to local.
25558 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25563 2013-12-14 Jan Hubicka <jh@suse.cz>
25564 PR middle-end/58477
25565 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
25567 2014-03-02 Jon Beniston <jon@beniston.com>
25573 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
25574 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
25575 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
25576 (simple_return, *simple_return): New patterns
25577 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
25578 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
25580 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
25582 * dwarf2out.c (gen_subprogram_die): Tidy.
25584 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
25587 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
25588 (*mov_t_msb_neg_negc): ... this new insn.
25590 2014-02-28 Jason Merrill <jason@redhat.com>
25593 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
25596 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
25599 * dwarf2out.c (decltype_auto_die): New static.
25600 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
25601 (gen_type_die_with_usage): Handle 'decltype(auto)'.
25602 (is_cxx_auto): Likewise.
25604 2014-02-28 Ian Bolton <ian.bolton@arm.com>
25606 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
25607 we are not using general regs only.
25609 2014-02-28 Richard Biener <rguenther@suse.de>
25612 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
25613 previous fix and only allow to remove trivial pre-headers
25614 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
25615 (remove_forwarder_block): Properly update the latch of a loop.
25617 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25620 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
25621 (cselib_preserved_hash_table): New.
25622 (preserve_constants_and_equivs): Move preserved vals to it.
25623 (cselib_find_slot): Look it up first.
25624 (cselib_init): Initialize it.
25625 (cselib_finish): Release it.
25626 (dump_cselib_table): Dump it.
25628 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25631 * cselib.c (remove_useless_values): Skip to avoid quadratic
25632 behavior if the condition moved from...
25633 (cselib_process_insn): ... here holds.
25635 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25638 * var-tracking.c (vt_initialize): Apply the same condition to
25639 preserve the CFA base value.
25641 2014-02-28 Joey Ye <joey.ye@arm.com>
25644 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
25645 if reload in progress or completed.
25647 2014-02-28 Tobias Burnus <burnus@net-b.de>
25649 PR middle-end/60147
25650 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
25653 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
25655 * doc/tm.texi.in (Condition Code Status): Update documention for
25656 relative locations of cc0-setter and cc0-user.
25658 2014-02-27 Jeff Law <law@redhat.com>
25660 PR rtl-optimization/52714
25661 * combine.c (try_combine): When splitting an unrecognized PARALLEL
25662 into two independent simple sets, if I3 is a jump, ensure the
25663 pattern we place into I3 is a (set (pc) ...).
25665 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
25666 Jeff Law <law@redhat.com>
25668 PR rtl-optimization/49847
25669 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
25670 are in different blocks.
25671 * doc/tm.texi (Condition Code Status): Update documention for
25672 relative locations of cc0-setter and cc0-user.
25674 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
25677 * lra.c (lra_emit_add): Check SUBREG too.
25679 2014-02-27 Andreas Schwab <schwab@suse.de>
25681 * config/m68k/m68k.c (m68k_option_override): Disable
25682 -flive-range-shrinkage for classic m68k.
25683 (m68k_override_options_after_change): Likewise.
25685 2014-02-27 Marek Polacek <polacek@redhat.com>
25687 PR middle-end/59223
25688 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
25689 -Wmaybe-uninitialized.
25691 2014-02-27 Alan Modra <amodra@gmail.com>
25694 * reload1.c (emit_input_reload_insns): When reload_override_in,
25695 set old to rl->in_reg when rl->in_reg is a subreg.
25697 2014-02-26 Richard Biener <rguenther@suse.de>
25700 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
25702 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25704 * common/config/i386/predicates.md (const1256_operand): Remove.
25705 (const2356_operand): New.
25706 (const_1_to_2_operand): Remove.
25707 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25708 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25709 (*avx512pf_gatherpf<mode>sf): Ditto.
25710 (avx512pf_gatherpf<mode>df): Ditto.
25711 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25712 (*avx512pf_gatherpf<mode>df): Ditto.
25713 (avx512pf_scatterpf<mode>sf): Ditto.
25714 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25715 (*avx512pf_scatterpf<mode>sf): Ditto.
25716 (avx512pf_scatterpf<mode>df): Ditto.
25717 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25718 (*avx512pf_scatterpf<mode>df): Ditto.
25719 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
25721 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
25723 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
25724 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
25725 (_mm512_mask_testn_epi64_mask): Move to ...
25726 * config/i386/avx512cdintrin.h: Here.
25727 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
25728 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
25729 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
25730 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
25731 TARGET_AVX512F from TARGET_AVX512CD.
25733 2014-02-26 Richard Biener <rguenther@suse.de>
25736 * ipa.c (walk_polymorphic_call_targets): Properly guard
25737 call to inline_update_overall_summary.
25739 2014-02-26 Bin Cheng <bin.cheng@arm.com>
25742 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
25743 and latches only if requested. Fix latch if it is removed.
25744 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
25745 LOOPS_HAVE_PREHEADERS.
25747 2014-02-25 Andrew Pinski <apinski@cavium.com>
25749 * builtins.c (expand_builtin_thread_pointer): Create a new target
25750 when the target is NULL.
25752 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
25754 PR rtl-optimization/60317
25755 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25756 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25757 * lra-assigns.c: Include params.h.
25758 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
25759 other reload pseudos considerations.
25761 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25763 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
25764 to use canonical form for nor<mode>3.
25766 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25769 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
25772 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25774 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
25775 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
25776 (ix86_handle_option): Handle OPT_mprefetchwt1.
25777 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
25778 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25780 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25781 OPTION_MASK_ISA_PREFETCHWT1.
25782 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
25783 (PTA_PREFETCHWT1): New.
25784 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
25785 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
25786 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
25787 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
25788 (*prefetch_avx512pf_<mode>_: Change into ...
25789 (*prefetch_prefetchwt1_<mode>: This.
25790 * config/i386/i386.opt (mprefetchwt1): New.
25791 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25792 (_mm_prefetch): Handle intent to write.
25793 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25795 2014-02-25 Richard Biener <rguenther@suse.de>
25797 PR middle-end/60291
25798 * emit-rtl.c (mem_attrs_htab): Remove.
25799 (mem_attrs_htab_hash): Likewise.
25800 (mem_attrs_htab_eq): Likewise.
25801 (set_mem_attrs): Always allocate new mem-attrs when something changed.
25802 (init_emit_once): Do not allocate mem_attrs_htab.
25804 2014-02-25 Richard Biener <rguenther@suse.de>
25807 * lto-opts.c (lto_write_options): Output non-explicit conservative
25808 -fwrapv, -fno-trapv and -fno-strict-overflow.
25809 * lto-wrapper.c (merge_and_complain): Handle merging those options.
25810 (run_gcc): And pass them through.
25812 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25814 * sel-sched.c (calculate_new_fences): New parameter ptime.
25815 Calculate it as a maximum over all fence cycles.
25816 (sel_sched_region_2): Adjust the call to calculate_new_fences.
25817 Print the final schedule timing when sched_verbose.
25819 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25821 PR rtl-optimization/60292
25822 * sel-sched.c (fill_vec_av_set): Do not reset target availability
25823 bit fot the fence instruction.
25825 2014-02-24 Alangi Derick <alangiderick@gmail.com>
25827 * calls.h: Fix typo in comment.
25829 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
25831 * config/pa/pa.c (pa_output_move_double): Don't valididate when
25832 adjusting offsetable addresses.
25834 2014-02-24 Guozhi Wei <carrot@google.com>
25836 * sparseset.h (sparseset_pop): Fix the wrong index.
25838 2014-02-24 Walter Lee <walt@tilera.com>
25840 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25841 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25843 * common/config/tilegx/tilegx-common.c
25844 (TARGET_DEFAULT_TARGET_FLAGS): Define.
25845 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25846 (LINK_SPEC): Ditto.
25847 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25848 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25849 (tilegx_gimplify_va_arg_expr): Handle big endian.
25850 (tilegx_expand_unaligned_load): Ditto.
25851 (tilegx_expand_unaligned_store): Ditto.
25852 (TARGET_RETURN_IN_MSB): New.
25853 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25854 (TARGET_ENDIAN_DEFAULT): New.
25855 (TARGET_BIG_ENDIAN): Handle big endian.
25856 (BYTES_BIG_ENDIAN): Ditto.
25857 (WORDS_BIG_ENDIAN): Ditto.
25858 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25859 (ENDIAN_SPEC): New.
25860 (EXTRA_SPECS): New.
25861 * config/tilegx/tilegx.md (extv): Handle big endian.
25863 (insn_st<n>): Ditto.
25864 (insn_st<n>_add<bitsuffix>): Ditto.
25865 (insn_stnt<n>): Ditto.
25866 (insn_stnt<n>_add<bitsuffix>):Ditto.
25867 (vec_interleave_highv8qi): Handle big endian.
25868 (vec_interleave_highv8qi_be): New.
25869 (vec_interleave_highv8qi_le): New.
25870 (insn_v1int_h): Handle big endian.
25871 (vec_interleave_lowv8qi): Handle big endian.
25872 (vec_interleave_lowv8qi_be): New.
25873 (vec_interleave_lowv8qi_le): New.
25874 (insn_v1int_l): Handle big endian.
25875 (vec_interleave_highv4hi): Handle big endian.
25876 (vec_interleave_highv4hi_be): New.
25877 (vec_interleave_highv4hi_le): New.
25878 (insn_v2int_h): Handle big endian.
25879 (vec_interleave_lowv4hi): Handle big endian.
25880 (vec_interleave_lowv4hi_be): New.
25881 (vec_interleave_lowv4hi_le): New.
25882 (insn_v2int_l): Handle big endian.
25883 (vec_interleave_highv2si): Handle big endian.
25884 (vec_interleave_highv2si_be): New.
25885 (vec_interleave_highv2si_le): New.
25886 (insn_v4int_h): Handle big endian.
25887 (vec_interleave_lowv2si): Handle big endian.
25888 (vec_interleave_lowv2si_be): New.
25889 (vec_interleave_lowv2si_le): New.
25890 (insn_v4int_l): Handle big endian.
25891 * config/tilegx/tilegx.opt (mbig-endian): New option.
25892 (mlittle-endian): New option.
25893 * doc/install.texi: Document tilegxbe-linux.
25894 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25896 2014-02-24 Martin Jambor <mjambor@suse.cz>
25899 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25900 there are no parameter descriptors.
25902 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
25904 PR rtl-optimization/60268
25905 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25906 initialization to ...
25907 (sched_rgn_init): ... here.
25908 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25910 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25912 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25915 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
25917 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25920 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25922 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25923 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25925 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25927 * config/microblaze/predicates.md: Add cmp_op predicate.
25928 * config/microblaze/microblaze.md: Add branch_compare instruction
25929 which uses cmp_op predicate and emits cmp insn before branch.
25930 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25931 to microblaze_expand_conditional_branch and consolidate logic.
25932 (microblaze_expand_conditional_branch): emit branch_compare
25933 insn instead of handling cmp op separate from branch insn.
25935 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25937 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25940 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25942 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25943 define_insn with define_expand and new define_insn
25944 *altivec_lve<VI_char>x_internal.
25945 (altivec_stve<VI_char>x): Replace define_insn with define_expand
25946 and new define_insn *altivec_stve<VI_char>x_internal.
25947 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25949 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25951 (altivec_expand_stvex_be): New function.
25953 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
25955 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25956 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25957 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25958 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25960 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
25963 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25964 instead of emit_move_insn.
25966 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25968 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25969 vspltw with vsldoi.
25970 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25971 gen_altivec_vsumsws.
25973 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25975 * config/rs6000/altivec.md (altivec_lvxl): Rename as
25976 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25977 (altivec_lvxl_<mode>): New define_expand incorporating
25978 -maltivec=be semantics where needed.
25979 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25980 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25981 semantics where needed.
25982 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25983 (altivec_stvx_<mode>): New define_expand incorporating
25984 -maltivec=be semantics where needed.
25985 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25986 VM2 iterator instead of V4SI.
25987 (altivec_stvxl_<mode>): New define_expand incorporating
25988 -maltivec=be semantics where needed.
25989 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25990 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25991 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25992 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25993 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25994 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25995 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25996 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25997 ALTIVEC_BUILTIN_STVXL.
25998 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25999 (altivec_expand_stvx_be): Likewise.
26000 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
26001 (altivec_expand_lvx_be): Likewise.
26002 (altivec_expand_stvx_be): Likewise.
26003 (altivec_expand_builtin): Add cases for
26004 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
26005 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
26006 (altivec_init_builtins): Add definitions for
26007 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
26008 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
26010 2014-02-21 Catherine Moore <clm@codesourcery.com>
26012 * doc/invoke.texi (mvirt, mno-virt): Document.
26013 * config/mips/mips.opt (mvirt): New option.
26014 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
26016 2014-02-21 Richard Biener <rguenther@suse.de>
26018 PR tree-optimization/60276
26019 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
26020 (STMT_VINFO_MIN_NEG_DIST): New macro.
26021 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
26022 STMT_VINFO_MIN_NEG_DIST.
26023 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
26024 made for negative dependence distances still hold.
26026 2014-02-21 Richard Biener <rguenther@suse.de>
26028 PR middle-end/60291
26029 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
26030 DECL_INITIAL for globals not in the current function context.
26032 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26034 PR tree-optimization/56490
26035 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
26036 * tree-ssa-uninit.c: Include params.h.
26037 (compute_control_dep_chain): Add num_calls argument, return false
26038 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
26039 num_calls to recursive call.
26040 (find_predicates): Change dep_chain into normal array,
26041 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
26042 variable and adjust compute_control_dep_chain caller.
26043 (find_def_preds): Likewise.
26045 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
26047 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
26048 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
26050 2014-02-21 Nick Clifton <nickc@redhat.com>
26052 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
26053 (pushhi1): Likewise.
26054 (popqi1): Add mode to pre_dec.
26055 (pophi1): Likewise.
26057 2014-02-21 Jakub Jelinek <jakub@redhat.com>
26059 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
26060 mode for mask of V8SFmode permutation.
26062 2014-02-20 Richard Henderson <rth@redhat.com>
26065 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
26066 a new pseudo for OLDVAL.
26068 2014-02-20 Jakub Jelinek <jakub@redhat.com>
26071 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
26072 gen_reg_rtx if d->testing_p.
26073 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
26074 if d->testing_p and we will certainly return true.
26075 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
26078 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
26080 * emit-rtl.c (gen_reg_rtx): Assert that
26081 crtl->emit.regno_pointer_align_length is non-zero.
26083 2014-02-20 Richard Henderson <rth@redhat.com>
26086 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
26087 on failure the store back into EXPECT.
26089 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
26090 Sandra Loosemore <sandra@codesourcery.com>
26092 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
26093 * config/nios2/nios2.c (nios2_function_profiler): Add
26094 -fPIC (flag_pic == 2) support.
26095 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
26096 (nios2_large_offset_p): New function.
26097 (nios2_unspec_reloc_p): Move up position, update to use
26098 nios2_large_offset_p.
26099 (nios2_unspec_address): Remove function.
26100 (nios2_unspec_offset): New function.
26101 (nios2_large_got_address): New function.
26102 (nios2_got_address): Add large offset support.
26103 (nios2_legitimize_tls_address): Update usage of removed and new
26105 (nios2_symbol_binds_local_p): New function.
26106 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
26107 (nios2_legitimize_address): Update to use nios2_large_offset_p.
26108 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
26109 (nios2_print_operand): Merge H/L processing, add hiadj/lo
26110 processing for (const (unspec ...)).
26111 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
26113 2014-02-20 Richard Biener <rguenther@suse.de>
26115 * tree-cfg.c (replace_uses_by): Mark altered BBs before
26116 doing the substitution.
26117 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
26119 2014-02-20 Martin Jambor <mjambor@suse.cz>
26122 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
26123 info when checking whether lattices are bottom.
26125 2014-02-20 Richard Biener <rguenther@suse.de>
26127 PR middle-end/60221
26128 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
26131 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
26134 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
26135 parameter specifying the scaling.
26136 (inline_call): Update.
26137 (want_inline_recursively): Guard division by zero.
26138 (recursive_inlining): Update.
26139 * ipa-inline.h (clone_inlined_nodes): Update.
26141 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26144 * config/i386/i386.c (classify_argument): Pass structures of size
26145 64 bytes or less in register.
26147 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26148 Kirill Yukhin <kirill.yukhin@intel.com>
26150 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26151 (_mm_rcp28_round_ss): Ditto.
26152 (_mm_rsqrt28_round_sd): Ditto.
26153 (_mm_rsqrt28_round_ss): Ditto.
26154 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26155 (_mm_rcp14_round_ss): Ditto.
26156 (_mm_rsqrt14_round_sd): Ditto.
26157 (_mm_rsqrt14_round_ss): Ditto.
26158 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26159 the first input operand, get rid of match_dup.
26160 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26162 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26164 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26165 operand as the first input operand, set type attribute.
26166 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26167 Set type attribute.
26168 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26169 operand as the first input operand, set type attribute.
26171 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26173 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26176 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26179 * config/i386/i386.c (construct_container): Remove TFmode check
26180 for X86_64_INTEGER_CLASS.
26182 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26185 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26186 only when -Wpsabi is enabled.
26188 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26191 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26192 passing arrays in registers are the same as for structs, so remove the
26193 special case for them.
26195 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26197 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26198 destination type, extract only the valid bits if the source type is not
26199 integral and has a different mode.
26201 2014-02-19 Richard Biener <rguenther@suse.de>
26204 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26207 2014-02-19 Richard Biener <rguenther@suse.de>
26210 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26211 (ipa_modify_call_arguments): Emit an argument load explicitely and
26212 preserve virtual SSA form there and for the replacement call.
26213 Do not update SSA form nor free dominance info.
26215 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26217 * ipa.c (function_and_variable_visibility): Also clear WEAK
26218 flag when disolving COMDAT_GROUP.
26220 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26222 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26223 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26224 not devirtualizing.
26225 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26226 do more sanity checks.
26227 (detect_type_change): Return true when giving up early.
26228 (compute_complex_assign_jump_func): Fix type parameter of
26229 ipa_set_ancestor_jf.
26230 (compute_complex_ancestor_jump_func): Likewise.
26231 (update_jump_functions_after_inlining): Fix updating of
26233 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26235 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26237 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26238 inline clones when edge disappears.
26240 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26243 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26244 Split 64-bit moves into 2 patterns. Do not allow the use of
26245 direct move for TDmode in little endian, since the decimal value
26246 has little endian bytes within a word, but the 64-bit pieces are
26247 ordered in a big endian fashion, and normal subreg's of TDmode are
26249 (mov<mode>_64bit_dm): Likewise.
26250 (movtd_64bit_nodm): Likewise.
26252 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26254 PR tree-optimization/60174
26255 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26256 statement of an SSA_NAME that occurs in an abnormal PHI node.
26258 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26261 * final.c (SEEN_BB): Remove.
26262 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26263 (final_scan_insn): Don't force_source_line on second
26264 NOTE_INSN_BASIC_BLOCK.
26266 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26269 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26270 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26271 (type_natural_mode): Warn ABI change when %zmm register is not
26272 available for AVX512F vector value passing.
26274 2014-02-18 Kai Tietz <ktietz@redhat.com>
26277 * config/i386/i386.c (ix86_expand_prologue): Use value in
26278 rax register as displacement when restoring %r10 or %rax.
26279 Fix wrong offset when restoring both registers.
26281 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26283 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26284 assertion with conditional return.
26286 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26287 Uros Bizjak <ubizjak@gmail.com>
26290 * config/i386/driver-i386.c (host_detect_local_cpu): If
26291 YMM state is not saved by the OS, also clear has_f16c. Move
26292 CPUID 0x80000001 handling before YMM state saving checking.
26294 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26296 PR rtl-optimization/58960
26297 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26298 factored out from ...
26299 (sched_init): ... here.
26300 (free_global_sched_pressure_data): New, factored out from ...
26301 (sched_finish): ... here.
26302 * sched-int.h (free_global_sched_pressure_data): Declare.
26303 * sched-rgn.c (nr_regions_initial): New static global.
26304 (haifa_find_rgns): Initialize it.
26305 (schedule_region): Disable sched-pressure for the newly
26308 2014-02-17 Richard Biener <rguenther@suse.de>
26310 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26311 release SSA defs of pattern stmts.
26313 2014-02-17 Richard Biener <rguenther@suse.de>
26315 * tree-inline.c (expand_call_inline): Release the virtual
26316 operand defined by the call we are about to inline.
26318 2014-02-17 Richard Biener <rguenther@suse.de>
26320 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26322 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26323 Ilya Tocar <ilya.tocar@intel.com>
26325 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26326 arguments order in builtin.
26327 (_mm512_permutexvar_epi64): Ditto.
26328 (_mm512_mask_permutexvar_epi64): Ditto
26329 (_mm512_maskz_permutexvar_epi32): Ditto
26330 (_mm512_permutexvar_epi32): Ditto
26331 (_mm512_mask_permutexvar_epi32): Ditto
26333 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26335 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26336 (p8_vmrgow): Likewise.
26338 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26340 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26343 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26346 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26347 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26348 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26349 using direct move instructions on ISA 2.07. Also adjust
26350 instruction length for 64-bit.
26351 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26352 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26354 2014-02-15 Alan Modra <amodra@gmail.com>
26358 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26359 find_replacement on parts of insn rtl that might be reloaded.
26361 2014-02-15 Richard Biener <rguenther@suse.de>
26363 PR tree-optimization/60183
26364 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26365 (tree_ssa_phiprop): Calculate and free post-dominators.
26367 2014-02-14 Jeff Law <law@redhat.com>
26369 PR rtl-optimization/60131
26370 * ree.c (get_extended_src_reg): New function.
26371 (combine_reaching_defs): Use it rather than assuming location of REG.
26372 (find_and_remove_re): Verify first operand of extension is
26373 a REG before adding the insns to the copy list.
26375 2014-02-14 Roland McGrath <mcgrathr@google.com>
26377 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26378 * configure: Regenerated.
26379 * config.in: Regenerated.
26380 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26381 instead of ASM_SHORT.
26383 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26384 Richard Earnshaw <rearnsha@arm.com>
26386 PR rtl-optimization/59535
26387 * lra-constraints.c (process_alt_operands): Encourage alternative
26388 when unassigned pseudo class is superset of the alternative class.
26389 (inherit_reload_reg): Don't inherit when optimizing for code size.
26390 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26391 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26392 modes not less than 4 for Thumb1.
26394 2014-02-14 Kyle McMartin <kyle@redhat.com>
26397 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26399 2014-02-14 Richard Biener <rguenther@suse.de>
26401 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26402 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26403 Do not strip INDIRECT_REFs.
26405 2014-02-14 Richard Biener <rguenther@suse.de>
26408 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26409 DECL_FUNCTION_SPECIFIC_TARGET.
26410 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26411 * tree-streamer-out.c (pack_ts_target_option): Remove.
26412 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26413 (write_ts_function_decl_tree_pointers): Do not stream
26414 DECL_FUNCTION_SPECIFIC_TARGET.
26415 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26416 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26417 (lto_input_ts_function_decl_tree_pointers): Do not stream
26418 DECL_FUNCTION_SPECIFIC_TARGET.
26420 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26422 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26423 (get_initial_def_for_induction, vectorizable_induction): Ignore
26424 debug stmts when looking for exit_phi.
26425 (vectorizable_live_operation): Fix up condition.
26427 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26429 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26430 nreverse() because it changes the content of original tree list.
26432 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26434 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26435 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26437 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26439 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26440 GNU coding standards.
26442 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26445 * dwarf2out.c (gen_subprogram_die): Don't call
26446 add_calling_convention_attribute if subr_die is old_die.
26448 2014-02-13 Sharad Singhai <singhai@google.com>
26450 * doc/optinfo.texi: Fix order of nodes.
26452 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26454 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26455 operands[2], not operands[3].
26457 2014-02-13 Richard Biener <rguenther@suse.de>
26460 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26461 mention the possibility of an in-tree build.
26462 (CLooG): Update recommended version to 0.18.1, mention the
26463 possibility of an in-tree build and clarify that the ISL
26464 bundled with CLooG does not work.
26466 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26469 * expr.c (compress_float_constant): If x is a hard register,
26470 extend into a pseudo and then move to x.
26472 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26474 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26475 caused by bad second argument to warning_at() with -mhotpatch and
26476 nested functions (e.g. with gfortran).
26478 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26480 * opts.c (option_name): Remove "enabled by default" rider.
26482 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26484 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26486 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26487 Uros Bizjak <ubizjak@gmail.com>
26490 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26491 * configure: Regenerated.
26493 2014-02-12 Richard Biener <rguenther@suse.de>
26495 * vec.c (vec_prefix::calculate_allocation): Move as
26496 inline variant to vec.h.
26497 (vec_prefix::calculate_allocation_1): New out-of-line version.
26498 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26499 (vec_prefix::m_has_auto_buf): Rename to ...
26500 (vec_prefix::m_using_auto_storage): ... this.
26501 (vec_prefix::calculate_allocation): Inline the easy cases
26502 and dispatch to calculate_allocation_1 which doesn't need the
26504 (va_heap::reserve): Use gcc_checking_assert.
26505 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26506 m_using_auto_storage.
26507 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26509 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26510 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26511 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26513 2014-02-12 Richard Biener <rguenther@suse.de>
26515 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
26516 when we found a dependence.
26518 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
26520 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
26522 (maybe_fold_stmt): ... into this new function.
26523 * omp-low.c (lower_omp): Update comment.
26525 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
26528 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
26531 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
26533 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
26534 identifiers in comments.
26535 (cortexa53_extra_costs): Likewise.
26536 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
26537 (cortexa7_extra_costs): Likewise.
26538 (cortexa12_extra_costs): Likewise.
26539 (cortexa15_extra_costs): Likewise.
26540 (v7m_extra_costs): Likewise.
26542 2014-02-12 Richard Biener <rguenther@suse.de>
26544 PR middle-end/60092
26545 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
26546 of posix_memalign being successful.
26547 (lower_stmt): Restrict lowering of posix_memalign to when
26548 -ftree-bit-ccp is enabled.
26550 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26552 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
26554 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26556 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
26558 PR rtl-optimization/60116
26559 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
26560 other_insn once the combination has been validated.
26562 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
26565 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
26567 * ipa-devirt.c: Include demangle.h
26568 (odr_violation_reported): New static variable.
26569 (add_type_duplicate): Update odr_violations.
26570 (maybe_record_node): Add completep parameter; update it.
26571 (record_target_from_binfo): Add COMPLETEP parameter;
26572 update it as needed.
26573 (possible_polymorphic_call_targets_1): Likewise.
26574 (struct polymorphic_call_target_d): Add nonconstruction_targets;
26575 rename FINAL to COMPLETE.
26576 (record_targets_from_bases): Sanity check we found the binfo;
26577 fix COMPLETEP updating.
26578 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
26579 parameter, fix computing of COMPLETEP.
26580 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
26581 at LTO time do demangling.
26582 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
26583 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
26585 (gimple_get_virt_method_for_binfo): Likewise.
26586 * gimple-fold.h (gimple_get_virt_method_for_binfo,
26587 gimple_get_virt_method_for_vtable): Update prototypes.
26589 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
26592 * genautomata.c (add_presence_absence): Fix typo with
26593 {final_}presence_list.
26595 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26598 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
26599 for VSX/Altivec vectors that land in GPR registers.
26601 2014-02-11 Richard Henderson <rth@redhat.com>
26602 Jakub Jelinek <jakub@redhat.com>
26605 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
26606 around drhs if type conversion to lacc->type is not useless.
26608 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26610 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
26612 (cortex-a57.cortex-a53): Likewise.
26613 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
26615 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26617 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
26620 2014-02-11 Renlin Li <Renlin.Li@arm.com>
26622 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
26623 add_options_for_arm_vfp3.
26625 2014-02-11 Jeff Law <law@redhat.com>
26627 PR middle-end/54041
26628 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
26629 object with an undesirable mode.
26631 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26634 * config/i386/sol2-9.h: New file.
26635 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
26636 *-*-solaris2.9*): Use it.
26638 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26640 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
26641 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
26643 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26645 * config/microblaze/microblaze.c: Extend mcpu version format
26647 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
26649 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
26651 2014-02-10 Richard Henderson <rth@redhat.com>
26654 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
26655 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
26656 ms-abi vs -mno-accumulate-outgoing-args.
26657 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
26658 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
26661 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
26663 PR middle-end/60080
26664 * cfgexpand.c (expand_asm_operands): Attach source location to
26665 ASM_INPUT rtx objects.
26666 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
26668 2014-02-10 Nick Clifton <nickc@redhat.com>
26670 * config/mn10300/mn10300.c (popcount): New function.
26671 (mn10300_expand_prologue): Include saved registers in stack usage
26674 2014-02-10 Jeff Law <law@redhat.com>
26676 PR middle-end/52306
26677 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
26678 when changing the SET_DEST of a prior insn to avoid an input reload.
26680 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26682 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
26683 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
26684 -mcall-openbsd, or -mcall-linux.
26685 (CC1_ENDIAN_BIG_SPEC): Remove.
26686 (CC1_ENDIAN_LITTLE_SPEC): Remove.
26687 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26688 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
26689 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
26690 and %cc1_endian_default.
26691 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26693 2014-02-10 Richard Biener <rguenther@suse.de>
26695 PR tree-optimization/60115
26696 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
26697 MEM_REF handling. Properly verify that the accesses are not
26698 out of the objects bound.
26700 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26702 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
26705 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
26707 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
26708 proper constants and fix formatting.
26709 (possible_polymorphic_call_targets): Fix formatting.
26711 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
26712 Ilya Tocar <ilya.tocar@intel.com>
26714 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
26715 (_mm512_loadu_epi32): Renamed into...
26716 (_mm512_loadu_si512): This.
26717 (_mm512_storeu_epi32): Renamed into...
26718 (_mm512_storeu_si512): This.
26719 (_mm512_maskz_ceil_ps): Removed.
26720 (_mm512_maskz_ceil_pd): Ditto.
26721 (_mm512_maskz_floor_ps): Ditto.
26722 (_mm512_maskz_floor_pd): Ditto.
26723 (_mm512_floor_round_ps): Ditto.
26724 (_mm512_floor_round_pd): Ditto.
26725 (_mm512_ceil_round_ps): Ditto.
26726 (_mm512_ceil_round_pd): Ditto.
26727 (_mm512_mask_floor_round_ps): Ditto.
26728 (_mm512_mask_floor_round_pd): Ditto.
26729 (_mm512_mask_ceil_round_ps): Ditto.
26730 (_mm512_mask_ceil_round_pd): Ditto.
26731 (_mm512_maskz_floor_round_ps): Ditto.
26732 (_mm512_maskz_floor_round_pd): Ditto.
26733 (_mm512_maskz_ceil_round_ps): Ditto.
26734 (_mm512_maskz_ceil_round_pd): Ditto.
26735 (_mm512_expand_pd): Ditto.
26736 (_mm512_expand_ps): Ditto.
26737 * config/i386/i386.c (ix86_builtins): Remove
26738 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
26739 (bdesc_args): Ditto.
26740 * config/i386/predicates.md (const1256_operand): New.
26741 (const_1_to_2_operand): Ditto.
26742 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26743 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26744 (*avx512pf_gatherpf<mode>sf): Ditto.
26745 (avx512pf_gatherpf<mode>df): Ditto.
26746 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26747 (*avx512pf_gatherpf<mode>df): Ditto.
26748 (avx512pf_scatterpf<mode>sf): Ditto.
26749 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26750 (*avx512pf_scatterpf<mode>sf): Ditto.
26751 (avx512pf_scatterpf<mode>df): Ditto.
26752 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26753 (*avx512pf_scatterpf<mode>df): Ditto.
26754 (avx512f_expand<mode>): Removed.
26755 (<shift_insn><mode>3<mask_name>): Change predicate type.
26757 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26759 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
26760 not at the end of datarefs vector use ordered_remove to avoid
26761 reordering datarefs vector.
26764 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
26765 mark local addressable non-static vars as GOVD_PRIVATE
26766 instead of GOVD_LOCAL.
26767 * omp-low.c (lower_omp_for): Move gimple_bind_vars
26768 and BLOCK_VARS of gimple_bind_block to new_stmt rather
26771 PR middle-end/60092
26772 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
26773 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
26774 assume_aligned or alloc_align attributes.
26775 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
26776 arguments. Handle also assume_aligned and alloc_align attributes.
26777 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
26778 calls to functions with assume_aligned or alloc_align attributes.
26779 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
26781 2014-02-08 Terry Guo <terry.guo@arm.com>
26783 * doc/invoke.texi: Document ARM -march=armv7e-m.
26785 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26787 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
26788 flag on __cilkrts_rethrow builtin.
26791 * ipa-cp.c (determine_versionability): Fail at -O0
26792 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26793 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26796 2014-02-04 Jakub Jelinek <jakub@redhat.com>
26799 * tree-inline.c (copy_forbidden): Fail for
26800 __attribute__((optimize (0))) functions.
26802 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26804 * varpool.c: Include pointer-set.h.
26805 (varpool_remove_unreferenced_decls): Variables in other partitions
26806 will not be output; be however careful to not lose information
26807 about partitioning.
26809 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26811 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26812 lookup in the vtable constructor.
26814 2014-02-07 Jeff Law <law@redhat.com>
26817 * config/m68k/m68k.md (ashldi_extsi): Turn into a
26818 define_insn_and_split.
26820 * ipa-inline.c (inline_small_functions): Fix typos.
26822 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26824 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26825 (s390_can_use_return_insn): Declare.
26826 * config/s390/s390.h (EPILOGUE_USES): Define.
26827 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26829 (s390_chunkify_start): Handle return JUMP_LABELs.
26830 (s390_early_mach): Emit a main_pool instruction on the entry edge.
26831 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26832 (s390_can_use_return_insn): New functions.
26833 (s390_fix_long_loop_prediction): Handle conditional returns.
26834 (TARGET_SET_UP_BY_PROLOGUE): Define.
26835 * config/s390/s390.md (ANY_RETURN): New code iterator.
26836 (*creturn, *csimple_return, return, simple_return): New patterns.
26838 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26840 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26841 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
26842 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
26843 REG_CFA_RESTORE list when deciding not to restore a register.
26845 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26847 * config/s390/s390.c: Include tree-pass.h and context.h.
26848 (s390_early_mach): New function, split out from...
26849 (s390_emit_prologue): ...here.
26850 (pass_data_s390_early_mach): New pass structure.
26851 (pass_s390_early_mach): New class.
26852 (s390_option_override): Create and register early_mach pass.
26853 Move to end of file.
26855 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26857 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26858 to match for the exit block.
26860 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26862 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26863 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26864 Reject misaligned operands.
26866 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26868 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26870 2014-02-07 Richard Biener <rguenther@suse.de>
26872 PR middle-end/60092
26873 * gimple-low.c (lower_builtin_posix_memalign): New function.
26874 (lower_stmt): Call it to lower posix_memalign in a way
26875 to make alignment info accessible.
26877 2014-02-07 Jakub Jelinek <jakub@redhat.com>
26880 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26881 __builtin_setjmp_receiver.
26883 2014-02-07 Richard Biener <rguenther@suse.de>
26885 PR middle-end/60092
26886 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26887 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26888 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26889 Handle BUILT_IN_POSIX_MEMALIGN.
26890 (find_func_clobbers): Likewise.
26891 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26892 (call_may_clobber_ref_p_1): Likewise.
26894 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26897 * ipa-devirt.c (record_target_from_binfo): Remove overactive
26900 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26903 * lto-cgraph.c (lto_output_node): Use
26904 symtab_get_symbol_partitioning_class.
26905 (lto_output_varpool_node): likewise.
26906 (symtab_get_symbol_partitioning_class): Move here from
26907 lto/lto-partition.c
26908 * cgraph.h (symbol_partitioning_class): Likewise.
26909 (symtab_get_symbol_partitioning_class): Declare.
26911 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26913 * ggc.h (ggc_internal_cleared_alloc): New macro.
26914 * vec.h (vec_safe_copy): Handle memory stats.
26915 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26916 * target-globals.c (save_target_globals): Likewise.
26918 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26921 * expr.c (emit_move_resolve_push): Export; be bit more selective
26922 on when to clear alias set.
26923 * expr.h (emit_move_resolve_push): Declare.
26924 * function.h (struct function): Add tail_call_marked.
26925 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26926 * config/i386/i386-protos.h (ix86_expand_push): Remove.
26927 * config/i386/i386.md (TImode move expander): De not call
26929 (FP push expanders): Preserve memory attributes.
26930 * config/i386/sse.md (push<mode>1): Remove.
26931 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26932 (ix86_expand_push): Remove.
26933 * config/i386/mmx.md (push<mode>1): Remove.
26935 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26937 PR rtl-optimization/60030
26938 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26939 lopart with paradoxical subreg before shifting it up by hprec.
26941 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26943 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26944 Remove extra newline at end of file.
26945 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26946 (arm_issue_rate): Handle cortexa57.
26947 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26948 (cortex-a57.cortex-a53): Likewise.
26950 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26953 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26954 don't record in REG_FRAME_RELATED_EXPR registers not set in that
26956 (arm_expand_prologue): Adjust all callers.
26957 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26958 info, registers also at the lowest numbered registers side. Use
26959 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26963 * var-tracking.c (adjust_mems): Before adding a SET to
26964 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26966 2014-02-06 Alan Modra <amodra@gmail.com>
26969 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26970 change SDmode to DDmode when lra_in_progress.
26972 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26974 PR middle-end/59150
26975 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26976 free_data_ref on the dr first, and before goto again also set dr
26977 to the next dr. For simd_lane_access, free old datarefs[i] before
26978 overwriting it. For get_vectype_for_scalar_type failure, don't
26979 free_data_ref if simd_lane_access.
26981 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26984 * tree.h (opts_for_fn): New inline function.
26985 (opt_for_fn): Define.
26986 * config/i386/i386.c (ix86_function_regparm): Use
26987 opt_for_fn (decl, optimize) instead of optimize.
26989 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
26991 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26992 for SYMBOL_REF in large memory model.
26994 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26996 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26997 and crypto support.
26998 (cortex-a57): Likewise.
26999 (cortex-a57.cortex-a53): Likewise.
27001 2014-02-06 Yury Gribov <y.gribov@samsung.com>
27002 Kugan Vivekanandarajah <kuganv@linaro.org>
27004 * config/arm/arm.c (arm_vector_alignment_reachable): Check
27006 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
27008 2014-02-06 Richard Biener <rguenther@suse.de>
27010 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
27011 set_loop_copy and initialize_original_copy_tables.
27013 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
27015 * config/aarch64/aarch64-simd.md
27016 (aarch64_ashr_simddi): Change QI to SI.
27018 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27019 Jakub Jelinek <jakub@redhat.com>
27021 PR middle-end/60013
27022 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
27025 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27027 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
27028 CODE_FOR_altivec_vpku[hw]um to
27029 CODE_FOR_altivec_vpku[hw]um_direct.
27030 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
27031 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
27032 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
27033 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
27035 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27037 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
27038 generation for -maltivec=be.
27039 (altivec_vsumsws): Simplify redundant test.
27041 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27043 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
27044 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
27045 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
27046 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
27047 gen_altivec_vpkuwum.
27048 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
27050 (altivec_vpks<VI_char>ss): Likewise.
27051 (altivec_vpks<VI_char>us): Likewise.
27052 (altivec_vpku<VI_char>us): Likewise.
27053 (altivec_vpku<VI_char>um): Likewise.
27054 (altivec_vpku<VI_char>um_direct): New (copy of
27055 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
27057 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
27058 target is little endian and -maltivec=be is not specified.
27059 (*altivec_vupkhs<VU_char>_direct): New (copy of
27060 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
27061 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
27062 target is little endian and -maltivec=be is not specified.
27063 (*altivec_vupkls<VU_char>_direct): New (copy of
27064 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
27065 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
27066 little endian and -maltivec=be is not specified.
27067 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
27068 little endian and -maltivec=be is not specified.
27070 2014-02-05 Richard Henderson <rth@redhat.com>
27073 * combine-stack-adj.c: Revert r206943.
27074 * sched-int.h (struct deps_desc): Add last_args_size.
27075 * sched-deps.c (init_deps): Initialize it.
27076 (sched_analyze_insn): Add OUTPUT dependencies between insns that
27077 contain REG_ARGS_SIZE notes.
27079 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
27081 * lto-cgraph.c (asm_nodes_output): Make global.
27082 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
27083 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
27084 (driver_handle_option): Handle OPT_fwpa.
27086 2014-02-05 Jakub Jelinek <jakub@redhat.com>
27089 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
27090 a comment typo and formatting issue. If odr_hash hasn't been
27091 created, return vNULL and set *completep to false.
27093 PR middle-end/57499
27094 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
27095 bb with no successors.
27097 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
27100 * doc/invoke.texi (-march): Clarify documentation for ARM.
27101 (-mtune): Likewise.
27104 2014-02-05 Richard Biener <rguenther@suse.de>
27106 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
27107 when not vectorizing because of too many alias checks.
27108 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27109 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
27111 2014-02-05 Nick Clifton <nickc@redhat.com>
27113 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
27114 accept extended registers in any mode when compiling for the MN10300.
27116 2014-02-05 Yury Gribov <y.gribov@samsung.com>
27118 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
27119 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
27120 sanitization attributes.
27121 (can_inline_edge_p): Likewise.
27122 (sanitize_attrs_match_for_inline_p): New function.
27124 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27126 * ipa-prop.c (detect_type_change): Shor circuit testing of
27127 type changes on THIS pointer.
27129 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
27132 * config/pa/pa.c (legitimize_tls_address): Return original address
27133 if not passed a SYMBOL_REF rtx.
27134 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
27136 (pa_emit_move_sequence): Simplify TLS source operands.
27137 (pa_legitimate_constant_p): Reject all TLS constants.
27138 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
27139 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
27141 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27143 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
27144 groups when we know they are controlled by LTO.
27145 * varasm.c (default_binds_local_p_1): If object is in other partition,
27146 it will be resolved locally.
27148 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27150 * config/host-linux.c (linux_gt_pch_use_address): Don't
27151 use SSIZE_MAX because it is not always defined.
27153 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27156 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27157 threshold for pseudo splitting.
27158 (update_ebb_live_info): Process call argument hard registers and
27159 hard registers from insn definition too.
27160 (max_small_class_regs_num): New constant.
27161 (inherit_in_ebb): Update live hard regs through EBBs. Update
27162 reloads_num only for small register classes. Don't split for
27165 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27168 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27171 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27173 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27174 visibility is safe.
27176 2014-02-04 Marek Polacek <polacek@redhat.com>
27178 * gdbinit.in (pel): Define.
27180 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27182 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27185 2014-02-04 Richard Biener <rguenther@suse.de>
27188 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27189 in function context local.
27190 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27191 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27192 similar to LTO_imported_decl_ref.
27194 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27196 PR tree-optimization/60002
27197 * cgraphclones.c (build_function_decl_skip_args): Clear
27198 DECL_LANG_SPECIFIC.
27200 PR tree-optimization/60023
27201 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27202 false to gsi_replace.
27203 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27204 has been in some EH region and vec_stmt could throw, add
27205 vec_stmt into the same EH region.
27206 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27207 has no lhs, ignore it.
27208 * internal-fn.c (expand_MASK_LOAD): Likewise.
27211 * tree-inline.c (copy_forbidden): Fail for
27212 __attribute__((optimize (0))) functions.
27215 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27216 is set, copy one less argument.
27217 (expand_simd_clones): Don't subtract clone_info->inbranch
27218 from simd_clone_struct_alloc argument.
27220 PR rtl-optimization/57915
27221 * recog.c (simplify_while_replacing): If all unary/binary/relational
27222 operation arguments are constant, attempt to simplify those.
27224 PR middle-end/59261
27225 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27226 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27228 2014-02-04 Richard Biener <rguenther@suse.de>
27230 PR tree-optimization/60012
27231 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27232 TBAA disambiguation to all DDRs.
27234 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27237 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27238 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27240 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27243 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27245 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27247 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27248 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27250 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27253 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27254 to figure out targets of polymorphic calls with known decl.
27255 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27256 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27257 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27258 (get_polymorphic_call_info): ... here.
27259 (get_polymorphic_call_info_from_invariant): New function.
27261 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27263 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27264 lookup via vtable pointer; check for type consistency
27265 and turn inconsitent facts into UNREACHABLE.
27266 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27267 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27268 type inconsistent querries; return UNREACHABLE instead.
27270 2014-02-03 Richard Henderson <rth@twiddle.net>
27273 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27274 already processed this node.
27275 (normalize_one_pred_1): Pass along mark_set.
27276 (normalize_one_pred): Create and destroy a pointer_set_t.
27277 (normalize_one_pred_chain): Likewise.
27279 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27281 PR gcov-profile/58602
27282 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27284 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27287 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27288 -fno-devirtualize; try to devirtualize by the knowledge of
27289 virtual table pointer given by aggregate propagation.
27290 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27291 (ipa_print_node_jump_functions): Dump also offset that
27292 is relevant for polymorphic calls.
27293 (determine_known_aggregate_parts): Add arg_type parameter; use it
27294 instead of determining the type from pointer type.
27295 (ipa_compute_jump_functions_for_edge): Update call of
27296 determine_known_aggregate_parts.
27297 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27298 (gimple_get_virt_method_for_binfo): ... here; simplify using
27299 vtable_pointer_value_to_vtable.
27300 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27301 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27302 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27303 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27305 (vtable_pointer_value_to_binfo): ... here.
27306 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27308 2014-02-03 Teresa Johnson <tejohnson@google.com>
27310 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27311 redef of outer loop index variable.
27313 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27317 * doc/extend.texi (Function Attributes): Typo.
27319 2014-02-03 Cong Hou <congh@google.com>
27321 PR tree-optimization/60000
27322 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27323 if the vectorized statement is a store. A store statement can only
27324 appear at the end of pattern statements.
27326 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27328 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27329 (ix86_option_override_internal): Default long double to 64-bit for
27330 32-bit Bionic and to 128-bit for 64-bit Bionic.
27332 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27333 TARGET_LONG_DOUBLE_128 is true.
27334 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27336 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27337 (mlong-double-64): Negate -mlong-double-128.
27338 (mlong-double-128): New option.
27340 * config/i386/i386-c.c (ix86_target_macros): Define
27341 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27343 * doc/invoke.texi: Document -mlong-double-128.
27345 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27347 PR rtl-optimization/60024
27348 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27350 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27352 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27354 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27356 PR rtl-optimization/57662
27357 * sel-sched.c (code_motion_path_driver): Do not mark already not
27358 existing blocks in the visiting bitmap.
27360 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27362 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27363 on the insn being emitted.
27365 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27366 Will Deacon <will.deacon@arm.com>
27368 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27370 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27372 * config/arm/arm-tables.opt: Regenerate.
27374 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27376 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27377 for vector types other than V16QImode.
27378 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27379 define_expand, and call altivec_expand_vec_perm_le when producing
27380 code with little endian element order.
27381 (*altivec_vperm_<mode>_internal): New insn having previous
27382 behavior of altivec_vperm_<mode>.
27383 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27384 altivec_expand_vec_perm_le when producing code with little endian
27386 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27387 behavior of altivec_vperm_<mode>_uns.
27389 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27391 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27392 (altivec_vsumsws): Add handling for -maltivec=be with a little
27394 (altivec_vsumsws_direct): New.
27395 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27396 gen_altivec_vsumsws.
27398 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27400 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27401 vtable_pointer_value_to_binfo): New functions.
27402 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27403 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27405 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27407 * config/nios2/nios2.md (load_got_register): Initialize GOT
27408 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27409 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27411 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27413 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27414 preserverd by passthrough, do not propagate the type.
27416 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27418 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27419 (mips_atomic_assign_expand_fenv): New function.
27420 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27422 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27424 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27425 (__builtin_mips_set_fcsr): Likewise.
27426 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27427 MIPS_USI_FTYPE_VOID.
27428 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27429 (mips16_expand_set_fcsr): Likewise.
27430 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27431 (mips16_set_fcsr_stub): Likewise.
27432 (mips16_get_fcsr_one_only_stub): New class.
27433 (mips16_set_fcsr_one_only_stub): Likewise.
27434 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27435 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27436 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27437 (hard_float): New availability predicate.
27438 (mips_builtins): Add get_fcsr and set_fcsr.
27439 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27440 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27441 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27442 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27443 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27446 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27448 * config/mips/mips.c (mips_one_only_stub): New class.
27449 (mips_need_mips16_rdhwr_p): Replace with...
27450 (mips16_rdhwr_stub): ...this new variable.
27451 (mips16_stub_call_address): New function.
27452 (mips16_rdhwr_one_only_stub): New class.
27453 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27454 (mips_output_mips16_rdhwr): Delete.
27455 (mips_finish_stub): New function.
27456 (mips_code_end): Use it to handle rdhwr stubs.
27458 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27461 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27462 when calculating size of integer atomic types.
27464 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27466 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27468 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27470 PR tree-optimization/60003
27471 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27472 * profile.c (branch_prob): Use gimple_call_builtin_p
27473 to check for BUILT_IN_SETJMP_RECEIVER.
27474 * tree-inline.c (copy_bb): Call notice_special_calls.
27476 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27479 * lra-constraints.c (process_alt_operands): Update reload_sum only
27482 2014-01-31 Richard Henderson <rth@redhat.com>
27484 PR middle-end/60004
27485 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27486 until after else_eh is processed.
27488 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27490 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27491 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27492 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27493 in smmintrin.h, remove them.
27494 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27495 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27496 * config/i386/i386.md (ROUND_SAE): Fix value.
27497 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27498 (const48_operand): New.
27499 * config/i386/subst.md (round), (round_expand): Use
27500 const_4_or_8_to_11_operand.
27501 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27503 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27505 * config/i386/constraints.md (Yk): Swap meaning with k.
27506 * config/i386/i386.md (movhi_internal): Change Yk to k.
27507 (movqi_internal): Ditto.
27508 (*k<logic><mode>): Ditto.
27511 (kandn<mode>): Ditto.
27512 (*<code>hi_1): Ditto.
27513 (*<code>qi_1): Ditto.
27514 (kxnor<mode>): Ditto.
27515 (kortestzhi): Ditto.
27516 (kortestchi): Ditto.
27518 (*one_cmplhi2_1): Ditto.
27519 (*one_cmplqi2_1): Ditto.
27520 * config/i386/sse.md (): Change k to Yk.
27521 (avx512f_load<mode>_mask): Ditto.
27522 (avx512f_blendm<mode>): Ditto.
27523 (avx512f_store<mode>_mask): Ditto.
27524 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
27525 (avx512f_storedqu<mode>_mask): Ditto.
27526 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
27528 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
27529 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
27530 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
27531 (avx512f_maskcmp<mode>3): Ditto.
27532 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
27533 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
27534 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
27535 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
27536 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
27537 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
27538 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
27539 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
27540 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
27541 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
27542 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
27543 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
27544 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
27545 (vec_extract_lo_<mode>_maskm): Ditto.
27546 (vec_extract_hi_<mode>_maskm): Ditto.
27547 (avx512f_vternlog<mode>_mask): Ditto.
27548 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
27549 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
27550 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
27551 (avx512f_<code>v8div16qi2_mask): Ditto.
27552 (avx512f_<code>v8div16qi2_mask_store): Ditto.
27553 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
27554 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
27555 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
27556 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
27557 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27558 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27559 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27560 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27561 (avx512cd_maskb_vec_dupv8di): Ditto.
27562 (avx512cd_maskw_vec_dupv16si): Ditto.
27563 (avx512f_vpermi2var<mode>3_maskz): Ditto.
27564 (avx512f_vpermi2var<mode>3_mask): Ditto.
27565 (avx512f_vpermi2var<mode>3_mask): Ditto.
27566 (avx512f_vpermt2var<mode>3_maskz): Ditto.
27567 (*avx512f_gathersi<mode>): Ditto.
27568 (*avx512f_gathersi<mode>_2): Ditto.
27569 (*avx512f_gatherdi<mode>): Ditto.
27570 (*avx512f_gatherdi<mode>_2): Ditto.
27571 (*avx512f_scattersi<mode>): Ditto.
27572 (*avx512f_scatterdi<mode>): Ditto.
27573 (avx512f_compress<mode>_mask): Ditto.
27574 (avx512f_compressstore<mode>_mask): Ditto.
27575 (avx512f_expand<mode>_mask): Ditto.
27576 * config/i386/subst.md (mask): Change k to Yk.
27577 (mask_scalar_merge): Ditto.
27580 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
27582 * doc/extend.texi (Vector Extensions): Document ?: in C++.
27584 2014-01-31 Richard Biener <rguenther@suse.de>
27586 PR middle-end/59990
27587 * builtins.c (fold_builtin_memory_op): Make sure to not
27588 use a floating-point mode or a boolean or enumeral type for
27589 the copy operation.
27591 2014-01-30 DJ Delorie <dj@redhat.com>
27593 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
27594 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
27595 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
27596 whenever main() has an epilogue.
27598 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27600 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
27601 unused variable "field".
27602 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
27603 (vsx_mergeh_<mode>): Likewise.
27604 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
27605 (altivec_vmrghh): Likewise.
27606 (altivec_vmrghw): Likewise.
27607 (altivec_vmrglb): Likewise.
27608 (altivec_vmrglh): Likewise.
27609 (altivec_vmrglw): Likewise.
27610 (altivec_vspltb): Add missing uses.
27611 (altivec_vsplth): Likewise.
27612 (altivec_vspltw): Likewise.
27613 (altivec_vspltsf): Likewise.
27615 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27618 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
27619 frame related instructions.
27621 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
27623 PR rtl-optimization/59959
27624 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
27625 any reload of register whose subreg is invalid.
27627 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27629 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
27630 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
27631 Add missing return type - void.
27633 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27635 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
27636 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
27637 remove element index adjustment for endian (now handled in vsx.md
27639 (altivec_expand_vec_perm_const): Use
27640 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
27641 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
27642 (vsx_xxspltw_<mode>): Adjust element index for little endian.
27643 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
27644 define_expand and a new define_insn *altivec_vspltb_internal;
27645 adjust for -maltivec=be on a little endian target.
27646 (altivec_vspltb_direct): New.
27647 (altivec_vsplth): Divide into a define_expand and a new
27648 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
27649 little endian target.
27650 (altivec_vsplth_direct): New.
27651 (altivec_vspltw): Divide into a define_expand and a new
27652 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
27653 little endian target.
27654 (altivec_vspltw_direct): New.
27655 (altivec_vspltsf): Divide into a define_expand and a new
27656 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
27657 a little endian target.
27659 2014-01-30 Richard Biener <rguenther@suse.de>
27661 PR tree-optimization/59993
27662 * tree-ssa-forwprop.c (associate_pointerplus): Check we
27663 can propagate form the earlier stmt and avoid the transform
27664 when the intermediate result is needed.
27666 2014-01-30 Alangi Derick <alangiderick@gmail.com>
27668 * README.Portability: Fix typo.
27670 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
27672 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
27673 comparison_operator with ordered_comparison_operator.
27675 2014-01-30 Nick Clifton <nickc@redhat.com>
27677 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
27678 Rename to mn10300_store_multiple_regs.
27679 * config/mn10300/mn10300.c: Likewise.
27680 * config/mn10300/mn10300.md (store_movm): Fix typo: call
27681 store_multiple_regs.
27682 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
27683 Call mn10300_store_multiple_regs.
27685 2014-01-30 Nick Clifton <nickc@redhat.com>
27686 DJ Delorie <dj@redhat.com>
27688 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
27689 %fp 2 to keep registers after it properly word-aligned.
27690 (rl78_alloc_physical_registers_umul): Handle the case where both
27691 input operands are the same.
27693 2014-01-30 Richard Biener <rguenther@suse.de>
27695 PR tree-optimization/59903
27696 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
27699 2014-01-30 Jason Merrill <jason@redhat.com>
27702 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
27705 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
27707 2014-01-30 Richard Biener <rguenther@suse.de>
27709 PR tree-optimization/59951
27710 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
27712 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
27715 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
27716 SFmode to DFmode case.
27718 2014-01-29 DJ Delorie <dj@redhat.com>
27720 * config/msp430/msp430.opt (-minrt): New.
27721 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
27723 (ENDFILE_SPEC): Likewise.
27725 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
27727 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
27728 (estimate_function_body_sizes): Use it.
27730 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
27733 * dwarf2out.c (is_cxx_auto): New.
27734 (is_base_type): Use it.
27735 (gen_type_die_with_usage): Likewise.
27737 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27739 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
27740 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
27741 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
27742 -maltivec=be with LE targets.
27743 (vsx_mergeh_<mode>): Likewise.
27744 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
27745 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
27746 (altivec_vmrghb): Replace with define_expand and new
27747 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
27748 (altivec_vmrghb_direct): New define_insn.
27749 (altivec_vmrghh): Replace with define_expand and new
27750 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
27751 (altivec_vmrghh_direct): New define_insn.
27752 (altivec_vmrghw): Replace with define_expand and new
27753 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
27754 (altivec_vmrghw_direct): New define_insn.
27755 (*altivec_vmrghsf): Adjust for endianness.
27756 (altivec_vmrglb): Replace with define_expand and new
27757 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
27758 (altivec_vmrglb_direct): New define_insn.
27759 (altivec_vmrglh): Replace with define_expand and new
27760 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
27761 (altivec_vmrglh_direct): New define_insn.
27762 (altivec_vmrglw): Replace with define_expand and new
27763 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
27764 (altivec_vmrglw_direct): New define_insn.
27765 (*altivec_vmrglsf): Adjust for endianness.
27766 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27767 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27768 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27769 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27770 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27771 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27772 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27773 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27775 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
27777 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
27778 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
27781 2014-01-29 Richard Biener <rguenther@suse.de>
27783 PR tree-optimization/58742
27784 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
27785 associate_pointerplus_align.
27786 (associate_pointerplus_diff): New function.
27787 (associate_pointerplus): Likewise. Call associate_pointerplus_align
27788 and associate_pointerplus_diff.
27790 2014-01-29 Richard Biener <rguenther@suse.de>
27792 * lto-streamer.h (LTO_major_version): Bump to 3.
27793 (LTO_minor_version): Reset to 0.
27795 2014-01-29 Renlin Li <Renlin.Li@arm.com>
27797 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27798 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27799 (arm_file_start): Generate correct asm header for armv7ve.
27800 * config/arm/bpabi.h: Add multilib support for armv7ve.
27801 * config/arm/driver-arm.c: Change the architectures of cortex-a7
27802 and cortex-a15 to armv7ve.
27803 * config/arm/t-aprofile: Add multilib support for armv7ve.
27804 * doc/invoke.texi: Document -march=armv7ve.
27806 2014-01-29 Richard Biener <rguenther@suse.de>
27808 PR tree-optimization/58742
27809 * tree-ssa-forwprop.c (associate_plusminus): Return true
27810 if we changed sth, defer EH cleanup to ...
27811 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
27812 (simplify_mult): New function.
27814 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27816 PR middle-end/59917
27817 PR tree-optimization/59920
27818 * tree.c (build_common_builtin_nodes): Remove
27819 __builtin_setjmp_dispatcher initialization.
27820 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27821 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27822 instead of gsi_after_labels + manually skipping debug stmts.
27823 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27824 ignore bbs with IFN_ABNORMAL_DISPATCHER.
27825 * tree-inline.c (copy_edges_for_bb): Remove
27826 can_make_abnormal_goto argument, instead add abnormal_goto_dest
27827 argument. Ignore computed_goto_p stmts. Don't call
27828 make_abnormal_goto_edges. If a call might need abnormal edges
27829 for non-local gotos, see if it already has an edge to
27830 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27831 with true argument, don't do anything then, otherwise add
27832 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27833 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27835 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27836 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27837 (lower_stmt): Don't set data->calls_builtin_setjmp.
27838 (lower_builtin_setjmp): Adjust comment.
27839 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27840 * tree-cfg.c (found_computed_goto): Remove.
27841 (factor_computed_gotos): Remove.
27842 (make_goto_expr_edges): Return bool, true for computed gotos.
27843 Don't call make_abnormal_goto_edges.
27844 (build_gimple_cfg): Don't set found_computed_goto, don't call
27845 factor_computed_gotos.
27846 (computed_goto_p): No longer static.
27847 (make_blocks): Don't set found_computed_goto.
27848 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27849 (make_edges): If make_goto_expr_edges returns true, push bb
27850 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27851 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27852 vector. Record mapping between bbs and OpenMP regions if there
27853 are any, adjust make_gimple_omp_edges caller. Call
27854 handle_abnormal_edges.
27855 (make_abnormal_goto_edges): Remove.
27856 * tree-cfg.h (make_abnormal_goto_edges): Remove.
27857 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27858 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27859 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27860 * internal-fn.def (ABNORMAL_DISPATCHER): New.
27861 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27862 filling *region also set *region_idx to (*region)->entry->index.
27865 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27866 For REGs set ORIGINAL_REGNO.
27868 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
27870 * doc/md.texi: Mention that a target shouldn't implement
27871 vec_widen_(s|u)mul_even/odd pair if it is less efficient
27874 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27876 PR tree-optimization/59594
27877 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27878 a copy of the datarefs vector rather than the vector itself.
27880 2014-01-28 Jason Merrill <jason@redhat.com>
27883 * dwarf2out.c (auto_die): New static.
27884 (gen_type_die_with_usage): Handle C++1y 'auto'.
27885 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27888 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
27891 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27892 (SPEC_X32): Likewise.
27893 (SPEC_64): Likewise.
27894 * config/i386/i386.c (ix86_option_override_internal): Turn off
27895 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27897 (x86_file_start): Output .code16gcc for TARGET_16BIT.
27898 * config/i386/i386.h (TARGET_16BIT): New macro.
27899 (TARGET_16BIT_P): Likewise.
27900 * config/i386/i386.opt: Add m16.
27901 * doc/invoke.texi: Document -m16.
27903 2014-01-28 Jakub Jelinek <jakub@redhat.com>
27905 PR preprocessor/59935
27906 * input.c (location_get_source_line): Bail out on when line number
27907 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27909 2014-01-28 Richard Biener <rguenther@suse.de>
27911 PR tree-optimization/58742
27912 * tree-ssa-forwprop.c (associate_plusminus): Handle
27913 pointer subtraction of the form (T)(P + A) - (T)P.
27915 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27917 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27920 2014-01-28 Richard Biener <rguenther@suse.de>
27923 2014-01-28 Richard Biener <rguenther@suse.de>
27925 PR rtl-optimization/45364
27926 PR rtl-optimization/59890
27927 * var-tracking.c (local_get_addr_clear_given_value): Handle
27928 already cleared slot.
27929 (val_reset): Handle not allocated local_get_addr_cache.
27930 (vt_find_locations): Use post-order on the inverted CFG.
27932 2014-01-28 Richard Biener <rguenther@suse.de>
27934 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27936 2014-01-28 Richard Biener <rguenther@suse.de>
27938 PR rtl-optimization/45364
27939 PR rtl-optimization/59890
27940 * var-tracking.c (local_get_addr_clear_given_value): Handle
27941 already cleared slot.
27942 (val_reset): Handle not allocated local_get_addr_cache.
27943 (vt_find_locations): Use post-order on the inverted CFG.
27945 2014-01-28 Alan Modra <amodra@gmail.com>
27947 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27948 * configure.ac <recursive call for build != host>: Define
27949 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27950 and LD_FOR_BUILD too.
27951 * configure: Regenerate.
27953 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
27955 * config/i386/i386.c (get_builtin_code_for_version): Separate
27956 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27957 Broadwell from Haswell.
27959 2014-01-27 Steve Ellcey <sellcey@mips.com>
27961 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27962 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27963 * config/mips/mips.c (mips_option_override): Change setting
27965 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27966 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27967 Change from Mask to Var.
27969 2014-01-27 Jeff Law <law@redhat.com>
27971 * ipa-inline.c (inline_small_functions): Fix typo.
27973 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
27975 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27976 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27977 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27978 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27979 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27980 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27981 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27982 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27983 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27984 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27985 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27986 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27987 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27988 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27989 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27990 (_mm512_storeu_epi64): Ditto.
27991 (_mm512_cmpge_epi32_mask): Ditto.
27992 (_mm512_cmpge_epu32_mask): Ditto.
27993 (_mm512_cmpge_epi64_mask): Ditto.
27994 (_mm512_cmpge_epu64_mask): Ditto.
27995 (_mm512_cmple_epi32_mask): Ditto.
27996 (_mm512_cmple_epu32_mask): Ditto.
27997 (_mm512_cmple_epi64_mask): Ditto.
27998 (_mm512_cmple_epu64_mask): Ditto.
27999 (_mm512_cmplt_epi32_mask): Ditto.
28000 (_mm512_cmplt_epu32_mask): Ditto.
28001 (_mm512_cmplt_epi64_mask): Ditto.
28002 (_mm512_cmplt_epu64_mask): Ditto.
28003 (_mm512_cmpneq_epi32_mask): Ditto.
28004 (_mm512_cmpneq_epu32_mask): Ditto.
28005 (_mm512_cmpneq_epi64_mask): Ditto.
28006 (_mm512_cmpneq_epu64_mask): Ditto.
28007 (_mm512_expand_pd): Ditto.
28008 (_mm512_expand_ps): Ditto.
28009 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
28010 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
28011 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
28012 * config/i386/i386.c (ix86_builtins): Add
28013 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
28014 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
28015 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
28016 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
28017 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
28018 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
28019 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
28020 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
28021 IX86_BUILTIN_PMOVUSQW512_MEM.
28022 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
28023 __builtin_ia32_pmovsqd512mem_mask,
28024 __builtin_ia32_pmovqd512mem_mask,
28025 __builtin_ia32_pmovusqw512mem_mask,
28026 __builtin_ia32_pmovsqw512mem_mask,
28027 __builtin_ia32_pmovqw512mem_mask,
28028 __builtin_ia32_pmovusdw512mem_mask,
28029 __builtin_ia32_pmovsdw512mem_mask,
28030 __builtin_ia32_pmovdw512mem_mask,
28031 __builtin_ia32_pmovqb512mem_mask,
28032 __builtin_ia32_pmovusqb512mem_mask,
28033 __builtin_ia32_pmovsqb512mem_mask,
28034 __builtin_ia32_pmovusdb512mem_mask,
28035 __builtin_ia32_pmovsdb512mem_mask,
28036 __builtin_ia32_pmovdb512mem_mask.
28037 (bdesc_args): Add __builtin_ia32_expanddf512,
28038 __builtin_ia32_expandsf512.
28039 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
28040 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
28041 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
28042 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
28043 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
28044 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
28045 (avx512f_<code>v8div16qi2_mask_store): This.
28046 (avx512f_expand<mode>): New.
28048 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
28050 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
28052 (_mm512_mask_prefetch_i64gather_pd): Ditto.
28053 (_mm512_prefetch_i32scatter_pd): Ditto.
28054 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
28055 (_mm512_prefetch_i64scatter_pd): Ditto.
28056 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
28057 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
28058 (_mm512_mask_prefetch_i64gather_ps): Ditto.
28059 (_mm512_prefetch_i32scatter_ps): Ditto.
28060 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
28061 (_mm512_prefetch_i64scatter_ps): Ditto.
28062 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
28063 * config/i386/i386-builtin-types.def: Define
28064 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
28065 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
28066 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
28067 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
28068 IX86_BUILTIN_SCATTERPFQPD.
28069 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
28070 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
28071 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
28072 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
28073 __builtin_ia32_scatterpfqps.
28074 (ix86_expand_builtin): Expand new built-ins.
28075 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
28076 fix memory access data type.
28077 (*avx512pf_gatherpf<mode>_mask): Ditto.
28078 (*avx512pf_gatherpf<mode>): Ditto.
28079 (avx512pf_scatterpf<mode>): Ditto.
28080 (*avx512pf_scatterpf<mode>_mask): Ditto.
28081 (*avx512pf_scatterpf<mode>): Ditto.
28082 (GATHER_SCATTER_SF_MEM_MODE): New.
28083 (avx512pf_gatherpf<mode>df): Ditto.
28084 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28085 (*avx512pf_scatterpf<mode>df): Ditto.
28087 2014-01-27 Jakub Jelinek <jakub@redhat.com>
28090 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
28091 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
28094 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28096 * common/config/arm/arm-common.c
28097 (arm_rewrite_mcpu): Handle multiple names.
28099 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28101 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
28103 * gimple-builder.h (create_gimple_tmp): Delete.
28105 2014-01-27 Christian Bruel <christian.bruel@st.com>
28107 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
28110 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
28112 * config/pa/pa.md (call): Generate indirect long calls to non-local
28113 functions when outputing 32-bit code.
28114 (call_value): Likewise except for special call to buggy powf function.
28116 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
28117 portable runtime and PIC indirect calls.
28118 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
28119 and PIC call sequences. Use ldo instead of blr to set return register
28120 in PIC call sequence.
28122 2014-01-25 Walter Lee <walt@tilera.com>
28124 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
28125 avoid clobbering a live register.
28127 2014-01-25 Walter Lee <walt@tilera.com>
28129 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
28130 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
28131 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
28132 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
28134 2014-01-25 Walter Lee <walt@tilera.com>
28136 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
28137 arguments on even registers.
28138 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
28140 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
28141 (BIGGEST_ALIGNMENT): Ditto.
28142 (BIGGEST_FIELD_ALIGNMENT): Ditto.
28144 2014-01-25 Walter Lee <walt@tilera.com>
28146 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28147 insns before bundling.
28148 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28150 2014-01-25 Walter Lee <walt@tilera.com>
28152 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28153 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28154 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28156 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28158 * config/mips/constraints.md (kl): Delete.
28159 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28160 define expands, using...
28161 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28162 instructions for MIPS16.
28163 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28164 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28166 2014-01-25 Walter Lee <walt@tilera.com>
28168 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28172 2014-01-25 Walter Lee <walt@tilera.com>
28174 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28175 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28177 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28179 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28182 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28184 * print-rtl.c (in_call_function_usage): New var.
28185 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28186 EXPR_LIST mode as mode and not as reg note name.
28188 PR middle-end/59561
28189 * cfgloopmanip.c (copy_loop_info): If
28190 loop->warned_aggressive_loop_optimizations, make sure
28191 the flag is set in target loop too.
28193 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28195 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28197 * builtins.def: Likewise.
28198 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28199 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28200 * ira.c (ira_setup_eliminable_regset): Likewise.
28201 * omp-low.c (gate_expand_omp): Likewise.
28202 (execute_lower_omp): Likewise.
28203 (diagnose_sb_0): Likewise.
28204 (gate_diagnose_omp_blocks): Likewise.
28205 (simd_clone_clauses_extract): Likewise.
28208 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28210 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28211 correction for little endian...
28212 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28215 2014-01-24 Jeff Law <law@redhat.com>
28217 PR tree-optimization/59919
28218 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28219 for non-returning calls.
28221 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28223 * common/config/aarch64/aarch64-common.c
28224 (aarch64_rewrite_mcpu): Handle multiple names.
28225 * config/aarch64/aarch64.h
28226 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28228 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28230 * input.c (add_file_to_cache_tab): Handle the case where fopen
28233 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28236 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28237 from push operand if code of push isn't PRE_DEC.
28239 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28242 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28243 -mquad-memory-atomic. Update -mquad-memory documentation to say
28244 it is only used for non-atomic loads/stores.
28246 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28247 -mquad-memory or -mquad-memory-atomic switches.
28249 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28250 -mquad-memory-atomic to ISA 2.07 support.
28252 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28253 to separate support of normal quad word memory operations (ldq, stq)
28254 from the atomic quad word memory operations.
28256 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28257 support to separate non-atomic quad word operations from atomic
28258 quad word operations. Disable non-atomic quad word operations in
28259 little endian mode so that we don't have to swap words after the
28260 load and before the store.
28261 (quad_load_store_p): Add comment about atomic quad word support.
28262 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28263 options printed with -mdebug=reg.
28265 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28266 -mquad-memory-atomic as the test for whether we have quad word
28267 atomic instructions.
28268 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28269 or -mp8-vector are used, allow byte/half-word atomic operations.
28271 * config/rs6000/sync.md (load_lockedti): Insure that the address
28272 is a proper indexed or indirect address for the lqarx instruction.
28273 On little endian systems, swap the hi/lo registers after the lqarx
28275 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28276 insure the address is valid for the lqarx instruction.
28277 (store_conditionalti): Insure that the address is a proper indexed
28278 or indirect address for the stqcrx. instruction. On little endian
28279 systems, swap the hi/lo registers before doing the stqcrx.
28281 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28282 insure the address is valid for the stqcrx. instruction.
28284 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28285 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28286 type of quad memory support is available.
28288 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28290 PR regression/59915
28291 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28292 there is a danger of looping.
28294 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28296 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28297 force flag_ira_loop_pressure if set via command line.
28299 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28301 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28302 (ashr_simd): New builtin handling DI mode.
28303 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28304 (aarch64_sshr_simddi): New match pattern.
28305 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28306 (vshrd_n_s64): Likewise.
28307 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28309 2014-01-23 Nick Clifton <nickc@redhat.com>
28311 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28312 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28313 favour of mcu specific scripts.
28314 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28317 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28318 Alex Velenko <Alex.Velenko@arm.com>
28320 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28321 (vaddv_s16): Likewise.
28322 (vaddv_s32): Likewise.
28323 (vaddv_u8): Likewise.
28324 (vaddv_u16): Likewise.
28325 (vaddv_u32): Likewise.
28326 (vaddvq_s8): Likewise.
28327 (vaddvq_s16): Likewise.
28328 (vaddvq_s32): Likewise.
28329 (vaddvq_s64): Likewise.
28330 (vaddvq_u8): Likewise.
28331 (vaddvq_u16): Likewise.
28332 (vaddvq_u32): Likewise.
28333 (vaddvq_u64): Likewise.
28334 (vaddv_f32): Likewise.
28335 (vaddvq_f32): Likewise.
28336 (vaddvq_f64): Likewise.
28337 (vmaxv_f32): Likewise.
28338 (vmaxv_s8): Likewise.
28339 (vmaxv_s16): Likewise.
28340 (vmaxv_s32): Likewise.
28341 (vmaxv_u8): Likewise.
28342 (vmaxv_u16): Likewise.
28343 (vmaxv_u32): Likewise.
28344 (vmaxvq_f32): Likewise.
28345 (vmaxvq_f64): Likewise.
28346 (vmaxvq_s8): Likewise.
28347 (vmaxvq_s16): Likewise.
28348 (vmaxvq_s32): Likewise.
28349 (vmaxvq_u8): Likewise.
28350 (vmaxvq_u16): Likewise.
28351 (vmaxvq_u32): Likewise.
28352 (vmaxnmv_f32): Likewise.
28353 (vmaxnmvq_f32): Likewise.
28354 (vmaxnmvq_f64): Likewise.
28355 (vminv_f32): Likewise.
28356 (vminv_s8): Likewise.
28357 (vminv_s16): Likewise.
28358 (vminv_s32): Likewise.
28359 (vminv_u8): Likewise.
28360 (vminv_u16): Likewise.
28361 (vminv_u32): Likewise.
28362 (vminvq_f32): Likewise.
28363 (vminvq_f64): Likewise.
28364 (vminvq_s8): Likewise.
28365 (vminvq_s16): Likewise.
28366 (vminvq_s32): Likewise.
28367 (vminvq_u8): Likewise.
28368 (vminvq_u16): Likewise.
28369 (vminvq_u32): Likewise.
28370 (vminnmv_f32): Likewise.
28371 (vminnmvq_f32): Likewise.
28372 (vminnmvq_f64): Likewise.
28374 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28376 * config/aarch64/aarch64-simd.md
28377 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28378 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28379 (*aarch64_mul3_elt<mode>): Likewise.
28380 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28381 (*aarch64_mul3_elt_to_64v2df): Likewise.
28382 (*aarch64_mla_elt<mode>): Likewise.
28383 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28384 (*aarch64_mls_elt<mode>): Likewise.
28385 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28386 (*aarch64_fma4_elt<mode>): Likewise.
28387 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28388 (*aarch64_fma4_elt_to_64v2df): Likewise.
28389 (*aarch64_fnma4_elt<mode>): Likewise.
28390 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28391 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28392 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28393 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28394 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28395 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28396 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28397 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28398 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28400 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28402 * config/aarch64/aarch64-simd.md
28403 (aarch64_be_checked_get_lane<mode>): New define_expand.
28404 * config/aarch64/aarch64-simd-builtins.def
28405 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28406 New builtin definition.
28407 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28408 Use new safe be builtin.
28410 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28412 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28414 (aarch64_be_st1<mode>): Likewise.
28415 (aarch_ld1<VALL:mode>): Define_expand modified.
28416 (aarch_st1<VALL:mode>): Likewise.
28417 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28418 (UNSPEC_ST1): Likewise.
28420 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28422 * config/microblaze/microblaze.md: Add trap insn and attribute
28424 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28426 PR preprocessor/58580
28427 * input.h (location_get_source_line): Take an additional line_size
28429 (void diagnostics_file_cache_fini): Declare new function.
28430 * input.c (struct fcache): New type.
28431 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28432 New static constants.
28433 (diagnostic_file_cache_init, total_lines_num)
28434 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28435 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28436 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28437 (get_next_line, read_next_line, goto_next_line, read_line_num):
28438 New static function definitions.
28439 (diagnostic_file_cache_fini): New function.
28440 (location_get_source_line): Take an additional output line_len
28441 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28443 * diagnostic.c (diagnostic_finish): Call
28444 diagnostic_file_cache_fini.
28445 (adjust_line): Take an additional input parameter for the length
28446 of the line, rather than calculating it with strlen.
28447 (diagnostic_show_locus): Adjust the use of
28448 location_get_source_line and adjust_line with respect to their new
28449 signature. While displaying a line now, do not stop at the first
28450 null byte. Rather, display the zero byte as a space and keep
28451 going until we reach the size of the line.
28452 * Makefile.in: Add vec.o to OBJS-libcommon
28454 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28455 Ilya Tocar <ilya.tocar@intel.com>
28457 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28458 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28459 (__builtin_ia32_kmov16): Ditto.
28460 * config/i386/i386.md (UNSPEC_KMOV): New.
28463 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28465 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28466 (_mm512_storeu_si512): Ditto.
28468 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28471 * rtl.h (get_referenced_operands): Declare.
28472 * recog.c (get_referenced_operands): New function.
28473 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28474 operands have been referenced when recording LO_SUM references.
28476 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28478 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28480 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28482 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28483 Enable for generic and recent AMD targets.
28485 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28487 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28488 ARG_SIZE note when adjustment was eliminated.
28490 2014-01-22 Jeff Law <law@redhat.com>
28492 PR tree-optimization/59597
28493 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28494 in file. Accept new argument REGISTERING and use it to modify
28495 dump output appropriately.
28496 (register_jump_thread): Corresponding changes.
28497 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28498 thread paths involving joiner blocks. Add code to dump cancelled
28499 jump threading paths.
28501 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28503 PR rtl-optimization/59477
28504 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28505 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28507 2014-01-22 Tom Tromey <tromey@redhat.com>
28509 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28511 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28513 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28515 PR rtl-optimization/59896
28516 * lra-constraints.c (process_alt_operands): Check unused note for
28517 matched operands of insn with no output reloads.
28519 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
28521 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
28522 (mips_move_from_gpr_cost): Likewise.
28524 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28526 PR rtl-optimization/59858
28527 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
28528 ira_class_hard_regs_num.
28529 (process_alt_operands): Increase reject for dying matched operand.
28531 2014-01-21 Jakub Jelinek <jakub@redhat.com>
28534 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
28535 smaller than size, perform several stores or loads and stores
28536 at dst + count - size to store or copy all of size bytes, rather
28537 than just last modesize bytes.
28539 2014-01-20 DJ Delorie <dj@redhat.com>
28541 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
28542 that CLOBBERs are REGs before propogating their values.
28544 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
28546 PR middle-end/59789
28547 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
28548 (cgraph_inline_failed_type): New function.
28549 * cgraph.h (DEFCIFCODE): Add type.
28550 (cgraph_inline_failed_type_t): New enum.
28551 (cgraph_inline_failed_type): New prototype.
28552 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
28553 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28554 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
28555 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
28556 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
28557 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
28558 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
28559 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
28560 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
28561 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
28562 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
28563 OPTIMIZATION_MISMATCH.
28564 * tree-inline.c (expand_call_inline): Emit errors during
28565 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
28567 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28570 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
28571 mode attribute in insn output.
28573 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
28575 * output.h (output_constant): Delete.
28576 * varasm.c (output_constant): Make private.
28578 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
28580 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
28582 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28584 PR middle-end/59860
28585 * tree.h (fold_builtin_strcat): New prototype.
28586 * builtins.c (fold_builtin_strcat): No longer static. Add len
28587 argument, if non-NULL, don't call c_strlen. Optimize
28588 directly into __builtin_memcpy instead of __builtin_strcpy.
28589 (fold_builtin_2): Adjust fold_builtin_strcat caller.
28590 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
28592 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28594 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28595 for SImode_address_operand operands, having only a REG argument.
28597 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
28599 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
28600 loader name using mbig-endian.
28601 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
28603 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28605 * doc/invoke.texi (-march): Clarify documentation for AArch64.
28606 (-mtune): Likewise.
28609 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
28611 * config/aarch64/aarch64-protos.h
28612 (aarch64_cannot_change_mode_class_ptr): Declare.
28613 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
28614 aarch64_cannot_change_mode_class_ptr): New.
28615 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
28616 backend hook aarch64_cannot_change_mode_class.
28618 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28620 * common/config/aarch64/aarch64-common.c
28621 (aarch64_handle_option): Don't handle any option order logic here.
28622 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
28623 selected_cpu, warn on architecture version mismatch.
28624 (aarch64_override_options): Fix parsing order for option strings.
28626 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28627 Iain Sandoe <iain@codesourcery.com>
28630 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
28631 warning. Amend comment to reflect current functionality.
28633 2014-01-20 Richard Biener <rguenther@suse.de>
28635 PR middle-end/59860
28636 * builtins.c (fold_builtin_strcat): Remove case better handled
28637 by tree-ssa-strlen.c.
28639 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
28641 * config/aarch64/aarch64.opt
28642 (mcpu, march, mtune): Make case-insensitive.
28644 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28647 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28648 if operands[1] is a REG or ZERO_EXTEND of a REG.
28650 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
28652 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
28654 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
28656 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
28657 long non-pic millicode calls.
28659 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28661 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
28663 2014-01-19 Kito Cheng <kito@0xlab.org>
28665 * builtins.c (expand_movstr): Check movstr expand done or fail.
28667 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28668 H.J. Lu <hongjiu.lu@intel.com>
28671 * config/i386/i386.md (*lea<mode>): Zero-extend return register
28672 to DImode for zero-extended addresses.
28674 2014-01-19 Jakub Jelinek <jakub@redhat.com>
28676 PR rtl-optimization/57763
28677 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
28678 on the new indirect jump_insn and increment LABEL_NUSES (label).
28680 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
28684 * config.gcc (x86_archs): New variable.
28685 (x86_64_archs): Likewise.
28686 (x86_cpus): Likewise.
28687 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
28688 --with-arch/--with-cpu= options.
28689 Support --with-arch=/--with-cpu={nehalem,westmere,
28690 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
28692 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28694 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
28695 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
28697 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28699 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
28701 2014-01-18 Jakub Jelinek <jakub@redhat.com>
28704 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
28705 clear cpp_get_options (parse_in)->warn_unused_macros for
28706 ix86_target_macros_internal with cpp_define.
28708 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
28710 * jump.c (delete_related_insns): Keep (use (insn))s.
28711 * reorg.c (redundant_insn): Check for barriers too.
28713 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28715 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
28717 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
28719 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
28720 call to $$dyncall when TARGET_LONG_CALLS is true.
28722 2014-01-17 Jeff Law <law@redhat.com>
28724 * ree.c (combine_set_extension): Temporarily disable test for
28725 changing number of hard registers.
28727 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28729 PR middle-end/58125
28730 * ipa-inline-analysis.c (inline_free_summary):
28731 Do not free summary of aliases.
28733 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28735 PR middle-end/59706
28736 * gimplify.c (gimplify_expr): Use create_tmp_var
28737 instead of create_tmp_var_raw. If cond doesn't have
28738 integral type, don't add the IFN_ANNOTATE builtin at all.
28740 2014-01-17 Martin Jambor <mjambor@suse.cz>
28743 * ipa-cp.c (prev_edge_clone): New variable.
28744 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
28745 Also resize prev_edge_clone vector.
28746 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
28747 (ipcp_edge_removal_hook): New function.
28748 (ipcp_driver): Register ipcp_edge_removal_hook.
28750 2014-01-17 Andrew Pinski <apinski@cavium.com>
28751 Steve Ellcey <sellcey@mips.com>
28754 * config/mips/mips.c (mips_print_operand): Check operand mode instead
28757 2014-01-17 Jeff Law <law@redhat.com>
28759 PR middle-end/57904
28760 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
28761 so that pass_ccp runs first.
28763 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28765 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
28766 (ix86_adjust_cost): Use !TARGET_XXX.
28767 (do_reorder_for_imul): Likewise.
28768 (swap_top_of_ready_list): Likewise.
28769 (ix86_sched_reorder): Likewise.
28771 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28773 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28774 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
28775 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
28776 (intel_memset): New. Duplicate slm_memset.
28777 (intel_cost): New. Duplicate slm_cost.
28778 (m_INTEL): New macro.
28779 (processor_target_table): Add "intel".
28780 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
28781 with PROCESSOR_INTEL for "intel".
28782 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
28783 PROCESSOR_SILVERMONT.
28784 (ix86_issue_rate): Likewise.
28785 (ix86_adjust_cost): Likewise.
28786 (ia32_multipass_dfa_lookahead): Likewise.
28787 (swap_top_of_ready_list): Likewise.
28788 (ix86_sched_reorder): Likewise.
28789 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
28790 instead of TARGET_OPT_AGU.
28791 * config/i386/i386.h (TARGET_INTEL): New.
28792 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28793 (processor_type): Add PROCESSOR_INTEL.
28794 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28795 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28797 2014-01-17 Marek Polacek <polacek@redhat.com>
28800 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28803 2014-01-17 Richard Biener <rguenther@suse.de>
28805 PR tree-optimization/46590
28806 * opts.c (default_options_table): Add entries for
28807 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28808 all enabled at -O1 but not for -Og.
28809 * common.opt (fbranch-count-reg): Remove Init(1).
28810 (fmove-loop-invariants): Likewise.
28811 (ftree-pta): Likewise.
28813 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28815 * config/i386/i386.c (ix86_data_alignment): For compatibility with
28816 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28817 decls to at least the GCC 4.8 used alignments.
28820 * tree-nested.c (convert_nonlocal_reference_stmt,
28821 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28822 of GIMPLE_BIND stmts, adjust associated decls.
28824 2014-01-17 Richard Biener <rguenther@suse.de>
28826 PR tree-optimization/46590
28827 * vec.h (vec<>::bseach): New member function implementing
28828 binary search according to C89 bsearch.
28829 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28830 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28831 bitmap pointer again. Make accesses_in_loop a flat array.
28832 (mem_ref_obstack): New global.
28833 (outermost_indep_loop): Adjust for mem_ref->stored changes.
28834 (mark_ref_stored): Likewise.
28835 (ref_indep_loop_p_2): Likewise.
28836 (set_ref_stored_in_loop): New helper function.
28837 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28838 (memref_free): Adjust.
28839 (record_mem_ref_loc): Simplify.
28840 (gather_mem_refs_stmt): Adjust.
28841 (sort_locs_in_loop_postorder_cmp): New function.
28842 (analyze_memory_references): Sort accesses_in_loop after
28843 loop postorder number.
28844 (find_ref_loc_in_loop_cmp): New function.
28845 (for_all_locs_in_loop): Find relevant cluster of locs in
28846 accesses_in_loop and iterate without recursion.
28847 (execute_sm): Avoid uninit warning.
28848 (struct ref_always_accessed): Simplify.
28849 (ref_always_accessed::operator ()): Likewise.
28850 (ref_always_accessed_p): Likewise.
28851 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28852 loop postorder numbers here.
28853 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28856 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28859 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28860 on decls for which assemble_alias has been called.
28862 2014-01-17 Nick Clifton <nickc@redhat.com>
28864 * config/msp430/msp430.opt: (mcpu): New option.
28865 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28866 (msp430_option_override): Parse target_cpu. If the MCU name
28867 matches a generic string, clear target_mcu.
28868 (msp430_attr): Allow numeric interrupt values up to 63.
28869 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28870 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28872 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28874 * config/msp430/msp430.md (popm): Use %J rather than %I.
28875 (addsi3): Use msp430_nonimmediate_operand for operand 2.
28876 (addhi_cy_i): Use immediate_operand for operand 2.
28877 * doc/invoke.texi: Document -mcpu option.
28879 2014-01-17 Richard Biener <rguenther@suse.de>
28881 PR rtl-optimization/38518
28882 * df.h (df_analyze_loop): Declare.
28883 * df-core.c: Include cfgloop.h.
28884 (df_analyze_1): Split out main part of df_analyze.
28885 (df_analyze): Adjust.
28886 (loop_inverted_post_order_compute): New function.
28887 (loop_post_order_compute): Likewise.
28888 (df_analyze_loop): New function avoiding whole-function
28889 postorder computes.
28890 * loop-invariant.c (find_defs): Use df_analyze_loop.
28891 (find_invariants): Adjust.
28892 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28894 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
28896 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28897 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28899 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28901 * ipa-ref.c (ipa_remove_stmt_references): Fix references
28902 traversal when removing references.
28904 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
28907 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28909 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
28911 PR middle-end/56791
28912 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28913 pushing a reload for an autoinc when we had previously reloaded an
28914 inner part of the address.
28916 2014-01-16 Jakub Jelinek <jakub@redhat.com>
28918 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28920 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28921 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28922 when not giving up or versioning for alias only because of
28924 (vect_analyze_data_ref_dependences): Set to true.
28925 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28927 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28928 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28931 PR middle-end/58344
28932 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28935 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28936 operand 0 predicate for gathers, use a new pseudo as subtarget.
28938 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28940 PR middle-end/59609
28941 * lra-constraints.c (process_alt_operands): Add printing debug info.
28942 Check absence of input/output reloads for matched operands too.
28944 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28946 PR rtl-optimization/59835
28947 * ira.c (ira_init_register_move_cost): Increase cost for
28950 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
28952 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28954 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
28957 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28958 non-register objects. Use gen_(high/low)part more consistently.
28961 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
28964 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28965 endian support, remove tests for WORDS_BIG_ENDIAN.
28966 (p8_mfvsrd_3_<mode>): Likewise.
28967 (reload_gpr_from_vsx<mode>): Likewise.
28968 (reload_gpr_from_vsxsf): Likewise.
28969 (p8_mfvsrd_4_disf): Likewise.
28971 2014-01-16 Richard Biener <rguenther@suse.de>
28973 PR rtl-optimization/46590
28974 * lcm.c (compute_antinout_edge): Use postorder iteration.
28975 (compute_laterin): Use inverted postorder iteration.
28977 2014-01-16 Nick Clifton <nickc@redhat.com>
28979 PR middle-end/28865
28980 * varasm.c (output_constant): Return the number of bytes actually
28982 (output_constructor_array_range): Update the field size with the
28983 number of bytes emitted by output_constant.
28984 (output_constructor_regular_field): Likewise. Also do not
28985 complain if the total number of bytes emitted is now greater
28986 than the expected fieldpos.
28987 * output.h (output_constant): Update prototype and descriptive comment.
28989 2014-01-16 Marek Polacek <polacek@redhat.com>
28991 PR middle-end/59827
28992 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28993 it is error_mark_node.
28995 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
28997 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28998 VALID_AVX256_REG_OR_OI_MODE.
29000 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
29002 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
29003 current procedure should be profiled.
29005 2014-01-15 Andrew Pinski <apinski@cavium.com>
29007 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
29008 of moving from/to the STACK_REG register class.
29010 2014-01-15 Richard Henderson <rth@redhat.com>
29013 * reginfo.c (global_regs_decl): Globalize.
29014 * rtl.h (global_regs_decl): Declare.
29015 * ira.c (do_reload): Diagnose frame_pointer_needed and it
29016 reserved via global_regs.
29018 2014-01-15 Teresa Johnson <tejohnson@google.com>
29020 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
29022 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
29024 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
29025 and vmulosh rather than call gen_vec_widen_smult_*.
29026 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
29027 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29028 (vec_widen_smult_even_v16qi): Likewise.
29029 (vec_widen_umult_even_v8hi): Likewise.
29030 (vec_widen_smult_even_v8hi): Likewise.
29031 (vec_widen_umult_odd_v16qi): Likewise.
29032 (vec_widen_smult_odd_v16qi): Likewise.
29033 (vec_widen_umult_odd_v8hi): Likewise.
29034 (vec_widen_smult_odd_v8hi): Likewise.
29035 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
29036 vmuloub rather than call gen_vec_widen_umult_*.
29037 (vec_widen_umult_lo_v16qi): Likewise.
29038 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
29039 vmulosb rather than call gen_vec_widen_smult_*.
29040 (vec_widen_smult_lo_v16qi): Likewise.
29041 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
29042 rather than call gen_vec_widen_umult_*.
29043 (vec_widen_umult_lo_v8hi): Likewise.
29044 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
29045 rather than call gen_vec_widen_smult_*.
29046 (vec_widen_smult_lo_v8hi): Likewise.
29048 2014-01-15 Jeff Law <law@redhat.com>
29050 PR tree-optimization/59747
29051 * ree.c (find_and_remove_re): Properly handle case where a second
29052 eliminated extension requires widening a copy created for elimination
29053 of a prior extension.
29054 (combine_set_extension): Ensure that the number of hard regs needed
29055 for a destination register does not change when we widen it.
29057 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29059 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
29060 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
29061 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
29062 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
29063 (avr-*-rtems*): Likewise.
29064 (bfin*-rtems*): Likewise.
29065 (moxie-*-rtems*): Likewise.
29066 (h8300-*-rtems*): Likewise.
29067 (i[34567]86-*-rtems*): Likewise.
29068 (lm32-*-rtems*): Likewise.
29069 (m32r-*-rtems*): Likewise.
29070 (m68k-*-rtems*): Likewise.
29071 (microblaze*-*-rtems*): Likewise.
29072 (mips*-*-rtems*): Likewise.
29073 (powerpc-*-rtems*): Likewise.
29074 (sh-*-rtems*): Likewise.
29075 (sparc-*-rtems*): Likewise.
29076 (sparc64-*-rtems*): Likewise.
29077 (v850-*-rtems*): Likewise.
29078 (m32c-*-rtems*): Likewise.
29080 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
29082 PR rtl-optimization/59511
29083 * ira.c (ira_init_register_move_cost): Use memory costs for some
29084 cases of register move cost calculations.
29085 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
29086 instead of BB frequency.
29087 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
29088 * lra-assigns.c (find_hard_regno_for): Ditto.
29090 2014-01-15 Richard Biener <rguenther@suse.de>
29092 PR tree-optimization/59822
29093 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
29094 (vectorizable_load): Use it to hoist defs of uses of invariant
29095 loads out of the loop.
29097 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
29098 Kugan Vivekanandarajah <kuganv@linaro.org>
29101 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
29104 2014-01-15 Richard Biener <rguenther@suse.de>
29106 PR rtl-optimization/59802
29107 * lcm.c (compute_available): Use inverted postorder to seed
29108 the initial worklist.
29110 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29113 * config/s390/s390.c (s390_preferred_reload_class): Don't return
29114 ADDR_REGS for invalid symrefs in non-PIC code.
29116 2014-01-15 Jakub Jelinek <jakub@redhat.com>
29119 * builtins.c (determine_block_size): Initialize *probable_max_size
29120 even if len_rtx is CONST_INT.
29122 2014-01-14 Andrew Pinski <apinski@cavium.com>
29124 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
29125 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
29126 (cortexa53_tunings): Likewise.
29127 (aarch64_sched_issue_rate): New function.
29128 (TARGET_SCHED_ISSUE_RATE): Define.
29130 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29132 * ira-costs.c (find_costs_and_classes): Add missed
29133 ira_init_register_move_cost_if_necessary.
29135 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
29138 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
29140 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
29143 * config/i386/i386.c (type_natural_mode): Add a bool parameter
29144 to indicate if type is used for function return value. Warn ABI
29145 change if the vector mode isn't available for function return value.
29146 (ix86_function_arg_advance): Pass false to type_natural_mode.
29147 (ix86_function_arg): Likewise.
29148 (ix86_gimplify_va_arg): Likewise.
29149 (function_arg_32): Don't warn ABI change.
29150 (ix86_function_value): Pass true to type_natural_mode.
29151 (ix86_return_in_memory): Likewise.
29152 (ix86_struct_value_rtx): Removed.
29153 (TARGET_STRUCT_VALUE_RTX): Likewise.
29155 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29157 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29158 converting a conditional jump into a conditional return.
29160 2014-01-14 Richard Biener <rguenther@suse.de>
29162 PR tree-optimization/58921
29163 PR tree-optimization/59006
29164 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29165 hoisting invariant stmts.
29166 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29167 invariant loads on the preheader edge if possible.
29169 2014-01-14 Joey Ye <joey.ye@arm.com>
29171 * doc/plugin.texi (Building GCC plugins): Update to C++.
29173 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29175 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29176 (_mm_rcp28_round_ss): Ditto.
29177 (_mm_rsqrt28_round_sd): Ditto.
29178 (_mm_rsqrt28_round_ss): Ditto.
29179 (_mm_rcp28_sd): Ditto.
29180 (_mm_rcp28_ss): Ditto.
29181 (_mm_rsqrt28_sd): Ditto.
29182 (_mm_rsqrt28_ss): Ditto.
29183 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29184 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29185 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29186 (IX86_BUILTIN_RCP28SD): Ditto.
29187 (IX86_BUILTIN_RCP28SS): Ditto.
29188 (IX86_BUILTIN_RSQRT28SD): Ditto.
29189 (IX86_BUILTIN_RSQRT28SS): Ditto.
29190 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29191 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29192 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29193 (ix86_expand_special_args_builtin): Expand new FTYPE.
29194 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29195 (srcp14<mode>): Make insn unary.
29196 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29197 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29198 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29199 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29200 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29201 Fix rounding: make it SAE only.
29202 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29204 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29206 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29207 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29208 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29209 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29210 (round_saeonly_mask_scalar_operand4): Ditto.
29211 (round_saeonly_mask_scalar_op3): Ditto.
29212 (round_saeonly_mask_scalar_op4): Ditto.
29214 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29216 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29217 Implement -maltivec=be for vec_insert and vec_extract.
29219 2014-01-10 DJ Delorie <dj@redhat.com>
29221 * config/msp430/msp430.md (call_internal): Don't allow memory
29222 references with SP as the base register.
29223 (call_value_internal): Likewise.
29224 * config/msp430/constraints.md (Yc): New. For memory references
29225 that don't use SP as a base register.
29227 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29228 "an integer without a # prefix"
29229 * config/msp430/msp430.md (epilogue_helper): Use it.
29231 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29234 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29235 AVX512F gather builtins.
29236 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29237 on gather decls with INTEGER_TYPE masktype.
29238 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29239 directly into the builtin rather than hoisting it before loop.
29241 PR tree-optimization/59387
29242 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29243 (scev_const_prop): If folded_casts and type has undefined overflow,
29244 use force_gimple_operand instead of force_gimple_operand_gsi and
29245 for each added stmt if it is assign with
29246 arith_code_with_undefined_signed_overflow, call
29247 rewrite_to_defined_overflow.
29248 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29249 gimple-fold.h instead.
29250 (arith_code_with_undefined_signed_overflow,
29251 rewrite_to_defined_overflow): Moved to ...
29252 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29253 rewrite_to_defined_overflow): ... here. No longer static.
29254 Include gimplify-me.h.
29255 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29256 rewrite_to_defined_overflow): New prototypes.
29258 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29260 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29262 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29264 * builtins.c (get_object_alignment_2): Minor tweak.
29265 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29267 2014-01-13 Christian Bruel <christian.bruel@st.com>
29269 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29270 optimized non constant lengths.
29272 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29275 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29276 load as __atomic_load_N if possible.
29278 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29280 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29282 (rs6000_expand_builtin): Adjust call.
29284 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29287 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29288 * config/rs6000/rs6000.c: Include target-globals.h.
29289 (rs6000_set_current_function): Instead of doing target_reinit
29290 unconditionally, use save_target_globals_default_opts and
29291 restore_target_globals.
29293 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29295 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29296 (rs6000_expand_builtin): Handle mffs and mtfsf.
29297 (rs6000_init_builtins): Define mffs and mtfsf.
29298 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29299 (rs6000_mffs): New pattern.
29300 (rs6000_mtfsf): New pattern.
29302 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29304 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29305 Start narrowing with START. Apply candidate-use pair
29306 and check overall cost in narrowing.
29307 (iv_ca_prune): Pass new argument.
29309 2014-01-10 Jeff Law <law@redhat.com>
29311 PR middle-end/59743
29312 * ree.c (combine_reaching_defs): Ensure the defining statement
29313 occurs before the extension when optimizing extensions with
29314 different source and destination hard registers.
29316 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29319 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29320 vtables into the type inheritance graph.
29322 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29324 PR rtl-optimization/59754
29325 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29326 modes in the REGNO != REGNO case.
29328 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29330 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29332 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29334 PR tree-optimization/59745
29335 * tree-predcom.c (tree_predictive_commoning_loop): Call
29336 free_affine_expand_cache if giving up because components is NULL.
29338 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29339 GC in payload of target_globals struct instead of allocating them on
29340 the heap and the larger structs separately using GC.
29341 * target-globals.h (struct target_globals): Make regs, hard_regs,
29342 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29343 of GTY((skip)) and change type to void *.
29344 (reset_target_globals): Cast loads from those fields to corresponding
29347 2014-01-10 Steve Ellcey <sellcey@mips.com>
29350 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29351 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29352 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29354 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29357 * aarch64-modes.def (CC_Zmode): New flags mode.
29358 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29359 represents an equality.
29360 (aarch64_get_condition_code): Handle CC_Zmode.
29361 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29363 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29365 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29366 extraction in good case.
29368 2014-01-10 Richard Biener <rguenther@suse.de>
29370 PR tree-optimization/59374
29371 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29372 checking after SLP discovery. Mark stmts not participating
29373 in any SLP instance properly.
29375 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29377 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29378 when handling a SET rtx.
29380 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29382 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29383 (cortex-a57): Likewise.
29384 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29386 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29388 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29389 non-iwmmxt builtins.
29391 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29395 * ipa-devirt.c record_target_from_binfo): Take as argument
29396 stack of binfos and lookup matching one for virtual inheritance.
29397 (possible_polymorphic_call_targets_1): Update.
29399 2014-01-10 Huacai Chen <chenhc@lemote.com>
29401 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29402 kernel strings for Loongson-2E/2F/3A.
29404 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29406 PR middle-end/59670
29407 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29408 is_gimple_call before calling gimple_call_internal_p.
29410 2014-01-09 Steve Ellcey <sellcey@mips.com>
29412 * Makefile.in (TREE_FLOW_H): Remove.
29413 (TREE_SSA_H): Add file names from tree-flow.h.
29414 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29415 * tree.h: Remove tree-flow.h reference.
29416 * hash-table.h: Remove tree-flow.h reference.
29417 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29418 reference with tree-ssa-loop.h.
29420 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29422 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29423 default element-order behavior for -maltivec.
29424 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29426 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29427 when targeting big endian, at least for now.
29428 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29430 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29432 PR middle-end/47735
29433 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29434 var satisfies use_register_for_decl, just take into account type
29435 alignment, rather than decl alignment.
29437 PR tree-optimization/59622
29438 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29439 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29440 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29441 Don't devirtualize for inplace at all. For targets.length () == 1,
29442 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29444 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29446 * config/i386/i386.md (cpu): Remove the unused btver1.
29448 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29450 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29452 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29455 * tree-core.h (struct target_globals): New forward declaration.
29456 (struct tree_target_option): Add globals field.
29457 * tree.h (TREE_TARGET_GLOBALS): Define.
29458 (prepare_target_option_nodes_for_pch): New prototype.
29459 * target-globals.h (struct target_globals): Define even if
29460 !SWITCHABLE_TARGET.
29461 * tree.c (prepare_target_option_node_for_pch,
29462 prepare_target_option_nodes_for_pch): New functions.
29463 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29464 * config/i386/i386.c: Include target-globals.h.
29465 (ix86_set_current_function): Instead of doing target_reinit
29466 unconditionally, use save_target_globals_default_opts and
29467 restore_target_globals.
29469 2014-01-09 Richard Biener <rguenther@suse.de>
29471 PR tree-optimization/59715
29472 * tree-cfg.h (split_critical_edges): Declare.
29473 * tree-cfg.c (split_critical_edges): Export.
29474 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29476 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29478 * cfgexpand.c (expand_stack_vars): Optionally disable
29479 asan stack protection.
29480 (expand_used_vars): Likewise.
29481 (partition_stack_vars): Likewise.
29482 * asan.c (asan_emit_stack_protection): Optionally disable
29483 after return stack usage.
29484 (instrument_derefs): Optionally disable memory access instrumentation.
29485 (instrument_builtin_call): Likewise.
29486 (instrument_strlen_call): Likewise.
29487 (asan_protect_global): Optionally disable global variables protection.
29488 * doc/invoke.texi: Added doc for new options.
29489 * params.def: Added new options.
29490 * params.h: Likewise.
29492 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29494 PR rtl-optimization/59724
29495 * ifcvt.c (cond_exec_process_if_block): Don't call
29496 flow_find_head_matching_sequence with 0 longest_match.
29497 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29498 non-active insns if !stop_after.
29499 (try_head_merge_bb): Revert 2014-01-07 changes.
29501 2014-01-08 Jeff Law <law@redhat.com>
29503 * ree.c (get_sub_rtx): New function, extracted from...
29504 (merge_def_and_ext): Here.
29505 (combine_reaching_defs): Use get_sub_rtx.
29507 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29509 * cgraph.h (varpool_variable_node): Do not choke on null node.
29511 2014-01-08 Catherine Moore <clm@codesourcery.com>
29513 * config/mips/mips.md (simple_return): Attempt to use JRC
29515 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
29517 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29519 PR rtl-optimization/59137
29520 * reorg.c (steal_delay_list_from_target): Call update_block for
29522 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
29524 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29526 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
29527 two duplicate entries.
29529 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29532 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
29534 * config/mips/mips.c (mips_truncated_op_cost): New function.
29535 (mips_rtx_costs): Adjust test for BADDU.
29536 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
29538 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
29540 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
29541 (*baddu_si): ...this new pattern.
29543 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29546 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
29548 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
29550 PR middle-end/57748
29551 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
29553 (expand_expr, expand_normal): Adjust.
29554 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
29555 inner_reference_p. Use inner_reference_p to expand inner references.
29556 (store_expr): Adjust.
29557 * cfgexpand.c (expand_call_stmt): Adjust.
29559 2014-01-08 Rong Xu <xur@google.com>
29561 * gcov-io.c (gcov_var): Move from gcov-io.h.
29562 (gcov_position): Ditto.
29563 (gcov_is_error): Ditto.
29564 (gcov_rewrite): Ditto.
29565 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
29566 only part to libgcc/libgcov.h.
29568 2014-01-08 Marek Polacek <polacek@redhat.com>
29570 PR middle-end/59669
29571 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
29573 2014-01-08 Marek Polacek <polacek@redhat.com>
29576 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
29578 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29580 PR rtl-optimization/59649
29581 * stor-layout.c (get_mode_bounds): For BImode return
29582 0 and STORE_FLAG_VALUE.
29584 2014-01-08 Richard Biener <rguenther@suse.de>
29586 PR middle-end/59630
29587 * gimple.h (is_gimple_builtin_call): Remove.
29588 (gimple_builtin_call_types_compatible_p): New.
29589 (gimple_call_builtin_p): New overload.
29590 * gimple.c (is_gimple_builtin_call): Remove.
29591 (validate_call): Rename to ...
29592 (gimple_builtin_call_types_compatible_p): ... this and export. Also
29593 check return types.
29594 (validate_type): New static function.
29595 (gimple_call_builtin_p): New overload and adjust.
29596 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
29597 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
29598 (gimple_fold_stmt_to_constant_1): Likewise.
29599 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
29601 2014-01-08 Richard Biener <rguenther@suse.de>
29603 PR middle-end/59471
29604 * gimplify.c (gimplify_expr): Gimplify register-register type
29605 VIEW_CONVERT_EXPRs to separate stmts.
29607 2014-01-07 Jeff Law <law@redhat.com>
29609 PR middle-end/53623
29610 * ree.c (combine_set_extension): Handle case where source
29611 and destination registers in an extension insn are different.
29612 (combine_reaching_defs): Allow source and destination registers
29613 in extension to be different under limited circumstances.
29614 (add_removable_extension): Remove restriction that the
29615 source and destination registers in the extension are the same.
29616 (find_and_remove_re): Emit a copy from the extension's
29617 destination to its source after the defining insn if
29618 the source and destination registers are different.
29620 PR middle-end/59285
29621 * ifcvt.c (merge_if_block): If we are merging a block with more than
29622 one successor with a block with no successors, remove any BARRIER
29623 after the second block.
29625 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
29627 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
29629 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
29632 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
29633 for 14-bit register offsets when INT14_OK_STRICT is false.
29635 2014-01-07 Roland Stigge <stigge@antcom.de>
29636 Michael Meissner <meissner@linux.vnet.ibm.com>
29639 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
29640 Only check TFmode for SPE constants. Don't check TImode or TDmode.
29642 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
29644 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
29647 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
29649 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
29650 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
29651 rtx is const0_rtx or not.
29653 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
29656 * target-globals.c (save_target_globals): Remove this_fn_optab
29658 * toplev.c: Include optabs.h.
29659 (target_reinit): Temporarily restore the global options if another
29660 set of options are in force.
29662 2014-01-07 Jakub Jelinek <jakub@redhat.com>
29664 PR rtl-optimization/58668
29665 * cfgcleanup.c (flow_find_cross_jump): Don't count
29666 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
29667 to determine what is counted.
29668 (flow_find_head_matching_sequence): Use active_insn_p to determine
29670 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
29672 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
29673 determine what is counted.
29675 PR tree-optimization/59643
29676 * tree-predcom.c (split_data_refs_to_components): If one dr is
29677 read and one write, determine_offset fails and the write isn't
29678 in the bad component, just put the read into the bad component.
29680 2014-01-07 Mike Stump <mikestump@comcast.net>
29681 Jakub Jelinek <jakub@redhat.com>
29684 * tree-core.h (struct tree_optimization_option): Change optabs
29685 type from unsigned char * to void *.
29686 * optabs.c (init_tree_optimization_optabs): Adjust
29687 TREE_OPTIMIZATION_OPTABS initialization.
29689 2014-01-06 Jakub Jelinek <jakub@redhat.com>
29692 * config/i386/i386.h (struct machine_function): Add
29693 no_drap_save_restore field.
29694 * config/i386/i386.c (ix86_save_reg): Use
29695 !cfun->machine->no_drap_save_restore instead of
29696 crtl->stack_realign_needed.
29697 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
29698 this function clears frame_pointer_needed. Set
29699 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
29700 and DRAP reg is needed.
29702 2014-01-06 Marek Polacek <polacek@redhat.com>
29705 * doc/implement-c.texi: Mention that other integer types are
29706 permitted as bit-field types in strictly conforming mode.
29708 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
29710 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
29711 is newly allocated.
29713 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
29715 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
29717 2014-01-06 Martin Jambor <mjambor@suse.cz>
29720 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
29722 * ipa-prop.c (ipa_print_node_params): Fix indentation.
29724 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
29728 * var-tracking.c (add_stores): Preserve the value of the source even if
29729 we don't record the store.
29731 2014-01-06 Terry Guo <terry.guo@arm.com>
29733 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
29735 2014-01-05 Iain Sandoe <iain@codesourcery.com>
29738 * config/darwin.c (darwin_function_section): Adjust return values to
29739 correspond to optimisation changes made in r206070.
29741 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
29743 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
29744 from prefetch_block tune setting.
29745 (nocona_cost): Correct size of prefetch block to 64.
29747 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
29749 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
29750 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
29751 used to save the static chain register in the computation of the offset
29752 from which the FP registers need to be restored.
29754 2014-01-04 Jakub Jelinek <jakub@redhat.com>
29756 PR tree-optimization/59519
29757 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
29758 ICE if get_current_def (current_new_name) is already non-NULL, as long
29759 as it is a phi result of some other phi in *new_exit_bb that has
29762 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
29763 or vmovdqu* for misaligned_operand.
29764 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29765 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
29766 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
29767 aligned_mem for AVX512F masked aligned load and store builtins and for
29768 non-temporal moves.
29770 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
29772 PR tree-optimization/59651
29773 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29774 Address range for negative step should be added by TYPE_SIZE_UNIT.
29776 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
29778 * config/m68k/m68k.c (handle_move_double): Handle pushes with
29779 overlapping registers also for registers other than the stack pointer.
29781 2014-01-03 Marek Polacek <polacek@redhat.com>
29784 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
29787 2014-01-03 Jakub Jelinek <jakub@redhat.com>
29790 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29793 * config/i386/i386.md (MODE_SIZE): New mode attribute.
29794 (push splitter): Use <P:MODE_SIZE> instead of
29795 GET_MODE_SIZE (<P:MODE>mode).
29796 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29797 (mov -1, reg peephole2): Likewise.
29798 * config/i386/sse.md (*mov<mode>_internal,
29799 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29800 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29801 *<code><mode>3, *andnot<mode>3<mask_name>,
29802 <mask_codefor><code><mode>3<mask_name>): Likewise.
29803 * config/i386/subst.md (mask_mode512bit_condition,
29804 sd_mask_mode512bit_condition): Likewise.
29806 2014-01-02 Xinliang David Li <davidxl@google.com>
29808 PR tree-optimization/59303
29809 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29810 (dump_predicates): Better output format.
29811 (pred_equal_p): New function.
29812 (is_neq_relop_p): Ditto.
29813 (is_neq_zero_form_p): Ditto.
29814 (pred_expr_equal_p): Ditto.
29815 (pred_neg_p): Ditto.
29816 (simplify_pred): Ditto.
29817 (simplify_preds_2): Ditto.
29818 (simplify_preds_3): Ditto.
29819 (simplify_preds_4): Ditto.
29820 (simplify_preds): Ditto.
29821 (push_pred): Ditto.
29822 (push_to_worklist): Ditto.
29823 (get_pred_info_from_cmp): Ditto.
29824 (is_degenerated_phi): Ditto.
29825 (normalize_one_pred_1): Ditto.
29826 (normalize_one_pred): Ditto.
29827 (normalize_one_pred_chain): Ditto.
29828 (normalize_preds): Ditto.
29829 (normalize_cond_1): Remove function.
29830 (normalize_cond): Ditto.
29831 (is_gcond_subset_of): Ditto.
29832 (is_subset_of_any): Ditto.
29833 (is_or_set_subset_of): Ditto.
29834 (is_and_set_subset_of): Ditto.
29835 (is_norm_cond_subset_of): Ditto.
29836 (pred_chain_length_cmp): Ditto.
29837 (convert_control_dep_chain_into_preds): Type change.
29838 (find_predicates): Ditto.
29839 (find_def_preds): Ditto.
29840 (destroy_predicates_vecs): Ditto.
29841 (find_matching_predicates_in_rest_chains): Ditto.
29842 (use_pred_not_overlap_with_undef_path_pred): Ditto.
29843 (is_pred_expr_subset): Ditto.
29844 (is_pred_chain_subset_of): Ditto.
29845 (is_included_in): Ditto.
29846 (is_superset_of): Ditto.
29848 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29850 Update copyright years.
29852 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29854 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29855 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29856 config/arc/arc.md, config/arc/arc.opt,
29857 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29858 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29859 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29860 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29861 config/linux-protos.h, config/linux.c, config/winnt-c.c,
29862 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29863 vtable-verify.c, vtable-verify.h: Use the standard form for the
29866 2014-01-02 Tobias Burnus <burnus@net-b.de>
29868 * gcc.c (process_command): Update copyright notice dates.
29869 * gcov-dump.c: Ditto.
29871 * doc/cpp.texi: Bump @copying's copyright year.
29872 * doc/cppinternals.texi: Ditto.
29873 * doc/gcc.texi: Ditto.
29874 * doc/gccint.texi: Ditto.
29875 * doc/gcov.texi: Ditto.
29876 * doc/install.texi: Ditto.
29877 * doc/invoke.texi: Ditto.
29879 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29881 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29883 2014-01-01 Jakub Jelinek <jakub@redhat.com>
29885 * config/i386/sse.md (*mov<mode>_internal): Guard
29886 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29888 PR rtl-optimization/59647
29889 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29890 new_rtx into UNSIGNED_FLOAT rtxes.
29892 Copyright (C) 2014 Free Software Foundation, Inc.
29894 Copying and distribution of this file, with or without modification,
29895 are permitted in any medium without royalty provided the copyright
29896 notice and this notice are preserved.