[ARM][2/7] Convert FP mnemonics to UAL | add/sub/div/abs patterns.
[gcc.git] / gcc / ChangeLog
1 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
4 (*absdf2_vfp): Likewise.
5 (*negsf2_vfp): Likewise.
6 (*negdf2_vfp): Likewise.
7 (*addsf3_vfp): Likewise.
8 (*adddf3_vfp): Likewise.
9 (*subsf3_vfp): Likewise.
10 (*subdf3_vfp): Likewise.
11 (*divsf3_vfp): Likewise.
12 (*divdf3_vfp): Likewise.
13
14 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15
16 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
17 multiple.
18 (arm_print_operand): Don't convert real values to decimal
19 representation in default case.
20 (fp_immediate_constant): Delete.
21 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
22 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
23 syntax.
24 (*thumb2_movsi_vfp): Likewise.
25 (*movdi_vfp): Likewise.
26 (*movdi_vfp_cortexa8): Likewise.
27 (*movhf_vfp_neon): Likewise.
28 (*movhf_vfp): Likewise.
29 (*movsf_vfp): Likewise.
30 (*thumb2_movsf_vfp): Likewise.
31 (*movdf_vfp): Likewise.
32 (*thumb2_movdf_vfp): Likewise.
33 (*movsfcc_vfp): Likewise.
34 (*thumb2_movsfcc_vfp): Likewise.
35 (*movdfcc_vfp): Likewise.
36 (*thumb2_movdfcc_vfp): Likewise.
37
38 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
39
40 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
41 (-mtune): Likewise.
42 (-mcpu): Likewise.
43
44 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45
46 PR target/61749
47 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
48 Use qualifier_immediate for last operand. Rename to...
49 (aarch64_types_ternop_lane_qualifiers): ... This.
50 (TYPES_QUADOP): Rename to...
51 (TYPES_TERNOP_LANE): ... This.
52 (aarch64_simd_expand_args): Return const0_rtx when encountering user
53 error. Change return of 0 to return of NULL_RTX.
54 (aarch64_crc32_expand_builtin): Likewise.
55 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
56 ICE when expanding unknown builtin.
57 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
58 TERNOP_LANE qualifiers.
59 (sqdmlsl_lane): Likewise.
60 (sqdmlal_laneq): Likewise.
61 (sqdmlsl_laneq): Likewise.
62 (sqdmlal2_lane): Likewise.
63 (sqdmlsl2_lane): Likewise.
64 (sqdmlal2_laneq): Likewise.
65 (sqdmlsl2_laneq): Likewise.
66
67 2014-09-09 Nick Clifton <nickc@redhat.com>
68
69 * doc/invoke.texi (Optimization Options): Add missing @gol to the
70 end of a line.
71 (S/390 and zSeries Options): Remove superfluous word from the
72 description of the -mhotpatch option.
73
74 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
75
76 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
77 * ira.c: #include "shrink-wrap.h"
78 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
79 * ifcvt.c: #include "shrink-wrap.h"
80 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
81
82 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
83
84 * common/config/picochip/picochip-common.c: Remove.
85 * config.gcc: Remove support for picochip.
86 * config/picochip/constraints.md: Remove.
87 * config/picochip/dfa_space.md: Remove.
88 * config/picochip/dfa_speed.md: Remove.
89 * config/picochip/picochip-protos.h: Remove.
90 * config/picochip/picochip.c: Remove.
91 * config/picochip/picochip.h: Remove.
92 * config/picochip/picochip.md: Remove.
93 * config/picochip/picochip.opt: Remove.
94 * config/picochip/predicates.md: Remove.
95 * config/picochip/t-picochip: Remove.
96 * doc/md.texi: Don't document picochi.
97
98 2014-09-08 David Malcolm <dmalcolm@redhat.com>
99
100 * basic-block.h (control_flow_insn_p): Strengthen param from
101 const_rtx to const rtx_insn *.
102 * cfgbuild.c (control_flow_insn_p): Likewise.
103
104 2014-09-08 David Malcolm <dmalcolm@redhat.com>
105
106 * gcse.c (modify_mem_list): Strengthen this variable from
107 vec<rtx> * to vec<rtx_insn *> *.
108 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
109 vec<rtx_insn *>.
110 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
111 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
112 (record_last_mem_set_info): Strengthen param "insn" from rtx to
113 rtx_insn *.
114 (record_last_set_info): Likewise for local "last_set_insn".
115
116 2014-09-08 DJ Delorie <dj@redhat.com>
117
118 * doc/invoke.texi (MSP430 Options): Add -minrt.
119
120 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
121
122 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
123 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
124 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
125 handling SH_SPLAT.
126 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
127 of extracted lane.
128 (adjust_splat): New function.
129 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
130 (dump_swap_insn_table): Add case for SH_SPLAT.
131
132 2014-09-08 Richard Biener <rguenther@suse.de>
133
134 PR ipa/63196
135 * tree-inline.c (copy_loops): The source loop header should
136 always be non-NULL.
137 (tree_function_versioning): If loops need fixup after removing
138 unreachable blocks fix them.
139 * omp-low.c (simd_clone_adjust): Do not add incr block to
140 loop under construction.
141
142 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
143
144 * config/aarch64/aarch64-builtins.c
145 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
146
147 2014-09-08 Joseph Myers <joseph@codesourcery.com>
148
149 * config/i386/cygming.h (TF_SIZE): Remove.
150 * config/i386/darwin.h (TF_SIZE): Remove.
151 * config/i386/dragonfly.h (TF_SIZE): Remove.
152 * config/i386/freebsd.h (TF_SIZE): Remove.
153 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
154 * config/i386/openbsdelf.h (TF_SIZE): Remove.
155 * config/i386/sol2.h (TF_SIZE): Remove.
156 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
157 * config/ia64/linux.h (TF_SIZE): Remove.
158 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
159 * doc/tm.texi: Regenerate.
160 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
161
162 2014-09-08 Joseph Myers <joseph@codesourcery.com>
163
164 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
165 Remove.
166 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
167 Remove.
168 * doc/tm.texi: Regenerate.
169 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
170 Poison.
171 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
172 * config/cris/cris.h (__make_dp): Remove.
173
174 2014-09-08 Richard Biener <rguenther@suse.de>
175
176 PR bootstrap/63204
177 * cfgloop.c (mark_loop_for_removal): Track former header
178 unconditionally.
179 * cfgloop.h (struct loop): Add former_header member unconditionally.
180 * loop-init.c (fix_loop_structure): Enable bogus loop removal
181 diagnostic unconditionally.
182
183 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
184
185 PR target/63190
186 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
187 constraint for operand0 and remove write only modifier from operand3.
188
189 2014-09-07 Richard Sandiford <rdsandiford@googlemail.com>
190
191 PR rtl-optimization/62208
192 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
193 rather than const0_rtx in eq/ne-xor simplifications.
194
195 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
196
197 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
198 (arc_output_mi_thunk): Likewise.
199
200 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
201 arguments to silence bogus warning.
202
203 2014-09-06 Richard Sandiford <rdsandiford@googlemail.com>
204
205 PR middle-end/63171
206 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
207
208 2014-09-06 Tom de Vries <tom@codesourcery.com>
209
210 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
211 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
212 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
213
214 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
215
216 PR target/63188
217 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
218 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
219
220 2014-09-05 Easwaran Raman <eraman@google.com>
221
222 PR rtl-optimization/62146
223 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
224 hoisted instruction unconditional.
225
226 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
227
228 PR target/63187
229 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
230 Do not allow any_mask_operand for operands[2].
231 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
232
233 2014-09-05 David Malcolm <dmalcolm@redhat.com>
234
235 * config/arc/arc.c (arc_print_operand): Use insn method of
236 final_sequence for type-safety.
237 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
238 "insn" from rtx to rtx_insn *.
239 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
240 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
241 Likewise for locals "branch", "label".
242 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
243 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
244 (same_cmp_following_p): Likewise for locals "i2", "i3".
245 * config/sh/sh_optimize_sett_clrt.cc
246 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
247 param "cbranch_insn".
248 * function.c (convert_jumps_to_returns): Likewis for local "jump".
249 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
250 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
251 const rtx_insn *.
252 (condjump_p): Likewise.
253 (condjump_in_parallel_p): Likewise.
254 (pc_set): Likewise.
255 (any_uncondjump_p): Likewise.
256 (any_condjump_p): Likewise.
257 (condjump_label): Likewise.
258 (returnjump_p): Strengthen param "insn" from rtx to
259 const rtx_insn *.
260 (onlyjump_p): Strengthen param "insn" from const_rtx to
261 const rtx_insn *.
262 (jump_to_label_p): Likewise.
263 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
264 (invert_jump): Likewise.
265 * reorg.c (simplejump_or_return_p): Add checked cast when calling
266 simplejump_p.
267 (get_jump_flags): Strengthen param "insn" from rtx to
268 const rtx_insn *.
269 (get_branch_condition): Likewise.
270 (condition_dominates_p): Likewise.
271 (make_return_insns): Move declaration of local "pat" earlier, to
272 after we've handled NONJUMP_INSN_P and non-sequences, using its
273 methods to simplify the code and for type-safety.
274 * rtl.h (find_constant_src): Strengthen param from const_rtx to
275 const rtx_insn *.
276 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
277 (condjump_p): Strengthen param from const_rtx to
278 const rtx_insn *.
279 (any_condjump_p): Likewise.
280 (any_uncondjump_p): Likewise.
281 (pc_set): Likewise.
282 (condjump_label): Likewise.
283 (simplejump_p): Likewise.
284 (returnjump_p): Likewise.
285 (onlyjump_p): Likewise.
286 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
287 (invert_jump): Likewise.
288 (condjump_in_parallel_p): Strengthen param from const_rtx to
289 const rtx_insn *.
290 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
291 to const rtx_insn *.
292 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
293 to const rtx_insn *.
294 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
295
296 2014-09-05 David Malcolm <dmalcolm@redhat.com>
297
298 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
299 above the conditional, and convert the check on GET_CODE to a
300 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
301 the conditional. Simplify the conditional by using methods of
302 "trial_seq".
303
304 2014-09-05 David Malcolm <dmalcolm@redhat.com>
305
306 * haifa-sched.c (check_clobbered_conditions): Strengthen local
307 "link" from rtx to rtx_insn_list *, and use its methods for
308 clarity and type-safety.
309 (toggle_cancelled_flags): Likewise.
310 (restore_last_backtrack_point): Likewise.
311 (queue_to_ready): Use insn method of "link" in one place.
312 (schedule_block): Strengthen local "link" from rtx to
313 rtx_insn_list *, and use its methods for clarity and type-safety.
314
315 2014-09-05 David Malcolm <dmalcolm@redhat.com>
316
317 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
318 param "insn" from const_rtx to const rtx_insn *.
319 (sched_get_reverse_condition_uncached): Likewise.
320 (sched_get_condition_with_rev): Likewise.
321 (sched_has_condition_p): Likewise.
322 (sched_insns_conditions_mutex_p): Likewise for both params.
323 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
324 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
325 (setup_insn_reg_uses): Move local "list" to be more tightly
326 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
327 its methods for clarity and type-safety.
328 (sched_analyze_1): Strengthen local "pending" from rtx to
329 rtx_insn_list *, and local "pending_mem" from rtx to
330 rtx_expr_list *. Use methods of each for clarity and type-safety.
331 (sched_analyze_2): Likewise.
332 (sched_analyze_insn): Likewise.
333
334 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
335 param from const_rtx to const rtx_insn *.
336 (sched_insns_conditions_mutex_p): Likewise for both params.
337 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
338 param.
339
340 * system.h (CONST_CAST_RTX_INSN): New macro.
341
342 2014-09-05 David Malcolm <dmalcolm@redhat.com>
343
344 * recog.c (peep2_attempt): Strengthen return type from rtx to
345 rtx_insn *.
346 (peep2_update_life): Likewise for params "last", "prev", removing
347 a checked cast made redundant by this.
348 (peephole2_optimize): Likewise for local "last".
349
350 2014-09-05 David Malcolm <dmalcolm@redhat.com>
351
352 * basic-block.h (set_block_for_insn): Eliminate this macro in
353 favor of...
354 * rtl.h (set_block_for_insn): New inline function, imposing the
355 requirement that the "insn" param is an rtx_insn *.
356
357 2014-09-05 David Malcolm <dmalcolm@redhat.com>
358
359 * caller-save.c (setup_save_areas): Strengthen local "insn" from
360 rtx to rtx_insn *.
361 * final.c (get_call_reg_set_usage): Likewise for first param,
362 eliminating a checked cast.
363 * regs.h (get_call_reg_set_usage): Likewise for first param.
364 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
365 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
366 cast, replacing references to "x" with "call_insn" where
367 appropriate.
368 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
369 rtx_insn *, adding a checked cast.
370
371 2014-09-05 David Malcolm <dmalcolm@redhat.com>
372
373 * output.h (final_scan_insn): Strengthen first param from rtx to
374 rtx_insn *.
375
376 * final.c (final_scan_insn): Likewise, renaming it back from
377 "uncast_insn" to "insn", eliminating the checked cast.
378
379 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
380 "vec" with an rtx_sequence * "seq", taking a copy of
381 "final_sequence", and using methods of "seq" for clarity, and for
382 type-safety in the calls to final_scan_insn.
383 * config/mips/mips.c (mips_output_conditional_branch): Use methods
384 of "final_sequence" for clarity, and for type-safety in the call to
385 final_scan_insn.
386 * config/sh/sh.c (print_slot): Strengthen param from rtx to
387 rtx_sequence * and rename from "insn" to "seq".
388
389 2014-09-05 David Malcolm <dmalcolm@redhat.com>
390
391 * jump.c (delete_related_insns): Introduce a new local "table" by
392 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
393 get_labels method of "table" to simplify access to the labels in
394 the jump table.
395
396 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
397
398 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
399 f_minmaxs, f_minmaxd types.
400
401 2014-09-05 Richard Biener <rguenther@suse.de>
402
403 * cfgloop.c (mark_loop_for_removal): Record former header
404 when ENABLE_CHECKING.
405 * cfgloop.h (strut loop): Add former_header member when
406 ENABLE_CHECKING.
407 * loop-init.c (fix_loop_structure): Sanity check loops
408 marked for removal if they re-appeared.
409
410 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
411
412 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
413 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
414
415 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
416 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
417 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
418 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
419 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
420 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
421 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
422 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
423 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
424 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
425 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
426 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
427 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
428 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
429 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
430 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
431 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
432 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
433 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
434 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
435 with int{32,16,8}_t.
436
437 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
438
439 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
440 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
441 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
442 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
443 Remove temporary __asm__ and reimplement.
444
445 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
446
447 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
448 handling cmge, cmgt, cmeq, cmtst.
449
450 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
451 cmlt, cmgeu, cmgtu, cmtst): Remove.
452
453 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
454 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
455 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
456 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
457
458 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
459
460 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
461 TYPES_TST): Define.
462 (aarch64_fold_builtin): Update pattern for cmtst.
463
464 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
465 Declare.
466
467 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
468
469 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
470 Switch operands, separate out more cases, refactor.
471
472 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
473
474 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
475 argument; rename old version to...
476 (aarch64_const_vec_all_same_in_range_p): ...this.
477 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
478
479 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
480
481 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
482
483 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
484 Remove qualifier_const_pointer, update comment.
485
486 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
487
488 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
489
490 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
491
492 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
493 varargs with pointer parameter.
494 (aarch64_simd_expand_builtin): pass pointer into previous.
495
496 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
497
498 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
499 alus_ext.
500
501 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
502
503 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
504 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
505 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
506 Replace temporary asm with call to builtin.
507 (vrbit_p8, vrbitq_p8): New functions.
508
509 2014-09-05 Richard Biener <rguenther@suse.de>
510
511 * cfgloop.c (mark_loop_for_removal): New function.
512 * cfgloop.h (mark_loop_for_removal): Declare.
513 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
514 (merge_blocks): Likewise.
515 (duplicate_block): Likewise.
516 * except.c (sjlj_emit_dispatch_table): Likewise.
517 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
518 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
519 (thread_through_loop_header): Likewise.
520
521 2014-09-05 Richard Biener <rguenther@suse.de>
522
523 PR middle-end/63148
524 * fold-const.c (try_move_mult_to_index): Remove.
525 (fold_binary_loc): Do not call it.
526 * tree-data-ref.c (dr_analyze_indices): Strip conversions
527 from the base object again.
528
529 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
530
531 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
532 DImode.
533
534 2014-09-05 Bin Cheng <bin.cheng@arm.com>
535
536 PR target/55701
537 * config/arm/arm.md (setmem): New pattern.
538 * config/arm/arm-protos.h (struct tune_params): New fields.
539 (arm_gen_setmem): New prototype.
540 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
541 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
542 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
543 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
544 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
545 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
546 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
547 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
548 (arm_const_inline_cost): New function.
549 (arm_block_set_max_insns): New function.
550 (arm_block_set_non_vect_profit_p): New function.
551 (arm_block_set_vect_profit_p): New function.
552 (arm_block_set_unaligned_vect): New function.
553 (arm_block_set_aligned_vect): New function.
554 (arm_block_set_unaligned_non_vect): New function.
555 (arm_block_set_aligned_non_vect): New function.
556 (arm_block_set_vect, arm_gen_setmem): New functions.
557
558 2014-09-05 Bin Cheng <bin.cheng@arm.com>
559
560 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
561
562 2014-09-05 Bin Cheng <bin.cheng@arm.com>
563
564 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
565
566 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
567
568 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
569 an rtx.
570 * valtrack.h: Adjust.
571
572 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
573
574 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
575 an rtx.
576 (emit_jump_insn_before_noloc): Likewise.
577 (emit_call_insn_before_noloc): Likewise.
578 (emit_label_before): Likewise.
579 (emit_label_after): Likewise.
580 (emit_insn_before_setloc): Likewise.
581 (emit_jump_insn_before_setloc): Likewise.
582 (emit_call_insn_before_setloc): Likewise.
583 (emit_call_insn_before): Likewise.
584 * rtl.h: Adjust.
585
586 2014-09-05 David Malcolm <dmalcolm@redhat.com>
587
588 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
589 rtx_insn *, eliminating a checked cast.
590
591 2014-09-05 David Malcolm <dmalcolm@redhat.com>
592
593 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
594 const_rtx to const rtx_insn *.
595 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
596 cast.
597
598 2014-09-05 David Malcolm <dmalcolm@redhat.com>
599
600 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
601 fixup_args_size_notes.
602 * expr.c (fixup_args_size_notes): Strengthen first two params from
603 rtx to rtx_insn *, eliminating a checked cast.
604 * rtl.h (fixup_args_size_notes): Strengthen first two params from
605 rtx to rtx_insn *.
606
607 2014-09-05 David Malcolm <dmalcolm@redhat.com>
608
609 * haifa-sched.c (get_ready_element): Strengthen return type from
610 rtx to rtx_insn *.
611 * sched-int.h (get_ready_element): Likewise.
612
613 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
614
615 PR target/63165
616 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
617 indexed_or_indirect_operand instead of memory_operand.
618 (floatsi<mode>2_lfiwzx_mem): Ditto.
619
620 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
621
622 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
623 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
624 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
625
626 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
627
628 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
629 rtx.
630 (get_last_nonnote_insn): Likewise.
631 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
632 * resource.c (find_basic_block): Likewise.
633 * rtl.h: Adjust.
634 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
635 const_rtx.
636
637 2014-09-04 David Malcolm <dmalcolm@redhat.com>
638
639 * genattr.c (main): Within the prototype of insn_latency written
640 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
641 * genautomata.c (output_internal_maximal_insn_latency_func):
642 Within the implementation of insn_latency written out to
643 insn-automata.c, strengthen both params from rtx to rtx_insn *,
644 eliminating a pair of checked casts.
645
646 2014-09-04 David Malcolm <dmalcolm@redhat.com>
647
648 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
649 rtx_insn *.
650
651 * rtl.h (eh_returnjump_p): Likewise.
652
653 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
654
655 * Makefile.in (TAGS): Handle constructs in timevar.def.
656
657 2014-09-04 Guozhi Wei <carrot@google.com>
658
659 PR target/62040
660 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
661 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
662 it into two patterns.
663 (move_lo_quad_internal_be_<mode>): Likewise.
664
665 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
666
667 * doc/options.texi: Document that Var and Init are required if CPP
668 is given.
669 * optc-gen.awk: Require Var and Init if CPP is given.
670 * common.opt (Wpedantic): Use Init.
671
672 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
673
674 * config/rs6000/rs6000.c (special_handling_values): Add
675 SH_EXTRACT.
676 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
677 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
678 as swappable with special handling SH_EXTRACT. Remove
679 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
680 optimization.
681 (adjust_extract): New function.
682 (handle_special_swappables): Add default to case statement; add
683 case for SH_EXTRACT that calls adjust_extract.
684 (dump_swap_insn_table): Handle SH_EXTRACT.
685
686 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
687
688 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
689 selection of 0th memory doubleword, regardless of endianness.
690
691 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
692
693 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
694
695 2014-09-04 Alan Modra <amodra@gmail.com>
696
697 PR debug/60655
698 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
699 can't be output.
700
701 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
702
703 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
704 * targhooks.c (default_dwarf_frame_reg_mode): New function.
705 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
706 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
707 * doc/tm.texi: Regenerate.
708 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
709 selection logic to default_dwarf_frame_reg_mode.
710
711 2014-09-03 Marek Polacek <polacek@redhat.com>
712
713 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
714 by -Wall.
715
716 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
717
718 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
719 the automodified register.
720
721 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
722
723 * output.h (get_some_local_dynamic_name): Declare.
724 * final.c (some_local_dynamic_name): New variable.
725 (get_some_local_dynamic_name): New function.
726 (final_end_function): Clear some_local_dynamic_name.
727 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
728 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
729 (print_operand): Report an error if '%&' is used inappropriately.
730 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
731 (get_some_local_dynamic_name_1): Delete.
732 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
733 (rs6000_get_some_local_dynamic_name): Delete.
734 (rs6000_get_some_local_dynamic_name_1): Delete.
735 (print_operand): Report an error if '%&' is used inappropriately.
736 * config/s390/s390.c (machine_function): Remove some_ld_name.
737 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
738 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
739 * config/sparc/sparc.c: Include rtl-iter.h.
740 (machine_function): Remove some_ld_name.
741 (sparc_print_operand): Report an error if '%&' is used inappropriately.
742 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
743
744 2014-09-03 Richard Henderson <rth@redhat.com>
745
746 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
747 (aarch64_popwb_pair_reg): Remove.
748 (aarch64_set_frame_expr): Remove.
749 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
750 the restore ops performed by the insns generated.
751 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
752 insn. Perform the calls_eh_return addition later; do not attempt to
753 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
754 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
755 special markup at all. Load cfun->machine->frame.hard_fp_offset
756 into a local variable.
757 (aarch64_frame_pointer_required): Don't check calls_alloca.
758
759 2014-09-03 Richard Biener <rguenther@suse.de>
760
761 * opts.c (default_options_optimization): Adjust
762 max-combine-insns to 2 for -Og.
763
764 2014-09-03 Martin Jambor <mjambor@suse.cz>
765
766 PR ipa/62015
767 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
768 pass-trough jump functions correctly.
769
770 2014-09-03 Martin Jambor <mjambor@suse.cz>
771
772 PR ipa/61986
773 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
774 created replacements in ascending order of offsets.
775 (known_aggs_to_agg_replacement_list): Likewise.
776
777 2014-09-03 Martin Liska <mliska@suse.cz>
778
779 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
780 is set to set uninitialized value for vnresult.
781
782 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
783
784 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
785 for TARGET_MUST_PASS_IN_STACK.
786
787 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
788
789 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
790 for TARGET_ARG_PARTIAL_BYTES.
791
792 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
793
794 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
795 instructions for varargs implementation.
796 (nds32_expand_epilogue): Emit stack adjustment instructions for
797 varargs implementation.
798
799 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
800
801 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
802 optimization detection.
803
804 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
805
806 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
807 arguments.
808 (nds32_function_arg_advance): Deal with nameless arguments.
809 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
810 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
811 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
812
813 2014-09-03 Richard Biener <rguenther@suse.de>
814
815 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
816 (struct bb_bitmap_sets): Remove deferred member.
817 (BB_DEFERRED): Remove.
818 (defer_or_phi_translate_block): Remove.
819 (compute_antic_aux): Remove deferring of blocks, assert
820 proper iteration order.
821 (compute_antic): Do not set BB_DEFERRED.
822 (eliminate): Allocate el_avail of proper size initially.
823
824 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
825
826 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
827 according to the value of crtl->args.pretend_args_size.
828
829 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
830
831 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
832 varargs information.
833
834 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
835
836 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
837 implementation for TARGET_SETUP_INCOMING_VARARGS.
838 (nds32_strict_argument_naming): Refine comment.
839 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
840 Define for future implementation.
841
842 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
843
844 * config/i386/adxintrin.h (_subborrow_u32): New.
845 (_addcarry_u32): Ditto.
846 (_subborrow_u64): Ditto.
847 (_addcarry_u64): Ditto.
848 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
849 IX86_BUILTIN_SBB64.
850 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
851 __builtin_ia32_sbb_u64
852
853 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
854
855 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
856 GPR-specific stuff.
857 (nds32_function_arg_advance): Likewise.
858 (nds32_init_cumulative_args): Likewise.
859 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
860 (NDS32_FIRST_GPR_REGNUM): Define.
861 (NDS32_LAST_GPR_REGNUM): Define.
862 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
863 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
864 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
865 (machine_function): Use GRP-specific stuff.
866
867 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
868
869 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
870 (nds32_expand_epilogue): Likewise.
871 (nds32_expand_prologue_v3push): Likewise.
872 (nds32_expand_epilogue_v3pop): Likewise.
873
874 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
875
876 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
877 v3push/v3pop for variadic function.
878 * config/nds32/nds32.md (prologue, epilogue): Likewise.
879
880 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
881
882 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
883 Check rtx for varargs implementation.
884 (nds32_output_stack_pop): Likewise.
885 * config/nds32/nds32-protos.h: Have a rtx argument for
886 nds32_output_stack_push and nds32_output_stack_pop.
887 * config/nds32/nds32.md: Likewise.
888
889 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
890
891 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
892 to check if FUNC is an interrupt service routine.
893 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
894
895 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
896
897 * config/nds32/nds32.h (machine_function): Add some fields for variadic
898 arguments implementation.
899
900 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
901
902 * config/nds32/nds32-predicates.c
903 (nds32_valid_stack_push_pop): Rename to ...
904 (nds32_valid_stack_push_pop_p): ... this.
905 * config/nds32/nds32-protos.h: Likewise.
906 * config/nds32/predicates.md: Likewise.
907
908 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
909
910 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
911 (nds32_emit_stack_v3push): ... this.
912 (nds32_gen_stack_v3pop): Rename to ...
913 (nds32_emit_stack_v3pop): ... this and consider CFA restore
914 information.
915
916 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
917
918 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
919 (nds32_emit_stack_push_multiple): ... this.
920 (nds32_gen_stack_pop_multiple): Rename to ...
921 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
922 information.
923
924 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
925
926 PR target/61078
927 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
928 and add a second splitter to handle the remaining cases.
929
930 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
931
932 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
933
934 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
935
936 * cfgexpand.c (label_rtx_for_bb): Change type to
937 hash_map<basic_block, rtx_code_label *> *.
938 (expand_gimple_basic_block): Adjust.
939 (pass_expand::execute): Likewise.
940
941 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
942
943 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
944 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
945 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
946 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
947 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
948 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
949 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
950 of rtx.
951
952 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
953
954 * alloc-pool.c: Include coretypes.h.
955 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
956 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
957 hash_set instead of htab.
958 * ggc-page.c (in_gc): New variable.
959 (ggc_free): Do nothing if a collection is taking place.
960 (ggc_collect): Set in_gc appropriately.
961 * ggc.h (gt_ggc_mx(const char *)): New function.
962 (gt_pch_nx(const char *)): Likewise.
963 (gt_ggc_mx(int)): Likewise.
964 (gt_pch_nx(int)): Likewise.
965 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
966 (hash_map::hash_entry::pch_nx): Likewise.
967 (hash_map::hash_entry::pch_nx_helper): Likewise.
968 (hash_map::hash_map): Adjust.
969 (hash_map::create_ggc): New function.
970 (gt_ggc_mx): Likewise.
971 (gt_pch_nx): Likewise.
972 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
973 (default_hashset_traits::pch_nx): Likewise.
974 (hash_set::hash_entry::ggc_mx): Likewise.
975 (hash_set::hash_entry::pch_nx): Likewise.
976 (hash_set::hash_entry::pch_nx_helper): Likewise.
977 (hash_set::hash_set): Adjust.
978 (hash_set::create_ggc): New function.
979 (hash_set::elements): Likewise.
980 (gt_ggc_mx): Likewise.
981 (gt_pch_nx): Likewise.
982 * hash-table.h (hash_table::hash_table): Adjust.
983 (hash_table::m_ggc): New member.
984 (hash_table::~hash_table): Adjust.
985 (hash_table::expand): Likewise.
986 (hash_table::empty): Likewise.
987 (gt_ggc_mx): New function.
988 (hashtab_entry_note_pointers): Likewise.
989 (gt_pch_nx): Likewise.
990
991 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
992
993 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
994 built-in definition.
995 (XVCVUXDDP_SCALE): Likewise.
996 (XVCVDPSXDS_SCALE): Likewise.
997 (XVCVDPUXDS_SCALE): Likewise.
998 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
999 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
1000 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
1001 VSX_BUILTIN_XVCVDPUXDS_SCALE.
1002 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
1003 prototype.
1004 * config/rs6000/rs6000.c (real.h): New include.
1005 (rs6000_scale_v2df): New function.
1006 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
1007 (UNSPEC_VSX_XVCVUXDDP): Likewise.
1008 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
1009 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
1010 (vsx_xvcvsxddp_scale): New define_expand.
1011 (vsx_xvcvsxddp): New define_insn.
1012 (vsx_xvcvuxddp_scale): New define_expand.
1013 (vsx_xvcvuxddp): New define_insn.
1014 (vsx_xvcvdpsxds_scale): New define_expand.
1015 (vsx_xvcvdpsxds): New define_insn.
1016 (vsx_xvcvdpuxds_scale): New define_expand.
1017 (vsx_xvcvdpuxds): New define_insn.
1018 * doc/extend.texi (vec_ctf): Add new prototypes.
1019 (vec_cts): Likewise.
1020 (vec_ctu): Likewise.
1021 (vec_splat): Likewise.
1022 (vec_div): Likewise.
1023 (vec_mul): Likewise.
1024
1025 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1026
1027 PR target/62275
1028 * config/arm/neon.md
1029 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
1030 <v_cmp_result>): New pattern.
1031 * config/arm/iterators.md (NEON_VCVT): New int iterator.
1032 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
1033 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
1034 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
1035 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
1036 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
1037
1038 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1039
1040 PR target/62275
1041 * config/arm/iterators.md (FIXUORS): New code iterator.
1042 (VCVT): New int iterator.
1043 (su_optab): New code attribute.
1044 (su): Likewise.
1045 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1046
1047 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1048
1049 * config/aarch64/predicates.md (aarch64_comparison_operation):
1050 New special predicate.
1051 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1052 aarch64_comparison_operation instead of matching an operator.
1053 Update operand numbers.
1054 (csinc3<mode>_insn): Likewise.
1055 (*csinv3<mode>_insn): Likewise.
1056 (*csneg3<mode>_insn): Likewise.
1057 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1058 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1059 Return -1 instead of aborting on invalid condition codes.
1060 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1061 to assert that the returned condition code is valid.
1062 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1063
1064 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1065
1066 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1067 tree.def, and gimple.def
1068
1069 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1070 Balaji V. Iyer <balaji.v.iyer@intel.com>
1071 Igor Zamyatin <igor.zamyatin@intel.com>
1072
1073 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1074 (__cilkrts_cilk_for_64): Likewise.
1075 * cilk-common.c (declare_cilk_for_builtin): New function.
1076 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1077 __cilkrts_cilk_for_64 bultins.
1078 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1079 CILK_TI_F_LOOP_64.
1080 (cilk_for_32_fndecl): New define.
1081 (cilk_for_64_fndecl): Likewise.
1082 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1083 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1084 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1085 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1086 GF_OMP_FOR_COMBINED_INTO.
1087 * gimplify.c (gimplify_scan_omp_clauses): Added
1088 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1089 (gimplify_adjust_omp_clauses): Ditto.
1090 (gimplify_omp_for): Added CILK_FOR case.
1091 (gimplify_expr): Ditto.
1092 * omp-low.c: Include cilk.h.
1093 (extract_omp_for_data): Set appropriate kind for
1094 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1095 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1096 (create_omp_child_function_name): Added second argument to handle
1097 cilk_for case.
1098 (cilk_for_check_loop_diff_type): New function.
1099 (expand_cilk_for_call): Likewise.
1100 (expand_cilk_for): Likewise.
1101 (create_omp_child_function): Set cilk_for_count; handle the cases when
1102 it is true; call create_omp_child_function_name with second argument.
1103 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1104 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1105 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1106 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1107 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1108 (convert_local_omp_clauses): Ditto.
1109 * tree-pretty-print.c (dump_omp_clause): Added
1110 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1111 (dump_generic_node): Added CILK_FOR case.
1112 * tree.c (omp_clause_num_ops): New element
1113 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1114 (omp_clause_code_name): New element _Cilk_for_count_.
1115 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1116 * tree.def: Add tree code for CILK_FOR.
1117
1118 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1119
1120 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1121 (ppc403-compare): Add "exts with dot" case.
1122 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1123 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1124 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1125 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1126 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1127 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1128 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1129 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1130 cell-cmp-microcoded): Similarly.
1131 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1132 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1133 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1134 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1135 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1136 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1137 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1138 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1139 (power6-compare): Add "exts with dot" case.
1140 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1141 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1142 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1143
1144 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1145 if avoiding Cell microcode.
1146 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1147 (is_cracked_insn): Ditto.
1148 (insn_must_be_first_in_group): Ditto.
1149 * config/rs6000/rs6000.md (dot): Adjust comment.
1150 (cell_micro): Handle exts+dot.
1151 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1152 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1153 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1154 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1155 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1156 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1157 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1158
1159 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1160
1161 * config/rs6000/rs6000.md (QHSI): Delete.
1162 (EXTQI, EXTHI, EXTSI): New mode iterators.
1163 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1164 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1165 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1166 9 anonymous instructions, and 8 splitters): Delete.
1167 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1168 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1169 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1170 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1171 *zero_extendsi<mode>2_dot2): New.
1172
1173 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1174
1175 * config/rs6000/rs6000.md (any_extend): New code iterator.
1176 (u, su): New code attributes.
1177 (dmode, DMODE): New mode attributes.
1178 (<su>mul<mode>3_highpart): New.
1179 (*<su>mul<mode>3_highpart): New.
1180 (<su>mulsi3_highpart_le): New.
1181 (<su>muldi3_highpart_le): New.
1182 (<su>mulsi3_highpart_64): New.
1183 (<u>mul<mode><dmode>3): New.
1184 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1185 splitters): Delete.
1186 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1187 splitters): Delete.
1188
1189 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1190
1191 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1192 *mulsi3_internal2, and two splitters): Delete.
1193 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1194 Delete.
1195 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1196
1197 2014-09-02 Richard Biener <rguenther@suse.de>
1198
1199 PR tree-optimization/62695
1200 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1201 vector truncate.
1202
1203 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1204
1205 PR target/62312
1206 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1207
1208 2014-09-01 Andi Kleen <ak@linux.intel.com>
1209
1210 * file-find.c (add_prefix_begin): Add.
1211 (do_add_prefix): Rename from add_prefix with first argument.
1212 (add_prefix): Add new wrapper.
1213 * file-find.h (add_prefix_begin): Add.
1214 * gcc-ar.c (main): Support -B option.
1215
1216 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1217
1218 * genemit.c: Include dumpfile.h.
1219 (gen_split): Print name of splitter function to dump file.
1220
1221 2014-09-01 Richard Biener <rguenther@suse.de>
1222
1223 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1224 Use stack auto_vecs for constraint expressions.
1225 (find_func_aliases_for_call): Likewise.
1226 (find_func_aliases): Likewise.
1227 (find_func_clobbers): Likewise.
1228
1229 2014-09-01 Richard Biener <rguenther@suse.de>
1230
1231 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1232 operands vector in most cases. Remove redundant code.
1233
1234 2014-09-01 Olivier Hainque <hainque@adacore.com>
1235
1236 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1237 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1238 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1239
1240 2014-09-01 Richard Biener <rguenther@suse.de>
1241
1242 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1243 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1244 vn_reference_compute_hash, vn_reference_insert): Remove.
1245 (vn_reference_lookup_call): New function.
1246 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1247 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1248 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1249 (create_reference_ops_from_call): Remove.
1250 (vn_reference_lookup_3): Properly update shared_lookup_references.
1251 (vn_reference_lookup_pieces): Assert that we updated
1252 shared_lookup_references properly.
1253 (vn_reference_lookup): Likewise.
1254 (vn_reference_lookup_call): New function.
1255 (visit_reference_op_call): Use it. Avoid re-building the
1256 reference ops.
1257 (visit_reference_op_load): Remove redundant lookup.
1258 (visit_reference_op_store): Perform special tail-merging work
1259 only when possibly doing tail-merging.
1260 (visit_use): Likewise.
1261 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1262
1263 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1264
1265 PR target/62025
1266 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1267 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1268 (find_inc): Revert 2014-08-13 change.
1269
1270 2014-09-01 Marek Polacek <polacek@redhat.com>
1271
1272 PR middle-end/61903
1273 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1274 Change the type of V to unsigned HOST_WIDE_INT.
1275
1276 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1277
1278 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1279 the size of byte markers.
1280 (do_shift_rotate): Fix confusion between host, target and marker byte
1281 size.
1282 (verify_symbolic_number_p): Likewise.
1283 (find_bswap_or_nop_1): Likewise.
1284 (find_bswap_or_nop): Likewise.
1285
1286 2014-09-01 Olivier Hainque <hainque@adacore.com>
1287
1288 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1289 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1290
1291 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1292
1293 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1294 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1295 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1296
1297 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1298
1299 PR sanitizer/61897
1300 PR sanitizer/62140
1301 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1302 (build_check_stmt): Likewise.
1303 (instrument_strlen_call): Likewise.
1304 (asan_expand_check_ifn): Likewise and fix types.
1305 (maybe_cast_to_ptrmode): New function.
1306
1307 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1308
1309 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1310
1311 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1312
1313 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1314
1315 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1316
1317 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1318 prefix to function labels when generating fast indirect calls.
1319
1320 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1321
1322 PR bootstrap/62304
1323
1324 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1325 param back from rtx_insn * to rtx. Rename param from "label" to
1326 "label_or_return", reintroducing "label" as an rtx_insn * after
1327 we've ensured it's not a RETURN.
1328 (first_active_target_insn): Likewise for return type and param;
1329 add a checked cast to rtx_insn * once we've ensured "insn" is not
1330 a RETURN.
1331 (steal_delay_list_from_target): Convert param "pnew_thread" back
1332 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1333 with JUMP_LABEL.
1334 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1335 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1336 cast once we've established we're not dealing with a RETURN,
1337 renaming subsequent uses of "thread" to "thread_insn".
1338 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1339 to JUMP_LABEL.
1340 (follow_jumps): Convert return type and param "label" from
1341 rtx_insn * back to rtx. Move initialization of "value" to after
1342 the handling for ANY_RETURN_P, adding a checked cast there to
1343 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1344 rename to "this_label_or_return", reintroducing "this_label" as
1345 an rtx_insn * once we've handled the case where it could be an
1346 ANY_RETURN_P.
1347 (fill_slots_from_thread): Rename param "thread" to
1348 "thread_or_return", converting from an rtx_insn * back to an rtx.
1349 Reintroduce name "thread" as an rtx_insn * local with a checked
1350 cast once we've handled the case of it being an ANY_RETURN_P.
1351 Convert local "new_thread" from an rtx_insn * back to an rtx.
1352 Add a checked cast when assigning to "trial" from "new_thread".
1353 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1354 checked cast to rtx_insn * from "new_thread" when invoking
1355 get_label_before.
1356 (fill_eager_delay_slots): Convert locals "target_label",
1357 "insn_at_target" from rtx_insn * back to rtx.
1358 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1359 (relax_delay_slots): Convert locals "trial", "target_label" from
1360 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1361 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1362 invoking update_block.
1363 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1364 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1365
1366 * resource.h (mark_target_live_regs): Undo erroneous conversion
1367 of second param of r214693, converting it back from rtx_insn * to
1368 rtx, since it could be a RETURN.
1369
1370 * resource.c (find_dead_or_set_registers): Similarly, convert
1371 param "jump_target" back from an rtx_insn ** to an rtx *, as we
1372 could be writing back a RETURN. Rename local rtx_insn * "next" to
1373 "next_insn", and introduce "lab_or_return" as a local rtx,
1374 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
1375 (mark_target_live_regs): Undo erroneous conversion
1376 of second param of r214693, converting it back from rtx_insn * to
1377 rtx, since it could be a RETURN. Rename it from "target" to
1378 "target_maybe_return", reintroducing the name "target" as a local
1379 rtx_insn * with a checked cast, after we've handled the case of
1380 ANY_RETURN_P.
1381
1382 2014-08-29 DJ Delorie <dj@redhat.com>
1383
1384 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
1385 pointer size up to a power of two.
1386 * defaults.h (DWARF2_ADDR_SIZE): Round up.
1387 (POINTER_SIZE_UNITS): New, rounded up value.
1388 * dwarf2asm.c (size_of_encoded_value): Use it.
1389 (dw2_output_indirect_constant_1): Likewise.
1390 * expmed.c (init_expmed_one_conv): We now know the sizes of
1391 partial int modes.
1392 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
1393 * optabs.c (expand_float): Use precision, not size.
1394 (expand_fix): Likewise.
1395 * simplify-rtx (simplify_unary_operation_1): Likewise.
1396 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1397 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
1398 (default_assemble_integer) Likewise.
1399 (dump_tm_clone_pairs): Likewise.
1400 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
1401 * var-tracking.c (adjust_mems): Allow partial-int modes also.
1402 (prepare_call_arguments): Likewise.
1403 * stor-layout.c (finalize_type_size): Preserve precision.
1404 (layout_type): Use precision, not size.
1405
1406 * expr.c (convert_move): If the target has an explicit converter,
1407 use it.
1408
1409 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1410
1411 * gdbinit.in: Skip various inline functions in rtl.h when
1412 stepping.
1413
1414 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
1415
1416 PR bootstrap/62301
1417 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
1418
1419 2014-08-29 Richard Biener <rguenther@suse.de>
1420
1421 PR tree-optimization/62291
1422 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
1423 exactly the vector size needed and use quick_push.
1424 (phi_translate_1): Adjust comment.
1425 (valid_in_sets): Remove block argument and remove pointless
1426 checking of NAMEs.
1427 (dependent_clean): Adjust for removal of block argument.
1428 (clean): Likewise.
1429 (compute_antic_aux): Likewise.
1430 (compute_partial_antic_aux): Likewise.
1431
1432 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1434 Anna Tikhonova <anna.tikhonova@intel.com>
1435 Ilya Tocar <ilya.tocar@intel.com>
1436 Andrey Turetskiy <andrey.turetskiy@intel.com>
1437 Ilya Verbin <ilya.verbin@intel.com>
1438 Kirill Yukhin <kirill.yukhin@intel.com>
1439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1440
1441 * config/i386/sse.md
1442 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
1443 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
1444 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
1445 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
1446
1447 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1449 Anna Tikhonova <anna.tikhonova@intel.com>
1450 Ilya Tocar <ilya.tocar@intel.com>
1451 Andrey Turetskiy <andrey.turetskiy@intel.com>
1452 Ilya Verbin <ilya.verbin@intel.com>
1453 Kirill Yukhin <kirill.yukhin@intel.com>
1454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1455
1456 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
1457 * config/i386/sse.md
1458 (define_mode_iterator VI4_128_8_256): New.
1459 (define_mode_iterator VI2_128_4_256): Ditto.
1460 (define_mode_iterator PMOV_DST_MODE): Rename into
1461 (define_mode_iterator PMOV_DST_MODE_1): this.
1462 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
1463 Use PMOV_DST_MODE_1 mode iterator.
1464 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1465 Ditto.
1466 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1467 Ditto.
1468 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
1469 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
1470 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
1471 (define_mode_iterator PMOV_DST_MODE_2): New.
1472 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
1473 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
1474 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
1475 Ditto.
1476 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
1477 (define_mode_attr pmov_dst_3): Ditto.
1478 (define_mode_attr pmov_dst_zeroed_3): Ditto.
1479 (define_mode_attr pmov_suff_3): Ditto.
1480 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
1481 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
1482 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
1483 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
1484 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
1485 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
1486 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
1487 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
1488 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
1489 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
1490 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
1491 (define_mode_attr pmov_dst_4): Ditto.
1492 (define_mode_attr pmov_dst_zeroed_4): Ditto.
1493 (define_mode_attr pmov_suff_4): Ditto.
1494 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
1495 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
1496 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
1497 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
1498 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
1499 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
1500 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
1501 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
1502 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
1503 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
1504 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
1505
1506 2014-08-29 Richard Biener <rguenther@suse.de>
1507
1508 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
1509 NON_LVALUE_EXPR in gimple.
1510
1511 2014-08-29 Richard Biener <rguenther@suse.de>
1512
1513 PR middle-end/62292
1514 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
1515 from previous refactoring.
1516 (gimple_fold_builtin_strncpy): Likewise.
1517
1518 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1519
1520 PR bootstrap/62300
1521 * function.c (assign_parm_setup_reg): Remove erroneous checked
1522 cast to rtx_insn * on result of gen_extend_insn in favor of
1523 introducing a new local rtx "pat".
1524
1525 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1526
1527 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
1528 to silence warning.
1529 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
1530
1531 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1532
1533 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
1534 (next_insn): Likewise.
1535 * emit-rtl.c (next_insn): Likewise.
1536 (previous_insn): Likewise.
1537 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
1538 "insn" and "next" from rtx to rtx_insn *.
1539 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
1540 "insn", "insn1", "vliw_start", "prologue_end_note",
1541 "last_insn_in_packet".
1542
1543 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1544
1545 * shrink-wrap.h (active_insn_between): Strengthen both params from
1546 rtx to rtx_insn *.
1547 * function.c (active_insn_between): Likewise.
1548
1549 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1550
1551 * genattr.c (main): When writing out insn-attr.h, strengthen param
1552 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
1553 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
1554 writing out the definition of dfa_clear_single_insn_cache to the
1555 generated insn-automata.c
1556
1557 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1558
1559 * resource.h (clear_hashed_info_for_insn): Strengthen param from
1560 rtx to rtx_insn *.
1561 (incr_ticks_for_insn): Likewise.
1562 (init_resource_info): Likewise.
1563
1564 * resource.c (init_resource_info): Likewise.
1565 (clear_hashed_info_for_insn): Likewise.
1566 (incr_ticks_for_insn): Likewise.
1567
1568 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
1569 rtx to rtx_insn *.
1570 (steal_delay_list_from_target): Use methods of "seq".
1571 (try_merge_delay_insns): Use methods of "merged_insns".
1572 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
1573 (reorg_redirect_jump): Likewise for param "jump".
1574
1575 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1576
1577 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
1578 rtx to rtx_insn *.
1579 * config/s390/s390.c (s390_split_branches): Eliminate top-level
1580 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
1581 "set_insn".
1582 (s390_mainpool_finish): In three places, split out a local rtx
1583 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
1584 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
1585 and split another local rtx "insn" out into rtx "pat" and
1586 rtx_insn * "insn".
1587 * config/sh/sh.c (output_branchy_insn): Rather than working
1588 directly on operands[9], introduce local rtx_code_label *
1589 variables named "lab" in two places, working on them, and then
1590 assigning them to operands[9], so that the intervening operations
1591 are known by the type system to be on insns.
1592
1593 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1594
1595 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
1596 const rtx_insn *.
1597
1598 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
1599 in invocation of INSN_HAS_LOCATION.
1600
1601 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1602
1603 * config/rs6000/altivec.h (vec_xl): New #define.
1604 (vec_xst): Likewise.
1605 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
1606 (XXSPLTD_V2DI): Likewise.
1607 (DIV_V2DI): Likewise.
1608 (UDIV_V2DI): Likewise.
1609 (MUL_V2DI): Likewise.
1610 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1611 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
1612 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
1613 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
1614 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
1615 (UNSPEC_VSX_DIVSD): Likewise.
1616 (UNSPEC_VSX_DIVUD): Likewise.
1617 (UNSPEC_VSX_MULSD): Likewise.
1618 (vsx_mul_v2di): New insn-and-split.
1619 (vsx_div_v2di): Likewise.
1620 (vsx_udiv_v2di): Likewise.
1621 (vsx_xxspltd_<mode>): New insn.
1622
1623 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1624
1625 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
1626 NEXT_INSN.
1627 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
1628 (NEXT_INSN): Likewise.
1629 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
1630 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
1631 const rtx_insn *.
1632 (no_labels_between_p): Likewise for both params.
1633
1634 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
1635 cast when using NEXT_INSN on operands[2].
1636 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
1637 "insn" from rtx to rtx_insn *, adding a checked cast.
1638 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
1639 rtx_insn *.
1640 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
1641 for third param.
1642 (arc_text_label): Likewise for param "insn".
1643 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
1644 "insn".
1645 (arc_ccfsm_record_condition): Likewise for param "jump".
1646 (arc_text_label): Likewise for local "label".
1647 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1648 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1649 a method for typesafety. Add a checked cast.
1650 * config/arc/constraints.md (Clb): Add a checked cast when getting
1651 the CODE_LABEL from a LABEL_REF.
1652 * config/arm/arm.c (require_pic_register): Strengthen locals
1653 "seq", "insn" from rtx to rtx_insn *.
1654 (create_fix_barrier): Likewise for locals "selected", "next".
1655 (thumb1_reorg): Likewise for locals "prev", "insn".
1656 (arm_expand_prologue): Likewise for local "last".
1657 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1658 operands[0].
1659 (thumb2_output_casesi): Likewise for operands[2].
1660 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1661 strengthen local "insn" from rtx to rtx_insn *.
1662 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1663 type and param "insn".
1664 (find_prev_insn_start): Likewise.
1665 (hwloop_optimize): Likewise for locals "insn", "last_insn",
1666 "prev".
1667 (gen_one_bundle): Likewise for loal "t".
1668 (find_load): Likewise for param "insn".
1669 (workaround_speculation): Likewise for locals "insn", "next",
1670 "target", "next_tgt".
1671 * config/c6x/c6x.c (assign_reservations): Likewise for both params
1672 and for locals "insn", "within", "last".
1673 (count_unit_reqs): Likewise for params "head", "tail" and local
1674 "insn".
1675 (try_rename_operands): Likewise for params "head", "tail".
1676 (reshuffle_units): Likewise for locals "head", "tail", "insn".
1677 (struct c6x_sched_context): Likewise for fields
1678 "last_scheduled_insn", "last_scheduled_iter0".
1679 (init_sched_state): Replace NULL_RTX with NULL.
1680 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1681 to rtx_insn *.
1682 (undo_split_delayed_nonbranch): Likewise for param and for local
1683 "prev".
1684 (conditionalize_after_sched): Likewise for local "insn".
1685 (bb_earliest_end_cycle): Likewise.
1686 (filter_insns_above): Likewise for locals "insn", "next".
1687 (hwloop_optimize): Remove redundant checked cast.
1688 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1689 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1690 NULL_RTX with NULL.
1691 (cris_simple_epilogue): Likewise.
1692 (cris_expand_prologue): Likewise.
1693 (cris_expand_epilogue): Likewise.
1694 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1695 local "insn" from rtx to rtx_insn *.
1696 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1697 (struct frv_packet_group): Likewise for the elements within array
1698 fields "insns", "sorted", and for field "nop".
1699 (frv_packet): Likewise for the elements within array field
1700 "insns".
1701 (frv_add_insn_to_packet): Likewise for param "insn".
1702 (frv_insert_nop_in_packet): Likewise for param "insn" and local
1703 "last".
1704 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1705 (frv_sort_insn_group_1): Likewise for local "insn".
1706 (frv_optimize_membar_local): Likewise.
1707 (frv_align_label): Likewise for locals "x", "last", "barrier",
1708 "label".
1709 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1710 local.
1711 (ia64_sched_init): Likewise for local "insn".
1712 (scheduled_good_insn): Likewise for param "last".
1713 (struct _ia64_sched_context): Likewise for field
1714 "last_scheduled_insn".
1715 (ia64_init_sched_context): Replace NULL_RTX with NULL.
1716 (struct bundle_state): Likewise for field "insn".
1717 (issue_nops_and_insn): Likewise for param "insn".
1718 (get_next_important_insn): Likewise for return type and both
1719 params.
1720 (ia64_add_bundle_selector_before): Likewise for param "insn".
1721 (bundling): Likewise for params "prev_head_insn", "tail" and
1722 locals "insn", "next_insn", "b". Eliminate top-level local rtx
1723 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1724 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1725 Strengthen final param from rtx to rtx_insn *.
1726 (iq2000_move_1word): Likewise for second param.
1727 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1728 param "cur_insn" and local "next_insn".
1729 (iq2000_move_1word): Likewise for param "insn".
1730 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1731 casts when using NEXT_INSN on operands[1].
1732 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1733 "insn" from rtx to rtx_insn *.
1734 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1735 "x", introducing local rtx_insn * "insn" for when working with the
1736 CODE_LABEL of the LABEL_REF.
1737 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1738 rtx_insn *.
1739 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1740 param.
1741 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1742 type.
1743 (conditionalize_block): Likewise for return type and param.
1744 (mcore_is_dead): Likewise for param "first" and local "insn".
1745 (emit_new_cond_insn): Likewise for return type.
1746 (conditionalize_block): Likewise for return type, param, and
1747 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1748 "newinsn".
1749 (conditionalize_optimization): Likewise for local "insn".
1750 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1751 using NEXT_INSN.
1752 * config/microblaze/microblaze.md: Add checked casts when using
1753 NEXT_INSN.
1754 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1755 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1756 and rtx_insn * "insn".
1757 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1758 checked cast when using NEXT_INSN on operands[2].
1759 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1760 local "insn" from rtx to rtx_insn *.
1761 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1762 Likewise.
1763 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1764 Add a checked cast when using NEXT_INSN on operands[1].
1765 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1766 rtx to rtx_insn *.
1767 (pa_output_cbranch): Likewise for final param.
1768 (pa_output_lbranch): Likewise for second param.
1769 (pa_output_bb): Likewise for third param.
1770 (pa_output_bvb): Likewise.
1771 (pa_output_dbra): Likewise for second param.
1772 (pa_output_movb): Likewise.
1773 (pa_output_parallel_movb): Likewise.
1774 (pa_output_parallel_addb): Likewise.
1775 (pa_output_millicode_call): Likewise for first param.
1776 (pa_output_mul_insn): Likewise for second param.
1777 (pa_output_div_insn): Likewise for third param.
1778 (pa_output_mod_insn): Likewise for second param.
1779 (pa_jump_in_call_delay): Likewise for param.
1780 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1781 (pa_output_div_insn): Likewise.
1782 (pa_output_mod_insn): Likewise.
1783 (pa_output_cbranch): Likewise.
1784 (pa_output_lbranch): Likewise.
1785 (pa_output_bb): Likewise.
1786 (pa_output_bvb): Likewise.
1787 (pa_output_dbra): Likewise.
1788 (pa_output_movb): Likewise.
1789 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1790 to simplify and for typesafety.
1791 (pa_output_call): Use method of rtx_sequence *.
1792 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1793 (pa_jump_in_call_delay): Likewise.
1794 (pa_output_parallel_movb): Likewise.
1795 (pa_output_parallel_addb): Likewise.
1796 (pa_following_call): Likewise.
1797 (pa_combine_instructions): Likewise for locals "anchor",
1798 "floater".
1799 (pa_can_combine_p): Likewise for params "anchor", "floater" and
1800 locals "start", "end".
1801 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1802 param "insn" and local "local_insn".
1803 (picochip_final_prescan_insn): Likewise for local "local_insn".
1804 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1805 local "insn".
1806 (uses_TOC): Likewise.
1807 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1808 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1809 splitting out to more tightly-scoped locals, 3 as rtx and one as
1810 rtx_insn *.
1811 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1812 to rtx_insn *.
1813 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1814 where needed.
1815 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1816 to rtx_insn *.
1817 (fixup_addr_diff_vecs): Likewise.
1818 (reg_unused_after): Likewise for param 2.
1819 (sh_can_redirect_branch): Likewise for both params.
1820 (check_use_sfunc_addr): Likewise for param 1.
1821 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1822 (find_barrier): Likewise for local "last_got".
1823 (gen_block_redirect): Likewise for return type, param "jump" and
1824 locals "prev", "scan", "next", "insn".
1825 (struct far_branch): Likewise for fields "near_label",
1826 "insert_place", "far_label".
1827 (gen_far_branch): Likewise for local "jump".
1828 (fixup_addr_diff_vecs): Likewise for param "first" and locals
1829 "insn", "prev".
1830 (barrier_align): Likewise for param and for locals "prev", "x".
1831 Introduce local rtx_sequence * "prev_seq" and use insn method for
1832 typesafety and clarity.
1833 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1834 (get_dest_uid): Likewise for local "dest".
1835 (split_branches): Likewise for locals "next", "beyond", "label",
1836 "block", "far_label". Add checked casts when assigning to
1837 bp->far_label and "far_label".
1838 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1839 (sequence_insn_p): Likewise.
1840 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
1841 more loop-scoped rtx "insn" when walking LABEL_REFS.
1842 (sh_can_redirect_branch): Strengthen both params from rtx to
1843 rtx_insn *.
1844 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
1845 new local rtx_sequence * "seq" via a dyn_cast, and use a method
1846 for clarity and typesafety.
1847 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1848 "insn" from rtx to rtx_insn *.
1849 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1850 when using NEXT_INSN on the CODE_LABEL in operands[2].
1851 (define_insn "casesi_worker_2"): Likewise.
1852 (define_insn "casesi_shift_media"): Likewise.
1853 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1854 operands[3].
1855 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1856 Strengthen field "insn" from rtx to rtx_insn *.
1857 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1858 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1859 param "start_insn" and local "start_insn".
1860 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1861 field "insn".
1862 (find_set_of_reg_bb): Likewise for param "insn".
1863 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1864 (trace_reg_uses): Likewise for param "start_insn".
1865 (sh_treg_combine::cbranch_trace): Likewise for field
1866 "cbranch_insn".
1867 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1868 param "insn".
1869 (sh_treg_combine::record_set_of_reg): Likewise for param
1870 "start_insn" and local "i".
1871 (sh_treg_combine::can_remove_cstore): Likewise for local
1872 "prev_insn".
1873 (sh_treg_combine::try_optimize_cbranch): Likewise for param
1874 "insn".
1875 (sh_treg_combine::execute): Likewise for local "i".
1876 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1877 param.
1878 (sparc_check_64): Likewise for second param.
1879 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1880 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
1881 dyn_cast, using its insn method for typesafety and clarity.
1882 (empty_delay_slot): Strengthen param "insn" from rtx to
1883 rtx_insn *.
1884 (set_extends): Likewise.
1885 (sparc_check_64): Likewise.
1886 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1887 for locals "seq", "last_insn".
1888 (combine_bnp): Likewise for param "insn".
1889 (xstormy16_reorg): Likewise for local "insn".
1890 * config/v850/v850.c (substitute_ep_register): Likewise for params
1891 "first_insn", "last_insn" and local "insn".
1892 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1893 elements of "regs" array, and local "insn".
1894 * except.c (emit_note_eh_region_end): Likewise for param "insn".
1895 * final.c (final_sequence): Strengthen this global from rtx to
1896 rtx_sequence *.
1897 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1898 rtx_insn *.
1899 (final_scan_insn): Update assignment to "final_sequence" to be
1900 from "seq", the cast version of "body", for type-safety.
1901 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1902 "insns" from rtx to rtx_insn *.
1903 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1904 * genattr.c (main): When writing out generated insn-attr.h,
1905 strengthen params 1 and 3 of eligible_for_delay,
1906 eligible_for_annul_true, eligible_for_annul_false from rtx to
1907 rtx_insn *.
1908 * genattrtab.c (write_eligible_delay): Likewise when writing out
1909 generated insn-attrtab.c; also local "insn" the generated
1910 functions.
1911 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1912 to rtx_insn *.
1913 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1914 "start_label" from rtx to rtx_insn *.
1915 * ira.c (decrease_live_ranges_number): Likewise for local "p".
1916 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1917 "insns" and local "insn".
1918 (validate_equiv_mem): Likewise for param "start" and local "insn".
1919 (memref_used_between_p): Likewise for params "start", "end" and
1920 local "insn".
1921 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1922 final param.
1923 * loop-doloop.c (doloop_optimize): Within region guarded by
1924 INSN_P (doloop_pat), introduce a new local rtx_insn *
1925 "doloop_insn" via a checked cast, and use it for typesafety,
1926 eventually writing the value back into doloop_pat.
1927 * output.h (final_sequence): Strengthen this global from rtx to
1928 rtx_sequence *.
1929 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1930 reintroducing "insn" as an rtx_insn * via a checked cast.
1931 Strengthen param "attempt" and local "new_insn"from rtx to
1932 rtx_insn *.
1933 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1934 to rtx_insn *.
1935 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1936 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1937 "p" in favor of more tightly-scoped replacements, sometimes rtx
1938 and sometimes rtx_insn *, as appropriate.
1939 (delete_output_reload): Eliminate top-level rtx "i1", splitting
1940 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1941 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
1942 local "trial" from rtx to rtx_insn *.
1943 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1944 rtx to rtx_insn *. Strenghten local "pat" from rtx to
1945 rtx_sequence * and use methods for clarity and typesafety.
1946 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1947 rtx to rtx_insn *. Strenghten local "li" from rtx to
1948 rtx_insn_list * and use its methods for clarity and typesafety.
1949 (steal_delay_list_from_target): Strengthen param "insn" from rtx
1950 to rtx_insn *.
1951 (steal_delay_list_from_fallthrough): Likewise.
1952 (try_merge_delay_insns): Likewise for param "thread" and locals
1953 "trial", "next_trial", "delay_insn".
1954 (redundant_insn): Likewise for param "target" and local "trial".
1955 (own_thread_p): Likewise for param "thread" and locals
1956 "active_insn", "insn".
1957 (get_label_before): Likewise for param "insn".
1958 (fill_simple_delay_slots): Likewise for local "new_label"; use
1959 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1960 (label_before_next_insn): Strengthen return type and local "insn"
1961 from rtx to rtx_insn *.
1962 (relax_delay_slots): Likewise for locals "other", "tmp".
1963 (make_return_insns): Likewise for param "first" and locals "insn",
1964 "jump_insn", "prev". Move declaration of "pat" to its assignment
1965 and strengthen from rtx to rtx_sequence *. Use its methods for
1966 clarity and typesafety.
1967 * rtlanal.c (no_labels_between_p): Strengthen params from
1968 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
1969 rtx_insn *.
1970 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1971 from const_rtx to const rtx_insn *.
1972 (reg_set_between_p): Rename param "from_insn" to
1973 "uncast_from_insn", and reintroduce "from_insn" as a
1974 const rtx_insn * via a checked cast.
1975 (modified_between_p): Likewise for param "start" as "uncast_start".
1976 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1977 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1978 "tmp", head" from rtx to rtx_insn *.
1979 (recompute_rev_top_order): Likewise for local "insn".
1980 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1981 * store-motion.c (build_store_vectors): Likewise for local "insn".
1982 Strengthen local "st" from rtx to rtx_insn_list * and use methods
1983 for clarity and typesafety.
1984 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1985 rtx to rtx_insn *.
1986 (computation_cost): Likewise for local "seq".
1987 (get_address_cost): Likewise.
1988
1989 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1990
1991 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1992 const rtx_insn *.
1993 (label_is_jump_target_p): Likewise for second param.
1994
1995 * rtlanal.c (tablejump_p): Likewise for param "insn".
1996 (label_is_jump_target_p): Likewise for param "jump_insn".
1997
1998 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1999
2000 * rtl.h (find_first_parameter_load): Strengthen return type and
2001 both params from rtx to rtx_insn *.
2002 * rtlanal.c (find_first_parameter_load): Strengthen return type,
2003 both params and locals "before", "first_set" from rtx to
2004 rtx_insn *. Remove now-redundant cast.
2005 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
2006
2007 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2008
2009 * rtl.h (find_last_value): Delete.
2010 * rtlanal.c (find_last_value): Delete.
2011
2012 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2013
2014 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
2015 from rtx to rtx_insn *.
2016 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
2017 rtx "note" with new local rtx_insn * "new_head" when calculating
2018 head insn of new basic block.
2019 * combine.c (combine_split_insns): Strengthen return type and local
2020 "ret" from rtx to rtx_insn *.
2021 (likely_spilled_retval_p): Likewise for locals "use" and "p".
2022 (try_combine): Eliminate local "m_split", splitting into new
2023 locals "m_split_insn" and "m_split_pat".
2024 (find_split_point): Strengthen local "seq" from rtx into
2025 rtx_insn *.
2026 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
2027 locals "label", "branch".
2028 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
2029 for local "insn".
2030 (define_expand "umulsi3_highpart"): Likewise for local "insn".
2031 * dse.c (note_add_store_info): Likewise for fields "first",
2032 "current".
2033 (note_add_store): Likewise for local "insn".
2034 (emit_inc_dec_insn_before): Likewise for locals "insn",
2035 "new_insn", "cur".
2036 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
2037 (replace_read): Likewise for locals "insns", "this_insn".
2038 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
2039 (notice_eh_throw): Likewise for param "insn".
2040 (before_next_cfi_note): Likewise for return type, param, and local
2041 "prev".
2042 (connect_traces): Likewise for local "note".
2043 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2044 (verify_rtl_sharing): Likewise.
2045 (unshare_all_rtl_in_chain): Likewise for param "insn".
2046 (get_first_nonnote_insn): Likewise for local "insn".
2047 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2048 "seq" and use its methods to clarify things.
2049 (next_insn): Strengthen return type from rtx to rtx_insn *.
2050 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2051 local rtx_insn * using a checked cast, dropping a checked cast
2052 made redundant by this change. Use a cast to and method of
2053 rtx_sequence to clarify the code.
2054 (previous_insn): Rename param "insn" to "uncast_insn" and
2055 reintroduce "insn" as a local rtx_insn * using a checked cast,
2056 dropping a checked cast made redundant by this change. Use a cast
2057 to and method of rtx_sequence to clarify the code.
2058 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2059 reintroduce "insn" as a local rtx_insn * using a checked cast,
2060 dropping a checked cast made redundant by this change.
2061 (next_nonnote_insn_bb): Likewise.
2062 (prev_nonnote_insn): Likewise.
2063 (prev_nonnote_insn_bb): Likewise.
2064 (next_nondebug_insn): Likewise.
2065 (prev_nondebug_insn): Likewise.
2066 (next_nonnote_nondebug_insn): Likewise.
2067 (prev_nonnote_nondebug_insn): Likewise.
2068 (next_real_insn): Likewise.
2069 (prev_real_insn): Likewise.
2070 (next_active_insn): Likewise.
2071 (prev_active_insn): Likewise.
2072 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2073 clarity.
2074 (prev_cc0_setter): Likewise.
2075 (try_split): Rename param "trial" to "uncast_trial" and
2076 reintroduce "insn" as a local rtx_insn * using a checked cast,
2077 dropping checked casts made redundant by this change.
2078 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2079 rtx to rtx_insn *.
2080 (remove_insn): Rename param "insn" to "uncast_insn" and
2081 reintroduce "insn" as a local rtx_insn * using a checked cast.
2082 (emit_pattern_after_setloc): Likewise for param "after", as
2083 "uncast_after".
2084 (emit_pattern_after): Likewise. Strengthen local "prev" from
2085 rtx to rtx_insn *.
2086 (emit_pattern_before_setloc): Rename param "before" to
2087 "uncast_before" and reintroduce "before" as a local rtx_insn *
2088 using a checked cast. Strengthen locals "first", "last" from
2089 rtx to rtx_insn *.
2090 (emit_pattern_before): Likewise rename/cast param "before" to
2091 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2092 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2093 "first" and local "insn" from rtx to rtx_insn *.
2094 (copy_reg_eh_region_note_backward): Likewise for param "last"
2095 and local "insn".
2096 * expr.c (fixup_args_size_notes): Rename param "last" to
2097 "uncast_last" and reintroduce "last" as a local rtx_insn *
2098 using a checked cast. Strengthen local "insn" from rtx to
2099 rtx_insn *.
2100 * function.c (set_insn_locations): Strengthen param "insn" from
2101 rtx to rtx_insn *.
2102 (record_insns): Likewise for param "insns" and local "tmp".
2103 (active_insn_between): Rename param "tail" to
2104 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2105 using a checked cast.
2106 (thread_prologue_and_epilogue_insns): Split out top-level local
2107 rtx "seq" into three different rtx_insn * locals. Strengthen
2108 local "prologue_seq" from rtx to rtx_insn *.
2109 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2110 from rtx to rtx_insn *.
2111 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2112 (priority): Likewise for locals "prev_first", "twin".
2113 (setup_insn_max_reg_pressure): Likewise for param "after".
2114 (sched_setup_bb_reg_pressure_info): Likewise.
2115 (no_real_insns_p): Strengthen params from const_rtx to
2116 const rtx_insn *.
2117 (schedule_block): Strengthen local "next_tail" from rtx to
2118 rtx_insn *.
2119 * ifcvt.c (find_active_insn_before): Strengthen return type and
2120 param "insn" from rtx to rtx_insn *.
2121 (find_active_insn_after): Likewise.
2122 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2123 (cond_exec_process_if_block): Likewise for locals "then_start",
2124 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2125 (noce_process_if_block): Likewise for local "jump".
2126 (merge_if_block): Likewise for two locals named "end".
2127 (cond_exec_find_if_block): Likewise for local "last_insn".
2128 * jump.c (delete_related_insns): Rename param "insn" to
2129 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2130 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2131 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2132 NULL.
2133 (split_reg): Likewise.
2134 * lra.c (lra_process_new_insns): Likewise.
2135 * modulo-sched.c (permute_partial_schedule): Strengthen param
2136 "last" from rtx to rtx_insn *.
2137 * optabs.c (add_equal_note): Likewise for param "insns" and local
2138 "last_insn".
2139 (expand_binop_directly): Add checked casts to rtx_insn * within
2140 NEXT_INSN (pat) uses.
2141 (expand_unop_direct): Likewise.
2142 (maybe_emit_unop_insn): Likewise.
2143 * recog.c (peep2_attempt): Strengthen locals "last",
2144 "before_try", "x" from rtx to rtx_insn *.
2145 * reorg.c (optimize_skip): Strengthen return type and local
2146 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2147 and locals "trial", "next_trial" from rtx to rtx_insn *.
2148 * resource.c (next_insn_no_annul): Strengthen return type and
2149 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2150 rtx_sequence to clarify the code.
2151 (mark_referenced_resources): Add a checked cast to rtx_insn *
2152 within PREV_INSN (x).
2153 (find_dead_or_set_registers): Strengthen return type, param
2154 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2155 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2156 to rtx_insn **.
2157 (mark_target_live_regs): Strengthen params "insns" and "target",
2158 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2159 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2160 the code.
2161 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2162 from rtx to rtx_insn *.
2163 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2164 from rtx to rtx_insn *.
2165 (copy_reg_eh_region_note_backward): Likewise.
2166 (unshare_all_rtl_in_chain): Likewise for sole param.
2167 (dump_rtl_slim): Strengthen second and third params from const_rtx
2168 to const rtx_insn *.
2169 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2170 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2171 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2172 "next_tail" from rtx to rtx_insn *.
2173 (begin_move_insn): Likewise for local "next".
2174 * sched-int.h (sched_free_deps): Likewise for first and second
2175 params.
2176 (no_real_insns_p): Strengthen both params from const_rtx to
2177 const rtx_insn *.
2178 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2179 rtx to rtx_insn *.
2180 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2181 "next_tail".
2182 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2183 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2184 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2185 rtx_insn *.
2186 (debug_rtl_slim): Strengthen params "first" and "last" from
2187 const_rtx to const rtx_insn *.
2188 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2189 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2190 (convert_to_simple_return): Likewise for param "returnjump".
2191 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2192 "prologue_seq".
2193 (convert_to_simple_return): Likewise for param "returnjump".
2194 * valtrack.c (propagate_for_debug): Likewise for params
2195 "insn", "last".
2196 * valtrack.h (propagate_for_debug): Likewise for second param.
2197
2198 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2199
2200 * output.h (insn_current_reference_address): Strengthen param
2201 from rtx to rtx_insn *.
2202 * final.c (insn_current_reference_address): Likewise.
2203
2204 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2205
2206 * basic-block.h (inside_basic_block_p): Strengthen param from
2207 const_rtx to const rtx_insn *.
2208 * cfgbuild.c (inside_basic_block_p): Likewise.
2209
2210 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2211
2212 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2213 rtx_insn *.
2214 (get_trace_info): Likewise for param "insn".
2215 (save_point_p): Likewise.
2216 (maybe_record_trace_start): Likewise for both params.
2217 (maybe_record_trace_start_abnormal): Likewise.
2218 (create_trace_edges): Likewise for sole param and for three of the
2219 locals named "lab".
2220 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2221 to rtx_insn *, and update a call to pat->element to pat->insn.
2222
2223 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2224
2225 * function.h (struct expr_status): Convert field "x_forced_labels"
2226 from rtx_expr_list * to rtx_insn_list *.
2227
2228 * cfgbuild.c (make_edges): Convert local "x" from an
2229 rtx_expr_list * to an rtx_insn_list *, replacing use of
2230 "element" method with "insn" method.
2231 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2232 * except.c (sjlj_emit_dispatch_table): Replace use of
2233 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2234 forced_labels.
2235 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2236 rtx_expr_list * to an rtx_insn_list *, replacing use of
2237 "element" method with "insn" method.
2238 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2239 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2240 rtx_insn *, adding a checked cast. Replace use of
2241 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2242 forced_labels.
2243 (expand_label): Likewise for local "label_r".
2244
2245 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2246
2247 * function.h (struct rtl_data): Convert field
2248 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2249 rtx_insn_list *.
2250 * rtl.h (remove_node_from_insn_list): New prototype.
2251
2252 * builtins.c (expand_builtin): When prepending to
2253 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2254 gen_rtx_EXPR_LIST.
2255 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2256 to rtx_insn_list *, and use its "insn" method rather than
2257 "element" method.
2258 * cfgrtl.c (delete_insn): Use new function
2259 remove_node_from_insn_list rather than
2260 remove_node_from_expr_list.
2261 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2262 to rtx_insn_list *, and use its "insn" method rather than
2263 "element" method.
2264 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2265 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2266 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2267 from remove_node_from_expr_list.
2268 * stmt.c (expand_label): When prepending to
2269 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2270 gen_rtx_EXPR_LIST.
2271
2272 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2273
2274 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2275 and "x_naked_return_label" from rtx to rtx_code_label *.
2276
2277 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2278
2279 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2280 (SET_NEXT_INSN): Likewise.
2281 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2282
2283 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2284 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2285 to split out the SEQUENCE from local "bundle", strengthening the
2286 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2287 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2288 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2289 and the type of the elements of the "slot" array from rtx to
2290 rtx_insn *.
2291 (reorg_split_calls): Likewise for locals "insn" and "next", and
2292 the type of the elements of the "slot" array.
2293
2294 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2295 array.
2296 (frv_function_prologue): Likewise for locals "insn", "next",
2297 "last_call".
2298 (frv_register_nop): Introduce a local "nop_insn" to be the
2299 rtx_insn * containing rtx "nop".
2300
2301 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2302 used as an insn and sometimes as a pattern, so rename it to
2303 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2304 using it where dealing with the core insn.
2305
2306 * config/picochip/picochip.c (reorder_var_tracking_notes):
2307 Strengthen locals "insn", "next", "last_insn", "queue",
2308 "next_queue", "prev" from rtx to rtx_insn *.
2309
2310 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2311 the second param is an rtx_insn ** rather than an rtx **.
2312 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2313 from rtx to rtx_sequence *, and introduce local named "sequence",
2314 using methods of rtx_sequence to clarify the code.
2315 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2316 use its methods.
2317 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2318 Rename param "after" to "uncast_after", reintroducing "after" as a
2319 local rtx_insn * with a checked cast.
2320 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2321 reintroducing "after" as a local rtx_insn * with a checked cast.
2322 Strengthen local "last" from rtx to rtx_insn * and remove the
2323 now-redundant checked casts.
2324 (copy_delay_slot_insn): Strengthen return type and param from rtx
2325 to rtx_insn *.
2326
2327 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2328 "last" from rtx to rtx_insn *.
2329
2330 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2331
2332 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2333 param from rtx to rtx_insn *.
2334
2335 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2336
2337 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2338 and local "insn" from rtx to rtx_insn *.
2339 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2340 (unfilled_slots_next): Likewise.
2341 (function_return_label): Strengthen from rtx to rtx_code_label *.
2342 (function_simple_return_label): Likewise.
2343 (first_active_target_insn): Strengthen return type and param from
2344 rtx to rtx_insn *.
2345 (find_end_label): Strengthen return type from rtx to
2346 rtx_code_label *; strengthen locals as appropriate.
2347 (emit_delay_sequence): Strengthen return type, param "insn" and
2348 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2349 and local "li" from rtx to rtx_insn_list *, using methods of
2350 rtx_insn_list for clarity and typesafety.
2351 (add_to_delay_list): Strengthen return type and param "insn" from
2352 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2353 rtx_insn_list * and use methods of rtx_insn_list.
2354 (delete_from_delay_slot): Strengthen return type, param "insn",
2355 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2356 Strengthen local "seq" from rtx to rtx_sequence *, and local
2357 "delay_list" from rtx to rtx_insn_list *, using methods of
2358 rtx_sequence for clarity and type-safety.
2359 (delete_scheduled_jump): Add checked cast when invoking
2360 delete_from_delay_slot. Strengthen local "trial" from rtx to
2361 rtx_insn *.
2362 (optimize_skip): Strengthen return type and local "delay_list"
2363 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2364 rtx_insn *.
2365 (steal_delay_list_from_target): Strengthen return type, param
2366 "delay_list" and local "new_delay_list" from rtx to
2367 rtx_insn_list *. Strengthen param "seq" from rtx to
2368 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
2369 rtx_insn **.
2370 Split out local "temp" into multiple more-tightly scoped locals:
2371 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
2372 of rtx_insn_list and rtx_sequence for clarity and typesafety.
2373 Strengthen locals named "trial" from rtx to rtx_insn *.
2374 (steal_delay_list_from_fallthrough): Strengthen return type and
2375 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
2376 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
2377 Strengthen local "trial" from rtx to rtx_insn *.
2378 (try_merge_delay_insns): Strength local "merged_insns" from rtx
2379 to rtx_insn_list * and use its methods. Strengthen local "pat"
2380 from rtx to rtx_sequence * and use its methods. Strengthen locals
2381 "dtrial" and "new_rtx" from rtx to rtx_insn *.
2382 (get_label_before): Strengthen return type and local "label" from
2383 rtx to rtx_insn *.
2384 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
2385 "next_trial", "next", prev". Strengthen local "delay_list" from
2386 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
2387 rtx_insn **.
2388 (follow_jumps): Strengthen return type, param "label" and locals
2389 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
2390 (fill_slots_from_thread): Strengthen return type, param
2391 "delay_list" from rtx to rtx_insn_list *. Strengthen params
2392 "insn", "thread", "opposite_thread" and locals "new_thread",
2393 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
2394 "sequence" from a checked cast to rtx_sequence so that we can call
2395 steal_delay_list_from_target and steal_delay_list_from_fallthrough
2396 with an rtx_sequence *.
2397 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
2398 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
2399 Strengthen local "delay_list" from rtx to rtx_insn_list *.
2400 (relax_delay_slots): Strengthen param "first" and locals "insn",
2401 "next", "trial", "delay_insn", "target_label" from rtx to
2402 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
2403 Introduce a local "trial_seq" for PATTERN (trial) of type
2404 rtx_sequence *, in both cases using methods of rtx_sequence.
2405 (dbr_schedule): Strengthen param "first" and locals "insn",
2406 "next", "epilogue_insn" from rtx to rtx_insn *.
2407
2408 2014-08-28 Richard Biener <rguenther@suse.de>
2409
2410 PR tree-optimization/62283
2411 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2412 Do not peel loops for alignment where the vector loop likely
2413 doesn't run at least VF times.
2414
2415 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2416
2417 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
2418 important_candidates. Consider all important candidates if
2419 IVS doesn't give any result. Remove check on ivs->upto.
2420 (try_add_cand_for): Call iv_ca_add_use only once.
2421
2422 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2423 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2424 Anna Tikhonova <anna.tikhonova@intel.com>
2425 Ilya Tocar <ilya.tocar@intel.com>
2426 Andrey Turetskiy <andrey.turetskiy@intel.com>
2427 Ilya Verbin <ilya.verbin@intel.com>
2428 Kirill Yukhin <kirill.yukhin@intel.com>
2429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2430
2431 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
2432 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
2433 masking.
2434 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
2435 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2436 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2437 (define_insn "*mul<mode>3"): Add EVEX version.
2438
2439 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2440 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2441 Anna Tikhonova <anna.tikhonova@intel.com>
2442 Ilya Tocar <ilya.tocar@intel.com>
2443 Andrey Turetskiy <andrey.turetskiy@intel.com>
2444 Ilya Verbin <ilya.verbin@intel.com>
2445 Kirill Yukhin <kirill.yukhin@intel.com>
2446 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2447
2448 * config/i386/sse.md
2449 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
2450 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
2451 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
2452 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
2453 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
2454 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
2455 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
2456 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
2457 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
2458 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
2459 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
2460 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
2461 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
2462 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
2463 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
2464 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
2465
2466 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2468 Anna Tikhonova <anna.tikhonova@intel.com>
2469 Ilya Tocar <ilya.tocar@intel.com>
2470 Andrey Turetskiy <andrey.turetskiy@intel.com>
2471 Ilya Verbin <ilya.verbin@intel.com>
2472 Kirill Yukhin <kirill.yukhin@intel.com>
2473 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2474
2475 * config/i386/sse.md
2476 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
2477 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
2478 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
2479
2480 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2482 Anna Tikhonova <anna.tikhonova@intel.com>
2483 Ilya Tocar <ilya.tocar@intel.com>
2484 Andrey Turetskiy <andrey.turetskiy@intel.com>
2485 Ilya Verbin <ilya.verbin@intel.com>
2486 Kirill Yukhin <kirill.yukhin@intel.com>
2487 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2488
2489 * config/i386/sse.md
2490 (define_mode_iterator VI128_256): New.
2491 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2492
2493 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2495 Anna Tikhonova <anna.tikhonova@intel.com>
2496 Ilya Tocar <ilya.tocar@intel.com>
2497 Andrey Turetskiy <andrey.turetskiy@intel.com>
2498 Ilya Verbin <ilya.verbin@intel.com>
2499 Kirill Yukhin <kirill.yukhin@intel.com>
2500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2501
2502 * config/i386/sse.md
2503 (define_mode_iterator VI8_256_512): New.
2504 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
2505 Ditto.
2506 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2507 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
2508 Ditto.
2509 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
2510
2511 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2512
2513 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
2514 pointer to the cumulative reloc value and return the value for
2515 this reloc instead.
2516 (compute_reloc_for_rtx): Take a const_rtx. Call
2517 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
2518 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
2519 for_each_rtx for the CONST case.
2520
2521 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2522
2523 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
2524 (mark_constants_in_pattern): ...this new function to iterate over
2525 all the subrtxes.
2526 (mark_constants): Update accordingly.
2527
2528 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2529
2530 * varasm.c: Include rtl-iter.h.
2531 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
2532 Remove the pointer to the cumulative hashval_t and just return
2533 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
2534 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2535 Accumulate the hashval_ts here instead of const_rtx_hash_1.
2536
2537 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2538
2539 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
2540 Give real type of data parameter. Remove return value.
2541 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
2542 to iterate over subrtxes.
2543
2544 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2545
2546 * var-tracking.c (use_narrower_mode_test): Turn from being a
2547 for_each_rtx callback to being a function that examines each
2548 subrtx itself.
2549 (adjust_mems): Update accordingly.
2550
2551 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2552
2553 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
2554 callback to being a function that examines each subrtx itself.
2555 Remove handling of null rtxes.
2556 (add_uses): Update accordingly.
2557
2558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2559
2560 * var-tracking.c: Include rtl-iter.h.
2561 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
2562 to being a function that examines each subrtx itself.
2563 (use_type): Update accordingly.
2564
2565 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2566
2567 * store-motion.c: Include rtl-iter.h.
2568 (extract_mentioned_regs_1): Delete.
2569 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
2570 for_each_rtx to iterate over subrtxes.
2571
2572 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2573
2574 * sel-sched.c: Include rtl-iter.h
2575 (count_occurrences_1): Delete.
2576 (count_occurrences_equiv): Turn rtxes into const_rtxes.
2577 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2578
2579 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2580
2581 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
2582 * rtlanal.c (tls_referenced_p_1): Delete.
2583 (tls_referenced_p): Take a const_rtx rather than an rtx.
2584 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2585
2586 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2587
2588 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
2589 (for_each_inc_dec): Take an rtx rather than an rtx *.
2590 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
2591 (cselib_record_sets): Likewise.
2592 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
2593 (check_for_inc_dec): Likewise.
2594 * rtlanal.c (for_each_inc_dec_ops): Delete.
2595 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
2596 rather than a pointer to the memory address. Replace
2597 for_each_inc_dec_ops argument with separate function and data
2598 arguments. Abort on non-autoinc addresses.
2599 (for_each_inc_dec_find_mem): Delete.
2600 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
2601 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
2602
2603 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2604
2605 * rtl.h (find_all_hard_regs): Declare.
2606 * rtlanal.c (find_all_hard_regs): New function.
2607 (record_hard_reg_uses_1): Delete.
2608 (record_hard_reg_uses): Use find_all_hard_regs.
2609
2610 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2611
2612 * rtl.h (replace_label_data): Delete.
2613 (replace_label): Take the old label, new label and update-nuses flag
2614 as direct arguments. Return void.
2615 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
2616 * rtlanal.c (replace_label): Update interface as above. Handle
2617 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
2618 iterator. Use FOR_EACH_SUBRTX_PTR.
2619
2620 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2621
2622 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
2623 with const_rtx parameters.
2624 * varasm.c (get_pool_constant): Likewise.
2625 * rtlanal.c (rtx_referenced_p_1): Delete.
2626 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2627 Assert that the rtx we're looking for is nonnull. Allow searches
2628 for constant pool SYMBOL_REFs.
2629
2630 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2631
2632 * reload1.c: Include rtl-iter.h.
2633 (note_reg_elim_costly): Turn from being a for_each_rtx callback
2634 to being a function that examines each subrtx itself.
2635 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
2636
2637 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2638
2639 * regcprop.c (cprop_find_used_regs_1): Delete.
2640 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2641
2642 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2643
2644 * regcprop.c: Include rtl-iter.h.
2645 (kill_value): Take a const_rtx.
2646 (kill_autoinc_value): Turn from being a for_each_rtx callback
2647 to being a function that examines each subrtx itself.
2648 (copyprop_hardreg_forward_1): Update accordingly.
2649
2650 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2651
2652 * reg-stack.c: Include rtl-iter.h.
2653 (subst_stack_regs_in_debug_insn): Delete.
2654 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2655 instead of for_each_rtx.
2656
2657 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2658
2659 * lower-subreg.c (find_decomposable_subregs): Turn from being
2660 a for_each_rtx callback to being a function that examines each
2661 subrtx itself. Remove handling of null rtxes.
2662 (decompose_multiword_subregs): Update accordingly.
2663
2664 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2665
2666 * lower-subreg.c (adjust_decomposed_uses): Delete.
2667 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2668 Remove handling of null rtxes.
2669
2670 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2671
2672 * lower-subreg.c: Include rtl-iter.h.
2673 (resolve_subreg_use): Turn from being a for_each_rtx callback
2674 to being a function that examines each subrtx itself. Remove
2675 handling of null rtxes.
2676 (resolve_reg_notes, resolve_simple_move): Update accordingly.
2677 (decompose_multiword_subregs): Likewise.
2678
2679 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2680
2681 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2682 to being a function that examines each subrtx itself.
2683 (simplify_using_condition, simplify_using_initial_values): Update
2684 accordingly.
2685
2686 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2687
2688 * loop-iv.c: Include rtl-iter.h.
2689 (find_single_def_src): New function.
2690 (replace_single_def_regs): Turn from being a for_each_rtx callback
2691 to being a function that examines each subrtx itself.
2692 (replace_in_expr, simplify_using_initial_values): Update accordingly.
2693
2694 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2695
2696 * jump.c (eh_returnjump_p_1): Delete.
2697 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2698 Remove handling of null rtxes.
2699
2700 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2701
2702 * jump.c: Include rtl-iter.h.
2703 (returnjump_p_1): Delete.
2704 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2705 Remove handling of null rtxes.
2706
2707 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2708
2709 * ira.c: Include rtl-iter.h.
2710 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2711 to being a function that examines each subrtx itself. Remove
2712 handling of null rtxes.
2713 (update_equiv_regs): Update call accordingly.
2714
2715 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2716
2717 * fwprop.c: Include rtl-iter.h.
2718 (varying_mem_p): Turn from being a for_each_rtx callback to being
2719 a function that examines each subrtx itself.
2720 (propagate_rtx): Update accordingly.
2721
2722 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2723
2724 * function.c: Include rtl-iter.h
2725 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2726 callback to being a function that examines each subrtx itself.
2727 Return the changed flag.
2728 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2729 (instantiate_virtual_regs): Update calls accordingly.
2730
2731 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2732
2733 * final.c: Include rtl-iter.h.
2734 (mark_symbol_ref_as_used): Delete.
2735 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2736 for_each_rtx.
2737
2738 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2739
2740 * emit-rtl.c: Include rtl-iter.h.
2741 (find_auto_inc): Turn from being a for_each_rtx callback to being
2742 a function that examines each subrtx itself. Assume the first operand
2743 to an RTX_AUTOINC is the automodified register.
2744 (try_split): Update call accordingly.
2745
2746 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2747
2748 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2749 Return a bool, inverting the result so that 0/false means "not ok".
2750 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2751 subrtxes of a CONST.
2752 (mem_loc_descriptor, add_const_value_attribute)
2753 (resolve_addr_in_expr): Update calls accordingly.
2754
2755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2756
2757 * dwarf2out.c: Include rtl-iter.h.
2758 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2759 Remove unused data parameter. Return a bool, inverting the result
2760 so that 0/false means "not ok".
2761 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
2762 instead of for_each_rtx.
2763
2764 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2765
2766 * dse.c: Include rtl-iter.h.
2767 (check_mem_read_rtx): Change void * parameter to real type.
2768 Remove return value.
2769 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
2770 for_each_rtx. Don't handle null rtxes.
2771
2772 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2773
2774 * df-problems.c: Include rtl-iter.h.
2775 (find_memory): Turn from being a for_each_rtx callback to being
2776 a function that examines each subrtx itself. Continue to look for
2777 volatile references even after a nonvolatile one has been found.
2778 (can_move_insns_across): Update calls accordingly.
2779
2780 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2781
2782 * ddg.c (walk_mems_2, walk_mems_1): Delete.
2783 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2784 to iterate over subrtxes. Return a bool rather than an int.
2785
2786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2787
2788 * ddg.c: Include rtl-iter.h.
2789 (mark_mem_use_1): Rename to...
2790 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
2791 instead of for_each_rtx.
2792 (mem_read_insn_p): Update accordingly.
2793
2794 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2795
2796 * cse.c (change_cc_mode_args): Delete.
2797 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2798 a function that examines each subrtx itself. Take the fields of
2799 change_cc_mode_args as argument and return void.
2800 (cse_change_cc_mode_insn): Update calls accordingly.
2801
2802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2803
2804 * cse.c (is_dead_reg): Change argument to const_rtx.
2805 (dead_debug_insn_data): Delete.
2806 (is_dead_debug_insn): Expand commentary. Turn from being a
2807 for_each_rtx callback to being a function that examines
2808 each subrtx itself. Take the fields of dead_debug_insn_data
2809 as argument.
2810 (delete_trivially_dead_insns): Update call accordingly.
2811
2812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2813
2814 * cse.c (check_for_label_ref): Move earlier in file. Turn from
2815 being a for_each_rtx callback to being a function that examines
2816 each subrtx itself.
2817 (cse_extended_basic_block): Update call accordingly.
2818
2819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2820
2821 * cse.c (check_dependence_data): Delete.
2822 (check_dependence): Change from being a for_each_rtx callback to being
2823 a function that examines all subrtxes itself. Don't handle null rtxes.
2824 (invalidate): Update call accordingly.
2825
2826 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2827
2828 * cse.c: Include rtl-iter.h.
2829 (approx_reg_cost_1): Delete.
2830 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2831 Don't handle null rtxes.
2832
2833 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2834
2835 * cfgcleanup.c: Include rtl-iter.h.
2836 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2837 to being a function that examines each subrtx itself.
2838 (thread_jump): Update accordingly.
2839
2840 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2841
2842 * combine-stack-adj.c: Include rtl-iter.h.
2843 (record_stack_refs_data): Delete.
2844 (record_stack_refs): Turn from being a for_each_rtx callback
2845 to being a function that examines each subrtx itself.
2846 Take a pointer to the reflist. Invert sense of return value
2847 so that true means success and false means failure. Don't
2848 handle null rtxes.
2849 (combine_stack_adjustments_for_block): Update accordingly.
2850
2851 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2852
2853 * combine.c (record_truncated_value): Turn from being a for_each_rtx
2854 callback to a function that takes an rtx and returns a bool
2855 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2856 for_each_rtx.
2857
2858 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2859
2860 * combine.c: Include rtl-iter.h.
2861 (unmentioned_reg_p_1): Delete.
2862 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2863 Don't handle null rtxes.
2864
2865 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2866
2867 * calls.c: Include rtl-iter.h.
2868 (internal_arg_pointer_based_exp_1): Delete.
2869 (internal_arg_pointer_based_exp): Take a const_rtx.
2870 Use FOR_EACH_SUBRTX to iterate over subrtxes.
2871
2872 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2873
2874 * caller-save.c: Include rtl-iter.h.
2875 (add_used_regs_1): Delete.
2876 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2877 to iterate over subrtxes. Assert that any remaining pseudos
2878 have been spilled.
2879
2880 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2881
2882 * bt-load.c: Include rtl-iter.h.
2883 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2884 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
2885 to iterate over subrtxes.
2886 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2887 find_btr_use rather than btr_referenced_p.
2888
2889 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2890
2891 * alias.c: Include rtl-iter.h.
2892 (refs_newer_value_cb): Delete.
2893 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2894
2895 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2896
2897 * rtl-iter.h: New file.
2898 * rtlanal.c: Include it.
2899 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2900 (generic_subrtx_iterator <T>::add_single_to_queue)
2901 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2902 (generic_subrtx_iterator <T>::free_array): New functions.
2903 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2904 (generic_subrtx_iterator <const_rtx_accessor>)
2905 (generic_subrtx_iterator <rtx_var_accessor>
2906 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2907 (setup_reg_subrtx_bounds): New function.
2908 (init_rtlanal): Call it.
2909
2910 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
2911
2912 PR target/62261
2913 * config/sh/sh.md (ashlsi3): Handle negative shift count for
2914 TARGET_SHMEDIA.
2915 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2916
2917 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
2918
2919 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2920
2921 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2922
2923 * rtl.h (JUMP_LABEL_AS_INSN): New.
2924
2925 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2926
2927 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2928 rtx_expr_list **.
2929 (alloc_EXPR_LIST): Strengthen return type from rtx to
2930 rtx_expr_list *.
2931 (remove_free_EXPR_LIST_node): Likewise for param.
2932 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2933 from rtx to rtx_expr_list *.
2934 * sched-int.h (struct deps_desc): Strengthen fields
2935 "pending_read_mems" and "pending_write_mems" from rtx to
2936 rtx_expr_list *.
2937
2938 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2939 rtx to rtx_expr_list *.
2940 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2941 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2942 rtx_expr_list **.
2943 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
2944 from rtx to rtx_expr_list *.
2945 * loop-iv.c (simplify_using_initial_values): Strengthen local
2946 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2947 "pnote_next" from rtx * to rtx_expr_list **.
2948 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
2949 param "exprp" from rtx * to rtx_expr_list **.
2950 (add_insn_mem_dependence): Strengthen local "mem_list" from
2951 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
2952 to rtx_expr_list *.
2953 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2954 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
2955 param "old_mems_p" from rtx * to rtx_expr_list **.
2956 * var-tracking.c (struct adjust_mem_data): Strengthen field
2957 "side_effects" from rtx to rtx_expr_list *.
2958 (adjust_insn): Replace NULL_RTX with NULL when assigning to
2959 rtx_expr_list *.
2960 (prepare_call_arguments): Likewise.
2961
2962 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2963
2964 * function.h (struct rtl_data): Strengthen field
2965 "x_stack_slot_list" from rtx to rtx_expr_list *.
2966
2967 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2968 when assigning to stack_slot_list.
2969
2970 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2971
2972 * function.h (struct rtl_data): Strengthen field
2973 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2974 * rtl.h (remove_node_from_expr_list): Strengthen second param from
2975 rtx * to rtx_expr_list **.
2976
2977 * cfgbuild.c (make_edges): In loop over
2978 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2979 rtx_expr_list *, and use methods of the latter class to clarify
2980 the code.
2981 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2982 rtx_expr_list *, and use methods of the latter class to clarify
2983 the code.
2984 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2985 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2986 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2987 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
2988 to rtx_expr_list *. Use methods of the latter class to clarify
2989 the code.
2990
2991 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2992
2993 * function.h (struct expr_status): Strengthen field
2994 "x_forced_labels" from rtx to rtx_expr_list *.
2995
2996 * cfgbuild.c (make_edges): Split local "x" into two locals,
2997 strengthening one from rtx to rtx_expr_list *, and using methods
2998 of said class.
2999 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
3000 loop over forced_labels, introduce strengthen it from rtx to
3001 rtx_expr_list *, using methods to clarify the code.
3002 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
3003 to rtx_expr_list *, using methods of said class to clarify the
3004 code.
3005 * reload1.c (set_initial_label_offsets): Split local "x" into two
3006 per-loop variables, strengthening the first from rtx to
3007 rtx_expr_list * and using methods.
3008
3009 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3010
3011 * coretypes.h (class rtx_expr_list): Add forward declaration.
3012 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
3013 * gengenrtl.c (special_rtx): Add EXPR_LIST.
3014 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
3015 invariant: GET_CODE (X) == EXPR_LIST.
3016 (is_a_helper <rtx_expr_list *>::test): New.
3017 (rtx_expr_list::next): New.
3018 (rtx_expr_list::element): New.
3019 (gen_rtx_EXPR_LIST): New.
3020
3021 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3022
3023 * varasm.c (mark_constants): Convert a GET_CODE check into a
3024 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3025 Use methods of rtx_sequence to clarify the code.
3026
3027 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3028
3029 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
3030 local "seq" via a checked cast, and use methods of rtx_sequence
3031 to simplify the code.
3032
3033 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3034
3035 * resource.c (mark_referenced_resources): Strengthen local
3036 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
3037 using methods of rtx_sequence to clarify the code.
3038 (find_dead_or_set_registers): Within the switch statement, convert
3039 a GET_CODE check to a dyn_cast, introducing local "seq". Within
3040 the JUMP_P handling, introduce another local "seq", adding a
3041 checked cast to rtx_sequence *. In both cases, use methods of
3042 rtx_sequence to clarify the code.
3043 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3044 via a checked cast, and use methods of rtx_sequence to simplify
3045 the code.
3046
3047 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3048
3049 * reorg.c (redundant_insn): In two places in the function, replace
3050 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3051 usings methods of rtx_sequence to clarify the code.
3052
3053 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3054
3055 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3056 local "seq" with a checked cast, and use methods of rtx_sequence
3057 to clarify the code.
3058
3059 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3060
3061 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3062 with a checked cast, in the region for where we know it's a
3063 SEQUENCE. Use methods of rtx_sequence.
3064
3065 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3066
3067 * final.c (get_attr_length_1): Replace GET_CODE check with a
3068 dyn_cast, introducing local "seq" and the use of methods of
3069 rtx_sequence.
3070 (shorten_branches): Likewise, introducing local "body_seq".
3071 Strengthen local "inner_insn" from rtx to rtx_insn *.
3072 (reemit_insn_block_notes): Replace GET_CODE check with a
3073 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3074 Use methods of rtx_sequence.
3075 (final_scan_insn): Likewise, introducing local "seq" for when
3076 "body" is known to be a SEQUENCE, using its methods.
3077
3078 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3079
3080 * except.c (can_throw_external): Strengthen local "seq" from rtx
3081 to rtx_sequence *. Use methods of rtx_sequence.
3082 (insn_nothrow_p): Likewise.
3083
3084 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3085
3086 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3087 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3088 Use methods of rtx_sequence.
3089 (scan_trace): Likewise for local "pat".
3090
3091 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3092
3093 * coretypes.h (class rtx_sequence): Add forward declaration.
3094 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3095 invariant: GET_CODE (X) == SEQUENCE.
3096 (is_a_helper <rtx_sequence *>::test): New.
3097 (is_a_helper <const rtx_sequence *>::test): New.
3098 (rtx_sequence::len): New.
3099 (rtx_sequence::element): New.
3100 (rtx_sequence::insn): New.
3101
3102 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3103
3104 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3105 rtx_insn_list **.
3106 (alloc_INSN_LIST): Strengthen return type from rtx to
3107 rtx_insn_list *.
3108 (copy_INSN_LIST): Likewise for return type and param.
3109 (concat_INSN_LIST): Likewise for both params and return type.
3110 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3111 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3112 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3113 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3114
3115 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3116 "implicit_sets", "control_uses", "clobbers" from rtx to
3117 rtx_insn_list *.
3118 (struct deps_desc): Likewise for fields "pending_read_insns",
3119 "pending_write_insns", "pending_jump_insns",
3120 "last_pending_memory_flush", "last_function_call",
3121 "last_function_call_may_noreturn", "sched_before_next_call",
3122 "sched_before_next_jump".
3123 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3124 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3125
3126 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3127 from rtx to rtx_insn_list *.
3128 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3129 rtx_insn_list *.
3130
3131 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3132 to rtx_insn_list **.
3133 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3134 rtx_insn_list *.
3135 (queue_insn): Likewise for local "link".
3136 (struct haifa_saved_data): Strengthen field "insn_queue" from
3137 rtx * to rtx_insn_list **.
3138 (save_backtrack_point): Update allocation of save->insn_queue to
3139 reflect the strengthening of elements from rtx to rtx_insn_list *.
3140 (queue_to_ready): Strengthen local "link" from rtx to
3141 rtx_insn_list *; use methods "next" and "insn" when traversing the
3142 list.
3143 (early_queue_to_ready): Likewise for locals "link", "next_link",
3144 "prev_link".
3145 (schedule_block): Update allocation of insn_queue to reflect the
3146 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3147 local "link" from rtx to rtx_insn_list *, and use methods when
3148 working it.
3149 (add_to_speculative_block): Strengthen locals "twins" and
3150 "next_node" from rtx to rtx_insn_list *, and use methods when
3151 working with them. Strengthen local "twin" from rtx to
3152 rtx_insn *, eliminating a checked cast.
3153 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3154 from rtx to rtx_insn_list *, and use methods when working with
3155 them.
3156
3157 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3158 from rtx to rtx_insn_list *, adding a checked cast.
3159 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3160 rtx_insn_list **.
3161 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3162 "newlink" from rtx to rtx_insn_list *. Strengthen local
3163 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3164 from rtx to rtx_insn *.
3165 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3166 from rtx to rtx_insn_list *. Use methods of the latter class.
3167 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3168 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3169 (remove_free_INSN_LIST_node): Strengthen return type and local
3170 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3171 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3172 rtx_insn_list *, using "insn" method.
3173
3174 * sched-deps.c (add_dependence_list): Strengthen param "list"
3175 from rtx to rtx_insn_list *, and use methods when working with it.
3176 (add_dependence_list_and_free): Strengthen param "listp" from
3177 rtx * to rtx_insn_list **.
3178 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3179 to rtx_insn_list **, and use methods when working with *listp.
3180 (remove_from_both_dependence_lists): Strengthen param "listp" from
3181 rtx * to rtx_insn_list **
3182 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3183 to rtx_insn_list **. Eliminate local "link", in favor of two new
3184 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3185 respectively.
3186 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3187 by introducing local "cond_deps".
3188 (remove_from_deps): Strengthen param "insn" from rtx to
3189 rtx_insn *.
3190
3191 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3192 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3193 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3194 Use methods of rtx_insn_list.
3195
3196 * store-motion.c (struct st_expr): Strengthen fields
3197 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3198 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3199 rtx_insn_list *.
3200 (find_moveable_store): Split out "tmp" into multiple more-tightly
3201 scoped locals. Use methods of rtx_insn_list *.
3202 (compute_store_table): Strengthen local "tmp" from rtx to
3203 rtx_insn *. Use methods of rtx_insn_list *.
3204
3205 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3206
3207 * coretypes.h (class rtx_insn_list): Add forward declaration.
3208 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3209 (is_a_helper <rtx_insn_list *>::test): New.
3210 (rtx_insn_list::next): New.
3211 (rtx_insn_list::insn): New.
3212 (gen_rtx_INSN_LIST): Add prototype.
3213 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3214 * gengenrtl.c (special_rtx): Add INSN_LIST.
3215
3216 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3217
3218 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3219 "prev" from rtx to rtx_insn *.
3220
3221 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3222
3223 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3224 functions. Require merely an rtx for now, not an rtx_insn *.
3225 (BLOCK_FOR_INSN): Likewise.
3226 (INSN_LOCATION): Likewise.
3227 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3228
3229 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3230
3231 * rtl.h (PATTERN): Convert this macro into a pair of inline
3232 functions, for now, requiring const_rtx and rtx.
3233
3234 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3235
3236 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3237 rtx_insn *.
3238 (final_postscan_insn): Likewise.
3239 (adjust_cost): Likewise.
3240 (adjust_priority): Likewise.
3241 (variable_issue): Likewise.
3242 (macro_fusion_pair_p): Likewise.
3243 (dfa_post_cycle_insn): Likewise.
3244 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3245 (first_cycle_multipass_issue): Likewise.
3246 (dfa_new_cycle): Likewise.
3247 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3248 (speculate_insn): Likewise for param "insn".
3249 (gen_spec_check): Likewise for params "insn" and "label".
3250 (get_insn_spec_ds): Likewise for param "insn".
3251 (get_insn_checked_ds): Likewise.
3252 (dispatch_do): Likewise.
3253 (dispatch): Likewise.
3254 (cannot_copy_insn_p): Likewise.
3255 (invalid_within_doloop): Likewise.
3256 (legitimate_combined_insn): Likewise.
3257 (needed): Likewise.
3258 (after): Likewise.
3259
3260 * doc/tm.texi: Automatically updated to reflect changes to
3261 target.def.
3262
3263 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3264 working with insn.
3265 (schedule_block): Likewise.
3266 (sched_init): Likewise.
3267 (sched_speculate_insn): Strengthen param "insn" from rtx to
3268 rtx_insn *.
3269 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3270 working with insn.
3271 * hooks.c (hook_bool_rtx_true): Rename to...
3272 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3273 rtx to rtx_insn *.
3274 (hook_constcharptr_const_rtx_null): Rename to...
3275 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3276 first param from const_rtx to const rtx_insn *.
3277 (hook_bool_rtx_int_false): Rename to...
3278 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3279 param from rtx to rtx_insn *.
3280 (hook_void_rtx_int): Rename to...
3281 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3282 rtx to rtx_insn *.
3283
3284 * hooks.h (hook_bool_rtx_true): Rename to...
3285 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3286 rtx to rtx_insn *.
3287 (hook_bool_rtx_int_false): Rename to...
3288 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3289 param from rtx to rtx_insn *.
3290 (hook_void_rtx_int): Rename to...
3291 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3292 rtx to rtx_insn *.
3293 (hook_constcharptr_const_rtx_null): Rename to...
3294 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3295 first param from const_rtx to const rtx_insn *.
3296
3297 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3298 and local "prev" from rtx to rtx_insn *.
3299
3300 * sched-int.h (sched_speculate_insn): Strengthen first param from
3301 rtx to rtx_insn *.
3302
3303 * sel-sched.c (create_speculation_check): Likewise for local "label".
3304 * targhooks.c (default_invalid_within_doloop): Strengthen param
3305 "insn" from const_rtx to const rtx_insn *.
3306 * targhooks.h (default_invalid_within_doloop): Strengthen param
3307 from const_rtx to const rtx_insn *.
3308
3309 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3310 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3311
3312 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3313 "insn".
3314 (arc_invalid_within_doloop): Likewise, with const.
3315
3316 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3317 (arm_cannot_copy_insn_p): Likewise for param "insn".
3318 (arm_unwind_emit): Likewise.
3319
3320 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3321 "dep_insn".
3322
3323 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3324 (c6x_variable_issue): Likewise. Removed now-redundant checked
3325 cast.
3326 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3327
3328 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3329 Likewise for param "insn".
3330 (epiphany_mode_after): Likewise.
3331 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3332 params "insn", "dep_insn".
3333 (epiphany_mode_needed): Likewise for param "insn".
3334 (epiphany_mode_after): Likewise.
3335
3336 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3337 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3338 (ix86_avx_u128_mode_needed): Likewise.
3339 (ix86_i387_mode_needed): Likewise.
3340 (ix86_mode_needed): Likewise.
3341 (ix86_avx_u128_mode_after): Likewise.
3342 (ix86_mode_after): Likewise.
3343 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3344 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3345 (ix86_adjust_priority): Likewise for param "insn".
3346 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3347 (do_dispatch): Likewise.
3348 (has_dispatch): Likewise.
3349 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3350
3351 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3352 reflect renaming of default hook implementation from
3353 hook_constcharptr_const_rtx_null to
3354 hook_constcharptr_const_rtx_insn_null.
3355 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3356 rtx to rtx_insn *.
3357 (ia64_variable_issue): Likewise for param "insn".
3358 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3359 (ia64_dfa_new_cycle): Likewise.
3360 (ia64_get_insn_spec_ds): Likewise.
3361 (ia64_get_insn_checked_ds): Likewise.
3362 (ia64_speculate_insn): Likewise.
3363 (ia64_gen_spec_check): Likewise for params "insn", "label".
3364 (ia64_asm_unwind_emit): Likewise for param "insn".
3365
3366 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3367
3368 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
3369 "insn", "def_insn".
3370 (m68k_sched_variable_issue): Likewise for param "insn".
3371
3372 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
3373 "def_insn".
3374
3375 * config/microblaze/microblaze.c (microblaze_adjust_cost):
3376 Likewise for params "insn", "dep".
3377
3378 * config/mips/mips.c (mips_adjust_cost): Likewise.
3379 (mips_variable_issue): Likewise for param "insn".
3380 (mips_final_postscan_insn): Likewise.
3381
3382 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
3383 for params "insn", "dep".
3384
3385 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
3386 "dep_insn".
3387 (pa_adjust_priority): Likewise for param "insn".
3388
3389 * config/picochip/picochip.c (picochip_sched_adjust_cost):
3390 Likewise for params "insn", "dep_insn".
3391
3392 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
3393 param "insn".
3394 (rs6000_variable_issue): Likewise.
3395 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
3396 (rs6000_debug_adjust_cost): Likewise.
3397 (rs6000_adjust_priority): Likewise for param "insn".
3398 (rs6000_use_sched_lookahead_guard): Likewise.
3399 (get_next_active_insn): Likewise for return type and both params.
3400 (redefine_groups): Likewise for params "prev_head_insn", "tail"
3401 and locals "insn", "next_insn".
3402 (pad_groups): Likewise.
3403
3404 * config/s390/s390.c (s390_adjust_priority): Likewise for param
3405 "insn".
3406 (s390_cannot_copy_insn_p): Likewise.
3407 (s390_sched_variable_issue): Likewise for third param, eliminating
3408 checked cast.
3409 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
3410 default hook implementation from hook_constcharptr_const_rtx_null
3411 to hook_constcharptr_const_rtx_insn_null.
3412
3413 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
3414 from rtx to rtx_insn *.
3415 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
3416 (sh_variable_issue): Likewise for param "insn".
3417 (sh_dfa_new_cycle): Likewise.
3418 (sh_mode_needed): Likewise.
3419 (sh_mode_after): Likewise.
3420
3421 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
3422 params "insn", "dep_insn".
3423 (hypersparc_adjust_cost): Likewise.
3424 (sparc_adjust_cost): Likewise.
3425
3426 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
3427 param, eliminated checked cast.
3428 (spu_sched_adjust_cost): Likewise for first and third params.
3429
3430 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
3431 params "insn" and "dep_insn" from rtx to rtx_insn *.
3432
3433 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
3434
3435 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3436
3437 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
3438 (set_is_load_p): ...this, updating to work on a SET pattern rather
3439 than an insn.
3440 (is_store_insn): Rename to...
3441 (set_is_store_p): ...this, updating to work on a SET pattern
3442 rather than an insn.
3443 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
3444 top of function to where it is needed. Rewrite the bogus
3445 condition that checks for "insn" and "dep" being PARALLEL to
3446 instead use single_set, introducing locals "insn_set" and
3447 "dep_set". Given that we only ever returned "cost" for a non-pair
3448 of SETs, bail out early if we don't have a pair of SET.
3449 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
3450 use the new locals "insn_set" and "dep_set", and update calls to
3451 is_load_insn and is_store_insn to be calls to set_is_load_p and
3452 set_is_store_p.
3453
3454 2014-08-27 Guozhi Wei <carrot@google.com>
3455
3456 PR target/62262
3457 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
3458 amount before using it.
3459
3460 2014-08-27 Richard Biener <rguenther@suse.de>
3461
3462 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
3463 get_maxval_strlen inside a more useful API.
3464 (gimple_fold_builtin_with_strlen): Remove and fold into ...
3465 (gimple_fold_builtin): ... caller.
3466 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
3467 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
3468 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
3469 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
3470 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
3471 gimple_fold_builtin_sprintf): Adjust to compute maxval
3472 themselves.
3473
3474 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
3475
3476 PR other/62248
3477 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
3478
3479 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3481 Anna Tikhonova <anna.tikhonova@intel.com>
3482 Ilya Tocar <ilya.tocar@intel.com>
3483 Andrey Turetskiy <andrey.turetskiy@intel.com>
3484 Ilya Verbin <ilya.verbin@intel.com>
3485 Kirill Yukhin <kirill.yukhin@intel.com>
3486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3487
3488 * config/i386/sse.md
3489 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
3490 Use `concat_tg_mode' attribute to determine asm register size.
3491
3492 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3494 Anna Tikhonova <anna.tikhonova@intel.com>
3495 Ilya Tocar <ilya.tocar@intel.com>
3496 Andrey Turetskiy <andrey.turetskiy@intel.com>
3497 Ilya Verbin <ilya.verbin@intel.com>
3498 Kirill Yukhin <kirill.yukhin@intel.com>
3499 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3500
3501 * config/i386/sse.md
3502 (define_mode_iterator VI48_AVX512VL): New.
3503 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
3504 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
3505 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
3506 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3507 with VI1): Change mode iterator.
3508 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3509 with VI_ULOADSTORE_BW_AVX512VL): New.
3510 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3511 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3512 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3513 with VI1): Change mode iterator.
3514 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3515 with VI_ULOADSTORE_BW_AVX512VL): New.
3516 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3517 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3518 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3519 with VI1): Change mode iterator.
3520 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3521 with VI_ULOADSTORE_BW_AVX512VL): New.
3522 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3523 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
3524 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
3525 (define_insn "<avx512>_storedqu<mode>_mask" with
3526 VI48_AVX512VL): New.
3527 (define_insn "<avx512>_storedqu<mode>_mask" with
3528 VI12_AVX512VL): Ditto.
3529
3530 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3531 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3532 Anna Tikhonova <anna.tikhonova@intel.com>
3533 Ilya Tocar <ilya.tocar@intel.com>
3534 Andrey Turetskiy <andrey.turetskiy@intel.com>
3535 Ilya Verbin <ilya.verbin@intel.com>
3536 Kirill Yukhin <kirill.yukhin@intel.com>
3537 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3538
3539 * config/i386/sse.md
3540 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
3541 (define_mode_iterator VI48_AVX512BW): New.
3542 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
3543 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3544 with VI48_AVX2_48_AVX512F): New.
3545 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3546 with VI2_AVX512VL): Ditto.
3547
3548 2014-08-27 Richard Biener <rguenther@suse.de>
3549
3550 PR middle-end/62239
3551 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
3552 (fold_builtin_3): Do not fold strcat_chk here.
3553 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
3554 from builtins.c.
3555 (gimple_fold_builtin): Fold strcat_chk here.
3556
3557 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
3558
3559 * dwarf2out.h (dwarf2out_decl): Remove prototype.
3560 * dwarf2out.c (dwarf2out_decl): Make static.
3561
3562 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
3563
3564 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
3565
3566 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3567
3568 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
3569 from rtx to rtx_insn *.
3570 (cselib_lookup_from_insn): Likewise for final param.
3571 (cselib_subst_to_values_from_insn): Likewise.
3572 (cselib_add_permanent_equiv): Likewise.
3573
3574 * cselib.c (cselib_current_insn): Likewise for this variable.
3575 (cselib_subst_to_values_from_insn): Likewise for param "insn".
3576 (cselib_lookup_from_insn): Likewise.
3577 (cselib_add_permanent_equiv): Likewise for param "insn" and local
3578 "save_cselib_current_insn".
3579 (cselib_process_insn): Replace use of NULL_RTX with NULL.
3580
3581 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
3582 from rtx to rtx_insn *.
3583
3584 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3585
3586 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
3587 rtx_insn *.
3588
3589 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3590
3591 * df.h (df_dump_insn_problem_function): Strengthen first param of
3592 this callback from const_rtx to const rtx_insn *.
3593 (struct df_insn_info): Strengthen field "insn" from rtx to
3594 rtx_insn *.
3595 (DF_REF_INSN): Eliminate this function, reinstating the older
3596 macro definition.
3597 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
3598 (df_reg_defined): Likewise.
3599 (df_find_use): Likewise.
3600 (df_reg_used): Likewise.
3601 (df_dump_insn_top): Strengthen param 1 from const_rtx to
3602 const rtx_insn *.
3603 (df_dump_insn_bottom): Likewise.
3604 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
3605 (df_insn_debug_regno): Likewise.
3606 (debug_df_insn): Likewise.
3607 (df_rd_simulate_one_insn): Likewise for param 2.
3608 (df_word_lr_simulate_defs): Likewise for param 1.
3609 (df_word_lr_simulate_uses): Likewise.
3610 (df_md_simulate_one_insn): Likewise for param 2.
3611 (df_simulate_find_noclobber_defs): Likewise for param 1.
3612 (df_simulate_find_defs): Likewise.
3613 (df_simulate_defs): Likewise.
3614 (df_simulate_uses): Likewise.
3615 (df_simulate_one_insn_backwards): Likewise for param 2.
3616 (df_simulate_one_insn_forwards): Likewise.
3617 (df_uses_create): Likewise for param 2.
3618 (df_insn_create_insn_record): Likewise for param 1.
3619 (df_insn_delete): Likewise.
3620 (df_insn_rescan): Likewise.
3621 (df_insn_rescan_debug_internal): Likewise.
3622 (df_insn_change_bb): Likewise.
3623 (df_notes_rescan): Likewise.
3624 * rtl.h (remove_death): Likewise for param 2.
3625 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
3626 const rtx_insn *.
3627 * sched-int.h (reemit_notes): Strengthen param from rtx to
3628 rtx_insn *.
3629 * valtrack.h (propagate_for_debug): Likewise for param 1.
3630
3631 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
3632 local "tmp_rtx" from const_rtx to const rtx_insn *.
3633 * combine.c (remove_death): Strengthen param "insn" from rtx to
3634 rtx_insn *.
3635 (move_deaths): Likewise for local "where_dead".
3636 * cse.c (delete_trivially_dead_insns): Introduce local
3637 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
3638 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
3639 rtx_insn *.
3640 (df_reg_defined): Likewise.
3641 (df_find_use): Likewise.
3642 (df_reg_used): Likewise.
3643 (df_dump_insn_problem_data): Strengthen param "insn" from
3644 const_rtx to const rtx_insn *.
3645 (df_dump_insn_top): Likewise.
3646 (df_dump_insn_bottom): Likewise.
3647 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3648 (df_insn_debug_regno): Likewise.
3649 (debug_df_insn): Likewise.
3650 (DF_REF_INSN): Delete.
3651 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3652 from rtx to rtx_insn *.
3653 (df_chain_insn_top_dump): Strengthen param "insn" from
3654 const_rtx to const rtx_insn *.
3655 (df_chain_insn_bottom_dump): Likewise.
3656 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3657 rtx_insn *.
3658 (df_word_lr_simulate_uses): Likewise.
3659 (df_print_note): Likewise.
3660 (df_remove_dead_and_unused_notes): Likewise.
3661 (df_set_unused_notes_for_mw): Likewise.
3662 (df_set_dead_notes_for_mw): Likewise.
3663 (df_create_unused_note): Likewise.
3664 (df_simulate_find_defs): Likewise.
3665 (df_simulate_find_uses): Likewise.
3666 (df_simulate_find_noclobber_defs): Likewise.
3667 (df_simulate_defs): Likewise.
3668 (df_simulate_uses): Likewise.
3669 (df_simulate_one_insn_backwards): Likewise.
3670 (df_simulate_one_insn_forwards): Likewise.
3671 (df_md_simulate_one_insn): Likewise.
3672 * df-scan.c (df_uses_create): Likewise.
3673 (df_insn_create_insn_record): Likewise.
3674 (df_insn_delete): Likewise.
3675 (df_insn_rescan): Likewise.
3676 (df_insn_rescan_debug_internal): Likewise.
3677 (df_insn_change_bb): Likewise.
3678 (df_notes_rescan): Likewise.
3679 (df_refs_add_to_chains): Likewise.
3680 (df_insn_refs_verify): Likewise.
3681 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3682 when invoking df_insn_delete.
3683 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3684 (set_unique_reg_note): Add checked cast.
3685 * final.c (cleanup_subreg_operands): Likewise.
3686 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3687 "insn" from rtx to rtx_insn *.
3688 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3689 "last" from rtx to rtx_insn *.
3690 * ira-emit.c (change_regs_in_insn): New function.
3691 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3692 Invoke change_regs_in_insn rather than change_regs.
3693 * ira.c (update_equiv_regs): Strengthen locals "insn",
3694 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
3695 for_each_rtx_in_insn rather than for_each_rtx.
3696 * recog.c (confirm_change_group): Add checked casts.
3697 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3698 Add checked cast.
3699 (peep2_fill_buffer): Add checked cast.
3700 * rtlanal.c (remove_note): Likewise.
3701 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3702 locals "next" "end" from rtx to rtx_insn *.
3703
3704 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3705
3706 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3707 to rtx_insn *.
3708 (struct reg_use_data): Likewise for field "insn".
3709 (insn_cost): Likewise for param.
3710 (real_insn_for_shadow): Likewise for return type and param.
3711 (increase_insn_priority): Likewise for param 1.
3712 (debug_dependencies): Likewise for both params.
3713
3714 * haifa-sched.c (insn_delay): Likewise for param "insn".
3715 (real_insn_for_shadow): Likewise for return type and param "insn".
3716 (update_insn_after_change): Likewise for param "insn".
3717 (recompute_todo_spec): Likewise for param "next" and locals "pro",
3718 "other".
3719 (insn_cost): Likewise for param "insn".
3720 (increase_insn_priority): Likewise.
3721 (calculate_reg_deaths): Likewise.
3722 (setup_insn_reg_pressure_info): Likewise.
3723 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3724 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3725 (model_recompute): Likewise.
3726 (must_restore_pattern_p): Likewise for param "next".
3727 (model_excess_cost): Likewise for param "insn".
3728 (queue_remove): Likewise.
3729 (adjust_priority): Likewise for param "prev".
3730 (update_register_pressure): Likewise for param "insn".
3731 (setup_insn_max_reg_pressure): Likewise for local "insn".
3732 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3733 (model_add_to_schedule): Likewise.
3734 (model_reset_queue_indices): Likewise for local "insn".
3735 (unschedule_insns_until): Strengthen local "recompute_vec" from
3736 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
3737 "con" from rtx to rtx_insn *.
3738 (restore_last_backtrack_point): Likewise for both locals "x". Add
3739 checked casts.
3740 (estimate_insn_tick): Likewise for param "insn".
3741 (commit_schedule): Likewise for params "prev_head", "tail" and
3742 local "x".
3743 (verify_shadows): Likewise for locals "i1", "i2".
3744 (dump_insn_stream): Likewise for params "head", "tail" and locals
3745 "next_tail", "insn".
3746 (schedule_block): Likewise for locals "insn", "x". Add a checked
3747 cast.
3748 (fix_inter_tick): Likewise for params "head", "tail".
3749 (create_check_block_twin): Likewise for local "jump".
3750 (haifa_change_pattern): Likewise for param "insn".
3751 (haifa_speculate_insn): Likewise.
3752 (dump_new_block_header): Likewise for params "head", "tail".
3753 (fix_jump_move): Likewise for param "jump".
3754 (move_block_after_check): Likewise.
3755 (sched_init_insn_luid): Likewise for param "insn".
3756 (sched_init_luids): Likewise for local "insn".
3757 (insn_luid): Likewise for param "insn".
3758 (init_h_i_d): Likewise.
3759 (haifa_init_h_i_d): Likewise for local "insn".
3760 (haifa_init_insn): Likewise for param "insn".
3761 * sched-deps.c (add_dependence): Likewise for local "real_pro",
3762 "other".
3763 (create_insn_reg_use): Likewise for param "insn".
3764 (setup_insn_reg_uses): Likewise. Add a checked cast.
3765 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3766 "tail" from rtx to rtx_insn *.
3767 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3768 "insn", "next_tail".
3769
3770 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3771
3772 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3773 from rtx to rtx_insn *.
3774 (model_add_to_schedule): Likewise for locals "start", "end",
3775 "iter".
3776
3777 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3778
3779 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3780 rtx_insn *.
3781 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
3782 "to" and locals "insn", "next", "copy". Remove now-redundant
3783 checked cast.
3784
3785 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3786
3787 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3788 rtx_insn * and param 4 from rtx * to rtx_insn **.
3789 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3790 param 2 from rtx * to rtx_insn **.
3791
3792 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3793 rtx_insn * and final param from rtx * to rtx_insn **.
3794
3795 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3796 from rtx to rtx_insn *.
3797 (try_head_merge_bb): Likewise for both locals named "move_upto".
3798 * df-problems.c (can_move_insns_across): Likewise for params
3799 "from", "to", "across_from", "across_to" and locals "insn",
3800 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
3801 rtx_insn **.
3802 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3803 from rtx to rtx_insn *.
3804 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3805 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3806 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3807 rtx_insn *.
3808 (noce_try_abs): Likewise.
3809 (noce_get_condition): Likewise for param "jump". Strengthen param
3810 "earliest" from rtx * to rtx_insn **.
3811 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3812 rtx_insn *.
3813 (find_cond_trap): Likewise.
3814 (dead_or_predicable): Likewise for local "earliest".
3815 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
3816 checked cast.
3817 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3818 and local "prev". Strengthen param "earliest" from rtx * to
3819 rtx_insn **.
3820 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3821 Strengthen param "earliest" from rtx * to rtx_insn **.
3822
3823 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3824
3825 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3826 "to" and local "insn" from rtx to rtx_insn *.
3827
3828 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3829
3830 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3831 from rtx to rtx_insn *.
3832 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3833 (code_motion_path_driver): Likewise for local "last_insn".
3834 (simplify_changed_insns): Likewise for local "insn".
3835
3836 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3837
3838 * rtl.h (push_to_sequence): Strengthen param from rtx to
3839 rtx_insn *.
3840 (push_to_sequence2): Likewise for both params.
3841 (delete_insns_since): Likewise for param.
3842 (reorder_insns_nobb): Likewise for all three params.
3843 (set_new_first_and_last_insn): Likewise for both params.
3844
3845 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3846 rtx_insn *. Remove now-redundant cast.
3847 (set_last_insn): Likewise.
3848
3849 * builtins.c (expand_builtin_return): Strengthen local
3850 "call_fusage" from rtx to rtx_insn *.
3851 * cfgrtl.c (create_basic_block_structure): Likewise for local
3852 "after".
3853 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3854 "first", "last" and local "insn".
3855 (delete_insns_since): Likewise for param "from".
3856 (reorder_insns_nobb): Likewise for params "from", "to", "after"
3857 and local "x".
3858 (push_to_sequence): Likewise for param "first" and local "last".
3859 (push_to_sequence2): Likewise for params "first" and "last".
3860 * lra.c (emit_add3_insn): Likewise for local "last".
3861 (lra_emit_add): Likewise.
3862 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3863 "last_insn".
3864 (process_address_1): Likewise for locals "insn", last".
3865 * modulo-sched.c (ps_first_note): Likewise for return type.
3866 * optabs.c (expand_binop_directly): Likewise for param "last".
3867
3868 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3869
3870 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3871 to rtx_insn*.
3872 * emit-rtl.c (get_last_insn_anywhere): Likewise.
3873
3874 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3875
3876 * function.h (struct sequence_stack): Strengthen fields "first"
3877 and "last" from rtx to rtx_insn *.
3878 (struct emit_status): Likewise for fields "x_first_insn" and
3879 "x_last_insn".
3880
3881 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3882 (set_first_insn): Add checked cast.
3883 (get_last_insn): Remove now-redundant checked cast.
3884 (set_last_insn): Add checked cast.
3885
3886 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3887 "saved_first" and "saved_last" from rtx to rtx_insn *.
3888
3889 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3890
3891 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3892 (unlink_insn_chain): Strengthen both params from rtx to
3893 rtx_insn *.
3894
3895 * cfgrtl.c (cfg_layout_function_header): Likewise for this
3896 variable.
3897 (unlink_insn_chain): Likewise for params "first" and "last".
3898 Remove now-redundant checked cast.
3899 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3900 (fixup_reorder_chain): Strengthen local "insn" from rtx to
3901 rtx_insn *.
3902 * emit-rtl.c (link_insn_into_chain): Likewise for all three
3903 params.
3904 (add_insn): Likewise for param "insn" and local "prev".
3905 (add_insn_after_nobb): Likewise for both params and local "next".
3906 (add_insn_before_nobb): Likewise for both params and local "prev".
3907 (add_insn_after): Rename param "after" to "uncast_after",
3908 introducing local "after" with another checked cast.
3909 (add_insn_before): Rename params "insn" and "before", giving them
3910 "uncast_" prefixes, adding the old names back using checked casts.
3911 (emit_note_after): Likewise for param "after".
3912 (emit_note_before): Likewise for param "before".
3913 (emit_label): Add a checked cast.
3914
3915 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3916
3917 * cselib.h (cselib_record_sets_hook): Strengthen initial param
3918 "insn" from rtx to rtx_insn *.
3919
3920 * cselib.c (cselib_record_sets_hook): Likewise.
3921
3922 * var-tracking.c (add_with_sets): Likewise, renaming back from
3923 "uncast_insn" to "insn" and eliminating the checked cast from rtx
3924 to rtx_insn *.
3925
3926 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3927
3928 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3929 and "header_" from rtx to rtx_insn *.
3930 (struct basic_block_d): Likewise for field "head_" within "x"
3931 field of union basic_block_il_dependent.
3932 (BB_HEAD): Drop function...
3933 (SET_BB_HEAD): ...and this function in favor of...
3934 (BB_HEAD): ...reinstate macro.
3935 (BB_END): Drop function...
3936 (SET_BB_END): ...and this function in favor of...
3937 (BB_END): ...reinstate macro.
3938 (BB_HEADER): Drop function...
3939 (SET_BB_HEADER): ...and this function in favor of...
3940 (BB_HEADER): ...reinstate macro.
3941
3942 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3943 (fix_crossing_unconditional_branches): Likewise.
3944 * caller-save.c (save_call_clobbered_regs): Likewise.
3945 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3946 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3947 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3948 (merge_blocks_move_successor_nojumps): Likewise.
3949 (outgoing_edges_match): Update use of for_each_rtx to
3950 for_each_rtx_in_insn.
3951 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3952 (expand_gimple_cond): Likewise.
3953 (expand_gimple_tailcall): Likewise.
3954 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3955 SET_BB_END.
3956 (construct_exit_block): Drop use of SET_BB_END.
3957 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3958 rtx_insn *.
3959 (delete_insn): Rename param "insn" to "uncast_insn", introducing
3960 a new local "insn" with a checked cast to rtx_insn *. Drop use of
3961 SET_BB_HEAD and SET_BB_END.
3962 (create_basic_block_structure): Drop use of SET_BB_HEAD and
3963 SET_BB_END.
3964 (rtl_delete_block): Drop use of SET_BB_HEAD.
3965 (rtl_split_block): Drop use of SET_BB_END.
3966 (emit_nop_for_unique_locus_between): Likewise.
3967 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3968 (block_label): Drop use of SET_BB_HEAD.
3969 (fixup_abnormal_edges): Drop use of SET_BB_END.
3970 (record_effective_endpoints): Drop use of SET_BB_HEADER.
3971 (relink_block_chain): Likewise.
3972 (fixup_reorder_chain): Drop use of SET_BB_END.
3973 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3974 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3975 rtx_insn **. Drop use of SET_BB_HEADER.
3976 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3977 SET_BB_HEAD.
3978 (BB_HEAD): Delete this function.
3979 (SET_BB_HEAD): Likewise.
3980 (BB_END): Likewise.
3981 (SET_BB_END): Likewise.
3982 (BB_HEADER): Likewise.
3983 (SET_BB_HEADER): Likewise.
3984 * emit-rtl.c (add_insn_after): Rename param "insn" to
3985 "uncast_insn", adding a new local "insn" and a checked cast to
3986 rtx_insn *. Drop use of SET_BB_END.
3987 (remove_insn): Strengthen locals "next" and "prev" from rtx to
3988 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
3989 (reorder_insns): Drop use of SET_BB_END.
3990 (emit_insn_after_1): Strengthen param "first" and locals "last",
3991 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
3992 (emit_pattern_after_noloc): Add checked cast.
3993 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3994 (restore_other_notes): Likewise.
3995 (move_insn): Likewise.
3996 (sched_extend_bb): Likewise.
3997 (fix_jump_move): Likewise.
3998 * ifcvt.c (noce_process_if_block): Likewise.
3999 (dead_or_predicable): Likewise.
4000 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
4001 * reg-stack.c (change_stack): Drop use of SET_BB_END.
4002 * sel-sched-ir.c (sel_move_insn): Likewise.
4003 * sel-sched.c (move_nop_to_previous_block): Likewise.
4004
4005 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
4006 SET_BB_END.
4007 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4008
4009 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4010
4011 * basic-block.h (create_basic_block_structure): Strengthen params
4012 1 "head" and 2 "end" from rtx to rtx_insn *.
4013 * cfgrtl.c (create_basic_block_structure): Likewise.
4014 (rtl_create_basic_block): Update casts from void * to rtx to
4015 rtx_insn *, so that we can pass them as rtx_insn * to
4016 create_basic_block_structure.
4017 * sel-sched-ir.c (sel_create_basic_block): Likewise.
4018
4019 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4020
4021 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
4022 rtx_insn **.
4023 (check_for_inc_dec): Strengthen param "insn" from rtx to
4024 rtx_insn *.
4025
4026 * cselib.h (cselib_process_insn): Likewise.
4027
4028 * cselib.c (cselib_record_sets): Likewise.
4029 (cselib_process_insn): Likewise.
4030
4031 * dse.c (struct insn_info): Likewise for field "insn".
4032 (check_for_inc_dec_1): Likewise for local "insn".
4033 (check_for_inc_dec): Likewise for param "insn".
4034 (scan_insn): Likewise.
4035 (dse_step1): Likewise for local "insn".
4036
4037 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
4038 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
4039
4040 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4041
4042 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4043 from rtx to rtx_insn *.
4044 (DEP_PRO): Delete this function and...
4045 (SET_DEP_PRO): ...this function in favor of...
4046 (DEP_PRO): ...reinstate this macro.
4047 (DEP_CON): Delete this function and...
4048 (SET_DEP_CON): ...this function in favor of...
4049 (DEP_CON): ...reinstate this old macro.
4050 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4051 (init_dep): Likewise.
4052 (set_priorities): Likewise for both params.
4053 (sd_copy_back_deps): Likewise for params 1 and 2.
4054
4055 * haifa-sched.c (priority): Likewise for param "insn" and local
4056 "next".
4057 (set_priorities): Likewise for params "head" and "tail" and local
4058 "insn".
4059 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4060 local "consumer".
4061 (add_to_speculative_block): Add a checked cast.
4062 (create_check_block_twin): Drop use of SET_DEP_CON.
4063 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4064 rtx to rtx_insn *.
4065
4066 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4067 Drop use of SET_DEP_PRO
4068 (init_dep): Strengthen params "pro" and "con" from rtx to
4069 rtx_insn *.
4070 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4071 use of SET_DEP_CON.
4072 (DEP_PRO): Delete.
4073 (DEP_CON): Delete.
4074 (SET_DEP_PRO): Delete.
4075 (SET_DEP_CON): Delete.
4076
4077 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4078
4079 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4080 from rtx to rtx_insn *.
4081 (VINSN_INSN_RTX): Eliminate rvalue function and...
4082 (SET_VINSN_INSN): ...lvalue function in favor of...
4083 (VINSN_INSN_RTX): reinstate this old macro.
4084
4085 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4086 in favor of VINSN_INSN_RTX.
4087 (VINSN_INSN_RTX): Delete this function.
4088 (SET_VINSN_INSN_RTX): Likewise.
4089
4090 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4091
4092 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4093 (BND_TO): Delete this function and...
4094 (SET_BND_TO): ...this functions in favor of...
4095 (BND_TO): ...reinstating this macro.
4096 (struct _fence): Strengthen field "executing_insns" from
4097 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4098 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4099 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4100 and param "insn" from rtx to insn_t.
4101 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4102 rtx_insn *.
4103
4104 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4105 vec<rtx_insn *> .
4106 (rtx_vec_t): Likewise.
4107 (struct sched_deps_info_def): Strengthen param of "start_insn"
4108 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4109 "note_mem_dep" callback and first param of "note_dep" callback.
4110
4111 * haifa-sched.c (add_to_speculative_block): Strengthen param
4112 "insn" from rtx to rtx_insn *.
4113 (clear_priorities): Likewise.
4114 (calc_priorities): Likewise for local "insn".
4115
4116 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4117 Remove redundant checked cast.
4118 (haifa_note_mem_dep): Likewise for param "pending_insn".
4119 (haifa_note_dep): Likewise for param "elem".
4120 (note_mem_dep): Likewise for param "e".
4121 (sched_analyze_1): Add checked casts.
4122 (sched_analyze_2): Likewise.
4123
4124 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4125 from rtx to rtx_insn *.
4126 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4127 from vec<rtx> * to vec<rtx_insn *> *.
4128
4129 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4130 scaffolding.
4131 (flist_add): Strengthen param "executing_insns" from
4132 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4133 (advance_deps_context): Remove now-redundant checked cast.
4134 (init_fences): Replace uses of NULL_RTX with NULL.
4135 (merge_fences): Strengthen params "last_scheduled_insn" and
4136 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4137 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4138 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4139 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4140 an instruction, rather than doing double-duty as a pattern.
4141 (return_nop_to_pool): Update for change of insn_t.
4142 (deps_init_id): Remove now-redundant checked cast.
4143 (struct sched_scan_info_def): Strengthen param of "init_insn"
4144 callback from rtx to insn_t.
4145 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4146 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4147 NULL.
4148 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4149 "end" from rtx to rtx_insn *.
4150 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4151 (rtx insn_rtx, bool force_unique_p)
4152 (BND_TO): Delete function.
4153 (SET_BND_TO): Delete function.
4154
4155 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4156 rtx to rtx_insn *.
4157 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4158 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4159 rtx to rtx_insn *.
4160 (undo_transformations): Likewise for param "insn".
4161 (update_liveness_on_insn): Likewise.
4162 (compute_live_below_insn): Likewise for param "insn" and local
4163 "succ".
4164 (update_data_sets): Likewise for param "insn".
4165 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4166 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4167 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4168 rtx_insn *.
4169 (move_cond_jump): Likewise for param "insn".
4170 (move_cond_jump): Drop use of SET_BND_TO.
4171 (compute_av_set_on_boundaries): Likewise.
4172 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4173 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4174 from rtx to rtx_insn *.
4175 (maybe_emit_renaming_copy): Likewise for param "insn".
4176 (maybe_emit_speculative_check): Likewise.
4177 (handle_emitting_transformations): Likewise.
4178 (remove_insn_from_stream): Likewise.
4179 (code_motion_process_successors): Strengthen local "succ" from rtx
4180 to insn_t.
4181
4182 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4183
4184 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4185 ilist_t, not _xlist_t;
4186 (ILIST_INSN): Define in terms of new union field "insn".
4187 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4188 _XLIST_NEXT.
4189 (struct _list_node): Add new field "insn" to the union, of type
4190 insn_t.
4191 (ilist_add): Replace macro with an inline function, requiring an
4192 insn_t.
4193 (ilist_remove): Define this macro directly in terms of
4194 _list_remove, rather than indirectly via _xlist_remove.
4195 (ilist_clear): Likewise, in terms of _list_clear rather than
4196 _xlist_clear.
4197 (ilist_is_in_p): Replace macro with an inline function, requiring
4198 an insn_t.
4199 (_list_iter_cond_insn): New function.
4200 (ilist_iter_remove): Define this macro directly in terms of
4201 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4202 (ilist_iterator): Define directly in terms of _list_iterator
4203 rather than indirectly through _xlist_iterator.
4204 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4205 than in terms of _FOR_EACH_X.
4206 (FOR_EACH_INSN_1): Likewise.
4207
4208 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4209
4210 PR target/60606
4211 PR target/61330
4212 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4213 DECL_HARD_REGISTER and return for invalid register specifications.
4214 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4215 DECL_HARD_REGISTER, call expand_one_error_var.
4216 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4217 CC_REGNUM with non-MODE_CC modes.
4218 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4219
4220 2014-08-26 Marek Polacek <polacek@redhat.com>
4221
4222 PR c/61271
4223 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4224
4225 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4226
4227 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4228 qi cost; add di cost.
4229 (cortexa57_addrcost_table): Likewise.
4230
4231 2014-08-26 Marek Polacek <polacek@redhat.com>
4232
4233 PR c/61271
4234 * expr.c (is_aligning_offset): Remove logical not.
4235
4236 2014-08-26 Marek Polacek <polacek@redhat.com>
4237
4238 PR c/61271
4239 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4240 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4241
4242 2014-08-26 Richard Biener <rguenther@suse.de>
4243
4244 PR tree-optimization/62175
4245 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4246 expand possibly trapping operations.
4247
4248 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4249
4250 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4251 "insn" from rtx to rtx_insn *.
4252 (permute_load): Likewise for param "insn".
4253 (permute_store): Likewise.
4254 (handle_special_swappables): Likewise for local "insn".
4255 (replace_swap_with_copy): Likewise for locals "insn" and
4256 "new_insn".
4257 (rs6000_analyze_swaps): Likewise for local "insn".
4258
4259 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4260
4261 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4262 to rtx_insn *.
4263
4264 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4265
4266 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4267 "note_list" from rtx to rtx_insn *.
4268 (BB_NOTE_LIST): Replace this function and...
4269 (SET_BB_NOTE_LIST): ...this function with...
4270 (BB_NOTE_LIST): ...the former macro implementation.
4271
4272 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4273 local "from_start" from rtx to rtx_insn *. Strengthen param
4274 "to_endp" from rtx * to rtx_insn **.
4275
4276 * haifa-sched.c (concat_note_lists): Likewise.
4277 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4278 BB_NOTE_LIST.
4279 (sel_restore_notes): Likewise.
4280 (move_bb_info): Likewise.
4281 (BB_NOTE_LIST): Delete this function.
4282 (SET_BB_NOTE_LIST): Delete this function.
4283 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4284 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4285
4286 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4287
4288 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4289 from rtx * to rtx_insn **.
4290 (reorder2): Likewise.
4291 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4292 from rtx to rtx_insn *.
4293
4294 * doc/tm.texi: Update mechanically for above change to target.def.
4295
4296 * sched-int.h (note_list): Strengthen this variable from rtx to
4297 rtx_insn *.
4298 (remove_notes): Likewise for both params.
4299 (restore_other_notes): Likewise for return type and first param.
4300 (struct ready_list): Strengthen field "vec" from rtx * to
4301 rtx_insn **.
4302 (struct dep_replacement): Strenghten field "insn" from rtx to
4303 rtx_insn *.
4304 (struct deps_desc): Likewise for fields "last_debug_insn",
4305 "last_args_size".
4306 (struct haifa_sched_info): Likewise for callback field
4307 "can_schedule_ready_p"'s param, for first param of "new_ready"
4308 callback field, for both params of "rank" callback field, for
4309 first field of "print_insn" callback field (with a const), for
4310 both params of "contributes_to_priority" callback, for param
4311 of "insn_finishes_block_p" callback, for fields "prev_head",
4312 "next_tail", "head", "tail", for first param of "add_remove_insn"
4313 callback, for first param of "begin_schedule_ready" callback, for
4314 both params of "begin_move_insn" callback, and for second param
4315 of "advance_target_bb" callback.
4316 (add_dependence): Likewise for params 1 and 2.
4317 (sched_analyze): Likewise for params 2 and 3.
4318 (deps_analyze_insn): Likewise for param 2.
4319 (ready_element): Likewise for return type.
4320 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4321 (try_ready): Strenghten param from rtx to rtx_insn *.
4322 (sched_emit_insn): Likewise for return type.
4323 (record_delay_slot_pair): Likewise for params 1 and 2.
4324 (add_delay_dependencies): Likewise for param.
4325 (contributes_to_priority): Likewise for both params.
4326 (find_modifiable_mems): Likewise.
4327
4328 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4329 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4330 "first_older_only_insn" from rtx to rtx_insn *.
4331 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4332 rtx_insn **.
4333
4334 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4335 "last_scheduled_iter0" from rtx to rtx_insn *.
4336 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4337 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4338 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4339 "insn" from rtx to rtx_insn *.
4340 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4341 rtx_insn **.
4342 (c6x_sched_reorder2): Strengthen param "ready" and locals
4343 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4344 "insn" from rtx to rtx_insn *.
4345 (c6x_variable_issue): Add a checked cast when assigning from insn
4346 to ss.last_scheduled_iter0.
4347 (split_delayed_branch): Strengthen param "insn" and local "i1"
4348 from rtx to rtx_insn *.
4349 (split_delayed_nonbranch): Likewise.
4350 (undo_split_delayed_nonbranch): Likewise for local "insn".
4351 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4352 "entry_after", "end_packet", "head_insn", "tail_insn",
4353 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4354 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4355 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4356 but add a checked cast on loop->start_label. Consolidate calls to
4357 avoid assigning result of gen_spkernel to "insn", now an
4358 rtx_insn *.
4359
4360 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4361 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4362 rtx to rtx_insn *.
4363 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4364 rtx_insn **. Strengthen locals "top", "next" from rtx to
4365 rtx_insn *.
4366 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4367 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4368 (add_parameter_dependencies): Strengthen params "call", "head" and
4369 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
4370 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
4371 (add_dependee_for_func_arg): Likewise for param "arg" and local
4372 "insn".
4373 (ix86_dependencies_evaluation_hook): Likewise for params "head",
4374 "tail" and locals "insn", "first_arg".
4375
4376 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
4377 for params "head", "tail" and locals "insn", "next", "next_tail".
4378 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
4379 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
4380 "insn", "lowest", "highest" from rtx to rtx_insn *.
4381 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
4382 rtx_insn **.
4383 (ia64_sched_reorder2): Likewise.
4384
4385 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
4386 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
4387 from rtx * to rtx_insn **.
4388 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
4389 rtx_insn **.
4390 (mep_print_sched_insn): Strengthen param "insn" from rtx to
4391 rtx_insn *.
4392 (mep_sched_reorder): Strengthen param "ready" from rtx * to
4393 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
4394 to rtx_insn *.
4395
4396 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
4397 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
4398 to rtx_insn *.
4399 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
4400 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
4401 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
4402 rtx_insn **.
4403 (vr4130_reorder): Likewise.
4404 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
4405 rtx to rtx_insn *.
4406 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
4407 rtx_insn **.
4408 (mips_sched_reorder): Likewise.
4409 (mips_sched_reorder2): Likewise.
4410
4411 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
4412
4413 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
4414 Strengthen local "tmp" from rtx to rtx_insn *.
4415 (rs6000_sched_reorder2): Likewise.
4416
4417 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
4418 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
4419 (s390_sched_reorder): Strengthen param "ready" from rtx * to
4420 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
4421
4422 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
4423 "tmp2" from rtx to rtx_insn *.
4424 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
4425 Strengthen local "insn" from rtx to rtx_insn *.
4426 (ready_reorder): Strengthen param "ready" from rtx * to
4427 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
4428 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
4429 (sh_reorder2): Likewise.
4430
4431 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
4432 local "insn" from rtx to rtx_insn *.
4433
4434 * haifa-sched.c (note_list): Strengthen this variable from rtx to
4435 rtx_insn *.
4436 (scheduled_insns): Strengthen this variable from vec<rtx> to
4437 vec<rtx_insn *>.
4438 (set_modulo_params): Likewise for locals "i1", "i2".
4439 (record_delay_slot_pair): Likewise for params "i1", "i2".
4440 (add_delay_dependencies): Likewise for param "insn".
4441 (cond_clobbered_p): Likewise.
4442 (recompute_todo_spec): Likewise for local "prev".
4443 (last_scheduled_insn): Likewise for this variable.
4444 (nonscheduled_insns_begin): Likewise.
4445 (model_set_excess_costs): Strengthen param "insns" from rtx * to
4446 rtx_insn **.
4447 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
4448 rtx_insn *.
4449 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
4450 Strengthen local "insn" from rtx to rtx_insn *.
4451 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
4452 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4453 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
4454 (ready_remove_first): Likewise for return type and local "t".
4455 (ready_element): Likewise for return type.
4456 (ready_remove): Likewise for return type and local "t".
4457 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
4458 (check_clobbered_conditions): Strengthen local "x" from rtx to
4459 rtx_insn *, adding a checked cast.
4460 (schedule_insn): Likewise for param "insn".
4461 (remove_notes): Likewise for params "head", "tail" and locals
4462 "next_tail", "insn", "next".
4463 (struct haifa_saved_data): Likewise for fields
4464 "last_scheduled_insn", "nonscheduled_insns_begin".
4465 (save_backtrack_point): Update for change to field "vec" of
4466 struct ready_list.
4467 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
4468 rtx_insn **.
4469 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
4470 from rtx to rtx_insn *
4471 (resolve_dependencies): Strengthen param "insn" from rtx to
4472 rtx_insn *
4473 (restore_other_notes): Likewise for return type, for param "head"
4474 and local "note_head".
4475 (undo_all_replacements): Likewise for local "insn".
4476 (first_nonscheduled_insn): Likewise for return type and local "insn".
4477 (queue_to_ready): Likewise for local "insn", adding checked casts.
4478 (early_queue_to_ready): Likewise for local "insn".
4479 (debug_ready_list_1): Strengthen local "p" from rtx * to
4480 rtx_insn **.
4481 (move_insn): Strengthen param "insn" and local "note" from rtx to
4482 rtx_insn *
4483 (insn_finishes_cycle_p): Likewise for param "insn".
4484 (max_issue): Likewise for local "insn".
4485 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
4486 to rtx_insn **.
4487 (commit_schedule): Strengthen param "prev_head" and local "insn"
4488 from rtx to rtx_insn *
4489 (prune_ready_list): Likewise for local "insn".
4490 (schedule_block): Likewise for locals "prev_head", "head", "tail",
4491 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
4492 (set_priorities): Likewise for local "prev_head".
4493 (try_ready): Likewise for param "next".
4494 (fix_tick_ready): Likewise.
4495 (change_queue_index): Likewise.
4496 (sched_extend_ready_list): Update for change to field "vec" of
4497 struct ready_list.
4498 (generate_recovery_code): Strengthen param "insn" from rtx to
4499 rtx_insn *.
4500 (begin_speculative_block): Likewise.
4501 (create_check_block_twin): Likewise for param "insn" and locals
4502 "label", "check", "twin". Introduce local "check_pat" to avoid
4503 "check" being used as a plain rtx before being used as an insn.
4504 (fix_recovery_deps): Add a checked cast to rtx_insn * when
4505 extracting elements from ready_list.
4506 (sched_remove_insn): Strengthen param "insn" from rtx to
4507 rtx_insn *.
4508 (sched_emit_insn): Likewise for return type.
4509 (ready_remove_first_dispatch): Likewise for return type and local
4510 "insn".
4511
4512 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
4513
4514 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
4515 const rtx_insn *.
4516
4517 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
4518 from rtx to rtx_insn *.
4519 (add_dependence_list): Likewise for param "insn". Add a checked
4520 cast.
4521 (add_dependence_list_and_free): Strengthen param "insn" from rtx
4522 to rtx_insn *. Strengthen param "list_p" from rtx * to
4523 rtx_insn **.
4524 (chain_to_prev_insn): Strengthen param "insn" and locals
4525 "prec_nonnote", "i" from rtx to rtx_insn *.
4526 (flush_pending_lists): Likewise for param "insn".
4527 (cur_insn): Likewise for this variable.
4528 (haifa_start_insn): Add a checked cast.
4529 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
4530 (sched_analyze_reg): Likewise for param "insn".
4531 (sched_analyze_1): Likewise.
4532 (sched_analyze_2): Likewise. Add checked casts.
4533 (sched_analyze_insn): Likewise. Also for local "prev".
4534 (deps_analyze_insn): Likewise for param "insn".
4535 (sched_analyze): Likewise for params "head", "tail" and local "insn".
4536 (add_dependence_1): Likewise for params "insn", "elem".
4537 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
4538 (parse_add_or_inc): Likewise for param "insn".
4539 (find_inc): Likewise for local "inc_cand".
4540 (find_modifiable_mems): Likewise for params "head", "tail" and
4541 locals "insn", "next_tail".
4542
4543 * sched-ebb.c (init_ready_list): Likewise for local "insn".
4544 (begin_schedule_ready): Likewise for param "insn".
4545 (begin_move_insn): Likewise for params "insn" and "last".
4546 (ebb_print_insn): Strengthen param "insn" from const_rtx to
4547 const rtx_insn *.
4548 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
4549 (ebb_contributes_to_priority): Likewise for params "next", "insn".
4550 (ebb_add_remove_insn): Likewise for param "insn".
4551 (advance_target_bb): Likewise.
4552
4553 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
4554 "insn".
4555 (check_live): Likewise for param "insn".
4556 (init_ready_list): Likewise for local "insn".
4557 (can_schedule_ready_p): Likewise for param "insn".
4558 (begin_schedule_ready): Likewise.
4559 (new_ready): Likewise for param "next".
4560 (rgn_print_insn): Likewise for param "insn".
4561 (rgn_rank): Likewise for params "insn1", "insn2".
4562 (contributes_to_priority): Likewise for params "next", "insn".
4563 (rgn_insn_finishes_block_p): Likewise for param "insn".
4564 (add_branch_dependences): Likewise for params "head", "tail" and
4565 locals "insn", "last".
4566 (rgn_add_remove_insn): Likewise for param "insn".
4567 (advance_target_bb): Likewise.
4568
4569 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
4570 const_rtx to const rtx_insn *.
4571
4572 * sel-sched-dump.h (sel_print_insn): Likewise.
4573
4574 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
4575 (deps_init_id): Likewise.
4576
4577 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
4578 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
4579 rtx_insn **.
4580
4581 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4582
4583 * output.h (final_start_function): Strengthen param 1 from rtx to
4584 rtx_insn *.
4585
4586 * final.c (final_start_function): Likewise, renaming back from
4587 "uncast_first" to "first", and dropping the checked cast from rtx
4588 to rtx_insn *.
4589
4590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4591
4592 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
4593 * final.c (final): Likewise. Rename param back from
4594 "uncast_first" to "first" and eliminate the checked cast from rtx
4595 to rtx_insn *.
4596
4597 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4598
4599 * output.h (shorten_branches): Strengthen param from rtx to
4600 rtx_insn *.
4601
4602 * final.c (shorten_branches): Likewise, renaming param back from
4603 "uncast_first" to "first", and dropping the checked cast from rtx
4604 to rtx_insn *.
4605
4606 * genattr.c (gen_attr): Likewise when writing out the prototype of
4607 shorten_branches.
4608
4609 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4610
4611 * sched-int.h (struct haifa_sched_info): Strengthen fields
4612 "prev_head" and "next_tail" from rtx to rtx_insn *.
4613
4614 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4615
4616 * rtl.h (rtx_jump_table_data::get_labels): New method.
4617 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
4618 with use of the new rtx_jump_table_data::get_labels method.
4619 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
4620 to rtx_jump_table_data *. Simplify by using get_labels method.
4621 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
4622 a dyn_cast, introducing local "table", using it to replace
4623 label-lookup logic with a get_labels method call.
4624 (patch_jump_insn): Simplify using get_labels method.
4625 * dwarf2cfi.c (create_trace_edges): Likewise.
4626 * rtlanal.c (label_is_jump_target_p): Likewise.
4627
4628 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4629
4630 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
4631 to rtx_insn *.
4632
4633 * emit-rtl.c (unshare_all_rtl_1): Likewise.
4634 (unshare_all_rtl_again): Likewise, also for local "p".
4635
4636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4637
4638 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
4639 to rtx_insn *.
4640 * cfgrtl.c (delete_insn_and_edges): Likewise.
4641
4642 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4643
4644 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4645 from rtx to rtx_insn *.
4646
4647 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4648
4649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4650
4651 * function.c (thread_prologue_and_epilogue_insns): Likewise for
4652 locals "returnjump", "epilogue_end", "insn", "next".
4653
4654 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4655 "returnjump" from rtx * to rtx_insn **.
4656 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4657
4658 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4659
4660 * basic-block.h (struct edge_def). Strengthen "r" within
4661 union edge_def_insns from rtx to rtx_insn *.
4662
4663 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4664 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
4665 rtx_insn *.
4666 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4667 from rtx to rtx_insn *.
4668 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4669 rtx_insn *.
4670 * postreload-gcse.c (reg_killed_on_edge): Likewise.
4671 (reg_used_on_edge): Likewise.
4672 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4673 (gt_pch_nx): New overload for rtx_insn *&.
4674 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4675 from rtx to rtx_insn *.
4676
4677 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4678
4679 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4680 from rtx to rtx_insn *.
4681 (BB_FOOTER): Replace function with access macro.
4682 (SET_BB_FOOTER): Delete.
4683
4684 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4685 with BB_FOOTER.
4686 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4687 (emit_barrier_after_bb): Likewise.
4688 (record_effective_endpoints): Likewise.
4689 (relink_block_chain): Likewise.
4690 (fixup_fallthru_exit_predecessor): Likewise.
4691 (cfg_layout_duplicate_bb): Likewise.
4692 (cfg_layout_split_block): Likewise.
4693 (cfg_layout_delete_block): Likewise.
4694 (cfg_layout_merge_blocks): Likewise.
4695 (BB_FOOTER): Delete function.
4696 (SET_BB_FOOTER): Delete function.
4697 * combine.c (update_cfg_for_uncondjump): Replace uses of
4698 SET_BB_FOOTER with BB_FOOTER.
4699
4700 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4701
4702 * except.h (struct eh_landing_pad_d): Strengthen field
4703 "landing_pad" from rtx to rtx_code_label *.
4704
4705 * except.c (sjlj_emit_dispatch_table): Likewise for param
4706 "dispatch_label"
4707 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4708
4709 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4710
4711 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4712 first param from rtx to rtx_insn *.
4713 * config/xtensa/xtensa.c (struct machine_function): Likewise for
4714 field "set_frame_ptr_insn".
4715 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4716 "csend" from rtx to rtx_code_label *.
4717 (xtensa_expand_atomic): Likewise for local "csloop".
4718 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4719 rtx_insn *.
4720 (xtensa_call_tls_desc): Likewise for return type and locals
4721 "call_insn", "insns".
4722 (xtensa_legitimize_tls_address): Likewise for local "insns".
4723 (xtensa_expand_prologue): Likewise for locals "insn", "first".
4724
4725 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4726
4727 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4728 first param from rtx to rtx_insn *.
4729 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4730 "insn".
4731
4732 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4733
4734 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4735 Strengthen param 1 from rtx to rtx_insn *.
4736 (tilepro_output_cbranch): Likewise.
4737 (tilepro_adjust_insn_length): Likewise.
4738 (tilepro_final_prescan_insn): Likewise for sole param.
4739
4740 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4741 Likewise for local "last".
4742 (cbranch_predicted_p): Likewise for param "insn".
4743 (tilepro_output_simple_cbranch_with_opcode): Likewise.
4744 (tilepro_output_cbranch_with_opcode): Likewise.
4745 (tilepro_output_cbranch): Likewise.
4746 (frame_emit_load): Likewise for return type and locals "seq",
4747 "insn".
4748 (emit_sp_adjust): Likewise for return type and local "insn".
4749 (tilepro_expand_epilogue): Likewise for locals "last_insn",
4750 "insn".
4751 (tilepro_adjust_insn_length): Likewise for param "insn".
4752 (next_insn_to_bundle): Likewise for return type and params
4753 "r", "end".
4754 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4755 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4756 local "new_insns".
4757 (match_addli_pcrel): Likewise for param "insn".
4758 (replace_addli_pcrel): Likewise.
4759 (match_auli_pcrel): Likewise.
4760 (replace_auli_pcrel): Likewise.
4761 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4762 "next_insn".
4763 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4764 "queue", "next_queue", "prev".
4765 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4766 (tilepro_final_prescan_insn): Likewise for param "insn".
4767
4768 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4769
4770 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4771 Strengthen param 1 from rtx to rtx_insn *.
4772 (tilegx_output_cbranch): Likewise.
4773 (tilegx_adjust_insn_length): Likewise.
4774 (tilegx_final_prescan_insn): Likewise for sole param.
4775
4776 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4777 or local "last".
4778 (cbranch_predicted_p): Likewise for param "insn".
4779 (tilegx_output_simple_cbranch_with_opcode): Likewise.
4780 (tilegx_output_cbranch_with_opcode): Likewise.
4781 (tilegx_output_cbranch): Likewise.
4782 (frame_emit_load): Likewise for return type.
4783 (set_frame_related_p): Likewise for locals "seq", "insn".
4784 (emit_sp_adjust): Likewise for return type, and for local "insn".
4785 Introduce local "pat" for use in place of "insn" where the latter
4786 isn't an instruction.
4787 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4788 from rtx to rtx_insn *.
4789 (tilegx_adjust_insn_length): Likewise for param "insn".
4790 (next_insn_to_bundle): Likewise for return type and params "r" and
4791 "end".
4792 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4793 "end".
4794 (replace_insns): Likewise for params "old_insn", "new_insns".
4795 (replace_mov_pcrel_step1): Likewise for param "insn" and local
4796 "new_insns".
4797 (replace_mov_pcrel_step2): Likewise.
4798 (replace_mov_pcrel_step3): Likewise.
4799 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4800 "next_insn".
4801 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4802 "queue", "next_queue", "prev".
4803 (tilegx_output_mi_thunk): Likewise for local "insn".
4804 (tilegx_final_prescan_insn): Likewise for param "insn".
4805
4806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4807
4808 * config/spu/spu.c (frame_emit_store): Strengthen return type from
4809 rtx to rtx_insn *.
4810 (frame_emit_load): Likewise.
4811 (frame_emit_add_imm): Likewise, also for local "insn".
4812 (spu_expand_prologue): Likewise for local "insn".
4813 (struct spu_bb_info): Likewise for field "prop_jump".
4814 (emit_nop_for_insn): Likewise for param "insn" and local
4815 "new_insn".
4816 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4817 "hbr_insn".
4818 (spu_emit_branch_hint): Likewise for params "before", "branch" and
4819 locals "hint", "insn".
4820 (get_branch_target): Likewise for param "branch".
4821 (insn_clobbers_hbr): Likewise for param "insn".
4822 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4823 locals "insn", "before_4", "before_16".
4824 (insert_hbrp): Likewise for local "insn".
4825 (spu_machine_dependent_reorg): Likewise for locals "branch",
4826 "insn", "next", "bbend".
4827 (uses_ls_unit): Likewise for param "insn".
4828 (get_pipe): Likewise.
4829 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4830 introducing a checked cast.
4831 (spu_sched_adjust_cost): Likewise for params "insn" and
4832 "dep_insn".
4833 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4834 (spu_sms_res_mii): Likewise.
4835
4836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4837
4838 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4839 from rtx to rtx_insn *.
4840 (output_cbranch): Likewise for param 6.
4841 (output_return): Likewise for param 1.
4842 (output_sibcall): Likewise.
4843 (output_v8plus_shift): Likewise.
4844 (output_v8plus_mult): Likewise.
4845 (output_v9branch): Likewise for param 7.
4846 (output_cbcond): Likewise for param 3.
4847
4848 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4849 for local "insn".
4850 (sparc_legitimize_pic_address): Likewise.
4851 (sparc_emit_call_insn): Likewise.
4852 (emit_save_or_restore_regs): Likewise.
4853 (emit_window_save): Likewise for return type and local "insn".
4854 (sparc_expand_prologue): Likewise for local "insn".
4855 (sparc_flat_expand_prologue): Likewise.
4856 (output_return): Likewise for param "insn".
4857 (output_sibcall): Likewise for param "insn" and local "delay".
4858 (output_ubranch): Likewise for param "insn".
4859 (output_cbranch): Likewise.
4860 (output_cbcond): Likewise.
4861 (output_v9branch): Likewise.
4862 (output_v8plus_shift): Likewise.
4863 (sparc_output_mi_thunk): Likewise for local "insn".
4864 (get_some_local_dynamic_name): Likewise.
4865 (output_v8plus_mult): Likewise for param "insn".
4866
4867 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4868
4869 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4870 from rtx to rtx_insn *.
4871 (output_branchy_insn): Likewise for param 3.
4872 (output_far_jump): Likewise for param 1.
4873 (final_prescan_insn): Likewise.
4874 (sh_insn_length_adjustment): Likewise for sole param.
4875
4876 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4877 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4878 rtx_code_label *.
4879 (sh_emit_compare_and_set): Likewise for local "lab".
4880 (output_far_jump): Strengthen param "insn" and local "prev" from
4881 rtx to rtx_insn *.
4882 (output_branchy_insn): Likewise for param "insn" and local
4883 "next_insn".
4884 (output_ieee_ccmpeq): Likewise for param "insn".
4885 (struct label_ref_list_d): Strengthen field "label" from rtx to
4886 rtx_code_label *.
4887 (pool_node): Likewise.
4888 (pool_window_label): Likewise for this global.
4889 (add_constant): Likewise for return type and locals "lab", "new_rtx".
4890 (dump_table): Strengthen params "start", "barrier" and local
4891 "scan" from rtx to rtx_insn *.
4892 (broken_move): Likewise for param "insn".
4893 (untangle_mova): Likewise for params "first_mova" and "new_mova".
4894 Strengthen param "first_mova" from rtx * to rtx_insn **.
4895 (mova_p): Likewise for param "insn".
4896 (fixup_mova): Likewise for param "mova".
4897 (find_barrier): Likewise for return type, params "mova" and
4898 "from", and locals "barrier_before_mova", "found_barrier",
4899 "good_barrier", "orig", "last_symoff", "next". Strengthen local
4900 "label" from rtx to rtx_code_label *.
4901 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4902 rtx to rtx_insn *.
4903 (sh_reorg): Likewise for locals "link", "scan", "barrier".
4904 (split_branches): Likewise for param "first" and local "insn".
4905 (final_prescan_insn): Likewise for param "insn".
4906 (sequence_insn_p): Likewise for locals "prev", "next".
4907 (sh_insn_length_adjustment): Likewise for param "insn".
4908 (sh_can_redirect_branch): Likewise for local "insn".
4909 (find_r0_life_regions): Likewise for locals "end", "insn".
4910 (sh_output_mi_thunk): Likewise for local "insns".
4911
4912 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4913
4914 * config/score/score.c (score_output_mi_thunk): Strengthen local
4915 "insn" from rtx to rtx_insn *.
4916 (score_prologue): Likewise.
4917
4918 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4919
4920 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4921 1 from rtx to rtx_insn *.
4922 (s390_emit_jump): Likewise for return type.
4923 (s390_emit_call): Likewise.
4924 (s390_load_got): Likewise.
4925
4926 * config/s390/s390.c (last_scheduled_insn): Likewise for this
4927 variable.
4928 (s390_match_ccmode): Likewise for param "insn".
4929 (s390_emit_jump): Likewise for return type.
4930 (s390_split_branches): Likewise for local "label".
4931 (struct constant): Strengthen field "label" from rtx to
4932 rtx_code_label *.
4933 (struct constant_pool): Likewise for field "label". Strengthen
4934 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4935 rtx_insn *.
4936 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4937 insns.
4938 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4939 (s390_end_pool): Likewise.
4940 (s390_dump_pool): Likewise for local "insn".
4941 (s390_mainpool_start): Likewise.
4942 (s390_chunkify_start): Likewise.
4943 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4944 with insns. Strengthen locals "label", "jump", "barrier", "next",
4945 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4946 (s390_chunkify_finish): Strengthen local "insn" from rtx to
4947 rtx_insn *.
4948 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4949 "jump", "label", "next_insn".
4950 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4951 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4952 "tbegin_insn".
4953 (s390_load_got): Likewise for return type and local "insns".
4954 (s390_save_gprs_to_fprs): Likewise for local "insn".
4955 (s390_restore_gprs_from_fprs): Likewise.
4956 (pass_s390_early_mach::execute): Likewise.
4957 (s390_emit_prologue): Likewise for local "insns".
4958 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4959 rtx_code_label *.
4960 (s390_emit_call): Strengthen return type and local "insn" from
4961 rtx to rtx_insn *.
4962 (s390_emit_tpf_eh_return): Likewise for local "insn".
4963 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4964 "next_insn", introducing locals "s_pat", "rpat" to allow this.
4965 (s390_fix_long_loop_prediction): Likewise for param "insn" and
4966 local "cur_insn".
4967 (s390_non_addr_reg_read_p): Likewise for param "insn".
4968 (find_cond_jump): Likewise for return type and param "insn".
4969 (s390_swap_cmp): Likewise for param "insn".
4970 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4971 "prev_insn", "next_insn".
4972 (s390_reorg): Likewise for locals "insn", "target".
4973 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4974 (s390_sched_variable_issue): For now, rename param "insn" to
4975 "uncast_insn", introducing a checked cast.
4976 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4977 insn.
4978 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4979 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
4980
4981 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4982
4983 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4984 param from rtx to rtx_insn *.
4985 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4986
4987 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4988
4989 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4990 4 from rtx to rtx_insn *.
4991 (rs6000_final_prescan_insn): Likewise for first param.
4992 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4993 local "insn".
4994 (rs6000_get_some_local_dynamic_name): Likewise.
4995 (output_cbranch): Likewise for param "insn".
4996 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4997 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4998 (rs6000_emit_allocate_stack): Likewise for local "insn".
4999 (load_cr_save): Likewise.
5000 (restore_saved_cr): Likewise.
5001 (restore_saved_lr): Likewise.
5002 (emit_cfa_restores): Likewise.
5003 (rs6000_output_function_epilogue): Likewise for locals "insn" and
5004 "deleted_debug_label".
5005 (rs6000_output_mi_thunk): Likewise for local "insn".
5006 (rs6000_final_prescan_insn): Likewise for param "insn".
5007
5008 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5009
5010 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
5011 Strengthen param "insn" from rtx to rtx_insn *.
5012 * config/picochip/picochip.c (picochip_current_prescan_insn):
5013 Likewise for this variable.
5014 (picochip_final_prescan_insn): Likewise for param "insn".
5015
5016 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5017
5018 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
5019 from rtx to rtx_insn *.
5020 (pa_output_indirect_call): Likewise.
5021 (pa_adjust_insn_length): Likewise.
5022 (pa_attr_length_millicode_call): Likewise.
5023 (pa_attr_length_call): Likewise.
5024 (pa_attr_length_indirect_call): Likewise.
5025
5026 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
5027 "insn".
5028 (pa_attr_length_millicode_call): Likewise.
5029 (pa_attr_length_call): Likewise.
5030 (pa_output_call): Likewise.
5031 (pa_attr_length_indirect_call): Likewise.
5032 (pa_output_indirect_call): Likewise.
5033
5034 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5035
5036 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
5037 Strengthen first param from rtx to rtx_insn *.
5038 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
5039 param "insn".
5040
5041 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5042
5043 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5044 type from rtx to rtx_insn *.
5045 (mips_expand_call): Likewise.
5046 (mips_adjust_insn_length): Likewise for first param.
5047 (mips_output_conditional_branch): Likewise.
5048 (mips_output_order_conditional_branch): Likewise.
5049 (mips_final_prescan_insn): Likewise.
5050
5051 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5052 rtx_insn * for the SEQUENCE case.
5053 (SEQ_END): Likewise.
5054 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5055 (mips_emit_call_insn): Likewise, also for local "insn".
5056 (mips16_gp_pseudo_reg): Likewise for local "scan".
5057 (mips16_build_call_stub): Likewise for return type and for local
5058 "insn". Introduce a new local "pattern" so that "insn" can indeed
5059 be an insn.
5060 (mips_expand_call): Strengthen return type and local "insn" from
5061 rtx to rtx_insn *.
5062 (mips_block_move_loop): Strengthen local "label" from rtx to
5063 rtx_code_label *.
5064 (mips_expand_synci_loop): Likewise for locals "label",
5065 "end_label".
5066 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5067 rtx_insn *.
5068 (mips16e_collect_argument_saves): Likewise for locals "insn",
5069 "next".
5070 (mips_find_gp_ref): Likewise for param of callback for "pred"
5071 param, and for local "insn".
5072 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5073 (mips_insn_has_flexible_gp_ref_p): Likewise.
5074 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5075 local "insn".
5076 (mips_epilogue_set_cfa): Likewise for local "insn".
5077 (mips_expand_epilogue): Likewise.
5078 (mips_adjust_insn_length): Likewise for param "insn".
5079 (mips_output_conditional_branch): Likewise.
5080 (mips_output_order_conditional_branch): Likewise.
5081 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5082 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5083 "falu2_turn_enabled_insn".
5084 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5085 "done_label" from rtx to rtx_code_label *.
5086 (struct mips16_constant): Likewise for field "label".
5087 (mips16_add_constant): Likewise for return type.
5088 (mips16_emit_constants_1): Strengthen return type and param "insn"
5089 from rtx to rtx_insn *.
5090 (mips16_emit_constants): Likewise for param "insn".
5091 (mips16_insn_length): Likewise.
5092 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5093 to rtx_code_label *.
5094 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5095 from rtx to rtx_insn *.
5096 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5097 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5098 (r10k_simplify_address): Strengthen param "insn" and local
5099 "def_insn" from rtx to rtx_insn *.
5100 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5101 rtx_insn *.
5102 (r10k_needs_protection_p_1): Update target type of cast of data
5103 from to rtx to rtx_insn *.
5104 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5105 rtx * to rtx_insn **.
5106 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5107 rtx_insn *.
5108 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5109 (mips_call_expr_from_insn): Likewise for param "insn".
5110 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5111 (mips_find_pic_call_symbol): Likewise for param "insn".
5112 (mips_annotate_pic_calls): Likewise for local "insn".
5113 (mips_sim_insn): Likewise for this variable.
5114 (struct mips_sim): Likewise for field "insn" within elements of
5115 last_set array.
5116 (mips_sim_wait_reg): Likewise for param "insn".
5117 (mips_sim_wait_regs): Likewise.
5118 (mips_sim_wait_units): Likewise.
5119 (mips_sim_wait_insn): Likewise.
5120 (mips_sim_issue_insn): Likewise.
5121 (mips_sim_finish_insn): Likewise.
5122 (mips_seq_time): Likewise for param "seq" and local "insn".
5123 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5124 locals "first", "second".
5125 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5126 "last", "last2", "next".
5127 (mips_avoid_hazard): Likewise for params "after", "insn".
5128 (mips_reorg_process_insns): Likewise for locals "insn",
5129 "last_insn", "subinsn", "next_insn".
5130 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5131 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5132 "jump_sequence".
5133 (mips_output_mi_thunk): Likewise for local "insn".
5134 (mips_final_prescan_insn): Likewise for param "insn".
5135
5136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5137
5138 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5139 Strengthen return type and local "insns" from rtx to rtx_insn *.
5140 (microblaze_legitimize_tls_address): Likewise for local "insns".
5141 (microblaze_block_move_loop): Strengthen local "label" from rtx
5142 to rtx_code_label *.
5143 (microblaze_expand_prologue): Strengthen two locals named "insn"
5144 from rtx to rtx_insn *.
5145 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5146 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5147 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5148 to rtx_code_label *.
5149
5150 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5151
5152 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5153 param from rtx to rtx_insn *.
5154 (mep_reuse_lo): Likewise for third param.
5155 (mep_use_post_modify_p): Likewise for first param.
5156 (mep_core_address_length): Likewise.
5157 (mep_cop_address_length): Likewise.
5158 (mep_final_prescan_insn): Likewise.
5159 (mep_store_data_bypass_p): Likewise for both params.
5160 (mep_mul_hilo_bypass_p): Likewise.
5161 (mep_ipipe_ldc_p): Likewise for param.
5162
5163 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5164 (mep_rewrite_mult): Likewise.
5165 (mep_rewrite_mulsi3): Likewise.
5166 (mep_rewrite_maddsi3): Likewise.
5167 (mep_reuse_lo_p_1): Likewise.
5168 (mep_reuse_lo_p): Likewise.
5169 (mep_frame_expr): Likewise.
5170 (mep_make_parallel): Likewise for both params.
5171 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5172 local "insn".
5173 (mep_use_post_modify_p): Likewise for param "insn".
5174 (mep_core_address_length): Likewise.
5175 (mep_cop_address_length): Likewise.
5176 (mep_reg_set_in_function): Likewise for local "insn".
5177 (mep_asm_without_operands_p): Likewise.
5178 (F): Likewise for return type and param "x".
5179 (add_constant): Likewise for local "insn".
5180 (maybe_dead_move): Likewise for return type and local "insn".
5181 (mep_expand_prologue): Likewise for local "insn".
5182 (mep_final_prescan_insn): Likewise for param "insn".
5183 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5184 "next", "follow", "x".
5185 (mep_insert_repeat_label_last): Likewise for return type, param
5186 "last_insn", and locals "next", "prev". Strengthen param "label"
5187 from rtx to rtx_code_label *.
5188 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5189 rtx_insn *.
5190 (struct mep_doloop_end): Likewise for fields "insn" and
5191 "fallthrough".
5192 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5193 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5194 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5195 rtx_insn *.
5196 (mep_invert_branch): Likewise for params "insn" and "after".
5197 (mep_reorg_erepeat): Likewise for param "insns" and locals
5198 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5199 "l" from rtx to rtx_code_label *.
5200 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5201 from rtx to rtx_insn *.
5202 (mep_reorg_addcombine): Likewise for param "insns" and locals
5203 "i", "n".
5204 (add_sp_insn_p): Likewise for param "insn".
5205 (mep_reorg_noframe): Likewise for param "insns" and locals
5206 "start_frame_insn", "end_frame_insn", "next".
5207 (mep_reorg): Likewise for local "insns".
5208 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5209 cast.
5210 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5211 (mep_mul_hilo_bypass_p): Likewise.
5212 (mep_ipipe_ldc_p): Likewise for param "insn".
5213 (mep_make_bundle): Likewise for return type, param "cop" and local
5214 "insn", splitting out the latter into a new local "seq" for when it
5215 is a SEQUENCE rather than an insn.
5216 (core_insn_p): Likewise for param "insn".
5217 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5218 "last", "first", "note", "prev", "core_insn".
5219
5220 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5221
5222 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5223 rtx to rtx_insn *.
5224 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5225 (m68k_final_prescan_insn): Likewise for first param.
5226
5227 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5228 (m68k_set_frame_related): Likewise for param "insn".
5229 (output_btst): Likewise for param "insn".
5230 (m68k_final_prescan_insn): Likewise.
5231 (m68k_move_to_reg): Likewise for local "insn".
5232 (m68k_call_tls_get_addr): Likewise for local "insns".
5233 (m68k_call_m68k_read_tp): Likewise.
5234 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5235 (m68k_output_mi_thunk): Likewise for local "insn".
5236
5237 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5238
5239 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5240 first param from rtx to rtx_insn *.
5241 (iq2000_adjust_insn_length): Likewise.
5242 (iq2000_output_conditional_branch): Likewise.
5243 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5244 "insn" and local "nop_insn".
5245 (iq2000_annotate_frame_insn): Likewise for param "insn".
5246 (iq2000_expand_prologue): Likewise for both locals "insn".
5247 (iq2000_adjust_insn_length): Likewise for param "insn".
5248 (iq2000_output_conditional_branch): Likewise.
5249
5250 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5251
5252 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5253 "insns" from rtx to rtx_insn *.
5254 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5255 (struct spill_fill_data): Likewise for field "init_after" and for
5256 elements of array field "prev_insn".
5257 (spill_restore_mem): Likewise for locals "insn", "first".
5258 (do_spill): Likewise for local "insn".
5259 (do_restore): Likewise.
5260 (ia64_expand_prologue): Likewise.
5261 (ia64_expand_epilogue): Likewise.
5262 (emit_insn_group_barriers): Likewise for locals "insn",
5263 "last_label".
5264 (emit_all_insn_group_barriers): Likewise for locals "insn",
5265 "last".
5266 (dfa_stop_insn): Likewise for this global.
5267 (dfa_pre_cycle_insn): Likewise.
5268 (ia64_nop): Likewise.
5269 (final_emit_insn_group_barriers): Likewise for locals "insn",
5270 "last".
5271 (emit_predicate_relation_info): Likewise for locals "head", "n",
5272 "insn", "b", "a".
5273 (ia64_reorg): Likewise for local "insn".
5274 (ia64_output_mi_thunk): Likewise.
5275 (expand_vec_perm_interleave_2): Likewise for local "seq".
5276
5277 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5278
5279 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5280 param 1 "insn" from rtx to rtx_insn *.
5281 (ix86_use_lea_for_mov): Likewise.
5282 (ix86_avoid_lea_for_addr): Likewise.
5283 (ix86_split_lea_for_addr): Likewise.
5284 (ix86_lea_for_add_ok): Likewise.
5285 (ix86_output_call_insn): Likewise.
5286
5287 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5288 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5289 (ix86_output_function_epilogue): Likewise for locals "insn",
5290 "deleted_debug_label".
5291 (legitimize_tls_address): Likewise for local "insn".
5292 (get_some_local_dynamic_name): Likewise.
5293 (increase_distance): Likewise for params "prev", "next".
5294 (distance_non_agu_define_in_bb): Likewise for params "insn",
5295 "start" and locals "prev", "next".
5296 (distance_non_agu_define): Likewise for param "insn".
5297 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5298 locals "next", "prev".
5299 (distance_agu_use): Likewise for param "insn".
5300 (ix86_lea_outperforms): Likewise.
5301 (ix86_ok_to_clobber_flags): Likewise.
5302 (ix86_avoid_lea_for_add): Likewise.
5303 (ix86_use_lea_for_mov): Likewise.
5304 (ix86_avoid_lea_for_addr): Likewise.
5305 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5306 (ix86_split_lea_for_addr): Likewise for param "insn".
5307 (ix86_lea_for_add_ok): Likewise for param "insn".
5308 (ix86_expand_carry_flag_compare): Likewise for local
5309 "compare_seq".
5310 (ix86_expand_int_movcc): Likewise.
5311 (ix86_output_call_insn): Likewise for param "insn".
5312 (ix86_output_call_insn): Likewise for local "i".
5313 (x86_output_mi_thunk): Introduce local "insn", using it in place
5314 of "tmp" when dealing with insns.
5315 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5316 "start".
5317 (ix86_pad_returns): Likewise for locals "ret", "prev".
5318 (ix86_count_insn_bb): Likewise for local "insn".
5319 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5320 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5321 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5322 (expand_vec_perm_interleave2): Likewise for local "seq".
5323 (expand_vec_perm_vperm2f128_vblend): Likewise.
5324 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5325 call to for_each_rtx with for_each_rtx_in_insn.
5326
5327 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5328
5329 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5330 "label" from rtx to rtx_code_label *.
5331 (ix86_expand_prologue): Likewise.
5332 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5333 "varargs_label".
5334 (ix86_split_idivmod): Likewise for locals "end_label" and
5335 "qimode_label".
5336 (ix86_expand_branch): Likewise for local "label2".
5337 (ix86_expand_aligntest): Likewise for return type and local "label".
5338 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5339 "top_label".
5340 (expand_movmem_epilogue): Likewise for the various locals named
5341 "label".
5342 (expand_setmem_epilogue): Likewise.
5343 (expand_small_movmem_or_setmem): Likewise for local "label".
5344 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5345 Strengthen param "done_label" from rtx * to rtx_code_label **.
5346 Strengthen locals "loop_label" and "label" from rtx to
5347 rtx_code_label *.
5348 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5349 Likewise for locals "loop_label", "label".
5350 (ix86_expand_set_or_movmem): Likewise for locals "label",
5351 "jump_around_label", "hot_label".
5352 (ix86_expand_strlensi_unroll_1): Likewise for locals
5353 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5354 "end_2_label".
5355 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5356 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5357 "label2", "jump_label".
5358 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5359 local "label".
5360 (ix86_expand_lfloorceil): Likewise for local "label".
5361 (ix86_expand_rint): Likewise.
5362 (ix86_expand_floorceildf_32): Likewise.
5363 (ix86_expand_floorceil): Likewise.
5364 (ix86_expand_rounddf_32): Likewise.
5365 (ix86_expand_trunc): Likewise.
5366 (ix86_expand_truncdf_32): Likewise.
5367 (ix86_expand_round): Likewise.
5368
5369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5370
5371 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
5372 first param from rtx to rtx_insn *.
5373 (h8300_insn_length_from_table): Likewise.
5374 * config/h8300/h8300.c (F): Likewise for return type and param
5375 "x".
5376 (Fpa): Add a checked cast to rtx_insn *.
5377 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
5378 rtx_insn *.
5379 (final_prescan_insn): Likewise for param "insn".
5380 (h8300_binary_length): Likewise.
5381 (h8300_insn_length_from_table): Likewise.
5382
5383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5384
5385 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
5386 Strengthen first param "insn" from rtx to rtx_insn *.
5387
5388 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
5389 Likewise.
5390 (frame_insn): Likewise for return type. Introduce local "insn"
5391 for use in place of local "x" for use as an rtx_insn *.
5392 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
5393 (epiphany_expand_prologue): Likewise for local "insn".
5394 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
5395 * config/epiphany/resolve-sw-modes.c
5396 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
5397 "seq".
5398
5399 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5400
5401 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
5402 param from rtx to rtx_insn *.
5403 (c6x_final_prescan_insn): Likewise for first param.
5404
5405 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
5406 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
5407 (c6x_expand_compare): Strengthen local "insns" from rtx to
5408 rtx_insn *.
5409 (c6x_get_unit_specifier): Likewise for param "insn".
5410 (c6x_print_unit_specifier_field): Likewise.
5411 (c6x_final_prescan_insn): Likewise.
5412 (emit_add_sp_const): Likewise for local "insn".
5413 (c6x_expand_prologue): Likewise.
5414
5415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5416
5417 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
5418 param 1 from rtx to rtx_insn *.
5419 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
5420 the various locals named "insn".
5421 (expand_epilogue_reg_restore): Likewise.
5422 (frame_related_constant_load): Likewise.
5423 (add_to_reg): Likewise.
5424 (emit_link_insn): Likewise.
5425 (do_link): Likewise.
5426 (expand_interrupt_handler_prologue): Likewise.
5427 (branch_dest): Likewise for param "branch".
5428 (asm_conditional_branch): Likewise for param "insn".
5429 (gen_one_bundle): Likewise for elements of param "slot" and local
5430 "t".
5431 (bfin_gen_bundles): Likewise for locals "insn", "next" and
5432 elements of local "slot".
5433 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5434 "queue", "next_queue", "prev".
5435 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
5436 (add_sched_insns_for_speculation): Likewise for local "insn".
5437
5438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5439
5440 * config/avr/avr-protos.h (output_movqi): Strengthen first param
5441 from rtx to rtx_insn *.
5442 (output_movhi): Likewise.
5443 (output_movsisf): Likewise.
5444 (avr_out_tstsi): Likewise.
5445 (avr_out_tsthi): Likewise.
5446 (avr_out_tstpsi): Likewise.
5447 (avr_out_compare): Likewise.
5448 (avr_out_compare64): Likewise.
5449 (avr_out_movpsi): Likewise.
5450 (ashlqi3_out): Likewise.
5451 (ashlhi3_out): Likewise.
5452 (ashlsi3_out): Likewise.
5453 (ashrqi3_out): Likewise.
5454 (ashrhi3_out): Likewise.
5455 (ashrsi3_out): Likewise.
5456 (lshrqi3_out): Likewise.
5457 (lshrhi3_out): Likewise.
5458 (lshrsi3_out): Likewise.
5459 (avr_out_ashlpsi3): Likewise.
5460 (avr_out_ashrpsi3): Likewise.
5461 (avr_out_lshrpsi3): Likewise.
5462 (avr_out_fract): Likewise.
5463 (avr_out_sbxx_branch): Likewise.
5464 (avr_out_round): Likewise.
5465 (avr_out_xload): Likewise.
5466 (avr_out_movmem): Likewise.
5467 (adjust_insn_length): Likewise.
5468 (avr_out_lpm): Likewise.
5469 (reg_unused_after): Likewise.
5470 (_reg_unused_after): Likewise.
5471 (avr_jump_mode): Likewise for second param.
5472 (jump_over_one_insn): Likewise for first param.
5473 (avr_final_prescan_insn): Likewise.
5474 (out_shift_with_cnt): Likewise for second param.
5475
5476 * config/avr/avr.c (get_sequence_length): Likewise for param
5477 "insns" and local "insn".
5478 (emit_push_byte): Likewise for local "insn".
5479 (emit_push_sfr): Likewise.
5480 (avr_prologue_setup_frame): Likewise for locals "insn",
5481 "fp_plus_insns", "sp_plus_insns".
5482 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
5483 "sp_plus_insns".
5484 (avr_jump_mode): Likewise for param "insn".
5485 (avr_final_prescan_insn): Likewise.
5486 (avr_find_unused_d_reg): Likewise.
5487 (avr_out_lpm_no_lpmx): Likewise.
5488 (avr_out_lpm): Likewise.
5489 (avr_out_xload): Likewise.
5490 (output_movqi): Likewise.
5491 (output_movhi): Likewise.
5492 (out_movqi_r_mr): Likewise.
5493 (out_movhi_r_mr): Likewise.
5494 (out_movsi_r_mr): Likewise.
5495 (out_movsi_mr_r): Likewise.
5496 (output_movsisf): Likewise.
5497 (avr_out_load_psi): Likewise.
5498 (avr_out_store_psi): Likewise.
5499 (avr_out_movpsi): Likewise.
5500 (out_movqi_mr_r): Likewise.
5501 (avr_out_movhi_mr_r_xmega): Likewise.
5502 (out_movhi_mr_r): Likewise.
5503 (compare_condition): Likewise for param "insn" and local "next".
5504 (compare_sign_p): Likewise for param "insn".
5505 (compare_diff_p): Likewise.
5506 (compare_eq_p): Likewise.
5507 (avr_out_compare): Likewise.
5508 (avr_out_compare64): Likewise.
5509 (avr_out_tsthi): Likewise.
5510 (avr_out_tstpsi): Likewise.
5511 (avr_out_tstsi): Likewise.
5512 (out_shift_with_cnt): Likewise.
5513 (ashlqi3_out): Likewise.
5514 (ashlhi3_out): Likewise.
5515 (avr_out_ashlpsi3): Likewise.
5516 (ashlsi3_out): Likewise.
5517 (ashrqi3_out): Likewise.
5518 (ashrhi3_out): Likewise.
5519 (avr_out_ashrpsi3): Likewise.
5520 (ashrsi3_out): Likewise.
5521 (lshrqi3_out): Likewise.
5522 (lshrhi3_out): Likewise.
5523 (avr_out_lshrpsi3): Likewise.
5524 (lshrsi3_out): Likewise.
5525 (avr_out_fract): Likewise.
5526 (avr_out_round): Likewise.
5527 (avr_adjust_insn_length): Likewise.
5528 (reg_unused_after): Likewise.
5529 (_reg_unused_after): Likewise.
5530 (avr_compare_pattern): Likewise.
5531 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
5532 and locals "branch1", "branch2", "insn2", "jump".
5533 (avr_reorg): Likewise for local "insn".
5534 (avr_2word_insn_p): Likewise for param "insn".
5535 (jump_over_one_insn_p): Likewise.
5536 (avr_out_sbxx_branch): Likewise.
5537 (avr_out_movmem): Likewise.
5538
5539 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5540
5541 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
5542 param from rtx to rtx_insn *.
5543 (thumb1_final_prescan_insn): Likewise.
5544 (thumb2_final_prescan_insn): Likewise.
5545
5546 * config/arm/arm.c (emit_set_insn): Strengthen return type from
5547 rtx to rtx_insn *.
5548 (struct minipool_node): Likewise for field "insn".
5549 (dump_minipool): Likewise for param "scan".
5550 (create_fix_barrier): Likewise for local "from". Strengthen local
5551 "label" from rtx to rtx_code_label *.
5552 (push_minipool_barrier): Strengthen param "insn" from rtx to
5553 rtx_insn *.
5554 (push_minipool_fix): Likewise.
5555 (note_invalid_constants): Likewise.
5556 (thumb2_reorg): Likewise for local "insn".
5557 (arm_reorg): Likewise.
5558 (thumb2_final_prescan_insn): Likewise for param
5559 "insn" and local "first_insn".
5560 (arm_final_prescan_insn): Likewise for param "insn" and locals
5561 "start_insn", "this_insn".
5562 (arm_debugger_arg_offset): Likewise for param "insn".
5563 (thumb1_emit_multi_reg_push): Likewise for return type and local
5564 "insn".
5565 (thumb1_final_prescan_insn): Likewise for param "insn".
5566 (thumb_far_jump_used_p): Likewise for local "insn".
5567 (thumb1_expand_prologue): Likewise.
5568 (arm_expand_epilogue_apcs_frame): Likewise.
5569 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
5570 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
5571 from rtx to rtx_code_label *.
5572 (arm_split_atomic_op): Likewise for local "label".
5573 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
5574
5575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5576
5577 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
5578 first param from rtx to rtx_insn *.
5579 (arc_verify_short): Likewise.
5580 (arc_short_long): Likewise.
5581 (arc_need_delay): Likewise.
5582
5583 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
5584 "target_insn".
5585 (arc_ccfsm_advance): Likewise for param "insn" and locals
5586 "start_insn", "this_insn".
5587 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
5588 (arc_ccfsm_post_advance): Likewise for param "insn".
5589 (arc_next_active_insn): Likewise for return type and param "insn".
5590 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
5591 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
5592 (output_short_suffix): Likewise for local "insn".
5593 (arc_final_prescan_insn): Likewise for param "insn". Remove
5594 now-redundant checked cast.
5595 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
5596 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
5597 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
5598 for use where lc_set became an insn.
5599 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
5600 rtx to rtx_insn *.
5601 (arc_get_insn_variants): Likewise for local "prev".
5602 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
5603 "next".
5604 (arc_predicate_delay_insns): Likewise for local "insn".
5605 (arc_pad_return): Likewise for local "prev". For now, add a
5606 checked cast when extracting the insn from "final_sequence".
5607 (arc_short_long): Likewise for param "insn".
5608 (arc_need_delay): Likewise for param "insn" and local "next".
5609 (arc_label_align): Likewise for locals "prev", "next".
5610
5611 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5612
5613 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
5614 "insn" from rtx to rtx_insn *.
5615 (alpha_gp_save_rtx): Likewise for local "seq".
5616 (alpha_instantiate_decls): Likewise for local "top".
5617 (get_some_local_dynamic_name): Likewise for local "insn".
5618 (alpha_does_function_need_gp): Likewise.
5619 (set_frame_related_p): Likewise for return type and for locals
5620 "seq" and "insn".
5621 (emit_frame_store_1): Likewise for local "insn".
5622 (alpha_expand_prologue): Likewise for locals "insn", "seq".
5623 (alpha_end_function): Likewise for local "insn".
5624 (alpha_output_mi_thunk_osf): Likewise.
5625 (alphaev4_insn_pipe): Likewise for param "insn".
5626 (alphaev5_insn_pipe): Likewise.
5627 (alphaev4_next_group): Likewise for return type and param 1
5628 "insn".
5629 (alphaev5_next_group): Likewise.
5630 (alpha_align_insns_1): Likewise for return type and param 1 of
5631 callback param "next_group", and for locals "i", "next", "prev",
5632 "where", "where2", "insn".
5633
5634 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
5635
5636 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
5637 rather than modifying the stmt.
5638
5639 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5640
5641 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
5642 cgraph_state conversion.
5643
5644 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5645
5646 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5647 Strengthen local "insns" from rtx to rtx_insn *.
5648 (aarch64_set_frame_expr): Likewise for local "insn".
5649 (aarch64_save_or_restore_fprs): Likewise.
5650 (aarch64_save_or_restore_callee_save_registers): Likewise.
5651 (aarch64_expand_prologue): Likewise.
5652 (aarch64_expand_epilogue): Likewise.
5653 (aarch64_output_mi_thunk): Likewise.
5654 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5655 "label2" from rtx to rtx_code_label *.
5656 (aarch64_split_atomic_op): Likewise for local "label".
5657
5658 2014-08-25 Martin Liska <mliska@suse.cz>
5659
5660 * cgraph.h (symtab_node):
5661 (bool needed_p (void)): created from decide_is_symbol_needed
5662 (bool referred_to_p (void)): created from referred_to_p
5663 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5664 * cgraph.h (cgraph_node):
5665 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5666 (void expand (void)): created from expand_function
5667 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5668 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5669 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5670 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5671 * cgraph.h (varpool_node):
5672 (static void add (tree decl): created from varpool_add_new_variable
5673 * cgraph.h (cgraph_edge):
5674 void remove (void);
5675 (void remove_caller (void)): created from cgraph_edge_remove_caller
5676 (void remove_callee (void)): created from cgraph_edge_remove_callee
5677 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5678 created from cgraph_set_call_stmt
5679 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5680 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5681 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5682 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5683 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5684 created from cgraph_speculative_call_info
5685 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5686 int freq_scale, bool update_original)): created from cgraph_clone_edge
5687 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5688 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5689 (bool recursive_p (void)): created from cgraph_edge_recursive_p
5690 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5691 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5692 (static void rebuild_references (void)): created from cgraph_rebuild_references
5693 * cgraph.h (symbol_table):
5694 (create_reference): renamed from add_reference
5695 (maybe_create_reference): renamed from maybe_add_reference
5696 (void register_symbol (symtab_node *node)): new function
5697 (void clear_asm_symbols (void)): new function
5698 (void unregister (symtab_node *node)): new function
5699 (void release_symbol (cgraph_node *node, int uid)): new function
5700 (cgraph_node * allocate_cgraph_symbol (void)): new function
5701 (void initialize (void)): created from cgraph_init
5702 (symtab_node *first_symbol (void)):new function
5703 (asm_node *first_asm_symbol (void)):new function
5704 (symtab_node *first_defined_symbol (void)):new function
5705 (varpool_node *first_variable (void)):new function
5706 (varpool_node *next_variable (varpool_node *node)):new function
5707 (varpool_node *first_static_initializer (void)):new function
5708 (varpool_node *next_static_initializer (varpool_node *node)):new function
5709 (varpool_node *first_defined_variable (void)):new function
5710 (varpool_node *next_defined_variable (varpool_node *node)):new function
5711 (cgraph_node *first_defined_function (void)):new function
5712 (cgraph_node *next_defined_function (cgraph_node *node)):new function
5713 (cgraph_node *first_function (void)):new function
5714 (cgraph_node *next_function (cgraph_node *node)):new function
5715 (cgraph_node *first_function_with_gimple_body (void)):new function
5716 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5717 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5718 created from symtab_remove_unreachable_nodes
5719 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5720 (void process_new_functions (void)): created from cgraph_process_new_functions
5721 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5722 (bool output_variables (void)): created from varpool_node::output_variables
5723 (void output_asm_statements (void)): created from output_asm_statements
5724 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5725 (void compile (void)): created from compile
5726 (void output_weakrefs (void)): created from output_weakrefs
5727 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5728 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5729 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5730 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5731 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5732 created from cgraph_next_function_with_gimple_body
5733 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5734 created from cgraph_remove_edge_removal_hook
5735 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5736 created from cgraph_add_node_removal_hook
5737 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5738 created from cgraph_remove_node_removal_hook
5739 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5740 created from varpool_add_node_removal_hook
5741 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5742 created from varpool_remove_node_removal_hook
5743 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5744 created from cgraph_add_function_insertion_hook
5745 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5746 created from cgraph_remove_function_insertion_hook
5747 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5748 created from varpool_add_variable_insertion_hook
5749 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5750 created from varpool_remove_variable_insertion_hook
5751 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5752 created from cgraph_add_edge_duplication_hook
5753 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5754 created from cgraph_remove_edge_duplication_hook
5755 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5756 created from cgraph_add_node_duplication_hook
5757 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5758 created from cgraph_remove_node_duplication_hook
5759 (void call_edge_removal_hooks (cgraph_edge *e)):
5760 created from cgraph_call_edge_removal_hooks
5761 (void call_cgraph_insertion_hooks (cgraph_node *node)):
5762 created from call_function_insertion_hooks
5763 (void call_cgraph_removal_hooks (cgraph_node *node)):
5764 created from cgraph_call_node_removal_hooks
5765 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5766 created from cgraph_node::call_duplication_hooks
5767 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5768 created from cgraph_call_edge_duplication_hooks
5769 (void call_varpool_removal_hooks (varpool_node *node)):
5770 created from varpool_call_node_removal_hooks
5771 (void call_varpool_insertion_hooks (varpool_node *node)):
5772 created from varpool_call_variable_insertion_hooks
5773 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5774 created from insert_to_assembler_name_hash
5775 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5776 created from unlink_from_assembler_name_hash
5777 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5778 created from symtab_prevail_in_asm_name_hash
5779 (void symtab_initialize_asm_name_hash (void)):
5780 created from symtab_initialize_asm_name_hash
5781 (void change_decl_assembler_name (tree decl, tree name)):
5782 created from change_decl_assembler_name
5783 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5784 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5785 created from decl_assembler_name_hash
5786 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5787 created from decl_assembler_name_equal
5788 (static hashval_t hash_node_by_assembler_name (const void *p)):
5789 created from hash_node_by_assembler_name
5790 (static int eq_assembler_name (const void *p1, const void *p2)):
5791 created from eq_assembler_name
5792
5793 2014-08-25 Marek Polacek <polacek@redhat.com>
5794
5795 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5796
5797 2014-08-25 Petr Murzin <petr.murzin@intel.com>
5798
5799 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5800 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5801 SWI1248_AVX512BW mode iterator.
5802
5803 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
5804
5805 PR target/62111
5806 * config/sh/predicates.md (general_extend_operand): Disable
5807 TRUNCATE before reload completes.
5808
5809 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
5810
5811 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5812
5813 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
5814
5815 PR target/61996
5816 * config/sh/sh.opt (musermode): Allow negative form.
5817 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5818 targets that don't support it.
5819 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5820 Document -mno-usermode option.
5821
5822 2014-08-24 Kito Cheng <kito@0xlab.org>
5823
5824 * system.h (CALLER_SAVE_PROFITABLE): Poison.
5825 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5826 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5827 * doc/tm.texi: Regenerate.
5828
5829 2014-08-24 Kito Cheng <kito@0xlab.org>
5830
5831 * ira.c: Fix typo in comment.
5832
5833 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5834
5835 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5836 Deprecate c++1y. Change language to reflect greater confidence in C++14.
5837
5838 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
5839
5840 PR target/62038
5841 * config/pa/pa.c (pa_output_function_epilogue): Don't set
5842 last_address when the current function is a thunk.
5843 (pa_asm_output_mi_thunk): When we don't have named sections or they
5844 are not being used, check that thunk can reach the stub table with a
5845 short branch.
5846
5847 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5848
5849 * web.c (union_match_dups): Strengthen param "insn" from rtx to
5850 rtx_insn *.
5851 (pass_web::execute): Likewise for local "insn".
5852
5853 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5854
5855 * var-tracking.c (struct micro_operation_def): Strengthen field
5856 "insn" from rtx to rtx_insn *.
5857 (struct emit_note_data_def): Likewise.
5858 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5859 (vt_stack_adjustments): Likewise for local "insn".
5860 (adjust_insn): Likewise for param "insn".
5861 (val_store): Likewise.
5862 (val_resolve): Likewise.
5863 (struct count_use_info): Likewise for field "insn".
5864 (log_op_type): Likewise for param "insn".
5865 (reverse_op): Likewise.
5866 (prepare_call_arguments): Likewise.
5867 (add_with_sets): The initial param takes an insn, but we can't
5868 yet strengthen it from rtx to rtx_insn * since it's used as a
5869 cselib_record_sets_hook callback. For now rename initial param
5870 from "insn" to "uncast_insn", and introduce a local "insn" of
5871 the stronger rtx_insn * type, with a checked cast.
5872 (compute_bb_dataflow): Strengthen local "insn" from rtx to
5873 rtx_insn *.
5874 (emit_note_insn_var_location): Likewise.
5875 (emit_notes_for_changes): Likewise.
5876 (emit_notes_for_differences): Likewise.
5877 (next_non_note_insn_var_location): Likewise for return type and
5878 for param "insn".
5879 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5880 (vt_initialize): Likewise for local "insn".
5881 (delete_debug_insns): Likewise for locals "insn" and "next".
5882
5883 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5884
5885 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5886 rtx_insn *.
5887 (mark_constant_pool): Likewise for local "insn".
5888
5889 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5890
5891 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5892 rtx to rtx_insn *.
5893 (dead_debug_promote_uses): Likewise.
5894 (dead_debug_insert_temp): Likewise.
5895
5896 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5897
5898 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5899 from const_rtx to const rtx_insn *.
5900 (store_killed_after): Likewise. Strengthen locals "last", "act"
5901 from rtx to rtx_insn *.
5902 (store_killed_before): Strengthen param "insn" from const_rtx to
5903 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
5904 (find_moveable_store): Strengthen param "insn" from rtx to
5905 rtx_insn *.
5906 (compute_store_table): Likewise for local "insn".
5907 (insert_insn_start_basic_block): Likewise for param "insn" and
5908 locals "prev", "before", "insn".
5909 (insert_store): For now, add a checked cast to rtx_insn * on the
5910 result of gen_move_insn.
5911 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5912 to rtx_insn *.
5913 (replace_store_insn): Likewise. For now, add a checked cast to
5914 rtx_insn * on the result of gen_move_insn.
5915
5916 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5917
5918 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5919 rtx_insn *.
5920 (expand_sjlj_dispatch_table): Likewise.
5921
5922 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5923
5924 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5925 "insn" from rtx to rtx_insn *.
5926
5927 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5928
5929 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5930 "insn" from rtx to rtx_insn *.
5931 (dup_block_and_redirect): Likewise for param 3 "before".
5932
5933 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5934 from rtx to rtx_insn *.
5935 (move_insn_for_shrink_wrap): Likewise.
5936 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5937 (dup_block_and_redirect): Likewise for param "before" and local
5938 "insn".
5939 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5940 "end".
5941 (convert_to_simple_return): Likewise for local "start".
5942
5943 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5944 Strengthen local "insn" from rtx to rtx_insn *, for use when
5945 invoking requires_stack_frame_p.
5946
5947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5948
5949 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5950 rtx_insn *.
5951 (speculate_expr): Likewise for locals "orig_insn_rtx",
5952 "spec_insn_rtx".
5953 (eq_transformed_insns): Likewise for locals "i1", "i2".
5954 (check_for_new_jump): Likewise for return type and local "end".
5955 (find_new_jump): Likewise for return type and local "jump".
5956 (sel_split_edge): Likewise for local "jump".
5957 (sel_create_recovery_block): Likewise.
5958 (sel_redirect_edge_and_branch_force): Likewise.
5959 (sel_redirect_edge_and_branch): Likewise.
5960
5961 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5962
5963 * sel-sched.c (substitute_reg_in_expr): Strengthen local
5964 "new_insn" from rtx to rtx_insn *.
5965 (create_insn_rtx_with_rhs): Likewise for return type and for local
5966 "insn_rtx".
5967 (create_insn_rtx_with_lhs): Likewise.
5968 (create_speculation_check): Likewise for local "insn_rtx".
5969 (implicit_clobber_conflict_p): Likewise for local "insn".
5970 (get_expr_cost): Likewise.
5971 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5972 (move_cond_jump): Likewise for locals "next", "prev", "link",
5973 "head", "from", "to".
5974
5975 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5976
5977 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5978 "next" from rtx to rtx_insn *.
5979 (find_conditional_protection): Likewise for local "next".
5980 (is_conditionally_protected): Likewise for local "insn1".
5981 (is_pfree): Likewise for locals "insn1", "insn2".
5982
5983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5984
5985 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5986 from rtx to rtx_insn *.
5987
5988 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5989 locals "insn1", "insn2" from rtx to rtx_insn *.
5990 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5991 locals "insn", "prev", "last_jump", "next_tail".
5992 (schedule_ebb): Likewise for params "head", "tail".
5993 (schedule_ebbs): Likewise for locals "tail", "head".
5994
5995 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5996 to rtx_insn on "last_insn" in one of the invocations of
5997 schedule_ebb.
5998
5999 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6000
6001 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
6002 "elem", "insn" from rtx to rtx_insn *.
6003 (change_spec_dep_to_hard): Likewise.
6004 (get_back_and_forw_lists): Likewise for local "con".
6005 (sd_add_dep): Likewise for locals "elem", "insn".
6006 (sd_resolve_dep): Likewise for locals "pro", "con".
6007 (sd_unresolve_dep): Likewise.
6008 (sd_delete_dep): Likewise.
6009 (chain_to_prev_insn): Likewise for local "pro".
6010 (find_inc): Likewise for locals "pro", "con".
6011
6012 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6013
6014 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
6015 to rtx_insn *.
6016 (reg_set_between_p): Strengthen local "insn" from const_rtx to
6017 const rtx_insn *.
6018 (modified_between_p): Strengthen local "insn" from rtx to
6019 rtx_insn *.
6020 (remove_reg_equal_equiv_notes_for_regno): Likewise.
6021 (keep_with_call_p): Strengthen local "i2" from const_rtx to
6022 const rtx_insn *.
6023
6024 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6025
6026 * resource.c (next_insn_no_annul): Strengthen local "next" from
6027 rtx to rtx_insn *.
6028 (mark_referenced_resources): Likewise for local "insn".
6029
6030 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6031
6032 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
6033 to rtx_insn *.
6034 (find_reloads): Likewise for param 1.
6035 (subst_reloads): Likewise for sole param.
6036 (find_equiv_reg): Likwise for param 2.
6037 (regno_clobbered_p): Likwise for param 2.
6038 (reload): Likewise for param 1.
6039
6040 * caller-save.c (save_call_clobbered_regs): Strengthen local
6041 "insn" from rtx to rtx_insn *.
6042 (insert_one_insn): Likewise for local "insn".
6043
6044 * reload.c (this_insn): Likewise for this global.
6045 (find_reloads): Likewise for param "insn".
6046 (find_reloads_toplev): Likewise.
6047 (find_reloads_address): Likewise.
6048 (subst_reg_equivs): Likewise.
6049 (update_auto_inc_notes): Likewise.
6050 (find_reloads_address_1): Likewise.
6051 (find_reloads_subreg_address): Likewise.
6052 (subst_reloads): Likewise.
6053 (find_equiv_reg): Likewise, also for local "p".
6054 (regno_clobbered_p): Likewise for param "insn".
6055
6056 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6057 array.
6058 (spill_reg_store): Likewise for the elements of this array.
6059 (remove_init_insns): Likewise for local "equiv_insn".
6060 (will_delete_init_insn_p): Likewise for param "insn".
6061 (reload): Likewise for param ""first" and local "insn".
6062 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6063 rtx_insn *.
6064 (calculate_elim_costs_all_insns): Likewise.
6065 (delete_caller_save_insns): Likewise.
6066 (spill_failure): Likewise for param "insn".
6067 (delete_dead_insn): Likewise.
6068 (set_label_offsets): Likewise.
6069 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6070 "prev_insn".
6071 (elimination_costs_in_insn): Likewise for param "insn".
6072 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6073 when referring to an insn.
6074 (set_initial_label_offsets): Likewise.
6075 (set_offsets_for_label): Strengthen param "insn" from rtx to
6076 rtx_insn *.
6077 (init_eliminable_invariants): Likewise for param "first" and local
6078 "insn".
6079 (fixup_eh_region_note): Likewise for param "insn".
6080 (reload_as_needed): Likewise for locals "prev", "insn",
6081 "old_next", "old_prev", "next".
6082 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6083 "last".
6084 (reload_inheritance_insn): Strengthen elements of this array from
6085 rtx to rtx_insn *.
6086 (failed_reload): Likewise for param "insn".
6087 (choose_reload_regs): Likewise for local "insn". Replace use of
6088 NULL_RTX with NULL when referring to an insn.
6089 (input_reload_insns): Strengthen elements of this array from rtx
6090 to rtx_insn *.
6091 (other_input_address_reload_insns): Likewise for this global.
6092 (other_input_reload_insns): Likewise for this global.
6093 (input_address_reload_insns): Likwise for the elements of this
6094 array.
6095 (inpaddr_address_reload_insns): Likwise for the elements of this
6096 array.
6097 (output_reload_insns): Likewise for the elements of this array.
6098 (output_address_reload_insns): Likewise for the elements of this
6099 array.
6100 (outaddr_address_reload_insns): Likewise for the elements of this
6101 array.
6102 (operand_reload_insns): Likewise for this global.
6103 (other_operand_reload_insns): Likewise for this global.
6104 (other_output_reload_insns): Likewise for the elements of this
6105 array.
6106 (new_spill_reg_store): Likewise for the elements of this
6107 array.
6108 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6109 Strengthen local "where" from rtx * to rtx_insn **.
6110 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6111 from rtx to rtx_insn *.
6112 (do_input_reload): Likewise for local "insn".
6113 (do_output_reload): Likewise for local "insn".
6114 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6115 (emit_insn_if_valid_for_reload): Likewise for return type and local
6116 "last". Add checked cast to rtx_insn when returning "insn" since
6117 this has been through emit_insn.
6118 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6119 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6120 returning "insn" since it's been through
6121 emit_insn_if_valid_for_reload at this point.
6122 (delete_output_reload): Strengthen param "insn" and locals
6123 "output_reload_insn", "i2" from rtx to rtx_insn *.
6124 (delete_address_reloads): Likewise for params "dead_insn",
6125 "current_insn" and locals "prev", "next".
6126 (delete_address_reloads_1): Likewise for params "dead_insn",
6127 "current_insn" and locals "prev", "i2".
6128 (inc_for_reload): Likewise for locals "last", "add_insn".
6129 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6130 rtx_insn *.
6131
6132 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6133 param of this duplicate of the prototype from reload.h
6134
6135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6136
6137 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6138 rtx to rtx_insn *.
6139 (regstat_bb_compute_calls_crossed): Likewise.
6140
6141 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6142
6143 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6144 to rtx_insn *.
6145 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6146 with an insn.
6147 (regrename_analyze): Strengthen local "insn" from rtx to
6148 rtx_insn *.
6149 (scan_rtx_reg): Likewise for param "insn".
6150 (scan_rtx_address): Likewise.
6151 (scan_rtx): Likewise.
6152 (restore_operands): Likewise.
6153 (record_out_operands): Likewise.
6154 (build_def_use): Likewise for local "insn". Replace use of
6155 NULL_RTX with NULL when dealing with an insn.
6156
6157 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6158
6159 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6160 * reginfo.c (reg_scan): Likewise, also for local "insn".
6161 (reg_scan_mark_refs): Likewise for param "insn".
6162 (init_subregs_of_mode): Likewise for local "insn".
6163
6164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6165
6166 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6167 "insn" from rtx to rtx_insn *.
6168 (replace_oldest_value_reg): Likewise for param "insn".
6169 (replace_oldest_value_addr): Likewise.
6170 (replace_oldest_value_mem): Likewise.
6171 (apply_debug_insn_changes): Likewise for local "last_insn".
6172 (copyprop_hardreg_forward_1): Likewise for local "insn".
6173
6174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6175
6176 * reg-stack.c (next_flags_user): Strengthen return type and param
6177 "insn" from rtx to rtx_insn *.
6178 (straighten_stack): Likewise for param "insn".
6179 (check_asm_stack_operands): Likewise.
6180 (remove_regno_note): Likewise.
6181 (emit_pop_insn): Likewise for return type, param "insn", local
6182 "pop_insn".
6183 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6184 "limit" from rtx to rtx_insn *.
6185 (swap_to_top): Likewise for param "insn".
6186 (move_for_stack_reg): Likewise.
6187 (move_nan_for_stack_reg): Likewise.
6188 (swap_rtx_condition): Likewise.
6189 (compare_for_stack_reg): Likewise.
6190 (subst_all_stack_regs_in_debug_insn): Likewise.
6191 (subst_stack_regs_pat): Likewise, and local "insn2".
6192 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6193 rtx_insn *.
6194 (subst_stack_regs): Likewise.
6195 (change_stack): Likewise.
6196 (convert_regs_1): Likewise for locals "insn", "next".
6197
6198 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6199
6200 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6201 rtx_insn *.
6202 (combine_set_extension): Likewise for param "curr_insn".
6203 (transform_ifelse): Likewise for param "def_insn".
6204 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6205 from vec<rtx> * to vec<rtx_insn *> *.
6206 (is_cond_copy_insn): Likewise for param "insn".
6207 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6208 to vec<rtx_insn *>.
6209 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6210 local "def_insn" from rtx to rtx_insn *.
6211 (get_sub_rtx): Likewise for param "def_insn".
6212 (merge_def_and_ext): Likewise.
6213 (combine_reaching_defs): Likewise.
6214 (add_removable_extension): Likewise for param "insn".
6215 (find_removable_extensions): Likewise for local "insn".
6216 (find_and_remove_re): Likewise for locals "curr_insn" and
6217 "def_insn". Strengthen locals "reinsn_del_list" and
6218 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6219
6220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6221
6222 * recog.c (split_insn): Strengthen param "insn" and locals
6223 "first", "last" from rtx to rtx_insn *.
6224 (split_all_insns): Likewise for locals "insn", "next".
6225 (split_all_insns_noflow): Likewise.
6226
6227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6228
6229 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6230 const rtx_insn *.
6231 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6232 (debug_rtx_find): Likewise for param 1 "x".
6233
6234 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6235 const_rtx to const rtx_insn *. Likewise for local "insn".
6236 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6237 (debug_rtx_find): Likewise for param 1 "x".
6238 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6239 from const_rtx to const rtx_insn * within the appropriate cases of
6240 the switch statement.
6241
6242 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6243 Strengthen local "insns" from rtx to rtx_insn * since this is
6244 passed to a call to debug_rtx_list.
6245
6246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6247
6248 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6249 to rtx_insn *.
6250
6251 * function.c (stack_protect_epilogue): Add checked cast to
6252 rtx_insn for now when invoking predict_insn_def.
6253
6254 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6255 rtx_insn *.
6256 (predict_insn_def): Likewise.
6257 (rtl_predict_edge): Likewise for local "last_insn".
6258 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6259 const rtx_insn *.
6260 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6261 to rtx_insn *.
6262 (bb_estimate_probability_locally): Likewise for local "last_insn".
6263 (expensive_function_p): Likewise for local "insn".
6264
6265 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6266 local "jmp", since this is used when invoking predict_insn_def.
6267
6268 2014-08-22 Marek Polacek <polacek@redhat.com>
6269
6270 PR c++/62199
6271 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6272
6273 2014-08-22 Marek Polacek <polacek@redhat.com>
6274
6275 PR c/61271
6276 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6277 a comparison in parens.
6278 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6279 in parens.
6280
6281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6282
6283 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6284 rtx_insn *.
6285
6286 * cprop.c (fis_get_condition): Likewise.
6287
6288 * postreload.c (reload_cse_regs): Likewise for param "first".
6289 (reload_cse_simplify): Likewise for param "insn".
6290 (reload_cse_regs_1): Likewise for local "insn".
6291 (reload_cse_simplify_set): Likewise for param "insn".
6292 (reload_cse_simplify_operands): Likewise.
6293 (struct reg_use): Likewise for field "insn".
6294 (reload_combine_purge_insn_uses): Likewise for param "insn".
6295 (fixup_debug_insns): Likewise for params "from", "to" and local
6296 "insn".
6297 (try_replace_in_use): Likewise for local "use_insn".
6298 (reload_combine_recognize_const_pattern): Likewise for param
6299 "insn" and locals "add_moved_after_insn", "use_insn".
6300 (reload_combine_recognize_pattern): Likewise for param "insn" and
6301 local "prev".
6302 (reload_combine): Likewise for locals "insn", "prev".
6303 (reload_combine_note_use): Likewise for param "insn".
6304 (move2add_use_add2_insn): Likewise.
6305 (move2add_use_add3_insn): Likewise.
6306 (reload_cse_move2add): Likewise, also for local "next".
6307 (move2add_note_store): Likewise for local "insn".
6308
6309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6310
6311 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6312 rtx to rtx_insn *.
6313 (struct unoccr): Likewise.
6314 (struct modifies_mem): Likewise.
6315 (alloc_mem): Likewise for local "insn".
6316 (insert_expr_in_table): Likewise for param "insn".
6317 (dump_expr_hash_table_entry): Likewise for local "insn".
6318 (oprs_unchanged_p): Likewise for param "insn".
6319 (load_killed_in_block_p): Likewise for local "setter".
6320 (record_last_reg_set_info): Likewise for param "insn".
6321 (record_last_reg_set_info_regno): Likewise.
6322 (record_last_mem_set_info): Likewise.
6323 (record_last_set_info): Likewise for local "last_set_insn".
6324 (record_opr_changes): Likewise for param "insn".
6325 (hash_scan_set): Likewise.
6326 (compute_hash_table): Likewise for local "insn".
6327 (get_avail_load_store_reg): Likewise for param "insn".
6328 (eliminate_partially_redundant_load): Likewise, also for locals
6329 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6330 RTX for insns.
6331 (eliminate_partially_redundant_loads): Likewise for local "insn".
6332
6333 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6334
6335 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6336 rtx to rtx_insn *.
6337 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6338 (expand_twoval_unop): Likewise for locals entry_last", "last".
6339 (expand_twoval_binop): Likewise.
6340 (expand_twoval_binop_libfunc): Likewise for local "insns".
6341 (widen_leading): Likewise for local "last".
6342 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6343 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6344 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6345 (expand_parity): Likewise for locals "last" and "seq".
6346 (expand_ffs): Likewise for local "seq". Strengthen local
6347 "nonzero_label" from rtx to rtx_code_label *.
6348 (expand_absneg_bit): Strengthen local "insns" from rtx to
6349 rtx_insn *.
6350 (expand_unop_direct): Likewise for local "last".
6351 (expand_unop): Likewise for locals "last", "insns".
6352 (expand_abs_nojump): Likewise for local "last".
6353 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6354 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6355 rtx_insn *.
6356 (expand_copysign_absneg): Strengthen local "label" from rtx to
6357 rtx_code_label *.
6358 (expand_copysign_bit): Strengthen local "insns" from rtx to
6359 rtx_insn *.
6360 (struct no_conflict_data): Likewise for fields "first", "insn".
6361 (emit_libcall_block_1): Likewise for param "insns" and locals
6362 "next", "last", "insn".
6363 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6364 on "insns" when invoking emit_libcall_block_1. Ultimately we
6365 want to strengthen insns itself.
6366 (prepare_cmp_insn): Strengthen local "last" from rtx to
6367 rtx_insn *.
6368 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
6369 (prepare_float_lib_cmp): Likewise for local "insns".
6370 (emit_conditional_move): Likewise for local "last".
6371 (emit_conditional_add): Likewise.
6372 (have_sub2_insn): Likewise for local "seq".
6373 (expand_float): Likewise for local "insns". Strengthen locals
6374 "label", "neglabel" from rtx to rtx_code_label *.
6375 (expand_fix): Likewise for locals "last", "insn", "insns" (to
6376 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
6377 (expand_fixed_convert): Likewise for local "insns" (to
6378 rtx_insn *).
6379 (expand_sfix_optab): Likewise for local "last".
6380 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
6381 to rtx_code_label *.
6382 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
6383 from rtx to rtx_insn *.
6384 (expand_atomic_fetch_op): Likewise for local "insn".
6385 (maybe_legitimize_operand_same_code): Likewise for local "last".
6386 (maybe_legitimize_operands): Likewise.
6387
6388 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6389
6390 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
6391 "insn" from rtx to rtx_insn *.
6392 (ps_rtl_insn): Likewise for return type.
6393 (doloop_register_get): Likewise for params "head", "tail" and
6394 locals "insn", "first_insn_not_to_check".
6395 (schedule_reg_move): Likewise for local "this_insn".
6396 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
6397 of gen_move_insn for now.
6398 (reset_sched_times): Strengthen local "insn" from rtx to
6399 rtx_insn *.
6400 (permute_partial_schedule): Likewise.
6401 (duplicate_insns_of_cycles): Likewise for local "u_insn".
6402 (dump_insn_location): Likewise for param "insn".
6403 (loop_canon_p): Likewise for local "insn".
6404 (sms_schedule): Likewise.
6405 (print_partial_schedule): Likewise.
6406 (ps_has_conflicts): Likewise.
6407
6408 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6409
6410 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
6411 "tailp" from rtx * to rtx_insn **.
6412
6413 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
6414 from rtx to rtx_insn *.
6415 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
6416 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
6417 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
6418 rtx to rtx_insn *.
6419 * modulo-sched.c (const_iteration_count): Strengthen return type
6420 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
6421 use of NULL_RTX with NULL when working with insns.
6422 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
6423 to rtx_insn *.
6424 (sms_schedule): Likewise.
6425 * sched-rgn.c (init_ready_list): Likewise, also for locals
6426 "src_head" and "src_next_tail".
6427 (compute_block_dependences): Likewise.
6428 (free_block_dependencies): Likewise.
6429 (debug_rgn_dependencies): Likewise.
6430 (free_rgn_deps): Likewise.
6431 (compute_priorities): Likewise.
6432 (schedule_region): Likewise.
6433 * sel-sched.c (find_ebb_boundaries): Likewise.
6434
6435 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
6436 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
6437
6438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6439
6440 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
6441 from rtx to rtx_insn *.
6442 (new_seginfo): Likewise for param "insn".
6443 (create_pre_exit): Likewise for locals "last_insn",
6444 "before_return_copy", "return_copy".
6445 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
6446 "mode_set".
6447
6448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6449
6450 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
6451 from rtx to rtx_insn *.
6452 (lra_push_insn): Likewise for 1st param.
6453 (lra_push_insn_and_update_insn_regno_info): Likewise.
6454 (lra_pop_insn): Likewise for return type.
6455 (lra_invalidate_insn_data): Likewise for 1st param.
6456 (lra_set_insn_deleted): Likewise.
6457 (lra_delete_dead_insn): Likewise.
6458 (lra_process_new_insns): Likewise for first 3 params.
6459 (lra_set_insn_recog_data): Likewise for 1st param.
6460 (lra_update_insn_recog_data): Likewise.
6461 (lra_set_used_insn_alternative): Likewise.
6462 (lra_invalidate_insn_regno_info): Likewise.
6463 (lra_update_insn_regno_info): Likewise.
6464 (lra_former_scratch_operand_p): Likewise.
6465 (lra_eliminate_regs_1): Likewise.
6466 (lra_get_insn_recog_data): Likewise.
6467
6468 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
6469 rtx to rtx_insn *.
6470
6471 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
6472 "mv1" and "mv2".
6473 (substitute_within_insn): New.
6474 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
6475 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
6476 Replace call to "substitute" with call to substitute_within_insn.
6477
6478 * lra-constraints.c (curr_insn): Strengthen from rtx to
6479 rtx_insn *.
6480 (get_equiv_with_elimination): Likewise for param "insn".
6481 (match_reload): Strengthen params "before" and "after" from rtx *
6482 to rtx_insn **.
6483 (emit_spill_move): Likewise for return type. Add a checked cast
6484 to rtx_insn * on result of gen_move_insn for now.
6485 (check_and_process_move): Likewise for local "before". Replace
6486 NULL_RTX with NULL when referring to insns.
6487 (process_addr_reg): Strengthen params "before" and "after" from
6488 rtx * to rtx_insn **.
6489 (insert_move_for_subreg): Likewise.
6490 (simplify_operand_subreg): Strengthen locals "before" and "after"
6491 from rtx to rtx_insn *.
6492 (process_address_1): Strengthen params "before" and "after" from
6493 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
6494 rtx to rtx_insn *.
6495 (process_address): Strengthen params "before" and "after" from
6496 rtx * to rtx_insn **.
6497 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
6498 (curr_insn_transform): Strengthen locals "before" and "after"
6499 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
6500 to insns.
6501 (loc_equivalence_callback): Update cast of "data", changing
6502 resulting type from rtx to rtx_insn *.
6503 (substitute_pseudo_within_insn): New.
6504 (inherit_reload_reg): Strengthen param "insn" from rtx to
6505 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
6506 NULL when referring to insns. Add a checked cast to rtx_insn *
6507 when using usage_insn to invoke lra_update_insn_regno_info.
6508 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
6509 likewise for locals "restore", "save". Add checked casts to
6510 rtx_insn * when using usage_insn to invoke
6511 lra_update_insn_regno_info and lra_process_new_insns. Replace
6512 NULL_RTX with NULL when referring to insns.
6513 (split_if_necessary): Strengthen param "insn" from rtx to
6514 rtx_insn *.
6515 (update_ebb_live_info): Likewise for params "head", "tail" and local
6516 "prev_insn".
6517 (get_last_insertion_point): Likewise for return type and local "insn".
6518 (get_live_on_other_edges): Likewise for local "last".
6519 (inherit_in_ebb): Likewise for params "head", "tail" and locals
6520 "prev_insn", "next_insn", "restore".
6521 (remove_inheritance_pseudos): Likewise for local "prev_insn".
6522 (undo_optional_reloads): Likewise for local "insn".
6523
6524 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
6525 "insn".
6526 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
6527 insns.
6528 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
6529 rtx_insn *.
6530 (spill_pseudos): Likewise for local "insn".
6531 (init_elimination): Likewise.
6532 (process_insn_for_elimination): Likewise for param "insn".
6533
6534 * lra-lives.c (curr_insn): Likewise.;
6535
6536 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
6537 (remove_pseudos): Likewise for param "insn".
6538 (spill_pseudos): Likewise for local "insn".
6539 (lra_final_code_change): Likewise for locals "insn", "curr".
6540
6541 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
6542 (lra_set_insn_deleted): Likewise.
6543 (lra_delete_dead_insn): Likewise, and for local "prev".
6544 (new_insn_reg): Likewise for param "insn".
6545 (lra_set_insn_recog_data): Likewise.
6546 (lra_update_insn_recog_data): Likewise.
6547 (lra_set_used_insn_alternative): Likewise.
6548 (get_insn_freq): Likewise.
6549 (invalidate_insn_data_regno_info): Likewise.
6550 (lra_invalidate_insn_regno_info): Likewise.
6551 (lra_update_insn_regno_info): Likewise.
6552 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
6553 vec<rtx_insn *>.
6554 (lra_push_insn_1): Strengthen param "insn" from rtx to
6555 rtx_insn *.
6556 (lra_push_insn): Likewise.
6557 (lra_push_insn_and_update_insn_regno_info): Likewise.
6558 (lra_pop_insn): Likewise for return type and local "insn".
6559 (push_insns): Likewise for params "from", "to", and local "insn".
6560 (setup_sp_offset): Likewise for params "from", "last" and locals
6561 "before", "insn".
6562 (lra_process_new_insns): Likewise for params "insn", "before",
6563 "after" and local "last".
6564 (struct sloc): Likewise for field "insn".
6565 (lra_former_scratch_operand_p): Likewise for param "insn".
6566 (remove_scratches): Likewise for locals "insn", "last".
6567 (check_rtl): Likewise for local "insn".
6568 (add_auto_inc_notes): Likewise for param "insn".
6569 (update_inc_notes): Likewise for local "insn".
6570 (lra): Replace NULL_RTX with NULL when referring to insn.
6571
6572 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6573
6574 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
6575 to rtx_insn *.
6576 (resolve_reg_notes): Likewise.
6577 (resolve_simple_move): Likewise for return type, param "insn", and
6578 locals "insns", "minsn".
6579 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
6580 (resolve_use): Likewise.
6581 (resolve_debug): Likewise.
6582 (find_decomposable_shift_zext): Likewise.
6583 (resolve_shift_zext): Likewise for return type, param "insn", and
6584 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
6585 (decompose_multiword_subregs): Likewise for local "insn",
6586 "orig_insn", "decomposed_shift", "end".
6587
6588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6589
6590 * basic-block.h (basic_block split_edge_and_insert): Strengthen
6591 param "insns" from rtx to rtx_insn *.
6592
6593 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
6594 rtx to rtx_insn *.
6595 (struct iv_to_split): Likewise.
6596 (loop_exit_at_end_p): Likewise for local "insn".
6597 (split_edge_and_insert): Likewise for param "insns".
6598 (compare_and_jump_seq): Likewise for return type, param "cinsn",
6599 and locals "seq", "jump".
6600 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
6601 "branch_code"; update invocations of compare_and_jump_seq to
6602 eliminate NULL_RTX in favor of NULL.
6603 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
6604 rtx to rtx_insn *.
6605 (reset_debug_uses_in_loop): Likewise.
6606 (analyze_insn_to_expand_var): Likewise for param "insn".
6607 (analyze_iv_to_split_insn): Likewise.
6608 (analyze_insns_in_loop): Likewise for local "insn".
6609 (insert_base_initialization): Likewise for param
6610 "insn" and local "seq".
6611 (split_iv): Likewise for param "insn" and local "seq".
6612 (expand_var_during_unrolling): Likewise for param "insn".
6613 (insert_var_expansion_initialization): Likewise for local "seq".
6614 (combine_var_copies_in_loop_exit): Likewise.
6615 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
6616 "insn".
6617 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
6618 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
6619 "next".
6620
6621 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6622
6623 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
6624 rtx_insn *.
6625 (iv_analyze_result): Likewise.
6626 (iv_analyze_expr): Likewise.
6627 (biv_p): Likewise.
6628
6629 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
6630 local "def_insn" from rtx to rtx_insn *.
6631 (get_biv_step_1): Likewise for local "insn".
6632 (iv_analyze_expr): Likewise for param "insn".
6633 (iv_analyze_def): Likewise for local "insn".
6634 (iv_analyze_op): Likewise for param "insn".
6635 (iv_analyze): Likewise.
6636 (iv_analyze_result): Likewise.
6637 (biv_p): Likewise.
6638 (suitable_set_for_replacement): Likewise.
6639 (simplify_using_initial_values): Likewise for local "insn".
6640 (iv_number_of_iterations): Likewise for param "insn".
6641 (check_simple_exit): Add checked cast to rtx_insn when invoking
6642 iv_number_of_iterations for now (until get_condition is
6643 strengthened).
6644
6645 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6646 "insn" from rtx to rtx_insn *.
6647 (analyze_insns_in_loop): Likewise for local "insn".
6648
6649 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6650
6651 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6652 to rtx_insn *.
6653 (struct invariant): Likewise.
6654 (hash_invariant_expr_1): Likewise for param "insn".
6655 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6656 (find_exits): Likewise for local "insn".
6657 (create_new_invariant): Likewise for param "insn".
6658 (check_dependencies): Likewise.
6659 (find_invariant_insn): Likewise.
6660 (record_uses): Likewise.
6661 (find_invariants_insn): Likewise.
6662 (find_invariants_bb): Likewise for local "insn".
6663 (get_pressure_class_and_nregs): Likewise for param "insn".
6664 (calculate_loop_reg_pressure): Likewise for local "insn".
6665
6666 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6667
6668 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6669 to rtx_insn *.
6670 (add_test): Likewise for locals "seq", "jump".
6671 (doloop_modify): Likewise for locals "sequence", "jump_insn".
6672
6673 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6674
6675 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6676 rtx_insn *.
6677 (rebuild_jump_labels_chain): Likewise for param "chain".
6678
6679 * cfgexpand.c (pass_expand::execute): Add checked cast to
6680 rtx_insn * when calling rebuild_jump_labels_chain in region where
6681 we know e->insns.r is non-NULL.
6682
6683 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6684 rtx_insn *.
6685 (rebuild_jump_labels): Likewise.
6686 (rebuild_jump_labels_chain): Likewise for param "chain".
6687 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6688 (init_label_info): Likewise for param "f".
6689 (maybe_propagate_label_ref): Likewise for params "jump_insn",
6690 "prev_nonjump_insn".
6691 (mark_all_labels): Likewise for param "f" and locals "insn",
6692 "prev_nonjump_insn".
6693
6694 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6695
6696 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6697 from rtx to rtx_insn *insn.
6698 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6699 (ira_add_allocno_copy): Likewise.
6700 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6701 rtx to rtx_insn *.
6702 (ira_create_copy): Likewise.
6703 (ira_add_allocno_copy): Likewise.
6704 (create_bb_allocnos): Likewise for local "insn".
6705 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6706 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6707 process_regs_for_copy for rtx_insn * param.
6708 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6709 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
6710 process_regs_for_copy for rtx_insn * param.
6711 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6712 * ira-costs.c (record_reg_classes): Likewise for param "insn".
6713 (record_operand_costs): Likewise.
6714 (scan_one_insn): Likewise for return type, and for param "insn".
6715 (process_bb_for_costs): Likewise for local "insn".
6716 (process_bb_node_for_hard_reg_moves): Likewise.
6717 * ira-emit.c (struct move): Likewise for field "insn".
6718 (create_move): Eliminate use of NULL_RTX when dealing with an
6719 rtx_insn *.
6720 (emit_move_list): Strengthen return type and locals "result",
6721 "insn" from rtx to rtx_insn *insn.
6722 (emit_moves): Likewise for locals "insns", "tmp".
6723 (ira_emit): Likewise for local "insn".
6724 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6725 "insn".
6726 (find_call_crossed_cheap_reg): Likewise.
6727 (process_bb_node_lives): Likewise for local "insn".
6728 * ira.c (decrease_live_ranges_number): Likewise.
6729 (compute_regs_asm_clobbered): Likewise.
6730 (build_insn_chain): Likewise.
6731 (find_moveable_pseudos): Likewise, also locals "def_insn",
6732 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
6733 to rtx_insn **. Add a checked cast when assigning from
6734 "closest_use" into closest_uses array in a region where we know
6735 it's a non-NULL insn.
6736 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6737 to rtx_insn *.
6738 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6739 "last_interesting_insn", "uin".
6740 (move_unallocated_pseudos): Likewise for locals "def_insn",
6741 "move_insn", "newinsn".
6742
6743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6744
6745 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6746 Strengthen locals "done_label", "do_error" from rtx to
6747 rtx_code_label *.
6748 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6749 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
6750 rtx_code_label *.
6751 (ubsan_expand_si_overflow_neg_check): Likewise for locals
6752 "done_label", "do_error" to rtx_code_label * and local "last" to
6753 rtx_insn *.
6754 (ubsan_expand_si_overflow_mul_check): Likewise for locals
6755 "done_label", "do_error", "large_op0", "small_op0_large_op1",
6756 "one_small_one_large", "both_ops_large", "after_hipart_neg",
6757 "after_lopart_neg", "do_overflow", "hipart_different" to
6758 rtx_code_label * and local "last" to rtx_insn *.
6759
6760 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6761
6762 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6763 "insn" and "move_insn" from rtx to rtx_insn *.
6764
6765 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6766
6767 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6768 rtx_insn *.
6769 (cheap_bb_rtx_cost_p): Likewise.
6770 (first_active_insn): Likewise for return type and local "insn".
6771 (last_active_insn): Likewise for return type and locals "insn",
6772 "head".
6773 (struct noce_if_info): Likewise for fields "jump", "insn_a",
6774 "insn_b".
6775 (end_ifcvt_sequence): Likewise for return type and locals "insn",
6776 "seq".
6777 (noce_try_move): Likewise for local "seq".
6778 (noce_try_store_flag): Likewise.
6779 (noce_try_store_flag_constants): Likewise.
6780 (noce_try_addcc): Likewise.
6781 (noce_try_store_flag_mask): Likewise.
6782 (noce_try_cmove): Likewise.
6783 (noce_try_minmax): Likewise.
6784 (noce_try_abs): Likewise.
6785 (noce_try_sign_mask): Likewise.
6786 (noce_try_bitop): Likewise.
6787 (noce_can_store_speculate_p): Likewise for local "insn".
6788 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6789 seq".
6790 (check_cond_move_block): Likewise for local "insn".
6791 (cond_move_convert_if_block): Likewise.
6792 (cond_move_process_if_block): Likewise for locals "seq",
6793 "loc_insn".
6794 (noce_find_if_block): Likewise for local "jump".
6795 (merge_if_block): Likewise for local "last".
6796 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6797 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6798 (block_has_only_trap): Likewise for return type and local "trap".
6799 (find_if_case_1): Likewise for local "jump".
6800 (dead_or_predicable): Likewise for locals "head", "end", "jump",
6801 "insn".
6802
6803 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6804
6805 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6806 "last_insn", "loop_end" from rtx to rtx_insn *.
6807
6808 * hw-doloop.c (scan_loop): Likewise for local "insn".
6809 (discover_loop): Likewise for param "tail_insn".
6810 (discover_loops): Likewise for local "tail".
6811
6812 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6813 cast to rtx_insn * when assigning from an rtx local to a
6814 hwloop_info's "last_insn" field.
6815
6816 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6817
6818 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6819 (add_delay_dependencies): Strengthen local "pro" from rtx to
6820 rtx_insn *.
6821 (recompute_todo_spec): Likewise.
6822 (dep_cost_1): Likewise for locals "insn", "used".
6823 (schedule_insn): Likewise for local "dbg".
6824 (schedule_insn): Likewise for locals "pro", "next".
6825 (unschedule_insns_until): Likewise for local "con".
6826 (restore_pattern): Likewise for local "next".
6827 (estimate_insn_tick): Likewise for local "pro".
6828 (resolve_dependencies): Likewise for local "next".
6829 (fix_inter_tick): Likewise.
6830 (fix_tick_ready): Likewise for local "pro".
6831 (add_to_speculative_block): Likewise for locals "check", "twin",
6832 "pro".
6833 (sched_extend_bb): Likewise for locals "end", "insn".
6834 (init_before_recovery): Likewise for local "x".
6835 (sched_create_recovery_block): Likewise for local "barrier".
6836 (create_check_block_twin): Likewise for local "pro".
6837 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6838 "consumer".
6839 (unlink_bb_notes): Update for change to type of bb_header.
6840 Strengthen locals "prev", "label", "note", "next" from rtx to
6841 rtx_insn *.
6842 (clear_priorities): Likewise for local "pro".
6843
6844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6845
6846 * gcse.c (struct occr): Strengthen field "insn" from rtx to
6847 rtx_insn *.
6848 (test_insn): Likewise for this global.
6849 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6850 const rtx_insn *.
6851 (oprs_anticipatable_p): Likewise.
6852 (oprs_available_p): Likewise.
6853 (insert_expr_in_table): Strengthen param "insn" from rtx to
6854 rtx_insn *.
6855 (hash_scan_set): Likewise.
6856 (hash_scan_clobber): Likewise.
6857 (hash_scan_call): Likewise.
6858 (hash_scan_insn): Likewise.
6859 (compute_hash_table_work): Likewise for local "insn".
6860 (process_insert_insn): Likewise for return type and local "pat".
6861 (insert_insn_end_basic_block): Likewise for locals "new_insn",
6862 "pat", "pat_end", "maybe_cc0_setter".
6863 (pre_edge_insert): Likewise for local "insn".
6864 (pre_insert_copy_insn): Likewise for param "insn".
6865 (pre_insert_copies): Likewise for local "insn".
6866 (struct set_data): Likewise for field "insn".
6867 (single_set_gcse): Likewise for param "insn".
6868 (gcse_emit_move_after): Likewise.
6869 (pre_delete): Likewise for local "insn".
6870 (update_bb_reg_pressure): Likewise for param "from" and local
6871 "insn".
6872 (should_hoist_expr_to_dom): Likewise for param "from".
6873 (hoist_code): Likewise for local "insn".
6874 (get_pressure_class_and_nregs): Likewise for param "insn".
6875 (calculate_bb_reg_pressure): Likewise for local "insn".
6876 (compute_ld_motion_mems): Likewise.
6877
6878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6879
6880 * genpeep.c (main): Rename param back from "uncast_ins1" to
6881 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
6882 checked cast.
6883
6884 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6885
6886 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6887
6888 PR target/62195
6889 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6890 documentation to state it is only for VSX operations.
6891
6892 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6893 constraint only active if VSX.
6894
6895 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6896 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6897 (lfiwzx): Likewise.
6898
6899 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6900
6901 * fwprop.c (single_def_use_dom_walker::before_dom_children):
6902 Strengthen local "insn" from rtx to rtx_insn *.
6903 (use_killed_between): Likewise for param "target_insn".
6904 (all_uses_available_at): Likewise for param "target_insn" and
6905 local "next".
6906 (update_df_init): Likewise for params "def_insn", "insn".
6907 (update_df): Likewise for param "insn".
6908 (try_fwprop_subst): Likewise for param "def_insn" and local
6909 "insn".
6910 (free_load_extend): Likewise for param "insn".
6911 (forward_propagate_subreg): Likewise for param "def_insn" and
6912 local "use_insn".
6913 (forward_propagate_asm): Likewise for param "def_insn" and local
6914 "use_insn".
6915 (forward_propagate_and_simplify): Likewise for param "def_insn"
6916 and local "use_insn".
6917 (forward_propagate_into): Likewise for locals "def_insn" and
6918 "use_insn".
6919
6920 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6921
6922 * function.c (emit_initial_value_sets): Strengthen local "seq"
6923 from rtx to rtx_insn *.
6924 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6925 local "seq".
6926 (instantiate_virtual_regs): Likewise for local "insn".
6927 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6928 (reorder_blocks_1): Likewise for param "insns" and local "insn".
6929 (expand_function_end): Likewise for locals "insn" and "seq".
6930 (epilogue_done): Likewise for local "insn".
6931 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6932 "last", "trial".
6933 (reposition_prologue_and_epilogue_notes): Likewise for locals
6934 "insn", "last", "note", "first".
6935 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6936 (pass_match_asm_constraints::execute): Likewise for local "insn".
6937
6938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6939
6940 * output.h (final_scan_insn): Strengthen return type from rtx to
6941 rtx_insn *.
6942 (final_forward_branch_p): Likewise for param.
6943 (current_output_insn): Likewise for this global.
6944
6945 * final.c (rtx debug_insn): Likewise for this variable.
6946 (current_output_insn): Likewise.
6947 (get_attr_length_1): Rename param "insn" to "uncast_insn",
6948 adding "insn" back in as an rtx_insn * with a checked cast, so
6949 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6950 first param.
6951 (compute_alignments): Strengthen local "label" from rtx to
6952 rtx_insn *.
6953 (shorten_branches): Rename param from "first" to "uncast_first",
6954 introducing a new local rtx_insn * "first" using a checked cast to
6955 effectively strengthen "first" from rtx to rtx_insn * without
6956 affecting the type signature. Strengthen locals "insn", "seq",
6957 "next", "label" from rtx to rtx_insn *.
6958 (change_scope): Strengthen param "orig_insn" and local "insn" from
6959 rtx to rtx_insn *.
6960 (final_start_function): Rename param from "first" to "uncast_first",
6961 introducing a new local rtx_insn * "first" using a checked cast to
6962 effectively strengthen "first" from rtx to rtx_insn * without
6963 affecting the type signature. Strengthen local "insn" from rtx to
6964 rtx_insn *.
6965 (dump_basic_block_info): Strengthen param "insn" from rtx to
6966 rtx_insn *.
6967 (final): Rename param from "first" to "uncast_first",
6968 introducing a new local rtx_insn * "first" using a checked cast to
6969 effectively strengthen "first" from rtx to rtx_insn * without
6970 affecting the type signature. Strengthen locals "insn", "next"
6971 from rtx to rtx_insn *.
6972 (output_alternate_entry_point): Strengthen param "insn" from rtx to
6973 rtx_insn *.
6974 (call_from_call_insn): Strengthen param "insn" from rtx to
6975 rtx_call_insn *.
6976 (final_scan_insn): Rename param from "insn" to "uncast_insn",
6977 introducing a new local rtx_insn * "insn" using a checked cast to
6978 effectively strengthen "insn" from rtx to rtx_insn * without
6979 affecting the type signature. Strengthen return type and locals
6980 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
6981 now-redundant checked cast to rtx_insn * from both invocations of
6982 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
6983 introducing a local "call_insn" for use when invoking
6984 call_from_call_insn.
6985 (notice_source_line): Strengthen param "insn" from rtx to
6986 rtx_insn *.
6987 (leaf_function_p): Likewise for local "insn".
6988 (final_forward_branch_p): Likewise.
6989 (leaf_renumber_regs): Likewise for param "first".
6990 (rest_of_clean_state): Likewise for locals "insn" and "next".
6991 (self_recursive_call_p): Likewise for param "insn".
6992 (collect_fn_hard_reg_usage): Likewise for local "insn".
6993 (get_call_fndecl): Likewise for param "insn".
6994 (get_call_cgraph_rtl_info): Likewise.
6995 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6996 introducing a new local rtx_insn * "insn" using a checked cast to
6997 effectively strengthen "insn" from rtx to rtx_insn * without
6998 affecting the type signature.
6999
7000 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
7001 cast when assigning from param "insn" to current_output_insn.
7002 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
7003 so that we can assign it back to current_output_insn.
7004
7005 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7006
7007 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
7008 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
7009 atmxt540s and atmxt540sreva devices.
7010 * config/avr/avr-tables.opt: Regenerate.
7011 * config/avr/t-multilib: Regenerate.
7012 * doc/avr-mmcu.texi: Regenerate.
7013
7014 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7015
7016 * expr.c (convert_move): Strengthen local "insns" from rtx to
7017 rtx_insn *.
7018 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
7019 "top_label" from rtx to rtx_code_label *.
7020 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
7021 rtx_insn *.
7022 (emit_single_push_insn): Likewise for locals "prev", "last".
7023 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
7024 to rtx_code_label *.
7025 (store_constructor): Likewise for locals "loop_start", "loop_end".
7026 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
7027 rtx_insn *.
7028 (expand_expr_real_2): Likewise.
7029 (expand_expr_real_1): Strengthen local "label" from rtx to
7030 rtx_code_label *.
7031
7032 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7033
7034 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
7035 from rtx to rtx_insn *.
7036 (store_bit_field_1): Likewise.
7037 (extract_bit_field_1): Likewise.
7038 (expand_mult_const): Likewise for local "insns".
7039 (expmed_mult_highpart): Strengthen local "label" from rtx to
7040 rtx_code_label *.
7041 (expand_smod_pow2): Likewise.
7042 (expand_sdiv_pow2): Likewise.
7043 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7044 rtx_insn *. Strengthen locals "label", "label1", "label2",
7045 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7046 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7047 (emit_store_flag): Likewise.
7048 (emit_store_flag_force): Strengthen local "label" from rtx to
7049 rtx_code_label *.
7050 (do_cmp_and_jump): Likewise for param "label".
7051
7052 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7053
7054 * explow.c (force_reg): Strengthen local "insn" from rtx to
7055 rtx_insn *.
7056 (adjust_stack_1): Likewise.
7057 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7058 "final_label", "available_label", "space_available" from rtx to
7059 rtx_code_label *.
7060 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7061 (anti_adjust_stack_and_probe): Likewise.
7062
7063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7064
7065 * except.h (sjlj_emit_function_exit_after): Strengthen param
7066 "after" from rtx to rtx_insn *. This is only called with
7067 result of get_last_insn (in function.c) so type-change should be
7068 self-contained.
7069
7070 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7071 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7072 to rtx_insn *. These fields are only used from except.c so this
7073 type-change should be self-contained to this patch.
7074
7075 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7076 local "last" from rtx to rtx_insn *.
7077 (dw2_build_landing_pads): Likewise for local "seq".
7078 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7079 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7080 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7081 rtx to rtx_insn *.
7082 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7083 to rtx_insn *.
7084 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7085 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7086 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7087 referring to an insn. Strengthen local "dispatch_label" from
7088 rtx to rtx_code_label *.
7089 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7090 rtx_insn *.
7091 (expand_eh_return): Strengthen local "around_label" from
7092 rtx to rtx_code_label *.
7093 (convert_to_eh_region_ranges): Strengthen locals "iter",
7094 "last_action_insn", "first_no_action_insn",
7095 "first_no_action_insn_before_switch",
7096 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7097
7098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7099
7100 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7101 from rtx to rtx_insn *.
7102 (cached_next_real_insn): Likewise.
7103 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7104 working with insns.
7105 (dwarf2out_var_location): Strengthen locals "next_real",
7106 "next_note", "expected_next_loc_note", "last_start", "insn" from
7107 rtx to rtx_insn *.
7108
7109 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7110
7111 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7112 from rtx to rtx_insn *.
7113 (create_pseudo_cfg): Likewise for local "insn".
7114
7115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7116
7117 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7118 from rtx to rtx_insn *.
7119 (df_bb_regno_last_def_find): Likewise.
7120
7121 * df-problems.c (df_rd_bb_local_compute): Likewise.
7122 (df_lr_bb_local_compute): Likewise.
7123 (df_live_bb_local_compute): Likewise.
7124 (df_chain_remove_problem): Likewise.
7125 (df_chain_create_bb): Likewise.
7126 (df_word_lr_bb_local_compute): Likewise.
7127 (df_remove_dead_eq_notes): Likewise for param "insn".
7128 (df_note_bb_compute): Likewise for local "insn".
7129 (simulate_backwards_to_point): Likewise.
7130 (df_md_bb_local_compute): Likewise.
7131
7132 * df-scan.c (df_scan_free_bb_info): Likewise.
7133 (df_scan_start_dump): Likewise.
7134 (df_scan_start_block): Likewise.
7135 (df_install_ref_incremental): Likewise for local "insn".
7136 (df_insn_rescan_all): Likewise.
7137 (df_reorganize_refs_by_reg_by_insn): Likewise.
7138 (df_reorganize_refs_by_insn_bb): Likewise.
7139 (df_recompute_luids): Likewise.
7140 (df_bb_refs_record): Likewise.
7141 (df_update_entry_exit_and_calls): Likewise.
7142 (df_bb_verify): Likewise.
7143
7144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7145
7146 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7147 "first_note" from rtx to rtx_insn *.
7148 (get_node_of_insn): Likewise for param 2 "insn".
7149 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7150
7151 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7152 rtx_insn *.
7153 (mem_write_insn_p): Likewise.
7154 (mem_access_insn_p): Likewise.
7155 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7156 (def_has_ccmode_p): Likewise for param "insn".
7157 (add_cross_iteration_register_deps): Likewise for locals
7158 "def_insn" and "use_insn".
7159 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7160 (build_intra_loop_deps): Likewise for local "src_insn".
7161 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7162 to rtx_insn *.
7163 (get_node_of_insn): Likewise for param "insn".
7164
7165 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7166
7167 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7168 (deletable_insn_p): Strengthen param "insn" from rtx to
7169 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7170 find_call_stack_args, since this is guarded by CALL_P (insn).
7171 (marked_insn_p): Strengthen param "insn" from rtx to
7172 rtx_insn *.
7173 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7174 invoking find_call_stack_args, since this is guarded by
7175 CALL_P (insn).
7176 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7177 rtx_insn *; we know this is an insn since this was called by
7178 mark_nonreg_stores.
7179 (mark_nonreg_stores_2): Likewise.
7180 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7181 rtx_insn *.
7182 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7183 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7184 to rtx_insn *.
7185 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7186 from rtx to rtx_insn *.
7187 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7188 "next", "ref_insn".
7189 (delete_unmarked_insns): Likewise for locals "insn", "next".
7190 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7191 (mark_reg_dependencies): Likewise for param "insn".
7192 (rest_of_handle_ud_dce): Likewise for local "insn".
7193 (word_dce_process_block): Likewise.
7194 (dce_process_block): Likewise.
7195
7196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7197
7198 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7199 from rtx to rtx_insn *.
7200 (struct change_cc_mode_args): Likewise for field "insn".
7201 (this_insn): Strengthen from rtx to rtx_insn *.
7202 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7203 with insn.
7204 (validate_canon_reg): Strengthen param "insn" from rtx to
7205 rtx_insn *.
7206 (canon_reg): Likewise.
7207 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7208 dealing with insn.
7209 (record_jump_equiv): Strengthen param "insn" from rtx to
7210 rtx_insn *.
7211 (try_back_substitute_reg): Likewise, also for locals "prev",
7212 "bb_head".
7213 (find_sets_in_insn): Likewise for param "insn".
7214 (canonicalize_insn): Likewise.
7215 (cse_insn): Likewise. Add a checked cast.
7216 (invalidate_from_clobbers): Likewise for param "insn".
7217 (invalidate_from_sets_and_clobbers): Likewise.
7218 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7219 dealing with insn.
7220 (cse_prescan_path): Strengthen local "insn" from rtx to
7221 rtx_insn *.
7222 (cse_extended_basic_block): Likewise for locals "insn" and
7223 "prev_insn".
7224 (cse_main): Likewise for param "f".
7225 (check_for_label_ref): Likewise for local "insn".
7226 (set_live_p): Likewise for second param ("insn").
7227 (insn_live_p): Likewise for first param ("insn") and for local
7228 "next".
7229 (cse_change_cc_mode_insn): Likewise for first param "insn".
7230 (cse_change_cc_mode_insns): Likewise for first and second params
7231 "start" and "end".
7232 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7233 and "end".
7234 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7235 "cc_src_insn".
7236
7237 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7239 Anna Tikhonova <anna.tikhonova@intel.com>
7240 Ilya Tocar <ilya.tocar@intel.com>
7241 Andrey Turetskiy <andrey.turetskiy@intel.com>
7242 Ilya Verbin <ilya.verbin@intel.com>
7243 Kirill Yukhin <kirill.yukhin@intel.com>
7244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7245
7246 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7247 New.
7248 * config/i386/sse.md
7249 (define_mode_iterator VI248_AVX2): Delete.
7250 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7251 (define_mode_iterator VI48_AVX2): Ditto.
7252 (define_insn <shift_insn><mode>3): Delete.
7253 (define_insn "<shift_insn><mode>3<mask_name>" with
7254 VI2_AVX2_AVX512BW): New.
7255 (define_insn "<shift_insn><mode>3<mask_name>" with
7256 VI48_AVX2): Ditto.
7257
7258 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7259 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7260 Anna Tikhonova <anna.tikhonova@intel.com>
7261 Ilya Tocar <ilya.tocar@intel.com>
7262 Andrey Turetskiy <andrey.turetskiy@intel.com>
7263 Ilya Verbin <ilya.verbin@intel.com>
7264 Kirill Yukhin <kirill.yukhin@intel.com>
7265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7266
7267 * config/i386/sse.md
7268 (define_mode_iterator VI4F_BRCST32x2): New.
7269 (define_mode_attr 64x2_mode): Ditto.
7270 (define_mode_attr 32x2mode): Ditto.
7271 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7272 with VI4F_BRCST32x2): Ditto.
7273 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7274 with V16FI mode iterator): Ditto.
7275 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7276 with V16FI): Ditto.
7277 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7278 with VI8F_BRCST64x2): Ditto.
7279
7280 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7281 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7282 Anna Tikhonova <anna.tikhonova@intel.com>
7283 Ilya Tocar <ilya.tocar@intel.com>
7284 Andrey Turetskiy <andrey.turetskiy@intel.com>
7285 Ilya Verbin <ilya.verbin@intel.com>
7286 Kirill Yukhin <kirill.yukhin@intel.com>
7287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7288
7289 * config/i386/sse.md
7290 (define_mode_iterator VI8_AVX512VL): New.
7291 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7292
7293 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7294
7295 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7296 (define_mode_iterator V48_AVX512VL): New.
7297 (define_mode_iterator V12_AVX512VL): Ditto.
7298 (define_insn <avx512>_load<mode>_mask): Split into two similar
7299 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7300 Refactor output template.
7301 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7302
7303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7304
7305 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7306 rtx_insn *.
7307 (reg_available_p): Likewise for param "insn".
7308 (insert_set_in_table): Likewise.
7309 (hash_scan_set): Likewise.
7310 (hash_scan_insn): Likewise.
7311 (make_set_regs_unavailable): Likewise.
7312 (compute_hash_table_work): Likewise for local "insn".
7313 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7314 const rtx_insn *.
7315 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7316 (try_replace_reg): Likewise.
7317 (find_avail_set): Likewise.
7318 (cprop_jump): Likewise for params "setcc", "jump".
7319 (constprop_register): Likewise for param "insn".
7320 (cprop_insn): Likewise.
7321 (do_local_cprop): Likewise.
7322 (local_cprop_pass): Likewise for local "insn".
7323 (bypass_block): Likewise for params "setcc" and "jump".
7324 (bypass_conditional_jumps): Likewise for locals "setcc" and
7325 "insn".
7326 (one_cprop_pass): Likewise for local "insn".
7327
7328 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7329
7330 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7331 from rtx to rtx_insn *.
7332 (struct comparison): Likewise, also for field "prev_clobber".
7333 (conforming_compare): Likewise for param "insn".
7334 (arithmetic_flags_clobber_p): Likewise.
7335 (find_flags_uses_in_insn): Likewise.
7336 (find_comparison_dom_walker::before_dom_children): Likewise for
7337 locals "insn", "next", "last_clobber".
7338 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7339
7340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7341
7342 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7343 "insn" from rtx to rtx_insn *.
7344 (single_set_for_csa): Likewise for param "insn".
7345 (record_one_stack_ref): Likewise.
7346 (try_apply_stack_adjustment): Likewise.
7347 (struct record_stack_refs_data): Likewise for field "insn".
7348 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7349 (prev_active_insn_bb): Likewise for return type and param "insn".
7350 (next_active_insn_bb): Likewise.
7351 (force_move_args_size_note): Likewise for params "prev" and "last"
7352 and locals "test", "next_candidate", "prev_candidate".
7353 (combine_stack_adjustments_for_block): Strengthen locals
7354 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7355 rtx_insn *.
7356
7357 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7358
7359 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7360 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7361 (subst_insn): Likewise for this variable.
7362 (added_links_insn): Likewise.
7363 (struct insn_link): Likewise for field "insn".
7364 (alloc_insn_link): Likewise for param "insn".
7365 (struct undobuf): Likewise for field "other_insn".
7366 (find_single_use): Likewise for param "insn" and local "next".
7367 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
7368 (delete_noop_moves): Likewise for locals "insn", "next".
7369 (create_log_links): Likewise for locals "insn", "use_insn".
7370 Strengthen local "next_use" from rtx * to rtx_insn **.
7371 (insn_a_feeds_b): Likewise for params "a", "b".
7372 (combine_instructions): Likewise for param "f" and locals "insn",
7373 "next", "prev", "first", "last_combined_insn", "link", "link1",
7374 "temp". Replace use of NULL_RTX with NULL when referring to
7375 insns.
7376 (setup_incoming_promotions): Likewise for param "first"
7377 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
7378 (can_combine_p): Likewise for params "insn", "i3", "pred",
7379 "pred2", "succ", "succ2" and for local "p".
7380 (combinable_i3pat): Likewise for param "i3".
7381 (cant_combine_insn_p): Likewise for param "insn".
7382 (likely_spilled_retval_p): Likewise.
7383 (adjust_for_new_dest): Likewise.
7384 (update_cfg_for_uncondjump): Likewise, also for local "insn".
7385 (try_combine): Likewise for return type and for params "i3", "i2",
7386 "i1", "i0", "last_combined_insn", and for locals "insn",
7387 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
7388 "i0_insn". Eliminate local "tem" in favor of new locals
7389 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
7390 checked cast for now to rtx_insn * on the return type of
7391 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
7392 insns.
7393 (find_split_point): Strengthen param "insn" from rtx to
7394 rtx_insn *.
7395 (simplify_set): Likewise for local "other_insn".
7396 (recog_for_combine): Likewise for param "insn".
7397 (record_value_for_reg): Likewise.
7398 (record_dead_and_set_regs_1): Likewise for local
7399 "record_dead_insn".
7400 (record_dead_and_set_regs): Likewise for param "insn".
7401 (record_promoted_value): Likewise.
7402 (check_promoted_subreg): Likewise.
7403 (get_last_value_validate): Likewise.
7404 (reg_dead_at_p): Likewise.
7405 (move_deaths): Likewise for param "to_insn".
7406 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
7407 and locals "place", "place2", "cc0_setter". Eliminate local "tem
7408 in favor of new locals "tem_note" and "tem_insn", the latter being
7409 an rtx_insn *.
7410 (distribute_links): Strengthen locals "place", "insn" from rtx to
7411 rtx_insn *.
7412
7413 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7414
7415 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
7416 than a const_rtx.
7417 (can_delete_label_p): Require a const rtx_code_label * rather than
7418 a const_rtx.
7419 (delete_insn): Add checked cast to rtx_code_label * when we know
7420 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
7421 rtx to rtx_insn *.
7422 (delete_insn_chain): Strengthen locals "prev" and "current" from
7423 rtx to rtx_insn *. Add a checked cast when assigning from
7424 "finish" (strengthening the params will come later). Add a
7425 checked cast to rtx_note * in region where we know
7426 NOTE_P (current).
7427 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
7428 rtx_insn *.
7429 (compute_bb_for_insn): Likewise.
7430 (free_bb_for_insn): Likewise for local "insn".
7431 (compute_bb_for_insn): Likewise.
7432 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
7433 local "insn" from rtx to rtx_insn *
7434 (flow_active_insn_p): Require a const rtx_insn * rather than a
7435 const_rtx.
7436 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
7437 rtx_insn *.
7438 (can_fallthru): Likewise for locals "insn" and "insn2".
7439 (bb_note): Likewise for local "note".
7440 (first_insn_after_basic_block_note): Likewise for local "note" and
7441 for return type.
7442 (rtl_split_block): Likewise for locals "insn" and "next".
7443 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
7444 "end".
7445 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
7446 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
7447 "prev", "tmp".
7448 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
7449 them), "kill_from", "barrier", "new_insn".
7450 (patch_jump_insn): Likewise for params "insn", "old_label".
7451 (redirect_branch_edge): Likewise for locals "old_label", "insn".
7452 (force_nonfallthru_and_redirect): Likewise for locals "insn",
7453 "old_label", "new_label".
7454 (rtl_tidy_fallthru_edge): Likewise for local "q".
7455 (rtl_split_edge): Likewise for locals "before", "last".
7456 (commit_one_edge_insertion): Likewise for locals "before",
7457 "after", "insns", "tmp", "last", adding a checked cast where
7458 currently necessary.
7459 (commit_edge_insertions): Likewise.
7460 (rtl_dump_bb): Likewise for locals "insn", "last".
7461 (print_rtl_with_bb): Likewise for local "x".
7462 (rtl_verify_bb_insns): Likewise for local "x".
7463 (rtl_verify_bb_pointers): Likewise for local "insn".
7464 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
7465 "head", "end".
7466 (rtl_verify_fallthru): Likewise for local "insn".
7467 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
7468 (purge_dead_edges): Likewise for local "insn".
7469 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
7470 (skip_insns_after_block): Likewise for return type and for locals
7471 "insn", "last_insn", "next_head", "prev".
7472 (record_effective_endpoints): Likewise for locals "next_insn",
7473 "insn", "end".
7474 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
7475 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
7476 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
7477 (duplicate_insn_chain): For now, add checked cast from rtx to
7478 rtx_insn * when returning insn.
7479 (cfg_layout_duplicate_bb): Likewise for local "insn".
7480 (cfg_layout_delete_block): Likewise for locals "insn", "next",
7481 "prev", "remaints".
7482 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
7483 (rtl_block_empty_p): Likewise.
7484 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
7485 "split_point", "last".
7486 (rtl_block_ends_with_call_p): Likewise for local "insn".
7487 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
7488 const rtx_insn *.
7489 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
7490 "split_at_insn" from rtx to rtx_insn *.
7491 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
7492 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
7493 to const rtx_insn *.
7494 (rtl_account_profile_record): Likewise.
7495
7496 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7497
7498 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
7499 rtx to rtx_insn *.
7500 (average_num_loop_insns): Likewise.
7501 (init_set_costs): Likewise for local "seq".
7502 (seq_cost): Likewise for param "seq", from const_rtx to const
7503 rtx_insn *.
7504
7505 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7506
7507 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
7508 rtx to rtx_insn *.
7509
7510 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7511
7512 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
7513 "f1" and "f2" from rtx * to rtx_insn **.
7514 (flow_find_head_matching_sequence): Likewise.
7515
7516 * cfgcleanup.c (try_simplify_condjump): Strengthen local
7517 "cbranch_insn" from rtx to rtx_insn *.
7518 (thread_jump): Likewise for local "insn".
7519 (try_forward_edges): Likewise for local "last".
7520 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
7521 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
7522 "real_b_end".
7523 (can_replace_by): Likewise for params "i1", "i2".
7524 (old_insns_match_p): Likewise.
7525 (merge_notes): Likewise.
7526 (walk_to_nondebug_insn): Likewise for param "i1".
7527 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
7528 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
7529 "afterlast1", "afterlast2" from rtx to rtx_insn *.
7530 (flow_find_head_matching_sequence): Strengthen params "f1" and
7531 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
7532 "last1", "last2", "beforelast1", "beforelast2" from rtx to
7533 rtx_insn *.
7534 (outgoing_edges_match): Likewise for locals "last1", "last2".
7535 (try_crossjump_to_edge): Likewise for local "insn".
7536 Replace call to for_each_rtx with for_each_rtx_in_insn.
7537
7538 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
7539 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
7540 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
7541 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
7542 (try_optimize_cfg): Strengthen local "last" from rtx to
7543 rtx_insn *.
7544 (delete_dead_jumptables): Likewise for locals "insn", "next",
7545 "label".
7546
7547 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
7548 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
7549 "rtx else_first_tail", to reflect the basic-block.h changes above.
7550
7551 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7552
7553 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
7554 rtx_insn *.
7555 (purge_dead_tablejump_edges): Likewise.
7556 (find_bb_boundaries): Likewise for locals "insn", "end",
7557 "flow_transfer_insn".
7558
7559 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7560
7561 * caller-save.c (save_call_clobbered_regs): Strengthen locals
7562 "ins" and "prev" from rtx to rtx_insn *.
7563
7564 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7565
7566 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
7567 rtx_insn *.
7568 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
7569 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
7570 "scan_start".
7571 (load_register_parameters): Likewise for local "before_arg".
7572 (check_sibcall_argument_overlap): Likewise for param "insn".
7573 (expand_call): Likewise for locals "normal_call_insns",
7574 "tail_call_insns", "insns", "before_call", "after_args",
7575 "before_arg", "last", "prev". Strengthen one of the "last" from
7576 rtx to rtx_call_insn *.
7577 (fixup_tail_calls): Strengthen local "insn" from rtx to
7578 rtx_insn *.
7579 (emit_library_call_value_1): Likewise for locals "before_call" and
7580 "last".
7581
7582 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7583
7584 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
7585 and "last" from rtx to rtx_insn *.
7586 (expand_builtin_nonlocal_goto): Likewise for local "insn".
7587 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
7588 rtx_call_insn *.
7589 (expand_errno_check): Strengthen local "lab" from rtx to
7590 rtx_code_label *.
7591 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
7592 rtx_insn *.
7593 (expand_builtin_mathfn_2): Likewise.
7594 (expand_builtin_mathfn_ternary): Likewise.
7595 (expand_builtin_mathfn_3): Likewise.
7596 (expand_builtin_interclass_mathfn): Likewise for local "last".
7597 (expand_builtin_int_roundingfn): Likewise for local "insns".
7598 (expand_builtin_int_roundingfn_2): Likewise.
7599 (expand_builtin_strlen): Likewise for local "before_strlen".
7600 (expand_builtin_strncmp): Likewise for local "seq".
7601 (expand_builtin_signbit): Likewise for local "last".
7602 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
7603 from rtx to rtx_code_label *.
7604 (expand_stack_restore): Strengthen local "prev" from rtx to
7605 rtx_insn *.
7606
7607 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7608
7609 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
7610 to rtx_insn *.
7611 (struct btr_def_s): Likewise.
7612 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7613 const rtx_insn *.
7614 (add_btr_def): Likewise.
7615 (new_btr_user): Likewise.
7616 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
7617 rtx to rtx_insn *.
7618 (link_btr_uses): Likewise.
7619 (move_btr_def): Likewise for locals "insp", "old_insn",
7620 "new_insn". Add checked cast to rtx_insn * for now on result of
7621 gen_move_insn.
7622 (can_move_up): Strengthen param "insn" from const_rtx to
7623 const rtx_insn *.
7624
7625 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7626
7627 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
7628 rtx_insn *.
7629 (get_uncond_jump_length): Likewise for locals "label", "jump".
7630 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
7631 "jump", "insn".
7632 (add_labels_and_missing_jumps): Likewise for local "new_jump".
7633 (fix_up_fall_thru_edges): Likewise for local "old_jump".
7634 (find_jump_block): Likewise for local "insn".
7635 (fix_crossing_conditional_branches): Likewise for locals
7636 "old_jump", "new_jump".
7637 (fix_crossing_unconditional_branches): Likewise for locals
7638 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
7639 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
7640
7641 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7642
7643 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
7644 rtx to rtx_insn *.
7645 (struct mem_insn): Likewise for field "insn".
7646 (reg_next_use): Strengthen from rtx * to rtx_insn **.
7647 (reg_next_inc_use): Likewise.
7648 (reg_next_def): Likewise.
7649 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7650 from rtx to rtx_insn *.
7651 (move_insn_before): Likewise for param "next_insn" and local "insns".
7652 (attempt_change): Likewise for local "mov_insn".
7653 (try_merge): Likewise for param "last_insn".
7654 (get_next_ref): Likewise for return type and local "insn".
7655 Strengthen param "next_array" from rtx * to rtx_insn **.
7656 (parse_add_or_inc): Strengthen param "insn" from rtx to
7657 rtx_insn *.
7658 (find_inc): Likewise for locals "insn" and "other_insn" (three of
7659 the latter).
7660 (merge_in_block): Likewise for locals "insn", "curr",
7661 "other_insn".
7662 (pass_inc_dec::execute): Update allocations of the arrays to
7663 reflect the stronger types.
7664
7665 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7666
7667 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7668 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
7669 from rtx to rtx_code_label *.
7670
7671 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7672
7673 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7674 to rtx_insn *.
7675
7676 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7677
7678 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7679 generated a warning and prevented bootstrapping the compiler.
7680
7681 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7682
7683 * rtl.h (delete_related_insns): Strengthen return type from rtx to
7684 rtx_insn *.
7685
7686 * jump.c (delete_related_insns): Likewise, also for locals "next"
7687 and "prev".
7688
7689 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7690
7691 * genautomata.c (output_internal_insn_latency_func): When writing
7692 the function "internal_insn_latency" to insn-automata.c,
7693 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7694 allowing the optional guard function of (define_bypass) clauses to
7695 expect a pair of rtx_insn *, rather than a pair of rtx.
7696 (output_insn_latency_func): When writing the function
7697 "insn_latency", add an "uncast_" prefix to params "insn" and
7698 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7699 using checked casts from the params, thus enabling the above
7700 change to the generated "internal_insn_latency" function.
7701
7702 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
7703
7704 PR tree-optimization/62091
7705 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7706 handle correctly arrays.
7707 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7708 inheritance binfos.
7709 (record_known_type): Walk into inner type.
7710 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7711 condition on no type changes.
7712
7713 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7714
7715 * genattrtab.c (write_attr_get): Within the generated get_attr_
7716 functions, rename param "insn" to "uncast_insn" and reintroduce
7717 "insn" as an local rtx_insn * using a checked cast, so that "insn"
7718 is an rtx_insn * within insn-attrtab.c
7719
7720 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7721
7722 * output.h (peephole): Strengthen return type from rtx to
7723 rtx_insn *.
7724 * rtl.h (delete_for_peephole): Likewise for both params.
7725 * genpeep.c (main): In generated "peephole" function, strengthen
7726 return type and local "insn" from rtx to rtx_insn *. For now,
7727 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7728 rtx_insn *, with a checked cast.
7729 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7730 locals "insn", "next", "prev" from rtx to rtx_insn *.
7731
7732 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
7733
7734 PR tree-optimization/62112
7735 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7736 * gimple-iterator.h (gsi_replace): Return bool.
7737 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7738 moved from ref_may_alias_global_p.
7739 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7740 New overloads.
7741 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7742 (stmt_kills_ref_p_1): Rename...
7743 (stmt_kills_ref_p): ... to this.
7744 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7745 stmt_kills_ref_p): Declare.
7746 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7747 Move the self-assignment case...
7748 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7749
7750 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7751
7752 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7753
7754 * emit-rtl.c (try_split): Likewise, also for locals "before" and
7755 "after". For now, don't strengthen param "trial", which requires
7756 adding checked casts when returning it.
7757
7758 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7759
7760 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7761 "label" from rtx to rtx_code_label *. Strengthen param 1 of
7762 "var_location" hook from rtx to rtx_insn *.
7763 (debug_nothing_rtx): Delete in favor of...
7764 (debug_nothing_rtx_code_label): New prototype.
7765 (debug_nothing_rtx_rtx): Delete unused prototype.
7766 (debug_nothing_rtx_insn): New prototype.
7767
7768 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7769 invoking debug_hooks->var_location (in two places, one in a NOTE
7770 case of a switch statement, the other guarded by a CALL_P
7771 conditional. Add checked cast to rtx_code_label * when invoking
7772 debug_hooks->label (within CODE_LABEL case of switch statement).
7773
7774 * dbxout.c (dbx_debug_hooks): Update "label" hook from
7775 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7776 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7777 (xcoff_debug_hooks): Likewise.
7778 * debug.c (do_nothing_debug_hooks): Likewise.
7779 (debug_nothing_rtx): Delete in favor of...
7780 (debug_nothing_rtx_insn): New function.
7781 (debug_nothing_rtx_rtx): Delete unused function.
7782 (debug_nothing_rtx_code_label): New function.
7783 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7784 debug_nothing_rtx to debug_nothing_rtx_code_label.
7785 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7786 to rtx_insn *.
7787 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7788 debug_nothing_rtx to debug_nothing_rtx_insn.
7789 (sdbout_label): Strengthen param "insn" from rtx to
7790 rtx_code_label *.
7791 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7792 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7793 "var_location" hook from debug_nothing_rtx to
7794 debug_nothing_rtx_insn.
7795
7796 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7797
7798 * recog.h (insn_output_fn): Update this function typedef to match
7799 the changes below to the generated output functions, strengthening
7800 the 2nd param from rtx to rtx_insn *.
7801
7802 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7803 insn when invoking an output function, to match the new signature
7804 of insn_output_fn with a stronger second param.
7805
7806 * genconditions.c (write_header): In the generated code for
7807 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7808 to match the other changes in this patch.
7809
7810 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7811 the generated "gen_" functions from rtx to rtx_insn * within their
7812 implementations.
7813
7814 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7815 the subfunctions within the generated "recog_", "split", "peephole2"
7816 function trees from rtx to rtx_insn *. For now, the top-level
7817 generated functions ("recog", "split", "peephole2") continue to
7818 take a plain rtx for "insn", to avoid introducing dependencies on
7819 other patches. Rename this 2nd param from "insn" to
7820 "uncast_insn", and reintroduce "insn" as a local variable of type
7821 rtx_insn *, initialized at the top of the generated function with
7822 a checked cast on "uncast_insn".
7823 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7824 the generated "gen_" functions from rtx to rtx_insn * within their
7825 prototypes.
7826
7827 * genoutput.c (process_template): Strengthen the 2nd param within
7828 the generated "output_" functions "insn" from rtx to rtx_insn *.
7829
7830 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7831
7832 * tree-profile.c (tree_profiling): Skip external functions
7833 when doing coverage instrumentation.
7834 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7835
7836 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7837
7838 * config/rs6000/altivec.h (vec_cpsgn): New #define.
7839 (vec_mergee): Likewise.
7840 (vec_mergeo): Likewise.
7841 (vec_cntlz): Likewise.
7842 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7843 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7844 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7845 VMRGEW, and VMRGOW.
7846 * doc/extend.texi: Document various forms of vec_cpsgn,
7847 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7848 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7849 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7850 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7851 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7852
7853 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7854
7855 * config/rs6000/rs6000.c (context.h): New include.
7856 (tree-pass.h): Likewise.
7857 (make_pass_analyze_swaps): New decl.
7858 (rs6000_option_override): Register pass_analyze_swaps.
7859 (swap_web_entry): New subsclass of web_entry_base (df.h).
7860 (special_handling_values): New enum.
7861 (union_defs): New function.
7862 (union_uses): Likewise.
7863 (insn_is_load_p): Likewise.
7864 (insn_is_store_p): Likewise.
7865 (insn_is_swap_p): Likewise.
7866 (rtx_is_swappable_p): Likewise.
7867 (insn_is_swappable_p): Likewise.
7868 (chain_purpose): New enum.
7869 (chain_contains_only_swaps): New function.
7870 (mark_swaps_for_removal): Likewise.
7871 (swap_const_vector_halves): Likewise.
7872 (adjust_subreg_index): Likewise.
7873 (permute_load): Likewise.
7874 (permute_store): Likewise.
7875 (handle_special_swappables): Likewise.
7876 (replace_swap_with_copy): Likewise.
7877 (dump_swap_insn_table): Likewise.
7878 (rs6000_analyze_swaps): Likewise.
7879 (pass_data_analyze_swaps): New pass_data.
7880 (pass_analyze_swaps): New rtl_opt_pass.
7881 (make_pass_analyze_swaps): New function.
7882 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7883
7884 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7885
7886 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7887 type from rtx to rtx_insn *.
7888 (create_copy_of_insn_rtx): Likewise.
7889 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7890 (create_copy_of_insn_rtx): Likewise, also for local "res".
7891
7892 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7893
7894 * rtl.h (find_first_parameter_load): Strengthen return type from
7895 rtx to rtx_insn *.
7896 * rtlanal.c (find_first_parameter_load): Strengthen return type
7897 from rtx to rtx_insn *. Add checked cast for now, to postpone
7898 strengthening the params.
7899
7900 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7901
7902 PR fortran/44054
7903 * diagnostic.c: Set default caret.
7904 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7905 line is needed.
7906 * diagnostic.h (struct diagnostic_context):
7907
7908 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7909
7910 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7911 (sel_bb_head): Strengthen return type insn_t (currently just an
7912 rtx) to rtx_insn *.
7913 (sel_bb_end): Likewise.
7914
7915 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7916 (sel_bb_head): Strengthen return type and local "head" from
7917 insn_t (currently just an rtx) to rtx_insn *.
7918 (sel_bb_end): Likewise for return type.
7919 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7920 working with insn.
7921
7922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7923
7924 * basic-block.h (get_last_bb_insn): Strengthen return type from
7925 rtx to rtx_insn *.
7926 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7927 end".
7928
7929 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7930
7931 PR fortran/44054
7932 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7933 to here ...
7934 (diagnostic_report_diagnostic): ... from here.
7935 * toplev.c (general_init): Move code to c-family.
7936
7937 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7938
7939 * df.h (web_entry_base): Replace existing struct web_entry with a
7940 new class web_entry_base with only the predecessor member.
7941 (unionfind_root): Remove declaration and move to class member.
7942 (unionfind_union): Remove declaration and move to friend
7943 function.
7944 (union_defs): Remove declaration.
7945 * web.c (web_entry_base::unionfind_root): Modify to be member
7946 function and adjust accessors.
7947 (unionfind_union): Modify to be friend function and adjust
7948 accessors.
7949 (web_entry): New subclass of web_entry_base containing the reg
7950 member.
7951 (union_match_dups): Modify for struct -> class changes.
7952 (union_defs): Likewise.
7953 (entry_register): Likewise.
7954 (pass_web::execute): Likewise.
7955
7956 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
7957
7958 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7959 builtin define __VEC_ELEMENT_REG_ORDER__.
7960
7961 2014-08-20 Martin Jambor <mjambor@suse.cz>
7962 Wei Mi <wmi@google.com>
7963
7964 PR ipa/60449
7965 PR middle-end/61776
7966 * tree-ssa-operands.c (update_stmt_operands): Remove
7967 MODIFIED_NORETURN_CALLS.
7968 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7969 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7970 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7971 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7972 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7973 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7974 (gimple_call_set_ctrl_altering): New func.
7975 (gimple_call_ctrl_altering_p): Ditto.
7976 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7977 (make_blocks): Use gimple_call_initialize_ctrl_altering.
7978 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7979 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7980 remove MODIFIED_NORETURN_CALLS.
7981
7982 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7983
7984 * coverage.c (coverage_compute_profile_id): Return non-0;
7985 also handle symbols with unique name.
7986 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7987
7988 2014-08-20 Steve Ellcey <sellcey@mips.com>
7989
7990 PR middle-end/49191
7991 * doc/sourcebuild.texi (non_strict_align): New.
7992
7993 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7994
7995 * cgraphunit.c (ipa_passes, compile): Reshedule
7996 symtab_remove_unreachable_nodes passes; update comments.
7997 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7998 TODO_remove_functions before the pass; the functions ought to be
7999 already removed.
8000 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
8001 TODO_remove_functions.
8002 * passes.c (pass_data_early_local_passes): Do not schedule function
8003 removal.
8004 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
8005
8006 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8007
8008 PR c/59304
8009 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
8010 before setting the option.
8011 * diagnostic.c (diagnostic_classify_diagnostic): Record
8012 command-line status.
8013
8014 2014-08-20 Richard Biener <rguenther@suse.de>
8015
8016 PR lto/62190
8017 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
8018 to build uint{16,32,64}_type_node.
8019
8020 2014-08-20 Terry Guo <terry.guo@arm.com>
8021
8022 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
8023 with immediate_operand.
8024
8025 2014-08-20 David Malcolm <dmalcolm@redhat.com>
8026
8027 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
8028 "insn" from an as_a to a safe_as_a, for the case when "insn" is
8029 NULL.
8030
8031 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8032
8033 PR preprocessor/51303
8034 * incpath.c (remove_duplicates): Use cpp_warning.
8035
8036 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8037
8038 PR c/60975
8039 PR c/53063
8040 * doc/options.texi (CPP): Document it.
8041 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
8042 * optc-gen.awk: Handle CPP.
8043 * opth-gen.awk: Likewise.
8044
8045 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8046
8047 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8048 rtx_insn *.
8049 (duplicate_insn_chain): Likewise.
8050 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8051 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8052 checked cast for now (until we can strengthen the params in the
8053 same way).
8054 (duplicate_insn_chain): Likewise.
8055
8056 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8057
8058 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8059 rtx_insn *.
8060 (prev_cc0_setter): Likewise.
8061
8062 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8063 rtx_insn *, adding checked casts for now as necessary.
8064 (prev_cc0_setter): Likewise.
8065
8066 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8067
8068 * expr.h (emit_move_insn): Strengthen return type from rtx to
8069 rtx_insn *.
8070 (emit_move_insn_1): Likewise.
8071 (emit_move_complex_push): Likewise.
8072 (emit_move_complex_parts): Likewise.
8073
8074 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8075 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8076 with insns.
8077 (emit_move_complex_push): Strengthen return type from rtx to
8078 rtx_insn *.
8079 (emit_move_complex): Likewise, also for local "ret".
8080 (emit_move_ccmode): Likewise.
8081 (emit_move_multi_word): Likewise for return type and locals
8082 "last_insn", "seq".
8083 (emit_move_insn_1): Likewise for return type and locals "result",
8084 "ret".
8085 (emit_move_insn): Likewise for return type and local "last_insn".
8086 (compress_float_constant): Likewise.
8087
8088 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8089
8090 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8091 from rtx to rtx_insn *.
8092
8093 * rtl.h (emit_insn_before): Likewise.
8094 (emit_insn_before_noloc): Likewise.
8095 (emit_insn_before_setloc): Likewise.
8096 (emit_jump_insn_before): Likewise.
8097 (emit_jump_insn_before_noloc): Likewise.
8098 (emit_jump_insn_before_setloc): Likewise.
8099 (emit_call_insn_before): Likewise.
8100 (emit_call_insn_before_noloc): Likewise.
8101 (emit_call_insn_before_setloc): Likewise.
8102 (emit_debug_insn_before): Likewise.
8103 (emit_debug_insn_before_noloc): Likewise.
8104 (emit_debug_insn_before_setloc): Likewise.
8105 (emit_label_before): Likewise.
8106 (emit_insn_after): Likewise.
8107 (emit_insn_after_noloc): Likewise.
8108 (emit_insn_after_setloc): Likewise.
8109 (emit_jump_insn_after): Likewise.
8110 (emit_jump_insn_after_noloc): Likewise.
8111 (emit_jump_insn_after_setloc): Likewise.
8112 (emit_call_insn_after): Likewise.
8113 (emit_call_insn_after_noloc): Likewise.
8114 (emit_call_insn_after_setloc): Likewise.
8115 (emit_debug_insn_after): Likewise.
8116 (emit_debug_insn_after_noloc): Likewise.
8117 (emit_debug_insn_after_setloc): Likewise.
8118 (emit_label_after): Likewise.
8119 (emit_insn): Likewise.
8120 (emit_debug_insn): Likewise.
8121 (emit_jump_insn): Likewise.
8122 (emit_call_insn): Likewise.
8123 (emit_label): Likewise.
8124 (gen_clobber): Likewise.
8125 (emit_clobber): Likewise.
8126 (gen_use): Likewise.
8127 (emit_use): Likewise.
8128 (emit): Likewise.
8129
8130 (emit_barrier_before): Strengthen return type from rtx to
8131 rtx_barrier *.
8132 (emit_barrier_after): Likewise.
8133 (emit_barrier): Likewise.
8134
8135 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8136 from rtx to rtx_insn *. Add checked casts for now when converting
8137 "last" from rtx to rtx_insn *.
8138 (emit_insn_before_noloc): Likewise for return type.
8139 (emit_jump_insn_before_noloc): Likewise.
8140 (emit_call_insn_before_noloc): Likewise.
8141 (emit_debug_insn_before_noloc): Likewise.
8142 (emit_barrier_before): Strengthen return type and local "insn"
8143 from rtx to rtx_barrier *.
8144 (emit_label_before): Strengthen return type from rtx to
8145 rtx_insn *. Add checked cast for now when returning param
8146 (emit_pattern_after_noloc): Strengthen return type from rtx to
8147 rtx_insn *. Add checked casts for now when converting "last" from
8148 rtx to rtx_insn *.
8149 (emit_insn_after_noloc): Strengthen return type from rtx to
8150 rtx_insn *.
8151 (emit_jump_insn_after_noloc): Likewise.
8152 (emit_call_insn_after_noloc): Likewise.
8153 (emit_debug_insn_after_noloc): Likewise.
8154 (emit_barrier_after): Strengthen return type from rtx to
8155 rtx_barrier *.
8156 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8157 Add checked cast for now when converting "label" from rtx to
8158 rtx_insn *.
8159 (emit_pattern_after_setloc): Strengthen return type from rtx to
8160 rtx_insn *. Add checked casts for now when converting "last" from
8161 rtx to rtx_insn *.
8162 (emit_pattern_after): Strengthen return type from rtx to
8163 rtx_insn *.
8164 (emit_insn_after_setloc): Likewise.
8165 (emit_insn_after): Likewise.
8166 (emit_jump_insn_after_setloc): Likewise.
8167 (emit_jump_insn_after): Likewise.
8168 (emit_call_insn_after_setloc): Likewise.
8169 (emit_call_insn_after): Likewise.
8170 (emit_debug_insn_after_setloc): Likewise.
8171 (emit_debug_insn_after): Likewise.
8172 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8173 when converting "last" from rtx to rtx_insn *.
8174 (emit_pattern_before): Strengthen return type from rtx to
8175 rtx_insn *.
8176 (emit_insn_before_setloc): Likewise.
8177 (emit_insn_before): Likewise.
8178 (emit_jump_insn_before_setloc): Likewise.
8179 (emit_jump_insn_before): Likewise.
8180 (emit_call_insn_before_setloc): Likewise.
8181 (emit_call_insn_before): Likewise.
8182 (emit_debug_insn_before_setloc): Likewise.
8183 (emit_debug_insn_before): Likewise.
8184 (emit_insn): Strengthen return type and locals "last", "insn",
8185 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8186 within cases where we know we have an insn.
8187 (emit_debug_insn): Likewise.
8188 (emit_jump_insn): Likewise.
8189 (emit_call_insn): Strengthen return type and local "insn" from rtx
8190 to rtx_insn *.
8191 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8192 a checked cast to rtx_insn * for now on "label".
8193 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8194 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8195 (emit_use): Likewise.
8196 (gen_use): Likewise, also for local "seq".
8197 (emit): Likewise for return type and local "insn".
8198 (rtx_insn): Likewise for return type and local "new_rtx".
8199
8200 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8201 from rtx to rtx_barrier *.
8202
8203 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8204 changed return type from rtx to rtx_insn *, we must update
8205 "emit_fn" type, and this in turn means updating...
8206 (frame_insn): ...this. Strengthen return type from rtx to
8207 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8208
8209 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8210
8211 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8212 rtx to rtx_jump_table_data *. Also for local.
8213 * rtl.h (emit_jump_table_data): Likewise.
8214
8215 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8216
8217 * basic-block.h (create_basic_block_structure): Strengthen third
8218 param "bb_note" from rtx to rtx_note *.
8219 * rtl.h (emit_note_before): Strengthen return type from rtx to
8220 rtx_note *.
8221 (emit_note_after): Likewise.
8222 (emit_note): Likewise.
8223 (emit_note_copy): Likewise. Also, strengthen param similarly.
8224 * function.h (struct rtl_data): Strengthen field
8225 "x_stack_check_probe_note" from rtx to rtx_note *.
8226
8227 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8228 from rtx to rtx_note *.
8229 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8230 "bb_note" from rtx to rtx_note *.
8231 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8232 when calling emit_note_copy.
8233 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8234 rtx_note *.
8235 (emit_note_after): Likewise.
8236 (emit_note_before): Likewise.
8237 (emit_note_copy): Likewise. Also, strengthen param similarly.
8238 (emit_note): Likewise.
8239 * except.c (emit_note_eh_region_end): Likewise for return type.
8240 Strengthen local "next" from rtx to rtx_insn *.
8241 (convert_to_eh_region_ranges): Strengthen local "note"
8242 from rtx to rtx_note *.
8243 * final.c (change_scope): Likewise.
8244 (reemit_insn_block_notes): Likewise, for both locals named "note".
8245 Also, strengthen local "insn" from rtx to rtx_insn *.
8246 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8247 rtx to rtx_note *.
8248 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8249 strengthen local "seq" from rtx to rtx_insn *.
8250 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8251 to rtx_note *.
8252 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8253 vec<rtx_note *>.
8254 (get_bb_note_from_pool): Strengthen return type from rtx to
8255 rtx_note *.
8256 (sel_create_basic_block): Strengthen local "new_bb_note" from
8257 insn_t to rtx_note *.
8258 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8259 "note" from rtx to rtx_note *.
8260 (emit_notes_in_bb): Likewise.
8261
8262 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8263
8264 * function.h (struct rtl_data): Strengthen field
8265 "x_parm_birth_insn" from rtx to rtx_insn *.
8266 * function.c (struct assign_parm_data_all): Strengthen fields
8267 "first_conversion_insn" and "last_conversion_insn" from rtx to
8268 rtx_insn *.
8269
8270 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8271
8272 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8273 to rtx_insn *; also for local "var_end_seq".
8274 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8275 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8276 "insn".
8277 (expand_gimple_cond): Likewise for locals "last2" and "last".
8278 (mark_transaction_restart_calls): Likewise for local "insn".
8279 (expand_gimple_stmt): Likewise for return type and locals "last"
8280 and "insn".
8281 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8282 (avoid_complex_debug_insns): Likewise for param "insn".
8283 (expand_debug_locations): Likewise for locals "insn", "last",
8284 "prev_insn" and "insn2".
8285 (expand_gimple_basic_block): Likewise for local "last".
8286 (construct_exit_block): Likewise for locals "head", "end",
8287 "orig_end".
8288 (pass_expand::execute): Likewise for locals "var_seq",
8289 "var_ret_seq", "next".
8290
8291 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8292
8293 * asan.h (asan_emit_stack_protection): Strengthen return type from
8294 rtx to rtx_insn *.
8295 * asan.c (asan_emit_stack_protection): Likewise. Add local
8296 "insns" to hold the return value.
8297
8298 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8299
8300 * basic-block.h (bb_note): Strengthen return type from rtx to
8301 rtx_note *.
8302 * sched-int.h (bb_note): Likewise.
8303 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8304
8305 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8306
8307 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8308 rtx_insn *.
8309
8310 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8311 "insn" from rtx to rtx_insn *.
8312 (make_debug_insn_raw): Strengthen return type from rtx to
8313 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8314 (make_jump_insn_raw): Strengthen return type from rtx to
8315 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8316 (make_call_insn_raw): Strengthen return type from rtx to
8317 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8318 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8319 callback from rtx to rtx_insn *; likewise for local "insn" and
8320 "next", adding a checked cast to rtx_insn in the relevant cases of
8321 the switch statement.
8322 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8323 callback from rtx to rtx_insn *.
8324 (emit_pattern_after_setloc): Likewise.
8325 (emit_pattern_after): Likewise.
8326 (emit_pattern_before_setloc): Likewise.
8327 (emit_pattern_before): Likewise.
8328
8329 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8330
8331 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8332 rtx_call_insn *.
8333 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8334 accepting an rtx_insn *.
8335 (last_call_insn): Strengthen return type from rtx to
8336 rtx_call_insn *.
8337
8338 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8339
8340 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8341 "insns" from rtx to rtx_insn *.
8342 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8343 locals "insn" and "prev".
8344
8345 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8346
8347 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8348 rtx_jump_table_data **.
8349
8350 * cfgbuild.c (make_edges): Introduce local "table", using it in
8351 place of "tmp" for jump table data.
8352 (find_bb_boundaries): Strengthen local "table" from rtx to
8353 rtx_jump_table_data *.
8354 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8355 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8356 (try_crossjump_to_edge): Likewise.
8357 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8358 "table".
8359 (patch_jump_insn): Introduce local "table", using it in place of
8360 "tmp" for jump table data.
8361 (force_nonfallthru_and_redirect): Introduce local "table", so that
8362 call to tablejump_p can receive an rtx_jump_table_data **. Update
8363 logic around the call to overwrite "note" appropriately if
8364 tablejump_p returns non-zero.
8365 (get_last_bb_insn): Introduce local "table", using it in place of
8366 "tmp" for jump table data.
8367 * dwarf2cfi.c (create_trace_edges): Likewise.
8368
8369 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
8370 from rtx to rtx_jump_table_data *.
8371 (create_fix_barrier): Strengthen local "tmp" from rtx to
8372 rtx_jump_table_data *.
8373 (arm_reorg): Likewise for local "table".
8374
8375 * config/s390/s390.c (s390_chunkify_start): Likewise.
8376
8377 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
8378
8379 * jump.c (delete_related_insns): Strengthen local "lab_next" from
8380 rtx to rtx_jump_table_data *.
8381
8382 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
8383 rtx_jump_table_data **. Add a checked cast when writing through
8384 the pointer: we know there that local "table" is non-NULL and that
8385 JUMP_TABLE_DATA_P (table) holds.
8386 (label_is_jump_target_p): Introduce local "table", using it in
8387 place of "tmp" for jump table data.
8388
8389 2014-08-19 Marek Polacek <polacek@redhat.com>
8390
8391 PR c++/62153
8392 * doc/invoke.texi: Document -Wbool-compare.
8393
8394 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8395
8396 * rtl.h (entry_of_function): Strengthen return type from rtx to
8397 rtx_insn *.
8398 * cfgrtl.c (entry_of_function): Likewise.
8399
8400 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8401
8402 * emit-rtl.h (get_insns): Strengthen return type from rtx to
8403 rtx_insn *, adding a checked cast for now.
8404 (get_last_insn): Likewise.
8405
8406 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8407
8408 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
8409 rtx_code_label *.
8410
8411 * emit-rtl.c (gen_label_rtx): Likewise.
8412
8413 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8414
8415 * rtl.h (previous_insn): Strengthen return type from rtx to
8416 rtx_insn *.
8417 (next_insn): Likewise.
8418 (prev_nonnote_insn): Likewise.
8419 (prev_nonnote_insn_bb): Likewise.
8420 (next_nonnote_insn): Likewise.
8421 (next_nonnote_insn_bb): Likewise.
8422 (prev_nondebug_insn): Likewise.
8423 (next_nondebug_insn): Likewise.
8424 (prev_nonnote_nondebug_insn): Likewise.
8425 (next_nonnote_nondebug_insn): Likewise.
8426 (prev_real_insn): Likewise.
8427 (next_real_insn): Likewise.
8428 (prev_active_insn): Likewise.
8429 (next_active_insn): Likewise.
8430
8431 * emit-rtl.c (next_insn): Strengthen return type from rtx to
8432 rtx_insn *, adding a checked cast.
8433 (previous_insn): Likewise.
8434 (next_nonnote_insn): Likewise.
8435 (next_nonnote_insn_bb): Likewise.
8436 (prev_nonnote_insn): Likewise.
8437 (prev_nonnote_insn_bb): Likewise.
8438 (next_nondebug_insn): Likewise.
8439 (prev_nondebug_insn): Likewise.
8440 (next_nonnote_nondebug_insn): Likewise.
8441 (prev_nonnote_nondebug_insn): Likewise.
8442 (next_real_insn): Likewise.
8443 (prev_real_insn): Likewise.
8444 (next_active_insn): Likewise.
8445 (prev_active_insn): Likewise.
8446
8447 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
8448 param "stepfunc" so that it returns an rtx_insn * rather than an
8449 rtx, to track the change to prev_nonnote_insn_bb, which is the
8450 only function this is called with.
8451 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
8452
8453 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
8454
8455 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
8456 assert.
8457
8458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8459
8460 * coretypes.h (class rtx_debug_insn): Add forward declaration.
8461 (class rtx_nonjump_insn): Likewise.
8462 (class rtx_jump_insn): Likewise.
8463 (class rtx_call_insn): Likewise.
8464 (class rtx_jump_table_data): Likewise.
8465 (class rtx_barrier): Likewise.
8466 (class rtx_code_label): Likewise.
8467 (class rtx_note): Likewise.
8468
8469 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
8470 adding the invariant DEBUG_INSN_P (X).
8471 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
8472 the invariant NONJUMP_INSN_P (X).
8473 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
8474 the invariant JUMP_P (X).
8475 (class rtx_call_insn): New, a subclass of rtx_insn, adding
8476 the invariant CALL_P (X).
8477 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
8478 invariant JUMP_TABLE_DATA_P (X).
8479 (class rtx_barrier): New, a subclass of rtx_insn, adding the
8480 invariant BARRIER_P (X).
8481 (class rtx_code_label): New, a subclass of rtx_insn, adding
8482 the invariant LABEL_P (X).
8483 (class rtx_note): New, a subclass of rtx_insn, adding
8484 the invariant NOTE_P(X).
8485 (is_a_helper <rtx_debug_insn *>::test): New.
8486 (is_a_helper <rtx_nonjump_insn *>::test): New.
8487 (is_a_helper <rtx_jump_insn *>::test): New.
8488 (is_a_helper <rtx_call_insn *>::test): New.
8489 (is_a_helper <rtx_jump_table_data *>::test): New functions,
8490 overloaded for both rtx and rtx_insn *.
8491 (is_a_helper <rtx_barrier *>::test): New.
8492 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
8493 for both rtx and rtx_insn *.
8494 (is_a_helper <rtx_note *>::test): New.
8495
8496 2014-08-19 Marek Polacek <polacek@redhat.com>
8497
8498 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
8499 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8500 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
8501 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8502
8503 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8504
8505 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
8506 rtx_insn *. To help with transition, for now, convert from an
8507 access macro into a pair of functions: BND_TO, returning an
8508 rtx_insn *, and...
8509 (SET_BND_TO): New function, for use where BND_TO is used as an
8510 lvalue.
8511
8512 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
8513 SET_BND_TO.
8514 (BND_TO): New function, adding a checked cast.
8515 (SET_BND_TO): New function.
8516
8517 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
8518 SET_BND_TO.
8519 (compute_av_set_on_boundaries): Likewise.
8520
8521 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8522
8523 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
8524 destination if it is used in source.
8525 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
8526 (*popcount<mode>2_falsedep_1): Likewise.
8527
8528 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8529
8530 PR other/62168
8531 * configure.ac: Set install_gold_as_default to no first.
8532 * configure: Regenerated.
8533
8534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8535
8536 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
8537 "note_list" field will eventually be an rtx_insn *. To help with
8538 transition, for now, convert from an access macro into a pair of
8539 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
8540 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
8541 used as an lvalue.
8542
8543 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
8544 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
8545
8546 * sel-sched-ir.c (init_bb): Likewise.
8547 (sel_restore_notes): Likewise.
8548 (move_bb_info): Likewise.
8549 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
8550 (SET_BB_NOTE_LIST): New function.
8551
8552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8553
8554 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
8555 field will eventually be an rtx_insn *. To help with transition,
8556 for now, convert from an access macro into a pair of functions:
8557 VINSN_INSN_RTX, returning an rtx_insn *, and...
8558 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
8559 is used as an lvalue.
8560
8561 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
8562 SET_VINSN_INSN_RTX where it's used as an lvalue.
8563 (VINSN_INSN_RTX): New function.
8564 (SET_VINSN_INSN_RTX): New function.
8565
8566 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8567
8568 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
8569 eventually be rtx_insn *, but to help with transition, for now,
8570 convert from an access macro into a pair of functions: DEP_PRO
8571 returning an rtx_insn * and...
8572 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
8573 lvalue, returning an rtx&.
8574 (DEP_CON): Analogous changes to DEP_PRO above.
8575 (SET_DEP_CON): Likewise.
8576
8577 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
8578 an lvalue to SET_DEP_CON.
8579 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
8580 (sd_copy_back_deps): Likewise for DEP_CON.
8581 (DEP_PRO): New function, adding a checked cast for now.
8582 (DEP_CON): Likewise.
8583 (SET_DEP_PRO): New function.
8584 (SET_DEP_CON): Likewise.
8585
8586 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8587
8588 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
8589 (extra_options): Add i386/cygwin.opt.
8590 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
8591 (CPP_SPEC): Accept -pthread.
8592 (LINK_SPEC): Ditto.
8593 (GOMP_SELF_SPECS): Update comment.
8594 * config/i386/cygwin.opt: New file for -pthread flag.
8595
8596 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8597
8598 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
8599 * df.h (DF_REF_INSN): Convert from a macro to a function, so
8600 that we can return an rtx_insn *.
8601
8602 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8603
8604 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
8605 when building executables, not DLLs. Add --large-address-aware
8606 under the same conditions.
8607 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
8608 when building executables, not DLLs. Add --large-address-aware
8609 under the same conditions when using -m32.
8610
8611 * config/i386/cygwin-stdint.h: Throughout, make type
8612 definitions dependent on target architecture, not host.
8613
8614 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8615
8616 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
8617 the return type from rtx to rtx_insn *, which will enable various
8618 conversions in followup patches. For now this is is done by a
8619 checked cast.
8620 (NEXT_INSN): Likewise.
8621 (SET_PREV_INSN): Convert to an inline function. This is intended
8622 for use as an lvalue, and so returns an rtx& to allow in-place
8623 modification.
8624 (SET_NEXT_INSN): Likewise.
8625
8626 2014-07-08 Mark Wielaard <mjw@redhat.com>
8627
8628 PR debug/59051
8629 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
8630
8631 2014-08-19 Marek Polacek <polacek@redhat.com>
8632
8633 PR c/61271
8634 * cgraphunit.c (handle_alias_pairs): Fix condition.
8635
8636 2014-08-19 Richard Biener <rguenther@suse.de>
8637
8638 * gimple-fold.c (fold_gimple_assign): Properly build a
8639 null-pointer constant when devirtualizing addresses.
8640
8641 2014-07-07 Mark Wielaard <mjw@redhat.com>
8642
8643 * dwarf2out.c (decl_quals): New function.
8644 (modified_type_die): Take one cv_quals argument instead of two,
8645 one for const and one for volatile.
8646 (add_type_attribute): Likewise.
8647 (generic_parameter_die): Call add_type_attribute with one modifier
8648 argument.
8649 (base_type_for_mode): Likewise.
8650 (add_bounds_info): Likewise.
8651 (add_subscript_info): Likewise.
8652 (gen_array_type_die): Likewise.
8653 (gen_descr_array_type_die): Likewise.
8654 (gen_entry_point_die): Likewise.
8655 (gen_enumeration_type_die): Likewise.
8656 (gen_formal_parameter_die): Likewise.
8657 (gen_subprogram_die): Likewise.
8658 (gen_variable_die): Likewise.
8659 (gen_const_die): Likewise.
8660 (gen_field_die): Likewise.
8661 (gen_pointer_type_die): Likewise.
8662 (gen_reference_type_die): Likewise.
8663 (gen_ptr_to_mbr_type_die): Likewise.
8664 (gen_inheritance_die): Likewise.
8665 (gen_subroutine_type_die): Likewise.
8666 (gen_typedef_die): Likewise.
8667 (force_type_die): Likewise.
8668
8669 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8670
8671 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8672 if unset.
8673 * configure: Regenerate.
8674
8675 2014-08-19 Richard Biener <rguenther@suse.de>
8676
8677 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8678 DECL_EXTERNALs in BLOCKs as non-references.
8679 * tree-streamer-out.c (streamer_write_chain): Likewise.
8680
8681 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
8682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8683 Anna Tikhonova <anna.tikhonova@intel.com>
8684 Ilya Tocar <ilya.tocar@intel.com>
8685 Andrey Turetskiy <andrey.turetskiy@intel.com>
8686 Ilya Verbin <ilya.verbin@intel.com>
8687 Kirill Yukhin <kirill.yukhin@intel.com>
8688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8689
8690 * config/i386/sse.md
8691 (define_mode_iterator VI48_AVX512F): Delete.
8692 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8693 (define_mode_iterator VI2_AVX512VL): Ditto.
8694 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8695 Delete.
8696 (define_insn
8697 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8698 New.
8699 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8700 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8701 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8702 with VI48_AVX512F_AVX512VL): New.
8703 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8704 with VI2_AVX512VL): Ditto.
8705
8706 2014-08-19 Marek Polacek <polacek@redhat.com>
8707
8708 * doc/invoke.texi: Document -Wc99-c11-compat.
8709
8710 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8711
8712 * rtl.h (PREV_INSN): Split macro in two: the existing one,
8713 for rvalues, and...
8714 (SET_PREV_INSN): New macro, for use as an lvalue.
8715 (NEXT_INSN, SET_NEXT_INSN): Likewise.
8716
8717 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8718 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8719 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8720 (fixup_abnormal_edges): Likewise.
8721 (unlink_insn_chain): Likewise.
8722 (fixup_reorder_chain): Likewise.
8723 (cfg_layout_delete_block): Likewise.
8724 (cfg_layout_merge_blocks): Likewise.
8725 * combine.c (update_cfg_for_uncondjump): Likewise.
8726 * emit-rtl.c (link_insn_into_chain): Likewise.
8727 (remove_insn): Likewise.
8728 (delete_insns_since): Likewise.
8729 (reorder_insns_nobb): Likewise.
8730 (emit_insn_after_1): Likewise.
8731 * final.c (rest_of_clean_state): Likewise.
8732 (final_scan_insn): Likewise.
8733 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8734 * haifa-sched.c (concat_note_lists): Likewise.
8735 (remove_notes): Likewise.
8736 (restore_other_notes): Likewise.
8737 (move_insn): Likewise.
8738 (unlink_bb_notes): Likewise.
8739 (restore_bb_notes): Likewise.
8740 * jump.c (delete_for_peephole): Likewise.
8741 * optabs.c (emit_libcall_block_1): Likewise.
8742 * reorg.c (emit_delay_sequence): Likewise.
8743 (fill_simple_delay_slots): Likewise.
8744 * sel-sched-ir.c (sel_move_insn): Likewise.
8745 (sel_remove_insn): Likewise.
8746 (get_bb_note_from_pool): Likewise.
8747 * sel-sched.c (move_nop_to_previous_block): Likewise.
8748
8749 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8750 * config/c6x/c6x.c (gen_one_bundle): Likewise.
8751 (c6x_gen_bundles): Likewise.
8752 (hwloop_optimize): Likewise.
8753 * config/frv/frv.c (frv_function_prologue): Likewise.
8754 (frv_register_nop): Likewise.
8755 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8756 (ia64_reorg): Likewise.
8757 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8758 (mep_make_bundle): Likewise.
8759 (mep_bundle_insns): Likewise.
8760 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8761 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8762 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8763
8764 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8765
8766 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
8767 return type from rtx to rtx_insn *.
8768 (BB_END): Likewise.
8769 (BB_HEADER): Likewise.
8770 (BB_FOOTER): Likewise.
8771 (SET_BB_HEAD): Convert to a function.
8772 (SET_BB_END): Likewise.
8773 (SET_BB_HEADER): Likewise.
8774 (SET_BB_FOOTER): Likewise.
8775
8776 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8777 Strengthen the return type from rtx to rtx_insn *. For now, this
8778 is done by adding a checked cast, but this will eventually
8779 become a field lookup.
8780 (BB_END): Likewise.
8781 (BB_HEADER): Likewise.
8782 (BB_FOOTER): Likewise.
8783 (SET_BB_HEAD): New function, from macro of same name. This is
8784 intended for use as an lvalue, and so returns an rtx& to allow
8785 in-place modification.
8786 (SET_BB_END): Likewise.
8787 (SET_BB_HEADER): Likewise.
8788 (SET_BB_FOOTER): Likewise.
8789
8790 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8791
8792 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8793 for rvalues, and...
8794 (SET_BB_HEAD): New macro, for use as a lvalue.
8795 (BB_END, SET_BB_END): Likewise.
8796 (BB_HEADER, SET_BB_HEADER): Likewise.
8797 (BB_FOOTER, SET_BB_FOOTER): Likewise.
8798
8799 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8800 of BB_* macros into SET_BB_* macros.
8801 (fix_crossing_unconditional_branches): Likewise.
8802 * caller-save.c (save_call_clobbered_regs): Likewise.
8803 (insert_one_insn): Likewise.
8804 * cfgbuild.c (find_bb_boundaries): Likewise.
8805 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8806 (outgoing_edges_match): Likewise.
8807 (try_optimize_cfg): Likewise.
8808 * cfgexpand.c (expand_gimple_cond): Likewise.
8809 (expand_gimple_tailcall): Likewise.
8810 (expand_gimple_basic_block): Likewise.
8811 (construct_exit_block): Likewise.
8812 * cfgrtl.c (delete_insn): Likewise.
8813 (create_basic_block_structure): Likewise.
8814 (rtl_delete_block): Likewise.
8815 (rtl_split_block): Likewise.
8816 (emit_nop_for_unique_locus_between): Likewise.
8817 (rtl_merge_blocks): Likewise.
8818 (block_label): Likewise.
8819 (try_redirect_by_replacing_jump): Likewise.
8820 (emit_barrier_after_bb): Likewise.
8821 (fixup_abnormal_edges): Likewise.
8822 (record_effective_endpoints): Likewise.
8823 (relink_block_chain): Likewise.
8824 (fixup_reorder_chain): Likewise.
8825 (fixup_fallthru_exit_predecessor): Likewise.
8826 (cfg_layout_duplicate_bb): Likewise.
8827 (cfg_layout_split_block): Likewise.
8828 (cfg_layout_delete_block): Likewise.
8829 (cfg_layout_merge_blocks): Likewise.
8830 * combine.c (update_cfg_for_uncondjump): Likewise.
8831 * emit-rtl.c (add_insn_after): Likewise.
8832 (remove_insn): Likewise.
8833 (reorder_insns): Likewise.
8834 (emit_insn_after_1): Likewise.
8835 * haifa-sched.c (get_ebb_head_tail): Likewise.
8836 (restore_other_notes): Likewise.
8837 (move_insn): Likewise.
8838 (sched_extend_bb): Likewise.
8839 (fix_jump_move): Likewise.
8840 * ifcvt.c (noce_process_if_block): Likewise.
8841 (dead_or_predicable): Likewise.
8842 * ira.c (update_equiv_regs): Likewise.
8843 * reg-stack.c (change_stack): Likewise.
8844 * sel-sched-ir.c (sel_move_insn): Likewise.
8845 * sel-sched.c (move_nop_to_previous_block): Likewise.
8846
8847 * config/c6x/c6x.c (hwloop_optimize): Likewise.
8848 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8849
8850 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8851
8852 * rtl.h (for_each_rtx_in_insn): New function.
8853 * rtlanal.c (for_each_rtx_in_insn): Likewise.
8854
8855 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8856
8857 * coretypes.h (class rtx_insn): Add forward declaration.
8858
8859 * rtl.h: Include is-a.h.
8860 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8861 workaround to ensure gengtype knows inheritance is occurring,
8862 whilst continuing to use the pre-existing special-casing for
8863 rtx_def.
8864 (class rtx_insn): New subclass of rtx_def, adding the
8865 invariant that we're dealing with something we can sanely use
8866 INSN_UID, NEXT_INSN, PREV_INSN on.
8867 (is_a_helper <rtx_insn *>::test): New.
8868 (is_a_helper <const rtx_insn *>::test): New.
8869
8870 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8871
8872 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8873
8874 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8875
8876 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8877 comdats as extern.
8878
8879 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8880
8881 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8882 to BUILT_IN_UNREACHABLE.
8883
8884 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
8885
8886 PR target/62011
8887 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8888 New tune flag.
8889 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8890 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8891 (ffs<mode>2): Do not expand with tzcnt for
8892 TARGET_AVOID_FALSE_DEP_FOR_BMI.
8893 (ffssi2_no_cmove): Ditto.
8894 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8895 (ctz<mode>2): New expander.
8896 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8897 (*ctz<mode>2_falsedep): New insn.
8898 (*ctz<mode>2): Rename from ctz<mode>2.
8899 (clz<mode>2_lzcnt): New expander.
8900 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8901 (*clz<mode>2_lzcnt_falsedep): New insn.
8902 (*clz<mode>2): Rename from ctz<mode>2.
8903 (popcount<mode>2): New expander.
8904 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8905 (*popcount<mode>2_falsedep): New insn.
8906 (*popcount<mode>2): Rename from ctz<mode>2.
8907 (*popcount<mode>2_cmp): Remove.
8908 (*popcountsi2_cmp_zext): Ditto.
8909
8910 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
8911
8912 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8913 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8914 * config/microblaze/microblaze.h
8915 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8916
8917 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
8918
8919 PR other/62168
8920 * configure.ac: Set install_gold_as_default to no for
8921 --enable-gold=no.
8922 * configure: Regenerated.
8923
8924 2014-08-18 Roman Gareev <gareevroman@gmail.com>
8925
8926 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8927 * config.in: Add undef of HAVE_isl.
8928 * configure: Regenerate.
8929 * configure.ac: Add definition of HAVE_isl.
8930 * graphite-blocking.c: Add checking of HAVE_isl.
8931 * graphite-dependences.c: Likewise.
8932 * graphite-interchange.c: Likewise.
8933 * graphite-isl-ast-to-gimple.c: Likewise.
8934 * graphite-optimize-isl.c: Likewise.
8935 * graphite-poly.c: Likewise.
8936 * graphite-scop-detection.c: Likewise.
8937 * graphite-sese-to-poly.c: Likewise.
8938 * graphite.c: Likewise.
8939 * toplev.c: Replace the checking of HAVE_cloog with the checking
8940 of HAVE_isl.
8941
8942 2014-08-18 Richard Biener <rguenther@suse.de>
8943
8944 PR tree-optimization/62090
8945 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8946 (fold_builtin_3): Do not fold snprintf.
8947 (fold_builtin_4): Likewise.
8948 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8949 moved from builtins.c.
8950 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8951 (gimple_fold_builtin): Do not fold sprintf here.
8952
8953 2014-08-18 Richard Biener <rguenther@suse.de>
8954
8955 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8956 code to ...
8957 (maybe_canonicalize_mem_ref_addr): ... this function.
8958 (fold_stmt_1): Apply it here before all simplification.
8959
8960 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
8961
8962 PR ipa/61800
8963 * cgraph.h (cgraph_node::create_indirect_edge): Add
8964 compute_indirect_info param.
8965 * cgraph.c (cgraph_node::create_indirect_edge): Compute
8966 indirect_info only when it is required.
8967 * cgraphclones.c (cgraph_clone_edge): Do not recompute
8968 indirect_info fore cloned indirect edge.
8969
8970 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8971 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8972 Anna Tikhonova <anna.tikhonova@intel.com>
8973 Ilya Tocar <ilya.tocar@intel.com>
8974 Andrey Turetskiy <andrey.turetskiy@intel.com>
8975 Ilya Verbin <ilya.verbin@intel.com>
8976 Kirill Yukhin <kirill.yukhin@intel.com>
8977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8978
8979 * config/i386/sse.md
8980 (define_mode_iterator VI8_AVX2_AVX512BW): New.
8981 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8982
8983 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8985 Anna Tikhonova <anna.tikhonova@intel.com>
8986 Ilya Tocar <ilya.tocar@intel.com>
8987 Andrey Turetskiy <andrey.turetskiy@intel.com>
8988 Ilya Verbin <ilya.verbin@intel.com>
8989 Kirill Yukhin <kirill.yukhin@intel.com>
8990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8991
8992 * config/i386/sse.md
8993 (define_mode_iterator VF1_AVX512VL): New.
8994 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8995 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8996 New.
8997
8998 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8999 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9000 Anna Tikhonova <anna.tikhonova@intel.com>
9001 Ilya Tocar <ilya.tocar@intel.com>
9002 Andrey Turetskiy <andrey.turetskiy@intel.com>
9003 Ilya Verbin <ilya.verbin@intel.com>
9004 Kirill Yukhin <kirill.yukhin@intel.com>
9005 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9006
9007 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
9008 * config/i386/i386.md
9009 (define_code_iterator any_float): New.
9010 (define_code_attr floatsuffix): New.
9011 * config/i386/sse.md
9012 (define_mode_iterator VF1_128_256VL): New.
9013 (define_mode_iterator VF2_512_256VL): New.
9014 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
9015 TARGET check.
9016 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
9017 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
9018 New.
9019 (define_mode_attr qq2pssuff): New.
9020 (define_mode_attr sselongvecmode): New.
9021 (define_mode_attr sselongvecmodelower): New.
9022 (define_mode_attr sseintvecmode3): New.
9023 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
9024 New.
9025 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
9026 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
9027 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
9028 (define_insn "ufloatv2siv2df2<mask_name>"): New.
9029
9030 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9032 Anna Tikhonova <anna.tikhonova@intel.com>
9033 Ilya Tocar <ilya.tocar@intel.com>
9034 Andrey Turetskiy <andrey.turetskiy@intel.com>
9035 Ilya Verbin <ilya.verbin@intel.com>
9036 Kirill Yukhin <kirill.yukhin@intel.com>
9037 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9038
9039 * config/i386/sse.md
9040 (define_mode_iterator VF2_AVX512VL): New.
9041 (define_mode_attr sseintvecmode2): New.
9042 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9043 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9044 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9045 (define_insn
9046 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9047 Ditto.
9048 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9049 Ditto.
9050 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9051 Ditto.
9052
9053 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9054 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9055 Anna Tikhonova <anna.tikhonova@intel.com>
9056 Ilya Tocar <ilya.tocar@intel.com>
9057 Andrey Turetskiy <andrey.turetskiy@intel.com>
9058 Ilya Verbin <ilya.verbin@intel.com>
9059 Kirill Yukhin <kirill.yukhin@intel.com>
9060 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9061
9062 * config/i386/i386.md
9063 (define_insn "*movoi_internal_avx"): Add evex version.
9064 (define_insn "*movti_internal"): Ditto.
9065
9066 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9067 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9068 Anna Tikhonova <anna.tikhonova@intel.com>
9069 Ilya Tocar <ilya.tocar@intel.com>
9070 Andrey Turetskiy <andrey.turetskiy@intel.com>
9071 Ilya Verbin <ilya.verbin@intel.com>
9072 Kirill Yukhin <kirill.yukhin@intel.com>
9073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9074
9075 * config/i386/i386.md
9076 (define_attr "isa"): Add avx512dq, noavx512dq.
9077 (define_attr "enabled"): Ditto.
9078 * config/i386/sse.md
9079 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9080
9081 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9082 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9083 Anna Tikhonova <anna.tikhonova@intel.com>
9084 Ilya Tocar <ilya.tocar@intel.com>
9085 Andrey Turetskiy <andrey.turetskiy@intel.com>
9086 Ilya Verbin <ilya.verbin@intel.com>
9087 Kirill Yukhin <kirill.yukhin@intel.com>
9088 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9089
9090 * config/i386/i386.c
9091 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9092 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9093 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9094 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9095 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9096 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9097 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9098 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9099 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9100 * config/i386/sse.md
9101 (define_mode_iterator VMOVE): Allow V4TI mode.
9102 (define_mode_iterator V_AVX512VL): New.
9103 (define_mode_iterator V): New handling for AVX512VL.
9104 (define_insn "avx512f_load<mode>_mask"): Delete.
9105 (define_insn "<avx512>_load<mode>_mask"): New.
9106 (define_insn "avx512f_store<mode>_mask"): Delete.
9107 (define_insn "<avx512>_store<mode>_mask"): New.
9108
9109
9110 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9111
9112 PR sanitizer/62089
9113 * asan.c (instrument_derefs): Fix bitfield check.
9114
9115 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9116
9117 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9118 * config/rs6000/htm.md (ttest): Remove clobber.
9119 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9120 (and_operand): Reformat.
9121 (and_2rld_operand): New predicate.
9122 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9123 parameter.
9124 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9125 parameter. Handle AND directly.
9126 (rs6000_split_logical_di): Remove last parameter.
9127 (rs6000_split_logical): Remove last parameter. Remove obsolete
9128 comment.
9129 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9130 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9131 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9132 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9133 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9134 and 5 anonymous splitters): Delete.
9135 (and<mode>3): New expander.
9136 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9137 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9138 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9139 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9140 (floatdisf2_internal1): Remove clobbers.
9141 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9142 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9143 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9144 (and<mode>3 for BOOL_128): Remove clobber.
9145 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9146 rs6000_split_logical.
9147 (*bool<mode>3_internal for BOOL_128): Adjust call of
9148 rs6000_split_logical.
9149 (*boolc<mode>3_internal1 for BOOL_128,
9150 *boolc<mode>3_internal2 for BOOL_128,
9151 *boolcc<mode>3_internal1 for BOOL_128,
9152 *boolcc<mode>3_internal2 for BOOL_128,
9153 *eqv<mode>3_internal1 for BOOL_128,
9154 *eqv<mode>3_internal2 for BOOL_128,
9155 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9156 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9157 clobber.
9158 (*vec_reload_and_reg_<mptrsize>): Delete.
9159
9160 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9161
9162 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9163 and split, *boolccsi3_internal3 and split): Delete.
9164 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9165 *boolccdi3_internal3 and split): Delete.
9166 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9167 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9168
9169 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9170
9171 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9172 and split, *boolcsi3_internal3 and split): Delete.
9173 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9174 *boolcdi3_internal3 and split): Delete.
9175 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9176
9177 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9178
9179 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9180 <'u'>: Also support printing the low-order 16 bits.
9181 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9182 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9183 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9184 *booldi3_internal3 and split): Delete.
9185 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9186 *bool<mode>3_dot2): New.
9187 (two anonymous define_splits for non_logical_cint_operand): Merge.
9188
9189 2014-08-17 Marek Polacek <polacek@redhat.com>
9190 Manuel López-Ibáñez <manu@gcc.gnu.org>
9191
9192 PR c/62059
9193 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9194 (diagnostic_show_locus): Don't print caret diagnostic
9195 if a column is larger than the line_width.
9196
9197 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9198
9199 * common.opt: Make the ISL AST generator to be the main code generator
9200 of Graphite.
9201
9202 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9203
9204 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9205
9206 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9207
9208 PR target/61641
9209 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9210 Declare.
9211 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9212 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9213 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9214 Define.
9215 * config/pa/pa.md (begin_brtab): Delete insn.
9216 (end_brtab): Likewise.
9217
9218 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9219
9220 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9221
9222 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9223
9224 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9225 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9226 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9227 (get_dynamic_type): Remove.
9228 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9229 (clear_speculation): Bring to ipa-deivrt.h
9230 (get_class_context): Rename to ...
9231 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9232 (contains_type_p): Update.
9233 (get_dynamic_type): Rename to ...
9234 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9235 (possible_polymorphic_call_targets): UPdate.
9236 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9237 * ipa-prop.c (ipa_analyze_call_uses): Update.
9238
9239 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9240
9241 * doc/invoke.texi (SH options): Document missing processor variant
9242 options. Remove references to Hitachi. Undocument deprecated mspace
9243 option.
9244
9245 2014-08-15 Jason Merrill <jason@redhat.com>
9246
9247 * tree.c (type_hash_canon): Uncomment assert.
9248
9249 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9250
9251 * input.h (in_system_header_at): Add comment.
9252
9253 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9254
9255 PR fortran/44054
9256 * diagnostic.c (build_message_string): Make it extern.
9257 * diagnostic.h (build_message_string): Make it extern.
9258
9259 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9260
9261 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9262 load/store from/to non-floating class pseudo.
9263
9264 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9265
9266 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9267
9268 2014-08-15 Richard Biener <rguenther@suse.de>
9269
9270 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9271 (get_constraint_for_ssa_var): Remove dead code.
9272 (get_constraint_for_1): Adjust.
9273 (find_what_var_points_to): Likewise.
9274 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9275
9276 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9277
9278 PR target/61878
9279 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9280 (_mm512_mask_cmpge_epu32_mask): Ditto.
9281 (_mm512_cmpge_epu32_mask): Ditto.
9282 (_mm512_mask_cmpge_epi64_mask): Ditto.
9283 (_mm512_cmpge_epi64_mask): Ditto.
9284 (_mm512_mask_cmpge_epu64_mask): Ditto.
9285 (_mm512_cmpge_epu64_mask): Ditto.
9286 (_mm512_mask_cmple_epi32_mask): Ditto.
9287 (_mm512_cmple_epi32_mask): Ditto.
9288 (_mm512_mask_cmple_epu32_mask): Ditto.
9289 (_mm512_cmple_epu32_mask): Ditto.
9290 (_mm512_mask_cmple_epi64_mask): Ditto.
9291 (_mm512_cmple_epi64_mask): Ditto.
9292 (_mm512_mask_cmple_epu64_mask): Ditto.
9293 (_mm512_cmple_epu64_mask): Ditto.
9294 (_mm512_mask_cmplt_epi32_mask): Ditto.
9295 (_mm512_cmplt_epi32_mask): Ditto.
9296 (_mm512_mask_cmplt_epu32_mask): Ditto.
9297 (_mm512_cmplt_epu32_mask): Ditto.
9298 (_mm512_mask_cmplt_epi64_mask): Ditto.
9299 (_mm512_cmplt_epi64_mask): Ditto.
9300 (_mm512_mask_cmplt_epu64_mask): Ditto.
9301 (_mm512_cmplt_epu64_mask): Ditto.
9302 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9303 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9304 (_mm512_cmpneq_epu32_mask): Ditto.
9305 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9306 (_mm512_cmpneq_epi64_mask): Ditto.
9307 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9308 (_mm512_cmpneq_epu64_mask): Ditto.
9309 (_mm512_castpd_ps): Ditto.
9310 (_mm512_castpd_si512): Ditto.
9311 (_mm512_castps_pd): Ditto.
9312 (_mm512_castps_si512): Ditto.
9313 (_mm512_castsi512_ps): Ditto.
9314 (_mm512_castsi512_pd): Ditto.
9315 (_mm512_castpd512_pd128): Ditto.
9316 (_mm512_castps512_ps128): Ditto.
9317 (_mm512_castsi512_si128): Ditto.
9318 (_mm512_castpd512_pd256): Ditto.
9319 (_mm512_castps512_ps256): Ditto.
9320 (_mm512_castsi512_si256): Ditto.
9321 (_mm512_castpd128_pd512): Ditto.
9322 (_mm512_castps128_ps512): Ditto.
9323 (_mm512_castsi128_si512): Ditto.
9324 (_mm512_castpd256_pd512): Ditto.
9325 (_mm512_castps256_ps512): Ditto.
9326 (_mm512_castsi256_si512): Ditto.
9327 (_mm512_cmpeq_epu32_mask): Ditto.
9328 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9329 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9330 (_mm512_cmpeq_epu64_mask): Ditto.
9331 (_mm512_cmpgt_epu32_mask): Ditto.
9332 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9333 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9334 (_mm512_cmpgt_epu64_mask): Ditto.
9335 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9336 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9337 * config/i386/i386.c (enum ix86_builtins): Add
9338 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9339 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9340 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9341 (bdesc_args): Add __builtin_ia32_si512_256si,
9342 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9343 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9344 __builtin_ia32_pd512_pd.
9345 (ix86_expand_args_builtin): Handle new FTYPEs.
9346 * config/i386/sse.md (castmode): Add 512-bit modes.
9347 (AVX512MODE2P): New.
9348 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9349 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9350
9351 2014-08-15 Richard Biener <rguenther@suse.de>
9352
9353 * fold-const.c (tree_swap_operands_p): Put all constants
9354 last, also strip sign-changing NOPs when considering further
9355 canonicalization. Canonicalize also when optimizing for size.
9356
9357 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9358
9359 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9360 one_match > zero_match case to just before simple_sequence.
9361
9362 2014-08-15 Richard Biener <rguenther@suse.de>
9363
9364 * data-streamer.h (streamer_string_index, string_for_index):
9365 Remove.
9366 * data-streamer-out.c (streamer_string_index): Make static.
9367 * data-streamer-in.c (string_for_index): Likewise.
9368 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
9369 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
9370
9371 2014-08-15 Richard Biener <rguenther@suse.de>
9372
9373 PR tree-optimization/62031
9374 * tree-data-ref.c (dr_analyze_indices): Do not set
9375 DR_UNCONSTRAINED_BASE.
9376 (dr_may_alias_p): All indirect accesses have to go the
9377 formerly DR_UNCONSTRAINED_BASE path.
9378 * tree-data-ref.h (struct indices): Remove
9379 unconstrained_base member.
9380 (DR_UNCONSTRAINED_BASE): Remove.
9381
9382 2014-08-15 Jakub Jelinek <jakub@redhat.com>
9383
9384 PR middle-end/62092
9385 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
9386 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
9387 in OMP_CLAUSE_MAP in some outer target region.
9388
9389 2014-08-15 Bin Cheng <bin.cheng@arm.com>
9390
9391 * tree-ssa-loop-ivopts.c (ivopts_data): New field
9392 name_expansion_cache.
9393 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
9394 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
9395 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
9396 (difference_cannot_overflow_p): New parameter. Use affine
9397 expansion for equality check.
9398 (iv_elimination_compare_lt): Pass new argument.
9399
9400 2014-08-14 DJ Delorie <dj@redhat.com>
9401
9402 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
9403 variables to the accumulator.
9404
9405 * config/rl78/predicates.md (rl78_near_mem_operand): New.
9406 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
9407 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
9408 with far-far moves.
9409
9410 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
9411 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
9412 (umulqihi3_virt): Likewise.
9413 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
9414 (umulqihi3_real): Likewise.
9415
9416 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
9417
9418 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9419
9420 PR tree-optimization/62091
9421 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
9422 function_entry_reached.
9423 (walk_aliased_vdefs): Clear it here.
9424 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
9425
9426 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9427
9428 * ipa-utils.h (compare_virtual_tables): Declare.
9429 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
9430
9431 2014-08-14 Marek Polacek <polacek@redhat.com>
9432
9433 DR 458
9434 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
9435 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
9436
9437 2014-08-14 Tom de Vries <tom@codesourcery.com>
9438
9439 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
9440
9441 2014-08-14 Tom de Vries <tom@codesourcery.com>
9442
9443 PR rtl-optimization/62004
9444 PR rtl-optimization/62030
9445 * ifcvt.c (rtx_interchangeable_p): New function.
9446 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
9447 * emit-rtl.h (mem_attrs_eq_p): Declare.
9448
9449 2014-08-14 Roman Gareev <gareevroman@gmail.com>
9450
9451 * graphite-scop-detection.c:
9452 Add inclusion of cp-tree.h.
9453 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
9454 in case they are pointers to object types
9455
9456 2014-08-14 Richard Biener <rguenther@suse.de>
9457
9458 * BASE-VER: Change to 5.0.0
9459
9460 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9461 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9462 Anna Tikhonova <anna.tikhonova@intel.com>
9463 Ilya Tocar <ilya.tocar@intel.com>
9464 Andrey Turetskiy <andrey.turetskiy@intel.com>
9465 Ilya Verbin <ilya.verbin@intel.com>
9466 Kirill Yukhin <kirill.yukhin@intel.com>
9467 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9468
9469 * config/i386/sse.md (define_mode_attr avx512): New.
9470 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
9471 V4DI modes.
9472 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
9473 (define_mode_attr ssse3_avx2): Ditto.
9474 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
9475 (define_mode_attr avx2_avx512bw): New.
9476 (define_mode_attr ssedoublemodelower): New.
9477 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
9478 V32HI, V64QI modes.
9479 (define_mode_attr ssebytemode): Allow V8DI modes.
9480 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
9481 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
9482 (define_mode_attr ssePSmode2): New.
9483 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
9484 V16HI, V32HI modes.
9485 (define_mode_attr dbpsadbwmode): New.
9486 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
9487 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
9488 (vi8_sse4_1_avx2_avx512): New.
9489 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
9490 mode attribute.
9491 (define_mode_attr blendbits): Move before its immediate use.
9492
9493 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9495 Anna Tikhonova <anna.tikhonova@intel.com>
9496 Ilya Tocar <ilya.tocar@intel.com>
9497 Andrey Turetskiy <andrey.turetskiy@intel.com>
9498 Ilya Verbin <ilya.verbin@intel.com>
9499 Kirill Yukhin <kirill.yukhin@intel.com>
9500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9501
9502 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
9503 * config/i386/subst.md
9504 (define_mode_iterator SUBST_V): Update.
9505 (define_mode_iterator SUBST_A): Ditto.
9506 (define_subst_attr "mask_operand7"): New.
9507 (define_subst_attr "mask_operand10"): New.
9508 (define_subst_attr "mask_operand_arg34") : New.
9509 (define_subst_attr "mask_expand_op3"): New.
9510 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
9511 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
9512 (define_subst_attr "mask_avx512vl_condition"): New.
9513 (define_subst_attr "round_mask_operand4"): Ditto.
9514 (define_subst_attr "round_mask_scalar_op3"): Delete.
9515 (define_subst_attr "round_mask_op4"): New.
9516 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
9517 V16SImode.
9518 (define_subst_attr "round_modev8sf_condition"): New.
9519 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
9520 <MODE>mode.
9521 (define_subst_attr "round_saeonly_mask_operand4"): New.
9522 (define_subst_attr "round_saeonly_mask_op4"): New.
9523 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
9524 V8DImode, V16SImode.
9525 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
9526 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
9527 (define_subst_attr "mask_expand4_args"): New.
9528 (define_subst "mask_expand4"): New.
9529
9530 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9531 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9532 Anna Tikhonova <anna.tikhonova@intel.com>
9533 Ilya Tocar <ilya.tocar@intel.com>
9534 Andrey Turetskiy <andrey.turetskiy@intel.com>
9535 Ilya Verbin <ilya.verbin@intel.com>
9536 Kirill Yukhin <kirill.yukhin@intel.com>
9537 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9538
9539 * config/i386/i386.md
9540 (define_attr "isa"): Add avx512bw,noavx512bw.
9541 (define_attr "enabled"): Ditto.
9542 (define_split): Add 32/64-bit mask logic.
9543 (define_insn "*k<logic>qi"): New.
9544 (define_insn "*k<logic>hi"): New.
9545 (define_insn "*anddi_1"): Add mask version.
9546 (define_insn "*andsi_1"): Ditto.
9547 (define_insn "*<code><mode>_1"): Ditto.
9548 (define_insn "*<code>hi_1"): Ditto.
9549 (define_insn "kxnor<mode>"): New.
9550 (define_insn "kunpcksi"): New.
9551 (define_insn "kunpckdi"): New.
9552 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
9553 (define_insn "*one_cmplhi2_1"): Ditto.
9554
9555 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9557 Anna Tikhonova <anna.tikhonova@intel.com>
9558 Ilya Tocar <ilya.tocar@intel.com>
9559 Andrey Turetskiy <andrey.turetskiy@intel.com>
9560 Ilya Verbin <ilya.verbin@intel.com>
9561 Kirill Yukhin <kirill.yukhin@intel.com>
9562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9563
9564 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
9565 V32HImode.
9566
9567 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9568 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9569 Anna Tikhonova <anna.tikhonova@intel.com>
9570 Ilya Tocar <ilya.tocar@intel.com>
9571 Andrey Turetskiy <andrey.turetskiy@intel.com>
9572 Ilya Verbin <ilya.verbin@intel.com>
9573 Kirill Yukhin <kirill.yukhin@intel.com>
9574 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9575
9576 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
9577 registers.
9578 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
9579 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
9580 xmm/ymm16+ when availble.
9581 * config/i386/i386.h
9582 (HARD_REGNO_NREGS): Add mask regs.
9583 (VALID_AVX512F_REG_MODE): Ditto.
9584 (VALID_AVX512F_REG_MODE) : Define.
9585 (VALID_MASK_AVX512BW_MODE): Ditto.
9586 (reg_class) (MASK_REG_P(X)): Define.
9587 * config/i386/i386.md: Do not split long moves with mask register,
9588 use kmovb if avx512bw is availible.
9589 (movdi_internal): Handle mask registers.
9590
9591 2014-08-14 Richard Biener <rguenther@suse.de>
9592
9593 PR tree-optimization/62081
9594 * tree-ssa-loop.c (pass_fix_loops): New pass.
9595 (pass_tree_loop::gate): Do not fixup loops here.
9596 * tree-pass.h (make_pass_fix_loops): Declare.
9597 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
9598
9599 2014-08-14 Richard Biener <rguenther@suse.de>
9600
9601 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
9602 (type_hash_canon): ... this and avoid 2nd lookup for the add.
9603
9604 2014-08-14 Richard Biener <rguenther@suse.de>
9605
9606 PR tree-optimization/62090
9607 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
9608 (fold_builtin_2): Do not fold sprintf.
9609 (fold_builtin_3): Likewise.
9610 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
9611 moved from builtins.c.
9612 (gimple_fold_builtin): Fold sprintf.
9613
9614 2014-08-14 Richard Biener <rguenther@suse.de>
9615
9616 PR rtl-optimization/62079
9617 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
9618 run cleanup_cfg.
9619
9620 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9621
9622 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
9623 current_function_decl.
9624
9625 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9626
9627 * cgraph.c (cgraph_node::function_symbol): Fix wrong
9628 cgraph_function_node to cgraph_node::function_symbol
9629 refactoring.
9630
9631 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
9632
9633 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
9634 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
9635
9636 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
9637
9638 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
9639 warning.
9640
9641 2014-08-13 Roman Gareev <gareevroman@gmail.com>
9642
9643 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
9644 generator.
9645
9646 2014-08-12 Jakub Jelinek <jakub@redhat.com>
9647
9648 PR target/62025
9649 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9650 any registers that are used in mem_insn.
9651
9652 2014-08-12 Steve Ellcey <sellcey@mips.com>
9653
9654 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
9655
9656 2014-08-12 Steve Ellcey <sellcey@mips.com>
9657
9658 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9659 (MULTILIB_DIRNAMES): Ditto.
9660 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9661 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9662 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9663 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9664 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9665 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9666
9667 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9668
9669 PR target/61413
9670 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9671 of __ARM_SIZEOF_WCHAR_T.
9672
9673 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9674
9675 PR target/62098
9676 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9677 Remove unnecessary attributes.
9678
9679 2014-08-12 Yury Gribov <y.gribov@samsung.com>
9680
9681 * internal-fn.c (init_internal_fns): Fix off-by-one.
9682
9683 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9684 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9685 Anna Tikhonova <anna.tikhonova@intel.com>
9686 Ilya Tocar <ilya.tocar@intel.com>
9687 Andrey Turetskiy <andrey.turetskiy@intel.com>
9688 Ilya Verbin <ilya.verbin@intel.com>
9689 Kirill Yukhin <kirill.yukhin@intel.com>
9690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9691
9692 * config/i386/i386.c (standard_sse_constant_opcode): Use
9693 vpxord/vpternlog if avx512 is availible.
9694
9695 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
9696
9697 PR middle-end/62103
9698 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9699 bitfields, that is when size doesn't match the size of type or the
9700 size of the constructor.
9701
9702 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9703
9704 * config/rs6000/constraints.md (wh constraint): New constraint,
9705 for FP registers if direct move is available.
9706 (wi constraint): New constraint, for VSX/FP registers that can
9707 handle 64-bit integers.
9708 (wj constraint): New constraint for VSX/FP registers that can
9709 handle 64-bit integers for direct moves.
9710 (wk constraint): New constraint for VSX/FP registers that can
9711 handle 64-bit doubles for direct moves.
9712 (wy constraint): Make documentation match implementation.
9713
9714 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9715 scalar_in_vmx_p field to simplify tests of whether SFmode or
9716 DFmode can go in the Altivec registers.
9717 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9718 (rs6000_setup_reg_addr_masks): Likewise.
9719 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9720 field, and wh/wi/wj/wk constraints.
9721 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9722 the wh/wi/wj/wk constraints.
9723 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9724 upper registers, prefer VSX registers unless the operation is a
9725 memory operation with REG+OFFSET addressing.
9726
9727 * config/rs6000/vsx.md (VSr mode attribute): Add support for
9728 DImode. Change SFmode to use ww constraint instead of d to allow
9729 SF registers in the upper registers.
9730 (VSr2): Likewise.
9731 (VSr3): Likewise.
9732 (VSr5): Fix thinko in comment.
9733 (VSa): New mode attribute that is an alternative to wa, that
9734 returns the VSX register class that a mode can go in, but may not
9735 be the preferred register class.
9736 (VS_64dm): New mode attribute for appropriate register classes for
9737 referencing 64-bit elements of vectors for direct moves and normal
9738 moves.
9739 (VS_64reg): Likewise.
9740 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9741 register allocator to only registers the data type can handle.
9742 (vsx_le_perm_load_<mode>): Likewise.
9743 (vsx_le_perm_store_<mode>): Likewise.
9744 (vsx_xxpermdi2_le_<mode>): Likewise.
9745 (vsx_xxpermdi4_le_<mode>): Likewise.
9746 (vsx_lxvd2x2_le_<mode>): Likewise.
9747 (vsx_lxvd2x4_le_<mode>): Likewise.
9748 (vsx_stxvd2x2_le_<mode>): Likewise.
9749 (vsx_add<mode>3): Likewise.
9750 (vsx_sub<mode>3): Likewise.
9751 (vsx_mul<mode>3): Likewise.
9752 (vsx_div<mode>3): Likewise.
9753 (vsx_tdiv<mode>3_internal): Likewise.
9754 (vsx_fre<mode>2): Likewise.
9755 (vsx_neg<mode>2): Likewise.
9756 (vsx_abs<mode>2): Likewise.
9757 (vsx_nabs<mode>2): Likewise.
9758 (vsx_smax<mode>3): Likewise.
9759 (vsx_smin<mode>3): Likewise.
9760 (vsx_sqrt<mode>2): Likewise.
9761 (vsx_rsqrte<mode>2): Likewise.
9762 (vsx_tsqrt<mode>2_internal): Likewise.
9763 (vsx_fms<mode>4): Likewise.
9764 (vsx_nfma<mode>4): Likewise.
9765 (vsx_eq<mode>): Likewise.
9766 (vsx_gt<mode>): Likewise.
9767 (vsx_ge<mode>): Likewise.
9768 (vsx_eq<mode>_p): Likewise.
9769 (vsx_gt<mode>_p): Likewise.
9770 (vsx_ge<mode>_p): Likewise.
9771 (vsx_xxsel<mode>): Likewise.
9772 (vsx_xxsel<mode>_uns): Likewise.
9773 (vsx_copysign<mode>3): Likewise.
9774 (vsx_float<VSi><mode>2): Likewise.
9775 (vsx_floatuns<VSi><mode>2): Likewise.
9776 (vsx_fix_trunc<mode><VSi>2): Likewise.
9777 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9778 (vsx_x<VSv>r<VSs>i): Likewise.
9779 (vsx_x<VSv>r<VSs>ic): Likewise.
9780 (vsx_btrunc<mode>2): Likewise.
9781 (vsx_b2trunc<mode>2): Likewise.
9782 (vsx_floor<mode>2): Likewise.
9783 (vsx_ceil<mode>2): Likewise.
9784 (vsx_<VS_spdp_insn>): Likewise.
9785 (vsx_xscvspdp): Likewise.
9786 (vsx_xvcvspuxds): Likewise.
9787 (vsx_float_fix_<mode>2): Likewise.
9788 (vsx_set_<mode>): Likewise.
9789 (vsx_extract_<mode>_internal1): Likewise.
9790 (vsx_extract_<mode>_internal2): Likewise.
9791 (vsx_extract_<mode>_load): Likewise.
9792 (vsx_extract_<mode>_store): Likewise.
9793 (vsx_splat_<mode>): Likewise.
9794 (vsx_xxspltw_<mode>): Likewise.
9795 (vsx_xxspltw_<mode>_direct): Likewise.
9796 (vsx_xxmrghw_<mode>): Likewise.
9797 (vsx_xxmrglw_<mode>): Likewise.
9798 (vsx_xxsldwi_<mode>): Likewise.
9799 (vsx_xscvdpspn): Tighten constraints to only use register classes
9800 the types use.
9801 (vsx_xscvspdpn): Likewise.
9802 (vsx_xscvdpspn_scalar): Likewise.
9803
9804 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9805 wj, and wk constraints.
9806 (GPR_REG_CLASS_P): New helper macro for register classes targeting
9807 general purpose registers.
9808
9809 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9810 direct moves.
9811 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9812 DImode instead of wm. Use wk constraint for direct move of DFmode
9813 instead of wm.
9814 (extendsidi2_lfiwax): Likewise.
9815 (lfiwax): Likewise.
9816 (lfiwzx): Likewise.
9817 (movdi_internal64): Likewise.
9818
9819 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9820 wk constraints. Make the wy constraint documentation match them
9821 implementation.
9822
9823 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
9824
9825 Replacement of isl_int by isl_val
9826 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9827 (compute_bounds_for_param): use isl_val instead of isl_int
9828 (compute_bounds_for_loop): likewise
9829 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9830 (build_linearized_memory_access): use isl_val instead of isl_int
9831 (pdr_stride_in_loop): likewise
9832 * graphite-optimize-isl.c:
9833 (getPrevectorMap): use isl_val instead of isl_int
9834 * graphite-poly.c:
9835 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9836 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9837 (extern the_isl_ctx): declare
9838 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9839 (extract_affine_gmp): likewise
9840 (wrap): likewise
9841 (build_loop_iteration_domains): likewise
9842 (add_param_constraints): likewise
9843
9844 2014-08-11 Richard Biener <rguenther@suse.de>
9845
9846 PR tree-optimization/62075
9847 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9848 handle uses in patterns.
9849
9850 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9852 Anna Tikhonova <anna.tikhonova@intel.com>
9853 Ilya Tocar <ilya.tocar@intel.com>
9854 Andrey Turetskiy <andrey.turetskiy@intel.com>
9855 Ilya Verbin <ilya.verbin@intel.com>
9856 Kirill Yukhin <kirill.yukhin@intel.com>
9857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9858
9859 * common/config/i386/i386-common.c
9860 (OPTION_MASK_ISA_AVX512VL_SET): Define.
9861 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9862 (ix86_handle_option): Handle OPT_mavx512vl.
9863 * config/i386/cpuid.h (bit_AVX512VL): Define.
9864 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9865 set -mavx512vl accordingly.
9866 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9867 OPTION_MASK_ISA_AVX512VL.
9868 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9869 (ix86_option_override_internal): Define PTA_AVX512VL, handle
9870 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9871 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9872 * config/i386/i386.h (TARGET_AVX512VL): Define.
9873 (TARGET_AVX512VL_P(x)): Ditto.
9874 * config/i386/i386.opt: Add mavx512vl.
9875
9876 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
9877
9878 PR tree-optimization/62073
9879 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9880 a basic block.
9881
9882 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9883 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9884 Anna Tikhonova <anna.tikhonova@intel.com>
9885 Ilya Tocar <ilya.tocar@intel.com>
9886 Andrey Turetskiy <andrey.turetskiy@intel.com>
9887 Ilya Verbin <ilya.verbin@intel.com>
9888 Kirill Yukhin <kirill.yukhin@intel.com>
9889 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9890
9891 * common/config/i386/i386-common.c
9892 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9893 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9894 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9895 (ix86_handle_option): Handle OPT_mavx512bw.
9896 * config/i386/cpuid.h (bit_AVX512BW): Define.
9897 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9898 set -mavx512bw accordingly.
9899 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9900 OPTION_MASK_ISA_AVX512BW.
9901 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9902 (ix86_option_override_internal): Define PTA_AVX512BW, handle
9903 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9904 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9905 * config/i386/i386.h (TARGET_AVX512BW): Define.
9906 (TARGET_AVX512BW_P(x)): Ditto.
9907 * config/i386/i386.opt: Add mavx512bw.
9908
9909 2014-08-11 Richard Biener <rguenther@suse.de>
9910
9911 PR tree-optimization/62070
9912 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9913 Remove SSA checking.
9914
9915 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9916
9917 * asan.c (asan_check_flags): New enum.
9918 (build_check_stmt_with_calls): Removed function.
9919 (build_check_stmt): Split inlining logic to
9920 asan_expand_check_ifn.
9921 (instrument_derefs): Rename parameter.
9922 (instrument_mem_region_access): Rename parameter.
9923 (instrument_strlen_call): Likewise.
9924 (asan_expand_check_ifn): New function.
9925 (asan_instrument): Remove old code.
9926 (pass_sanopt::execute): Change handling of
9927 asan-instrumentation-with-call-threshold.
9928 (asan_clear_shadow): Fix formatting.
9929 (asan_function_start): Likewise.
9930 (asan_emit_stack_protection): Likewise.
9931 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9932 Update description.
9933 * internal-fn.c (expand_ASAN_CHECK): New function.
9934 * internal-fn.def (ASAN_CHECK): New internal function.
9935 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9936 Update description.
9937 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9938 * tree.c: Small comment fix.
9939
9940 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9941
9942 * gimple.c (gimple_call_fnspec): Support internal functions.
9943 (gimple_call_return_flags): Use const.
9944 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9945 * internal-fn.def: Add fnspec information.
9946 * internal-fn.h (internal_fn_fnspec): New function.
9947 (init_internal_fns): Declare new function.
9948 * internal-fn.c (internal_fn_fnspec_array): New global variable.
9949 (init_internal_fns): New function.
9950 * tree-core.h: Update macro call.
9951 * tree.c (build_common_builtin_nodes): Initialize internal fns.
9952
9953 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
9954
9955 * lto-streamer.h (struct output_block::symbol): Change from
9956 struct symtab_node to plain symtab_node.
9957 (referenced_from_this_partition_p): Change first parameter
9958 from struct symtab_node to plain symtab_node.
9959
9960 2014-08-10 Marek Polacek <polacek@redhat.com>
9961
9962 PR c/51849
9963 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9964
9965 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
9966
9967 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9968 DECL correctly; do not give up on types in static storage.
9969
9970 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
9971
9972 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9973
9974 2014-08-09 Roman Gareev <gareevroman@gmail.com>
9975
9976 * graphite-isl-ast-to-gimple.c:
9977 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9978
9979 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9980
9981 2014-08-08 Guozhi Wei <carrot@google.com>
9982
9983 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9984
9985 2014-08-08 Cary Coutant <ccoutant@google.com>
9986
9987 * dwarf2out.c (get_skeleton_type_unit): Remove.
9988 (output_skeleton_debug_sections): Remove skeleton type units.
9989 (output_comdat_type_unit): Likewise.
9990 (dwarf2out_finish): Likewise.
9991
9992 2014-08-07 Yi Yang <ahyangyi@google.com>
9993
9994 * predict.c (expr_expected_value_1): Remove the redundant assignment.
9995
9996 2014-08-08 Richard Biener <rguenther@suse.de>
9997
9998 * lto-streamer.h (struct lto_input_block): Make it a class
9999 with a constructor.
10000 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
10001 (struct lto_function_header, struct lto_simple_header,
10002 struct lto_simple_header_with_strings,
10003 struct lto_decl_header, struct lto_function_header): Make
10004 a simple inheritance hieararchy. Remove unused fields.
10005 (struct lto_asm_header): Remove.
10006 * lto-streamer-out.c (produce_asm): Adjust.
10007 (lto_output_toplevel_asms): Likewise.
10008 (produce_asm_for_decls): Likewise.
10009 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10010 * data-streamer-in.c (string_for_index): Likewise.
10011 * ipa-inline-analysis.c (inline_read_section): Likewise.
10012 * ipa-prop.c (ipa_prop_read_section): Likewise.
10013 (read_replacements_section): Likewise.
10014 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10015 * lto-section-in.c (lto_create_simple_input_block): Likewise.
10016 (lto_destroy_simple_input_block): Likewise.
10017 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
10018 (lto_input_toplevel_asms): Likewise.
10019
10020 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
10021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10022 Anna Tikhonova <anna.tikhonova@intel.com>
10023 Ilya Tocar <ilya.tocar@intel.com>
10024 Andrey Turetskiy <andrey.turetskiy@intel.com>
10025 Ilya Verbin <ilya.verbin@intel.com>
10026 Kirill Yukhin <kirill.yukhin@intel.com>
10027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10028
10029 * common/config/i386/i386-common.c
10030 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
10031 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
10032 (ix86_handle_option): Handle OPT_mavx512dq.
10033 * config/i386/cpuid.h (bit_AVX512DQ): Define.
10034 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
10035 set -mavx512dq accordingly.
10036 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
10037 OPTION_MASK_ISA_AVX512DQ.
10038 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
10039 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
10040 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
10041 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
10042 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10043 (TARGET_AVX512DQ_P(x)): Ditto.
10044 * config/i386/i386.opt: Add mavx512dq.
10045
10046 2014-08-08 Richard Biener <rguenther@suse.de>
10047
10048 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10049 target_percent, target_percent_s): Export.
10050 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10051 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10052 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10053 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10054 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10055 Move to gimple-fold.c.
10056 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10057 strcat and strcpy.
10058 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10059 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10060 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10061 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10062 (rewrite_call_expr_array): Remove.
10063 (fold_builtin_sprintf_chk): Likewise.
10064 (fold_builtin_snprintf_chk): Likewise.
10065 (fold_builtin_varargs): Remove handling of sprintf_chk,
10066 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10067 (gimple_fold_builtin_sprintf_chk): Remove.
10068 (gimple_fold_builtin_snprintf_chk): Likewise.
10069 (gimple_fold_builtin_varargs): Likewise.
10070 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10071 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10072 * gimple.c (gimple_seq_add_seq_without_update): New function.
10073 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10074 * gimple-fold.c: Include output.h.
10075 (gsi_replace_with_seq_vops): New function, split out from ...
10076 (gimplify_and_update_call_from_tree): ... here.
10077 (replace_call_with_value): New function.
10078 (replace_call_with_call_and_fold): Likewise.
10079 (var_decl_component_p): Moved from builtins.c.
10080 (gimple_fold_builtin_memory_op): Moved from builtins.c
10081 fold_builtin_memory_op and rewritten to GIMPLE.
10082 (gimple_fold_builtin_memset): Likewise.
10083 (gimple_fold_builtin_strcpy): Likewise.
10084 (gimple_fold_builtin_strncpy): Likewise.
10085 (gimple_fold_builtin_strcat): Likewise.
10086 (gimple_fold_builtin_fputs): Likewise.
10087 (gimple_fold_builtin_memory_chk): Likewise.
10088 (gimple_fold_builtin_stxcpy_chk): Likewise.
10089 (gimple_fold_builtin_stxncpy_chk): Likewise.
10090 (gimple_fold_builtin_snprintf_chk): Likewise.
10091 (gimple_fold_builtin_sprintf_chk): Likewise.
10092 (gimple_fold_builtin_strlen): New function.
10093 (gimple_fold_builtin_with_strlen): New function split out from
10094 gimple_fold_builtin.
10095 (gimple_fold_builtin): Change signature and handle
10096 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10097 here. Call gimple_fold_builtin_with_strlen.
10098 (gimple_fold_call): Adjust.
10099
10100 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10101
10102 * calls.c (precompute_arguments): Check
10103 promoted_for_signed_and_unsigned_p and set the promoted mode.
10104 (promoted_for_signed_and_unsigned_p): New function.
10105 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10106 and set the promoted mode.
10107 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10108 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10109 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10110
10111
10112 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10113
10114 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10115 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10116 (expand_call): Likewise.
10117 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10118 to get promoted mode.
10119 * combine.c (record_promoted_value): Skip > 0 comparison with
10120 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10121 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10122 of SUBREG_PROMOTED_UNSIGNED_P.
10123 (convert_modes): Likewise.
10124 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10125 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10126 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10127 SUBREG_PROMOTED_UNSIGNED_SET.
10128 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10129 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10130 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10131 SUBREG_PROMOTED_SET.
10132 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10133 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10134 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10135 of SUBREG_PROMOTED_UNSIGNED_P.
10136 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10137 (SUBREG_PROMOTED_SET): New define.
10138 (SUBREG_PROMOTED_GET): Likewise.
10139 (SUBREG_PROMOTED_SIGN): Likewise.
10140 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10141 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10142 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10143 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10144 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10145 (nonzero_bits1): Skip > 0 comparison with the results as
10146 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10147 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10148 of !SUBREG_PROMOTED_UNSIGNED_P.
10149 * simplify-rtx.c (simplify_unary_operation_1): Use new
10150 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10151 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10152 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10153 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10154
10155 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10156
10157 * ipa-devirt.c: Include gimple-pretty-print.h
10158 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10159 further tests.
10160 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10161 (get_polymorphic_call_info): Fix return value
10162 (type_change_info): New sturcture based on ipa-prop
10163 variant.
10164 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10165 based on ipa-prop variant.
10166 (extr_type_from_vtbl_ptr_store): New function
10167 based on ipa-prop variant.
10168 (record_known_type): New function.
10169 (check_stmt_for_type_change): New function.
10170 (get_dynamic_type): New function.
10171 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10172 * tree-ssa-pre.c: ipa-utils.h
10173 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10174 machinery; sanity check with ipa-prop devirtualization.
10175 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10176 polymorphic flag.
10177
10178 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10179
10180 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10181 * alias.c, cfgexpand.c, cgraphbuild.c,
10182 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10183 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10184 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10185 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10186 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10187 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10188 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10189 dse.c, except.c, gengtype.c, gimple-expr.c,
10190 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10191 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10192 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10193 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10194 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10195 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10196 pointer-set.h.
10197 * pointer-set.c: Remove file.
10198 * pointer-set.h: Remove file.
10199
10200 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10201
10202 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10203 * config/arm/types.md (f_sels, f_seld): Delete.
10204
10205 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10206
10207 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10208 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10209 (aarch64_movdi_<mode>high): Likewise.
10210 (aarch64_mov<mode>high_di): Likewise.
10211 (aarch64_movdi_<mode>low): Likewise.
10212 (aarch64_mov<mode>low_di): Likewise.
10213 (aarch64_movtilow_tilow): Likewise.
10214 Add comment explaining usage of fp,simd attributes and of
10215 TARGET_FLOAT and TARGET_SIMD.
10216
10217 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10218 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10219
10220 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10221 Use MOVN when one of the half-words is 0xffff.
10222
10223 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10224
10225 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10226
10227 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10228
10229 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10230 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10231 (rfs_str): String corresponding to RFS_* constants.
10232 (rank_for_schedule_stats_t): New typedef.
10233 (rank_for_schedule_stats): New static variable.
10234 (rfs_result): New static function.
10235 (rank_for_schedule): Track statistics for deciding heuristics.
10236 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10237 static functions.
10238 (ready_sort): Use them for debug printouts.
10239 (schedule_block): Init statistics state. Print statistics on
10240 rank_for_schedule decisions.
10241
10242 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10243
10244 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10245
10246 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10247
10248 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10249 constraint.
10250
10251 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10252
10253 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10254 function to not conflict.
10255 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10256 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10257 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10258 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10259 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10260 of pointer_map.
10261
10262 2014-08-07 Marek Polacek <polacek@redhat.com>
10263
10264 * fold-const.c (fold_binary_loc): Add folding of
10265 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10266
10267 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10268
10269 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10270 instead of type size.
10271 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10272
10273 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10274
10275 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10276 (*thumb1_movqi_insn): Likewise.
10277 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10278
10279 2014-08-07 Tom de Vries <tom@codesourcery.com>
10280
10281 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10282 (glibc_2_11_or_earlier): Remove effective-target keywords.
10283
10284 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10285
10286 * config/arm/arm.c (bdesc_2arg): Fix typo.
10287 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10288
10289 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10290
10291 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10292
10293 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10294
10295 PR debug/61923
10296 * haifa-sched.c (advance_one_cycle): Fix dump.
10297 (schedule_block): Don't advance cycle if we are already at the
10298 beginning of the cycle.
10299
10300 2014-08-06 Martin Jambor <mjambor@suse.cz>
10301
10302 PR ipa/61393
10303 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10304
10305 2014-08-06 Richard Biener <rguenther@suse.de>
10306
10307 PR lto/62034
10308 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10309 SCCs here.
10310 (lto_input_tree): Pop SCCs here.
10311
10312 2014-08-06 Richard Biener <rguenther@suse.de>
10313
10314 PR tree-optimization/61320
10315 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10316 handle misaligned loads.
10317
10318 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10319
10320 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10321 (aarch64_expand_vec_perm_const): Check for dup before zip.
10322
10323 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10324
10325 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10326 CONST_INT_P instead of GET_CODE and compare.
10327 (aarch64_select_cc_mode): Likewise.
10328 (aarch64_print_operand): Likewise.
10329 (aarch64_rtx_costs): Likewise.
10330 (aarch64_simd_valid_immediate): Likewise.
10331 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10332 (aarch64_simd_emit_pair_result_insn): Likewise.
10333
10334 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10335
10336 * gdbhooks.py (find_gcc_source_dir): New helper function.
10337 (class PassNames): New class, locating and parsing passes.def.
10338 (class BreakOnPass): New command "break-on-pass".
10339
10340 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10341
10342 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10343 getting olde.
10344
10345 2014-08-05 Richard Biener <rguenther@suse.de>
10346
10347 PR rtl-optimization/61672
10348 * emit-rtl.h (mem_attrs_eq_p): Declare.
10349 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10350 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10351 * cfgcleanup.c (merge_memattrs): Likewise.
10352 Include emit-rtl.h.
10353
10354 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10355
10356 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10357 rather than singleton vectors.
10358 (vqdmlsls_lane_s32): Likewise.
10359
10360 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10361
10362 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10363 Use VSDQ_HSI mode iterator.
10364 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10365 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10366 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10367 Use BUILTIN_VDQHS macro.
10368 (sqrdmulh_laneq): Likewise.
10369 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
10370 (vqdmlals_laneq_s32): Likewise.
10371 (vqdmlslh_laneq_s16): Likewise.
10372 (vqdmlsls_laneq_s32): Likewise.
10373 (vqdmulhh_laneq_s16): Likewise.
10374 (vqdmulhs_laneq_s32): Likewise.
10375 (vqrdmulhh_laneq_s16): Likewise.
10376 (vqrdmulhs_laneq_s32): Likewise.
10377
10378 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10379
10380 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
10381 (vmuld_laneq_f64): Likewise.
10382 (vmuls_laneq_f32): Likewise.
10383 (vmul_n_f64): Likewise.
10384 (vmuld_lane_f64): Reimplement in C.
10385 (vmuls_lane_f32): Likewise.
10386
10387 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10388
10389 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
10390 to reservation.
10391 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
10392
10393 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10394
10395 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
10396 (rbitsi2): Likewise.
10397 (*arm_rev): Set predicable and predicable_short_it attributes.
10398
10399 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10400
10401 * convert.c (convert_to_integer): Guard transformation to lrint by
10402 -fno-math-errno.
10403
10404 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10405
10406 * config/aarch64/aarch64-builtins.c
10407 (aarch64_simd_builtin_type_mode): Delete.
10408 (v8qi_UP): Remap to V8QImode.
10409 (v4hi_UP): Remap to V4HImode.
10410 (v2si_UP): Remap to V2SImode.
10411 (v2sf_UP): Remap to V2SFmode.
10412 (v1df_UP): Remap to V1DFmode.
10413 (di_UP): Remap to DImode.
10414 (df_UP): Remap to DFmode.
10415 (v16qi_UP):V16QImode.
10416 (v8hi_UP): Remap to V8HImode.
10417 (v4si_UP): Remap to V4SImode.
10418 (v4sf_UP): Remap to V4SFmode.
10419 (v2di_UP): Remap to V2DImode.
10420 (v2df_UP): Remap to V2DFmode.
10421 (ti_UP): Remap to TImode.
10422 (ei_UP): Remap to EImode.
10423 (oi_UP): Remap to OImode.
10424 (ci_UP): Map to CImode.
10425 (xi_UP): Remap to XImode.
10426 (si_UP): Remap to SImode.
10427 (sf_UP): Remap to SFmode.
10428 (hi_UP): Remap to HImode.
10429 (qi_UP): Remap to QImode.
10430 (aarch64_simd_builtin_datum): Make mode a machine_mode.
10431 (VAR1): Build builtin name.
10432 (aarch64_init_simd_builtins): Remove dead code.
10433
10434 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10435
10436 * graphite-isl-ast-to-gimple.c:
10437 (set_options): New function.
10438 (scop_to_isl_ast): Add calling of set_options.
10439
10440 2014-08-05 Jakub Jelinek <jakub@redhat.com>
10441
10442 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
10443 (analyze_iv_to_split_insn): Don't initialize them.
10444 (get_ivts_expr): Removed.
10445 (allocate_basic_variable, insert_base_initialization): Use
10446 SET_SRC instead of *get_ivts_expr.
10447 (split_iv): Use &SET_SRC instead of get_ivts_expr.
10448
10449 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10450
10451 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
10452 (translate_isl_ast_for_loop): Add checking of the
10453 flag_loop_parallelize_all.
10454 (ast_build_before_for): New function.
10455 (scop_to_isl_ast): Add checking of the
10456 flag_loop_parallelize_all.
10457 * graphite-dependences.c: Move the defenition of the
10458 scop_get_dependences from graphite-optimize-isl.c to this file.
10459 (apply_schedule_on_deps): Add checking of the ux's emptiness.
10460 (carries_deps): Add checking of the x's value.
10461 * graphite-optimize-isl.c: Move the defenition of the
10462 scop_get_dependences to graphite-dependences.c.
10463 * graphite-poly.h: Add declarations of scop_get_dependences
10464 and carries_deps.
10465
10466 2014-08-04 Rohit <rohitarulraj@freescale.com>
10467
10468 PR target/60102
10469 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
10470 names.
10471 (alt_reg_names): Likewise.
10472 (rs6000_dwarf_register_span): For SPE high registers, replace
10473 dwarf register numbers with GCC hard register numbers.
10474 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
10475 (rs6000_dbx_register_number): For SPE high registers, return dwarf
10476 register number for the corresponding GCC hard register number.
10477 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
10478 newly added GCC hard register numbers for SPE high registers.
10479 (DWARF_FRAME_REGISTERS): Likewise.
10480 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
10481 (DWARF_FRAME_REGNUM): Likewise.
10482 (FIXED_REGISTERS): Likewise.
10483 (CALL_USED_REGISTERS): Likewise.
10484 (CALL_REALLY_USED_REGISTERS): Likewise.
10485 (REG_ALLOC_ORDER): Likewise.
10486 (enum reg_class): Likewise.
10487 (REG_CLASS_NAMES): Likewise.
10488 (REG_CLASS_CONTENTS): Likewise.
10489 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
10490
10491 2014-08-04 Richard Biener <rguenther@suse.de>
10492
10493 * gimple-fold.h (gimple_fold_builtin): Remove.
10494 * gimple-fold.c (gimple_fold_builtin): Make static.
10495 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
10496 fold_stmt, not gimple_fold_builtin.
10497
10498 2014-08-04 Martin Liska <mliska@suse.cz>
10499
10500 * cgraph.h (csi_end_p): Removed.
10501 (csi_next): Likewise.
10502 (csi_node): Likewise.
10503 (csi_start): Likewise.
10504 (cgraph_node_in_set_p): Likewise.
10505 (cgraph_node_set_size): Likewise.
10506 (vsi_end_p): Likewise.
10507 (vsi_next): Likewise.
10508 (vsi_node): Likewise.
10509 (vsi_start): Likewise.
10510 (varpool_node_set_size): Likewise.
10511 (cgraph_node_set_nonempty_p): Likewise.
10512 (varpool_node_set_nonempty_p): Likewise.
10513 * cgraphunit.c (cgraph_process_new_functions): vec replaces
10514 cgraph_node_set.
10515 * ipa-inline-transform.c: Likewise.
10516 * ipa-utils.c (cgraph_node_set_new): Removed.
10517 (cgraph_node_set_add): Likewise.
10518 (cgraph_node_set_remove): Likewise.
10519 (cgraph_node_set_find): Likewise.
10520 (dump_cgraph_node_set): Likewise.
10521 (debug_cgraph_node_set): Likewise.
10522 (free_cgraph_node_set): Likewise.
10523 (varpool_node_set_new): Likewise.
10524 (varpool_node_set_add): Likewise.
10525 (varpool_node_set_remove): Likewise.
10526 (varpool_node_set_find): Likewise.
10527 (dump_varpool_node_set): Likewise.
10528 (free_varpool_node_set): Likewise.
10529 (debug_varpool_node_set): Likewise.
10530 * tree-emutls.c (struct tls_var_data):
10531 (emutls_index): Removed.
10532 (emutls_decl): Likewise.
10533 (gen_emutls_addr): Function implementation uses newly added
10534 hash_map<varpool_node *, tls_var_data>.
10535 (clear_access_vars): Likewise.
10536 (create_emultls_var): Likewise.
10537 (ipa_lower_emutls): Likewise.
10538 (reset_access): New function.
10539
10540 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10541
10542 * config/i386/i386.c (ix86_option_override_internal): Add
10543 PTA_RDRND and PTA_MOVBE for bdver4.
10544
10545 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10546 James Greenhalgh <james.greenhalgh@arm.com>
10547
10548 * doc/md.texi (clrsb): Document.
10549 (clz): Change reference to x into operand 1.
10550 (ctz): Likewise.
10551 (popcount): Likewise.
10552
10553 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10554
10555 PR target/61713
10556 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
10557 move to subtarget in serial version if result is ignored.
10558
10559 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10560 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10561
10562 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
10563 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
10564 (sched_analyze_insn): Update use of try_group_insn to
10565 sched_macro_fuse_insns.
10566 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
10567 arguments that are not conditional jumps.
10568
10569 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10570
10571 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
10572 family information. Handle BTVER2 cpu with cpuid family value.
10573
10574 2014-08-04 Tom de Vries <tom@codesourcery.com>
10575
10576 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10577 (glibc_2_11_or_earlier): Document effective-target keywords.
10578
10579 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10580
10581 * ipa-devirt.c (odr_type_warn_count): Add type.
10582 (possible_polymorphic_call_targets): Set it.
10583 (ipa_devirt): Use it.
10584
10585 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10586
10587 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
10588 Document.
10589 * ipa-devirt.c: Include hash-map.h
10590 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
10591 (clear_speculation): Break out of ...
10592 (get_class_context): ... here; speed up handling obviously useless
10593 speculations.
10594 (odr_type_warn_count, decl_warn_count): New structures.
10595 (final_warning_record): New structure.
10596 (final_warning_records): New static variable.
10597 (possible_polymorphic_call_targets): Cleanup handling of
10598 speculative info; do not build speculation when user do not care;
10599 record info about warnings when asked for.
10600 (add_decl_warning): New function.
10601 (type_warning_cmp): New function.
10602 (decl_warning_cmp): New function.
10603 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
10604 (gate): Enable pass when warnings are requested.
10605 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
10606 options.
10607
10608 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10609
10610 * hash-map.h (default_hashmap_traits::mark_key_deleted):
10611 Fix cast.
10612 (hash_map::remove): New method.
10613 (hash_map::traverse): New method.
10614 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
10615 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
10616 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
10617 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
10618 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
10619 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
10620 pointer_map.
10621
10622 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10623
10624 * hash-set.h: new File.
10625 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
10626 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
10627 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
10628 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
10629 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
10630 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
10631 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
10632 varpool.c: Use hash_set instead of pointer_set.
10633
10634 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
10635
10636 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
10637
10638 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10639
10640 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
10641 for frame access when strict_p is false.
10642
10643 2014-08-01 Renlin Li <renlin.li@arm.com>
10644 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10645
10646 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10647 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10648 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10649 Declaration.
10650 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10651 predicate.
10652 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10653 aarch64_mem_pair_offset.
10654
10655 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10656
10657 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10658 offset.
10659 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10660 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10661
10662 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
10663
10664 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10665
10666 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
10667
10668 PR regression/61510
10669 * cgraphunit.c (analyze_functions): Use get_create rather than get
10670 for decls which are clones of abstract functions.
10671
10672 2014-08-01 Martin Liska <mliska@suse.cz>
10673
10674 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10675 * ipa-prop.h (count_formal_params): Global function created from static.
10676 * ipa-prop.c (count_formal_params): Likewise.
10677 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10678 profiles for semantically equivalent functions.
10679 * passes.c (do_per_function): If we load body of a function
10680 during WPA, this condition should behave same.
10681 * varpool.c (ctor_for_folding): More tolerant assert for variable
10682 aliases created during WPA.
10683
10684 2014-08-01 Martin Liska <mliska@suse.cz>
10685
10686 * doc/invoke.texi (Options That Control Optimization): Documentation
10687 for -foptimize-strlen introduced. Optimization levels default options
10688 fixed.
10689
10690 2014-08-01 Jakub Jelinek <jakub@redhat.com>
10691
10692 * opts.c (common_handle_option): Handle -fsanitize=alignment.
10693 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10694 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10695 type to bool.
10696 * stor-layout.h (min_align_of_type): New prototype.
10697 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10698 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
10699 check.
10700 * ubsan.c: Include builtins.h.
10701 (ubsan_expand_bounds_ifn): Change return type to bool,
10702 always return true.
10703 (ubsan_expand_null_ifn): Change return type to bool, change
10704 argument to gimple_stmt_iterator *. Handle both null and alignment
10705 sanitization, take type from ckind argument's type rather than
10706 first argument.
10707 (instrument_member_call): Removed.
10708 (instrument_mem_ref): Remove t argument, add mem and base arguments.
10709 Handle both null and alignment sanitization, don't say whole
10710 struct access is member access. Build 3 argument IFN_UBSAN_NULL
10711 call instead of 2 argument.
10712 (instrument_null): Adjust instrument_mem_ref caller. Don't
10713 instrument calls here.
10714 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10715 like SANITIZE_NULL.
10716 * stor-layout.c (min_align_of_type): New function.
10717 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10718 Or it into SANITIZE_UNDEFINED.
10719 * doc/invoke.texi (-fsanitize=alignment): Document.
10720
10721 2014-07-31 Andi Kleen <ak@linux.intel.com>
10722
10723 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10724
10725 2014-07-31 Andi Kleen <ak@linux.intel.com>
10726
10727 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10728 inchash.
10729 (vn_reference_compute_hash): Dito.
10730 (vn_nary_op_compute_hash): Dito.
10731 (vn_phi_compute_hash): Dito.
10732 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10733
10734 2014-07-31 Andi Kleen <ak@linux.intel.com>
10735
10736 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10737 Rename to inchash:add_expr_commutative. Convert to inchash.
10738 (iterative_hash_hashable_expr): Rename to
10739 inchash:add_hashable_expr. Convert to inchash.
10740 (avail_expr_hash): Dito.
10741
10742 2014-07-31 Andi Kleen <ak@linux.intel.com>
10743
10744 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10745 Convert to inchash.
10746
10747 2014-07-31 Andi Kleen <ak@linux.intel.com>
10748
10749 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10750
10751 2014-07-31 Andi Kleen <ak@linux.intel.com>
10752
10753 * Makefile.in (OBJS): Add rtlhash.o
10754 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10755 (loc_checksum): Dito.
10756 (loc_checksum_ordered): Dito.
10757 (hash_loc_operands): Dito.
10758 (hash_locs): Dito.
10759 (hash_loc_list): Dito.
10760 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10761 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10762 * rtlhash.c: New file.
10763 * rtlhash.h: New file.
10764
10765 2014-07-31 Andi Kleen <ak@linux.intel.com>
10766
10767 * inchash.h (inchash): Change inchash class to namespace.
10768 (class hash): ... Rename from inchash.
10769 (add_object): Move from macro to class template.
10770 * lto-streamer-out.c (hash_tree): Change inchash
10771 to inchash::hash.
10772 * tree.c (build_type_attribute_qual_variant): Dito.
10773 (type_hash_list): Dito.
10774 (attribute_hash_list): Dito.
10775 (iterative_hstate_expr): Rename to inchash::add_expr
10776 (build_range_type_1): Change inchash to inchash::hash
10777 and use hash::add_expr.
10778 (build_array_type_1): Dito.
10779 (build_function_type): Dito
10780 (build_method_type_directly): Dito.
10781 (build_offset_type): Dito.
10782 (build_complex_type): Dito.
10783 (make_vector_type): Dito.
10784 * tree.h (iterative_hash_expr): Dito.
10785
10786 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
10787
10788 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10789
10790 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10791
10792 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10793 correct alphabetical position.
10794 (vpaddd_f64): Rewrite using builtins.
10795 (vpaddd_s64): Move to correct alphabetical position.
10796 (vpaddd_u64): New.
10797
10798 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
10799
10800 PR target/61844
10801 * config/sh/sh.c (sh_legitimate_address_p,
10802 sh_legitimize_reload_address): Handle reg+reg address modes when
10803 ALLOW_INDEXED_ADDRESS is false.
10804 * config/sh/predicates.md (general_movsrc_operand,
10805 general_movdst_operand): Likewise.
10806
10807 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10808
10809 * config/aarch64/aarch64-builtins.c
10810 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10811 BYTES_BIG_ENDIAN.
10812
10813 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10814
10815 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10816 the generated mask based on BYTES_BIG_ENDIAN.
10817 (aarch64_simd_check_vect_par_cnst_half): New.
10818 * config/aarch64/aarch64-protos.h
10819 (aarch64_simd_check_vect_par_cnst_half): New.
10820 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10821 the check out to aarch64_simd_check_vect_par_cnst_half.
10822 (vect_par_cnst_lo_half): Likewise.
10823 * config/aarch64/aarch64-simd.md
10824 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10825 (move_hi_quad_<mode>): Always generate a low mask.
10826
10827 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10828
10829 * doc/invoke.texi (AVR Options): Add documentation about
10830 __AVR_DEVICE_NAME__ built-in macro.
10831
10832 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
10833
10834 PR target/61948
10835 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10836 constraints are satisfied.
10837 (<shift>di3_neon): Likewise.
10838
10839 2014-07-31 Richard Biener <rguenther@suse.de>
10840
10841 PR tree-optimization/61964
10842 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10843 by structural equality.
10844
10845 2014-07-31 Yury Gribov <y.gribov@samsung.com>
10846
10847 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10848 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10849 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10850 New enums.
10851 * gcc.c (sanitize_spec_function): Support new option.
10852 (SANITIZER_SPEC): Remove now redundant check.
10853 * opts.c (common_handle_option): Support new option.
10854 (finish_options): Check for incompatibilities.
10855 * toplev.c (process_options): Split userspace-specific checks.
10856
10857 2014-07-31 Richard Biener <rguenther@suse.de>
10858
10859 * lto-streamer.h (struct output_block): Remove global.
10860 (struct data_in): Remove labels, num_named_labels and
10861 num_unnamed_labels.
10862 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10863 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10864
10865 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
10866
10867 PR c++/60517
10868 * common.opt (-Wreturn-local-addr): Moved from c.opt.
10869 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10870 (isolate_path): New argument to avoid inserting a trap.
10871 (find_implicit_erroneous_behaviour): Handle returning the address
10872 of a local variable.
10873 (find_explicit_erroneous_behaviour): Likewise.
10874
10875 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
10876
10877 PR lto/61868
10878 * toplev.c (init_random_seed): Move piece of code never called to
10879 set_random_seed.
10880 (set_random_seed): see above.
10881
10882 2014-07-31 Tom de Vries <tom@codesourcery.com>
10883
10884 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10885
10886 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
10887
10888 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10889 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10890
10891 2014-07-31 Richard Biener <rguenther@suse.de>
10892
10893 * data-streamer.h (streamer_write_data_stream): Declare here,
10894 renamed from ...
10895 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
10896 * lto-cgraph.c (lto_output_node): Adjust.
10897 (lto_output_varpool_node): Likewise.
10898 * data-streamer-out.c (streamer_string_index): Likewise.
10899 (streamer_write_data_stream, lto_append_block): Move from ...
10900 * lto-section-out.c (lto_output_data_stream,
10901 lto_append_block): ... here.
10902
10903 2014-07-30 Mike Stump <mikestump@comcast.net>
10904
10905 * configure.ac: Also check for popen.
10906 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10907 * configure: Regenerate.
10908 * config.in: Regenerate.
10909
10910 2014-07-30 Martin Jambor <mjambor@suse.cz>
10911
10912 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10913 parameter to gimple.
10914
10915 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10916
10917 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10918 address as second parameter to __tpf_eh_return routine.
10919
10920 2014-07-30 Jiong Wang <jiong.wang@arm.com>
10921
10922 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10923 Thumb2.
10924
10925 2014-07-30 Tom Tromey <tromey@redhat.com>
10926
10927 PR c/59855
10928 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10929 * doc/extend.texi (Type Attributes): Document designated_init
10930 attribute.
10931
10932 2014-07-30 Roman Gareev <gareevroman@gmail.com>
10933
10934 * graphite-isl-ast-to-gimple.c:
10935 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10936 (gcc_expression_from_isl_expression): Pass type to
10937 gcc_expression_from_isl_ast_expr_id.
10938
10939 2014-07-30 Richard Biener <rguenther@suse.de>
10940
10941 * lto-streamer.h (lto_write_data): New function.
10942 * langhooks.c (lhd_append_data): Do not free block.
10943 * lto-section-out.c (lto_write_data): New function writing
10944 raw data to the current section.
10945 (lto_write_stream): Adjust for langhook semantic change.
10946 (lto_destroy_simple_output_block): Write header directly.
10947 * lto-opts.c (lto_write_options): Write options directly.
10948 * lto-streamer-out.c (produce_asm): Write heaeder directly.
10949 (lto_output_toplevel_asms): Likewise.
10950 (copy_function_or_variable): Copy data directly.
10951 (write_global_references): Output index table directly.
10952 (lto_output_decl_state_refs): Likewise.
10953 (write_symbol): Write data directly.
10954 (produce_symtab): Adjust.
10955 (produce_asm_for_decls): Output header and refs directly.
10956
10957 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10958
10959 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10960 to speculative_targets
10961 (get_class_context): Fix handling of contextes without outer type;
10962 avoid matching non-polymorphic types in LTO.
10963 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10964 parameter to speculative_targetsp; handle speculation.
10965 (dump_possible_polymorphic_call_targets): Update dumping.
10966
10967 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10968
10969 * common.opt (Wodr): Enable by default.
10970
10971 2014-07-29 Olivier Hainque <hainque@adacore.com>
10972
10973 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10974
10975 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
10976
10977 PR bootstrap/61914
10978 * gengtype.c (strtoken): New function.
10979 (create_user_defined_type): Replace strtok with strtoken.
10980
10981 2014-07-29 Nathan Sidwell <nathan@acm.org>
10982
10983 * gcov-io.c (gcov_var): Make hidden.
10984 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10985 (gcov_do_dump): Declare.
10986 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10987
10988 2014-07-29 Martin Jambor <mjambor@suse.cz>
10989
10990 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10991 parameter to gimple.
10992 (sra_modify_assign): Likewise.
10993
10994 2014-07-29 Richard Biener <rguenther@suse.de>
10995
10996 PR middle-end/52478
10997 * expr.c (expand_expr_real_2): Revert last change.
10998
10999 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11000
11001 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
11002 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
11003 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
11004 call.
11005 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
11006 (contains_type_p): Forward declare.
11007 (polymorphic_call_target_hasher::hash): Hash speculative info.
11008 (polymorphic_call_target_hasher::equal): Compare speculative info.
11009 (get_class_context): Handle speuclation.
11010 (contains_type_p): Update.
11011 (get_polymorphic_call_info_for_decl): Update.
11012 (walk_ssa_copies): Break out from ...
11013 (get_polymorphic_call_info): ... here; set speculative context
11014 before giving up.
11015 * ipa-prop.c (ipa_write_indirect_edge_info,
11016 ipa_read_indirect_edge_info): Stream speculative context.
11017 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
11018 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
11019 SPECULATIVE_MAYBE_DERIVED_TYPE).
11020 (possible_polymorphic_call_targets overriders): Update.
11021 (dump_possible_polymorphic_call_targets overriders): Update.
11022 (dump_possible_polymorphic_call_target_p overriders): Update.
11023
11024 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
11025
11026 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
11027 ipa-devirt path; fix thinko there.
11028
11029 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
11030
11031 * config/i386/i386.c (ix86_return_in_memory): Replace one
11032 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
11033
11034 2014-07-28 Marek Polacek <polacek@redhat.com>
11035
11036 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
11037
11038 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
11039
11040 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
11041 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
11042 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11043 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11044 (USE_LD_AS_NEEDED): Likewise.
11045 (ASM_APP_ON): Likewise.
11046 (ASM_APP_OFF): Likewise.
11047 (TARGET_POSIX_IO): Likewise.
11048 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11049 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11050 (USE_LD_AS_NEEDED): Likewise.
11051 (ASM_APP_ON): Likewise.
11052 (ASM_APP_OFF): Likewise.
11053 (TARGET_POSIX_IO): Likewise.
11054
11055 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11056
11057 PR middle-end/61734
11058 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11059 operators other than the equality operators.
11060
11061 2014-07-28 Richard Biener <rguenther@suse.de>
11062
11063 PR middle-end/52478
11064 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11065 sure to register SImode ones, not only >= word_mode ones.
11066 * expr.c (expand_expr_real_2): When expanding -ftrapv
11067 binops do not use OPTAB_LIB_WIDEN.
11068
11069 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11070
11071 PR middle-end/61919
11072 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11073 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11074 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11075 inserting them in the insn stream.
11076
11077 2014-07-28 Marek Polacek <polacek@redhat.com>
11078
11079 PR middle-end/61913
11080 * common.opt (Wodr): Add Var.
11081
11082 2014-07-28 Richard Biener <rguenther@suse.de>
11083
11084 PR tree-optimization/61921
11085 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11086 if there is a varpool node before dereferencing it.
11087
11088 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11089
11090 * graphite-sese-to-poly.c:
11091 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11092 id of the pbb), which contains pointer to the pbb1.
11093
11094 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11095
11096 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11097
11098 * graphite-isl-ast-to-gimple.c:
11099 (graphite_create_new_guard): New function.
11100 (translate_isl_ast_node_if): New function.
11101 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11102
11103 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11104
11105 2014-07-27 Anthony Green <green@moxielogic.com>
11106
11107 * config.gcc: Add moxie-*-moxiebox* configuration.
11108 * config/moxie/moxiebox.h: New file.
11109
11110 2014-07-26 Andrew Pinski <apinski@cavium.com>
11111
11112 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11113 from the read only register.
11114
11115 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11116
11117 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11118 as the allocation class if it isn't likely to be spilled.
11119
11120 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11121
11122 * rtl.h (tls_referenced_p): Declare.
11123 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11124 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11125 (mips_cannot_force_const_mem): Use tls_referenced_p.
11126 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11127 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11128 instead of pa_tls_referenced_p.
11129 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11130 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11131 (pa_legitimate_constant_p): Likewise.
11132 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11133 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11134 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11135 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11136 rs6000_tls_referenced_p.
11137 (rs6000_tls_symbol_ref_1): Delete.
11138
11139 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11140
11141 PR target/44551
11142 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11143 Optimize inverse of a VEC_CONCAT.
11144
11145 2014-07-25 Xinliang David Li <davidxl@google.com>
11146
11147 * params.def: New parameter.
11148 * coverage.c (get_coverage_counts): Check new flag.
11149 (coverage_compute_profile_id): Check new flag.
11150 (coverage_begin_function): Check new flag.
11151 (coverage_end_function): Check new flag.
11152 * value-prof.c (coverage_node_map_initialized_p): New function.
11153 (init_node_map): Populate map with all functions.
11154 * doc/invoke.texi: Document new parameter.
11155
11156 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11157 Richard Biener <rguenther@suse.de>
11158
11159 * lto-streamer-out.c (struct sccs): Turn to ...
11160 (class DFS): ... this one; refactor the DFS walk so it can
11161 be re-done on per-SCC basis.
11162 (DFS::DFS): New constructor.
11163 (DFS::~DFS): New destructor.
11164 (hash_tree): Add new MAP argument holding in-SCC hash values;
11165 remove POINTER_TYPE hashing hack.
11166 (scc_entry_compare): Rename to ...
11167 (DFS::scc_entry_compare): ... this one.
11168 (hash_scc): Rename to ...
11169 (DFS::hash_scc): ... this one; pass output_block instead
11170 of streamer_cache; work harder to get unique and stable SCC
11171 hashes.
11172 (DFS_write_tree): Rename to ...
11173 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11174 (lto_output_tree): Update.
11175
11176 2014-07-25 Andi Kleen <ak@linux.intel.com>
11177
11178 * lto-streamer-out.c (hash_tree): Convert to inchash.
11179
11180 2014-07-25 Andi Kleen <ak@linux.intel.com>
11181
11182 * tree.c (build_type_attribute_qual_variant): Use inchash.
11183 (type_hash_list): Dito.
11184 (attribute_hash_list): Dito
11185 (iterative_hstate_expr): Dito.
11186 (iterative_hash_expr): Dito.
11187 (build_range_type_1): Dito.
11188 (build_array_type_1): Dito.
11189 (build_function_type): Dito.
11190 (build_method_type_directly): Dito.
11191 (build_offset_type): Dito.
11192 (build_complex_type): Dito.
11193 (make_vector_type): Dito.
11194 * tree.h (iterative_hash_expr): Add compat wrapper.
11195 (iterative_hstate_expr): Add.
11196
11197 2014-07-25 Andi Kleen <ak@linux.intel.com>
11198
11199 * Makefile.in (OBJS): Add inchash.o.
11200 (PLUGIN_HEADERS): Add inchash.h.
11201 * ipa-devirt.c: Include inchash.h.
11202 * lto-streamer-out.c: Dito.
11203 * tree-ssa-dom.c: Dito.
11204 * tree-ssa-pre.c: Dito.
11205 * tree-ssa-sccvn.c: Dito.
11206 * tree-ssa-tail-merge.c: Dito.
11207 * asan.c: Dito.
11208 * tree.c (iterative_hash_hashval_t): Move to ...
11209 (iterative_hash_host_wide_int): Move to ...
11210 * inchash.c: Here. New file.
11211 * tree.h (iterative_hash_hashval_t): Move to ...
11212 (iterative_hash_host_wide_int): Move to ...
11213 * inchash.h: Here. New file.
11214
11215 2014-07-25 Richard Biener <rguenther@suse.de>
11216
11217 PR middle-end/61762
11218 PR middle-end/61894
11219 * fold-const.c (native_encode_int): Add and handle offset
11220 parameter to do partial encodings of expr.
11221 (native_encode_fixed): Likewise.
11222 (native_encode_real): Likewise.
11223 (native_encode_complex): Likewise.
11224 (native_encode_vector): Likewise.
11225 (native_encode_string): Likewise.
11226 (native_encode_expr): Likewise.
11227 * fold-const.c (native_encode_expr): Add offset parameter
11228 defaulting to -1.
11229 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11230 (fold_ctor_reference): Handle all reads from tcc_constant
11231 ctors.
11232
11233 2014-07-25 Richard Biener <rguenther@suse.de>
11234
11235 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11236 as possibly unused.
11237
11238 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11239
11240 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11241
11242 2014-07-24 Kyle McMartin <kyle@redhat.com>
11243
11244 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11245
11246 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11247
11248 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11249 Add prototype.
11250 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11251 function.
11252 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11253 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11254 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11255
11256 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11257
11258 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11259 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11260 aggregate types. Instead, *all* aggregate types, except for single-
11261 element or homogeneous float/vector aggregates, are quadword-aligned
11262 if required by their type alignment. Issue -Wpsabi note when a type
11263 is now treated differently than before.
11264
11265 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11266
11267 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11268 does not fit fully into floating-point registers, and there is still
11269 space in the register parameter area, use GPRs to pass those parts
11270 of the argument. Issue -Wpsabi note if any parameter is now treated
11271 differently than before.
11272 (rs6000_arg_partial_bytes): Update.
11273
11274 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11275
11276 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11277
11278 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11279
11280 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11281 * toplev.c (initialize_rtl): Don't use it. Move previously
11282 "language-dependent" calls to...
11283 (backend_init): ...here.
11284 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11285 Assert that RTL initialization hasn't happend yet.
11286
11287 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11288
11289 PR rtl-optimization/61629
11290 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11291 they have already been initialized.
11292
11293 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11294
11295 PR middle-end/61268
11296 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11297 DECL_INCOMING_RTL and entry_parm.
11298 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11299 * calls.c (load_register_parameters): Likewise argument values.
11300 (emit_library_call_value_1, store_one_arg): Likewise argument
11301 save areas.
11302 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11303 stack slot.
11304 * explow.c (validize_mem): Modify the argument in-place.
11305
11306 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11307
11308 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11309 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11310
11311 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11312
11313 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11314 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11315
11316 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11317
11318 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11319 (aarch64_save_callee_saves): New parameter "skip_wb".
11320 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11321
11322 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11323
11324 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11325 "wb_candidate2".
11326 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11327
11328 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11329
11330 * graphite-isl-ast-to-gimple.c:
11331 (graphite_create_new_loop): Add calling of isl_id_free to properly
11332 decrement reference counts.
11333
11334 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11335
11336 2014-07-24 Martin Liska <mliska@suse.cz>
11337 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11338 function used.
11339 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11340 (rs6000_code_end): Likewise.
11341
11342 2014-07-24 Martin Liska <mliska@suse.cz>
11343
11344 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11345 symtab_node funtion used.
11346 (rs6000_xcoff_declare_object_name): Likewise.
11347
11348 2014-07-24 Martin Liska <mliska@suse.cz>
11349
11350 * cgraphunit.c (compile): Correct function used.
11351
11352 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11353
11354 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11355 as non-indexable.
11356
11357 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11358
11359 PR lto/61802
11360 * varasm.c (bss_initializer_p): Handle offlined ctors.
11361 (align_variable, get_variable_align): Likewise.
11362 (make_decl_one_only): Likewise.
11363 (default_binds_local_p_1): Likewise.
11364 (decl_binds_to_current_def_p): Likewise.
11365 (get_variable_section): Get constructor if it is offlined.
11366 (assemble_variable_contents): Sanity check that the caller
11367 streamed in the ctor in LTO.
11368
11369 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11370
11371 * graphite-isl-ast-to-gimple.c:
11372 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
11373 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
11374 isl_ast_op_pdiv_r to the different case.
11375
11376 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
11377
11378 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11379
11380 PR middle-end/61876
11381 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
11382 when flag_errno_math is on.
11383
11384 2014-07-24 Martin Liska <mliska@suse.cz>
11385
11386 * cgraph.h (varpool_node):
11387 (availability get_availability (void)):
11388 created from cgraph_variable_initializer_availability
11389 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
11390 created from: cgraph_variable_initializer_availability
11391 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
11392 (void finalize_named_section_flags (void)):
11393 created from varpool_finalize_named_section_flags
11394 (bool assemble_decl (void)): created from varpool_assemble_decl
11395 (void analyze (void)): created from varpool_analyze_node
11396 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
11397 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
11398 (void remove_initializer (void)): created from varpool_remove_initializer
11399 (tree get_constructor (void)): created from varpool_get_constructor
11400 (bool externally_visible_p (void)): created from varpool_externally_visible_p
11401 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
11402 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
11403 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
11404 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
11405 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
11406 (static bool output_variables (void)): created from varpool_output_variables
11407 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
11408 created from varpool_extra_name_alias
11409 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
11410 (static void dump_varpool (FILE *f)): created from dump_varpool
11411 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
11412 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
11413 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
11414 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
11415 (void assemble_aliases (void)): created from assemble_aliases
11416
11417 2014-07-24 Martin Liska <mliska@suse.cz>
11418
11419 * cgraph.h (symtab_node):
11420 (void register_symbol (void)): created from symtab_register_node
11421 (void remove (void)): created from symtab_remove_node
11422 (void dump (FILE *f)): created from dump_symtab_node
11423 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
11424 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
11425 (struct ipa_ref *add_reference (symtab_node *referred_node,
11426 enum ipa_ref_use use_type)): created from add_reference
11427 (struct ipa_ref *add_reference (symtab_node *referred_node,
11428 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
11429 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
11430 gimple stmt)): created from maybe_add_reference
11431 (bool semantically_equivalent_p (symtab_node *target)): created from
11432 symtab_semantically_equivalent_p
11433 (void remove_from_same_comdat_group (void)): created from
11434 remove_from_same_comdat_group
11435 (void add_to_same_comdat_group (symtab_node *old_node)): created from
11436 symtab_add_to_same_comdat_group
11437 (void dissolve_same_comdat_group_list (void)): created from
11438 symtab_dissolve_same_comdat_group_list
11439 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
11440 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
11441 created from symtab_alias_ultimate_target
11442 (inline symtab_node *next_defined_symbol (void)): created from
11443 symtab_next_defined_symbol
11444 (bool resolve_alias (symtab_node *target)): created from
11445 symtab_resolve_alias
11446 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
11447 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
11448 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
11449 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
11450 (void set_section (const char *section)): created from set_section_1
11451 (enum availability get_availability (void)): created from symtab_node_availability
11452 (void make_decl_local (void)): created from symtab_make_decl_local
11453 (bool real_symbol_p (void)): created from symtab_read_node
11454 (can_be_discarded_p (void)): created from symtab_can_be_discarded
11455 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
11456 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
11457 symtab_in_same_comdat_p;
11458 (bool address_taken_from_non_vtable_p (void)): created from
11459 address_taken_from_non_vtable_p
11460 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
11461 (static void dump_table (FILE *)): created from dump_symtab
11462 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
11463 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
11464 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
11465 symtab_used_from_object_file_p
11466 (void dump_base (FILE *)): created from dump_symtab_base
11467 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
11468 (void unregister (void)): created from symtab_unregister_node
11469 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
11470 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
11471 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
11472 symtab_nonoverwritable_alias_1
11473 * cgraph.h (cgraph_node):
11474 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
11475 created from cgraph_remove_node_and_inline_clones
11476 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
11477 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
11478 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
11479 (cgraph_node *function_symbol (enum availability *avail = NULL)):
11480 created from cgraph_function_node
11481 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
11482 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
11483 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
11484 created from cgraph_create_clone
11485 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
11486 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
11487 created from cgraph_create_virtual_clone
11488 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
11489 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
11490 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
11491 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
11492 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
11493 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
11494 created from cgraph_function_version_info
11495 (struct cgraph_function_version_info *insert_new_function_version (void)):
11496 created from insert_new_cgraph_node_version
11497 (struct cgraph_function_version_info *function_version (void)): created from
11498 get_cgraph_node_version
11499 (void analyze (void)): created from analyze_function
11500 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
11501 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
11502 tree real_alias) cgraph_add_thunk
11503 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
11504 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
11505 created from cgraph_function_or_thunk_node
11506 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
11507 created from expand_thunk
11508 (void reset (void)): created from cgraph_reset_node
11509 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
11510 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
11511 (void remove (void)): created from cgraph_remove_node
11512 (void dump (FILE *f)): created from dump_cgraph_node
11513 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
11514 (bool get_body (void)): created from cgraph_get_body
11515 (void release_body (void)): created from cgraph_release_function_body
11516 (void unnest (void)): created from cgraph_unnest_node
11517 (void make_local (void)): created from cgraph_make_node_local
11518 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
11519 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
11520 gcov_type count, int freq)): created from cgraph_create_edge
11521 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
11522 gcov_type count, int freq)): created from cgraph_create_indirect_edge
11523 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
11524 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
11525 created from cgraph_create_edge_including_clones
11526 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
11527 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
11528 (void remove_callers (void)): created from cgraph_node_remove_callers
11529 (void remove_callees (void)): created from cgraph_node_remove_callees
11530 (enum availability get_availability (void)): created from cgraph_function_body_availability
11531 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
11532 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
11533 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
11534 (void call_duplication_hooks (cgraph_node *node2)): created from
11535 cgraph_call_node_duplication_hooks
11536 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
11537 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
11538 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
11539 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
11540 (void call_function_insertion_hooks (void)):
11541 created from cgraph_call_function_insertion_hooks
11542 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
11543 (bool local_p (void)): created from cgraph_local_node
11544 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
11545 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
11546 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
11547 (inline bool only_called_directly_or_aliased_p (void)):
11548 created from cgraph_only_called_directly_or_aliased_p
11549 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
11550 created from cgraph_will_be_removed_from_program_if_no_direct_calls
11551 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
11552 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
11553 (bool can_remove_if_no_direct_calls_p (void)):
11554 created from cgraph_can_remove_if_no_direct_calls_p
11555 (inline bool has_gimple_body_p (void)):
11556 created from cgraph_function_with_gimple_body_p
11557 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
11558 (static void dump_cgraph (FILE *f)): created from dump_cgraph
11559 (static inline void debug_cgraph (void)): created from debug_cgraph
11560 (static void record_function_versions (tree decl1, tree decl2)):
11561 created from record_function_versions
11562 (static void delete_function_version (tree decl)):
11563 created from delete_function_version
11564 (static void add_new_function (tree fndecl, bool lowered)):
11565 created from cgraph_add_new_function
11566 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
11567 (static cgraph_node * create (tree decl)): created from cgraph_create_node
11568 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
11569 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
11570 (static cgraph_node *get_for_asmname (tree asmname)):
11571 created from cgraph_node_for_asm
11572 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
11573 created from cgraph_same_body_alias
11574 (static bool used_from_object_file_p_worker (cgraph_node *node,
11575 void *): new function
11576 (static bool non_local_p (cgraph_node *node, void *)):
11577 created from cgraph_non_local_node_p_1
11578 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
11579 created from verify_cgraph
11580 (static bool make_local (cgraph_node *node, void *)):
11581 created from cgraph_make_node_local
11582 (static cgraph_node *create_alias (tree alias, tree target)):
11583 created from cgraph_create_function_alias
11584 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
11585 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
11586 created from cgraph_create_edge_1
11587 * cgraph.h (varpool_node):
11588 (void remove (void)): created from varpool_remove_node
11589 (void dump (FILE *f)): created from dump_varpool_node
11590
11591 2014-07-24 Richard Biener <rguenther@suse.de>
11592
11593 PR ipa/61823
11594 * tree-ssa-structalias.c (create_variable_info_for_1):
11595 Use varpool_get_constructor.
11596 (create_variable_info_for): Likewise.
11597
11598 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11599
11600 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
11601 subtract outgoing area size when restoring stack_pointer_rtx.
11602
11603 2014-07-24 Nick Clifton <nickc@redhat.com>
11604
11605 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
11606 that operations are taking place in parallel.
11607 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
11608
11609 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
11610
11611 * omp-low.c (extract_omp_for_data): Add missing break statement.
11612
11613 2014-07-24 Richard Biener <rguenther@suse.de>
11614
11615 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
11616 * tree-inline.c (estimate_move_cost): Add speed_p parameter
11617 and adjust MOVE_RATIO query accordingly.
11618 (estimate_num_insns): Adjust callers.
11619 * ipa-prop.c (ipa_populate_param_decls): Likewise.
11620 * ipa-cp.c (gather_context_independent_values,
11621 estimate_local_effects): Likewise.
11622 * ipa-split.c (consider_split): Likewise.
11623
11624 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
11625
11626 * config/i386/driver-i386.c: Remove names of unused arguments and
11627 unnecessary unused attributes.
11628 * config/i386/host-mingw32.c: Likewise.
11629 * config/i386/i386.c: Likewise.
11630 * config/i386/winnt-stubs.c: Likewise.
11631 * config/i386/winnt.c: Likewise.
11632
11633 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11634
11635 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
11636 (aarch64_gen_loadwb_pair): New helper function.
11637 (aarch64_expand_epilogue): Simplify code using new helper functions.
11638 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
11639
11640 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11641
11642 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
11643 (aarch64_gen_storewb_pair): New helper function.
11644 (aarch64_expand_prologue): Simplify code using new helper functions.
11645 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11646
11647 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11648
11649 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11650 Rename to aarch64_save_callee_saves, remove restore code.
11651 (aarch64_restore_callee_saves): New function.
11652
11653 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11654
11655 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11656 (aarch64_save_callee_saves): New function to handle reg save
11657 for both core and vectore regs.
11658
11659 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11660
11661 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11662 (aarch64_gen_store_pair): New helper function.
11663 (aarch64_save_or_restore_callee_save_registers)
11664 (aarch64_save_or_restore_fprs): Use new helper functions.
11665
11666 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11667
11668 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11669 (aarch64_save_or_restore_callee_save_registers)
11670 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11671
11672 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11673
11674 * config/aarch64/aarch64.c
11675 (aarch64_save_or_restore_callee_save_registers)
11676 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11677
11678 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11679
11680 * config/aarch64/aarch64.c
11681 (aarch64_save_or_restore_callee_save_registers)
11682 (aarch64_save_or_restore_fprs): Remove 'increment'.
11683
11684 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11685
11686 * config/aarch64/aarch64.c
11687 (aarch64_save_or_restore_callee_save_registers)
11688 (aarch64_save_or_restore_fprs): Use register offset in
11689 cfun->machine->frame.reg_offset.
11690
11691 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11692
11693 * config/aarch64/aarch64.c
11694 (aarch64_save_or_restore_callee_save_registers)
11695 (aarch64_save_or_restore_fprs): Remove base_rtx.
11696
11697 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11698
11699 * config/aarch64/aarch64.c
11700 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11701 to 'start_offset'. Remove local variable 'start_offset'.
11702
11703 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11704
11705 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11706 type to HOST_WIDE_INT.
11707
11708 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11709
11710 * config/aarch64/aarch64.c (aarch64_expand_prologue)
11711 (aarch64_save_or_restore_fprs)
11712 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11713
11714 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11715
11716 * config/arm/t-rtems-eabi: Add
11717 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11718 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11719 mbig-endian/mthumb/march=armv7-r, and
11720 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11721 multilibs.
11722
11723 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11724 Chris Johns <chrisj@rtems.org>
11725 Joel Sherrill <joel.sherrill@oarcorp.com>
11726
11727 * config.gcc: Add nios2-*-rtems*.
11728 * config/nios2/rtems.h: New file.
11729 * gcc/config/nios2/t-rtems: New file.
11730
11731 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11732
11733 PR target/61396
11734 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11735 constant numbers, not general constants.
11736 (rs6000_expand_vector_init): Ditto.
11737
11738 2014-07-23 Nathan Sidwell <nathan@acm.org>
11739
11740 * gcov-tool.c (gcov_list): Declare here.
11741 (set_gcov_list): Remove.
11742 (gcov_output_files): Set gcov_list directly.
11743
11744 2014-07-23 Host Schirmeier <horst@schirmeier.com>
11745
11746 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11747
11748 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11749
11750 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11751 callee-saved registers are available for padding purpose
11752 and r3 is not mandatory, then prefer use those callee-saved
11753 instead of r3.
11754
11755 2014-07-23 Richard Biener <rguenther@suse.de>
11756
11757 * params.def (PARAM_MAX_COMBINE_INSNS): New.
11758 * combine.c: Include statistics.h and params.h.
11759 (combine_instructions): Guard three and four insn combines
11760 with max-combine-insns value. Record statistics for combines
11761 performed.
11762 * doc/invoke.texi (max-combine-insns): Document new param.
11763
11764 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11765
11766 * graphite-isl-ast-to-gimple.c:
11767 (translate_isl_ast_node_block): New function.
11768 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11769
11770 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11771 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11772
11773 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11774
11775 * graphite-isl-ast-to-gimple.c:
11776 (get_max_schedule_dimensions): New function.
11777 (extend_schedule): Likewise.
11778 (generate_isl_schedule): Add calling of extend_schedule and
11779 get_max_schedule_dimensions.
11780
11781 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11782
11783 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11784 (case UNSPEC): Handle UNSPEC_RBIT.
11785
11786 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11787
11788 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11789 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11790
11791 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11792
11793 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11794
11795 2014-07-22 Roman Gareev <gareevroman@gmail.com>
11796
11797 * graphite-isl-ast-to-gimple.c:
11798 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11799 (ivs_params_clear):
11800 (build_iv_mapping): New function.
11801 (translate_isl_ast_node_user): Likewise.
11802 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11803
11804 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11805 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11806 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11807
11808 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11809
11810 PR target/55701
11811 * config/arm/arm.md (setmem): New pattern.
11812 * config/arm/arm-protos.h (struct tune_params): New fields.
11813 (arm_gen_setmem): New prototype.
11814 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11815 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11816 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11817 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11818 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11819 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11820 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11821 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11822 (arm_const_inline_cost): New function.
11823 (arm_block_set_max_insns): New function.
11824 (arm_block_set_non_vect_profit_p): New function.
11825 (arm_block_set_vect_profit_p): New function.
11826 (arm_block_set_unaligned_vect): New function.
11827 (arm_block_set_aligned_vect): New function.
11828 (arm_block_set_unaligned_non_vect): New function.
11829 (arm_block_set_aligned_non_vect): New function.
11830 (arm_block_set_vect, arm_gen_setmem): New functions.
11831
11832 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11833
11834 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11835
11836 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
11837
11838 PR target/61855
11839 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11840 out of #ifdef __OPTIMIZE__.
11841
11842 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11843
11844 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11845 different trapping status if -fnon-call-exceptions is enabled.
11846
11847 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11848
11849 * expr.c (store_field): Handle VOIDmode for calls that return values
11850 in multiple locations.
11851
11852 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11853
11854 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
11855 (altivec_vsldoi_<mode>): Likewise.
11856
11857 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11858
11859 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11860 to the number of characters in the line.
11861
11862 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11863
11864 * graphite-isl-ast-to-gimple.c: Add using of
11865 build_nonstandard_integer_type instead of int128_integer_type_node.
11866
11867 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
11868
11869 * toplev.c (output_stack_usage): Adjust the location of the warning.
11870
11871 2014-07-19 Daniel Cederman <cederman@gaisler.com>
11872
11873 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11874 (*membar_storeload): Disable for LEON3.
11875
11876 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11877
11878 PR rtl-optimization/61461
11879 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11880
11881 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
11882
11883 PR target/61794
11884 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11885 Fix instruction constraint.
11886 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11887
11888 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
11889
11890 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11891
11892 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
11893
11894 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11895 GNU coding standards.
11896 (nds32_register_move_cost): Likewise.
11897 (nds32_memory_move_cost): Likewise.
11898 (nds32_address_cost): Likewise.
11899
11900 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11901
11902 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11903
11904 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
11905
11906 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11907 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11908 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11909 (HAVE_sync_compare_and_swapqi): Define.
11910 (HAVE_sync_compare_and_swaphi): Likewise.
11911 (HAVE_sync_compare_and_swapsi): Likewise.
11912
11913 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
11914
11915 * config/mips/p5600.md: Add missing cpu tests.
11916
11917 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11918
11919 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11920 (vmla_f64): Likewise.
11921 (vfms_f64): Likewise.
11922 (vmls_f64): Likewise.
11923
11924 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11925
11926 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11927 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11928
11929 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11930
11931 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11932 (vmlal_high_lane_s32): Likewise.
11933 (vmlal_high_lane_u16): Likewise.
11934 (vmlal_high_lane_u32): Likewise.
11935 (vmlsl_high_lane_s16): Likewise.
11936 (vmlsl_high_lane_s32): Likewise.
11937 (vmlsl_high_lane_u16): Likewise.
11938 (vmlsl_high_lane_u32): Likewise.
11939
11940 2014-07-17 Terry Guo <terry.guo@arm.com>
11941
11942 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11943 (alus_reg): Renamed to alus_sreg.
11944 * config/arm/arm-fixed.md: Change type of non-dsp instructions
11945 from alu_reg to alu_sreg. Change type of dsp instructions from
11946 alu_reg to alu_dsp_reg.
11947 * config/arm/thumb1.md: Likewise.
11948 * config/arm/thumb2.md: Likewise.
11949 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11950 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11951 with alu_sreg and alus_sreg.
11952 * config/arm/arm1026ejs.md (alu_op): Likewise.
11953 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11954 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11955 * config/arm/fa526.md (526_alu_op): Likewise.
11956 * config/arm/fa606te.md (606te_alu_op): Likewise.
11957 * config/arm/fa626te.md (626te_alu_op): Likewise.
11958 * config/arm/fa726te.md (726te_alu_op): Likewise.
11959 * config/arm/fmp626.md (mp626_alu_op): Likewise.
11960 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11961 alu_sreg, alu_dsp_reg and alus_sreg.
11962 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11963 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11964 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11965 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11966 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11967 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11968 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11969 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11970 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11971 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11972 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11973 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11974 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11975 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11976 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11977 alus_reg to alus_sreg.
11978
11979 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
11980
11981 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11982 infinity format.
11983
11984 2014-07-17 Richard Biener <rguenther@suse.de>
11985
11986 PR rtl-optimization/61801
11987 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11988 don't set reg_pending_barrier if it appears in a debug-insn.
11989
11990 2014-07-16 DJ Delorie <dj@redhat.com>
11991
11992 * config/rx/rx.c (rx_option_override): Fix alignment values.
11993 (rx_align_for_label): Likewise.
11994
11995 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
11996
11997 PR target/61737.
11998 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11999 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
12000 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
12001 functions.
12002 (cris_print_index, cris_print_operand, cris_constant_index_p)
12003 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
12004 (cris_address_cost): Ditto last CONSTANT_P.
12005 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
12006 callers changed. Yield cris_offsettable_symbol for non-PIC
12007 constant symbolic expressions including labels. Yield cris_unspec
12008 for all unspecs.
12009 (cris_expand_pic_call_address): New parameter MARKERP. Set its
12010 target to pic_offset_table_rtx for calls that will likely go
12011 through PLT, const0_rtx when they can't. All callers changed.
12012 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
12013 symbolic expressions to be PICified. Remove second, redundant,
12014 assert on can_create_pseudo_p returning non-zero. Use
12015 replace_equiv_address_nv, not replace_equiv_address, for final
12016 operand update.
12017 * config/cris/cris.md ("movsi"): Move variable t to pattern
12018 toplevel. Adjust assert for new cris_symbol_type member. Use
12019 CONSTANT_P instead of CONSTANT_ADDRESS_P.
12020 ("*movsi_internal") <case 9>: Make check for valid unspec operands
12021 for lapc stricter.
12022 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
12023 ("call", "call_value"): Use second incoming operand as a marker
12024 for pic-offset-table-register being used.
12025 ("*expanded_call_non_v32", "*expanded_call_v32")
12026 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
12027 second incoming operand to CALL, match cris_call_type_marker.
12028 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
12029 ("*expanded_call_side"): Ditto. Fix typo in comment.
12030 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
12031 CONSTANT_P.
12032 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
12033 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
12034 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
12035 users changed. Add members cris_offsettable_symbol and cris_unspec.
12036 (cris_symbol_type): Rename from cris_pic_symbol_type.
12037 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
12038 just CONSTANT_P.
12039 * config/cris/cris-protos.h (cris_symbol_type_of,
12040 cris_expand_pic_call_address): Adjust prototypes.
12041 (cris_legitimate_constant_p): New prototype.
12042
12043 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12044 an existing tmake_file. Don't add t-slibgcc and t-linux.
12045
12046 2014-07-17 Jason Merrill <jason@redhat.com>
12047
12048 PR c++/61623
12049 * symtab.c (symtab_remove_from_same_comdat_group): Also
12050 set_comdat_group to NULL_TREE.
12051 (verify_symtab): Fix diagnostic.
12052
12053 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12054
12055 PR target/61662
12056 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12057
12058 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12059
12060 Support location tracking for built-in macro tokens
12061 * input.h (is_location_from_builtin_token): New function declaration.
12062 * input.c (is_location_from_builtin_token): New function definition.
12063 * toplev.c (general_init): Tell libcpp what the pre-defined
12064 spelling location for built-in tokens is.
12065
12066 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12067
12068 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12069 on the FUNCTION_DECL.
12070
12071 2014-07-16 Richard Biener <rguenther@suse.de>
12072
12073 PR other/61782
12074 * doc/extend.texi (always_inline): Clarify.
12075
12076 2014-07-15 Eric Christopher <echristo@gmail.com>
12077
12078 * doc/invoke.texi (Link Options): Document -z option.
12079
12080 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12081
12082 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12083 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12084
12085 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12086
12087 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12088
12089 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12090
12091 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12092 varpool_assemble_decl.
12093 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12094 true.
12095
12096 2014-07-15 Michael Matz <matz@suse.de>
12097
12098 PR rtl-optimization/61772
12099 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12100
12101 2014-07-15 Richard Biener <rguenther@suse.de>
12102
12103 * opts.c (default_options_table): Disable bit-ccp at -Og.
12104
12105 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12106
12107 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12108
12109 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12110
12111 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12112 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12113 call langhook for unknown declaration.
12114 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12115 * tree.h (DECL_ARGUMENTS): Update.
12116 * print-tree.c (print_node): Update.
12117 * tree-core.h (tree_decl_non_common): Remove arguments.
12118 (tree_function_decl): Add arguments.
12119
12120 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12121
12122 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12123
12124 2014-07-14 Richard Biener <rguenther@suse.de>
12125
12126 PR tree-optimization/61779
12127 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12128 simplifying a condition.
12129
12130 2014-07-14 Richard Biener <rguenther@suse.de>
12131
12132 * builtins.c (c_strlen): Make only_value == 2 really only
12133 affect warning generation.
12134
12135 2014-07-14 Richard Biener <rguenther@suse.de>
12136
12137 PR tree-optimization/61757
12138 PR tree-optimization/61783
12139 PR tree-optimization/61787
12140 * tree-ssa-dom.c (record_equality): Revert canonicalization
12141 change and add comment.
12142 (propagate_rhs_into_lhs): Revert previous fix, removing
12143 loop depth restriction again.
12144
12145 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12146
12147 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12148 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12149 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12150 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12151 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12152 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12153 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12154
12155 2014-07-14 Richard Biener <rguenther@suse.de>
12156
12157 * cgraph.h (decl_in_symtab_p): Make inline.
12158
12159 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12160
12161 PR middle-end/61294
12162 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12163
12164 PR target/61656
12165 * config/i386/i386.c (classify_argument): Don't merge classes above
12166 number of words.
12167
12168 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12169
12170 * cgraph.h (symtab_node): Add nonzero_address.
12171 (decl_in_symtab_p): Break out from ...
12172 (symtab_get_node): ... here.
12173 * fold-const.c: Include cgraph.h
12174 (tree_single_nonzero_warnv_p): Use symtab to determine
12175 if symbol is non-zero.
12176 * symtab.c (symtab_node::nonzero_address): New method.
12177
12178 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12179
12180 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12181 forgotten in previous commit.
12182
12183 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12184
12185 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12186 on builtin types.
12187 * ipa-devirt.c: Include stor-layout.h and intl.h
12188 (odr_subtypes_equivalent_p): New function.
12189 (warn_odr): New function.
12190 (warn_type_mismatch): New function.
12191 (odr_types_equivalent_p): New function.
12192 (add_type_duplicate): Use it.
12193 * common.opt (Wodr): New flag.
12194 * doc/invoke.texi (Wodr): Document new warning.
12195
12196 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12197
12198 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12199 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12200 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12201 (varpool_get_constructor): Push CTORS_IN timevar.
12202 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12203
12204 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12205
12206 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12207 Remove VOID_FTYPE_PUSHORT.
12208 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12209 Change code to USHORT_FTYPE_VOID.
12210 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12211 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12212 (ix86_atomic_assign_expand_fenv): Update for
12213 __builtin_ia32_fnstsw changes.
12214 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12215 (fnstsw): Change operand 0 to nonimmediate operand.
12216
12217 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12218
12219 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12220 (varpool_get_constructor): New function.
12221 (varpool_ctor_useable_for_folding_p): Break out from ...
12222 (ctor_for_folding): ... here; use varpool_get_constructor.
12223 (varpool_assemble_decl): Likewise.
12224 * lto-streamer.h (struct output_block): Turn cgraph_node
12225 to symbol filed.
12226 (lto_input_variable_constructor): Declare.
12227 * ipa-visibility.c (function_and_variable_visibility): Use
12228 varpool_get_constructor.
12229 * cgraph.h (varpool_get_constructor): Declare.
12230 (varpool_ctor_useable_for_folding_p): New function.
12231 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12232 parameter; return error_mark_node for non-trivial constructors.
12233 (lto_write_tree_1, DFS_write_tree): Update use of
12234 get_symbol_initial_value.
12235 (output_function): Update initialization of symbol.
12236 (output_constructor): New function.
12237 (copy_function): Rename to ..
12238 (copy_function_or_variable): ... this one; handle vars too.
12239 (lto_output): Output variable sections.
12240 * lto-streamer-in.c (input_constructor): New function.
12241 (lto_read_body): Rename from ...
12242 (lto_read_body_or_constructor): ... this one; handle vars too.
12243 (lto_input_variable_constructor): New function.
12244 * ipa-prop.c (ipa_prop_write_jump_functions,
12245 ipa_prop_write_all_agg_replacement): Update.
12246 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12247 (output_cgraph_opt_summary): Set symbol to NULL.
12248
12249 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12250
12251 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12252 non-polymorphic types.
12253 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12254 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12255 of types is not polymorphic.
12256
12257 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12258
12259 * lra-constraints.c (remove_inheritance_pseudos): Process
12260 destination pseudo too.
12261
12262 2014-07-11 Rong Xu <xur@google.com>
12263
12264 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12265 commit r212448.
12266
12267 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12268
12269 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12270 * config/avr/avr-devices.c (AVR_MCU): Same.
12271 (avr_mcu_types): add text start value to end of device list.
12272 * config/avr/avr-mcus.def: Add text section start for all devices.
12273 (ata5782): Add new avr5 device.
12274 (ata5831): Same.
12275 * config/avr/avr-tables.opt: Regenerate.
12276 * config/avr/avr.h: Add declaration for text section start handler.
12277 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12278 SPEC functions.
12279 (LINK_SPEC): Include text section start handler to linker spec.
12280 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12281 pass -Ttext option to linker if the text section start for the device
12282 is not zero.
12283 * config/avr/t-multilib: Regenerate.
12284 * doc/avr-mmcu.texi: Regenerate.
12285
12286 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12287
12288 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12289 * config/rs6000/aix52.h (LINK_SPEC): Same.
12290 * config/rs6000/aix53.h (LINK_SPEC): Same.
12291 * config/rs6000/aix61.h (LINK_SPEC): Same.
12292 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12293
12294 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12295
12296 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12297 (graphite_verify): New function.
12298 (ivs_params_clear): New function.
12299 (gcc_expression_from_isl_ast_expr_id): New function.
12300 (gcc_expression_from_isl_expr_int): New function.
12301 (binary_op_to_tree): New function.
12302 (ternary_op_to_tree): New function.
12303 (unary_op_to_tree): New function.
12304 (nary_op_to_tree): New function.
12305 (gcc_expression_from_isl_expr_op): New function.
12306 (gcc_expression_from_isl_expression): New function.
12307 (graphite_create_new_loop): New function.
12308 (translate_isl_ast_for_loop): New function.
12309 (get_upper_bound): New function.
12310 (graphite_create_new_loop_guard): New function.
12311 (translate_isl_ast_node_for): New function.
12312 (translate_isl_ast): New function.
12313 (add_parameters_to_ivs_params): New function.
12314 (scop_to_isl_ast): New parameter ip.
12315 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12316
12317 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12318
12319 * config/xtensa/predicates.md (call expander): Update for
12320 DECL_SECTION_NAME being string.
12321
12322 2014-07-11 Richard Biener <rguenther@suse.de>
12323
12324 PR middle-end/61473
12325 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12326 can be implemented with a single load followed by a single store.
12327 (c_strlen): Only warn when only_value is not 2.
12328
12329 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12330
12331 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12332
12333 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12334
12335 PR target/61561
12336 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12337 (*movhi_bytes): Likewise.
12338 (*arm_movqi_insn): Likewise.
12339
12340 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12341
12342 PR target/56858
12343 * config/alpha/alpha.c: Include tree-pass.h, context.h
12344 and pass_manager.h.
12345 (pass_data_handle_trap_shadows): New pass.
12346 (pass_handle_trap_shadows::gate): New pass gate function.
12347 (make_pass_handle_trap_shadows): New function.
12348 (rest_of_handle_trap_shadows): Ditto.
12349
12350 (alpha_align_insns_1): Rename from alpha_align_insns.
12351 (pass_data_align_insns): New pass.
12352 (pass_align_insns::gate): New pass gate function.
12353 (make_pass_aling_insns): New function.
12354 (rest_of_align_insns): Ditto.
12355 (alpha_align_insns): Ditto.
12356
12357 (alpha_option_override): Declare handle_trap_shadows info
12358 and align_insns_info. Register handle_trap_shadows and align_insns
12359 passes here.
12360 (alpha_reorg): Do not call alpha_trap_shadows and
12361 alpha_align_insn from here.
12362
12363 (alpha_pad_function_end): Do not skip BARRIERs.
12364
12365 2014-07-10 Rong Xu <xur@google.com>
12366
12367 Add gcov-tool: an offline gcda profile processing tool support.
12368 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
12369 (gcov_is_error): Ditto.
12370 (gcov_read_string): Ditto.
12371 (gcov_read_sync): Ditto.
12372 * gcov-io.h: Move counter defines to gcov-counter.def.
12373 * gcov-dump.c (tag_counters): Use gcov-counter.def.
12374 * coverage.c: Ditto.
12375 * gcov-tool.c: Offline gcda profile processing tool.
12376 (unlink_gcda_file): Remove one gcda file.
12377 (unlink_profile_dir): Remove gcda files from the profile path.
12378 (gcov_output_files): Output gcda files to an output dir.
12379 (profile_merge): Merge two profiles in directory.
12380 (print_merge_usage_message): Print merge usage.
12381 (merge_usage): Print merge usage and exit.
12382 (do_merge): Driver for profile merge sub-command.
12383 (profile_rewrite): Rewrite profile.
12384 (print_rewrite_usage_message): Print rewrite usage.
12385 (rewrite_usage): Print rewrite usage and exit.
12386 (do_rewrite): Driver for profile rewrite sub-command.
12387 (print_usage): Print gcov-info usage and exit.
12388 (print_version): Print gcov-info version.
12389 (process_args): Process arguments.
12390 (main): Main routine for gcov-tool.
12391 * Makefile.in: Build and install gcov-tool.
12392 * gcov-counter.def: New file split from gcov-io.h.
12393 * doc/gcc.texi: Include gcov-tool.texi.
12394 * doc/gcov-tool.texi: Document for gcov-tool.
12395
12396 2014-07-10 Richard Biener <rguenther@suse.de>
12397
12398 PR tree-optimization/61757
12399 * tree-ssa-dom.c (loop_depth_of_name): Restore.
12400 (propagate_rhs_into_lhs): Revert part of last change.
12401
12402 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
12403
12404 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
12405 FUNCTION_DECLs.
12406
12407 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
12408
12409 PR middle-end/53590
12410 * function.c (allocate_struct_function): Revert r188667 change.
12411
12412 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
12413
12414 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
12415
12416 * doc/install.texi: Remove links to defunct package providers for
12417 Solaris.
12418
12419 2014-07-09 Tom de Vries <tom@codesourcery.com>
12420
12421 * final.c (get_call_fndecl): Declare.
12422 (self_recursive_call_p): New function.
12423 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
12424
12425 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12426
12427 * ipa-devirt.c (record_node): Walk through aliases.
12428
12429 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12430
12431 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
12432
12433 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12434
12435 Revert:
12436 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12437
12438 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12439
12440 * ipa-visibility.c (function_and_variable_visibility): Remove
12441 temporary hack disabling local aliases on AIX.
12442
12443 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12444
12445 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
12446 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
12447
12448 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12449
12450 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
12451 * rs6000/rs6000.c: Inline output of .set instruction.
12452 (declare_alias_data): New struct.
12453 (rs6000_declare_alias): New function.
12454 (rs6000_xcoff_declare_function_name): Use it.
12455 (rs6000_xcoff_declare_object_name): New function.
12456 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
12457 (ASM_OUTPUT_DEF): Turn to empty definition.
12458
12459 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12460
12461 PR bootstrap/61679
12462 * hash-table.h: use hash_table::value_type instead of
12463 Descriptor::value_type in the return types of several methods.
12464
12465 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12466
12467 * tree-pass.h (pass_data): Remove has_execute member.
12468 * passes.c (execute_one_pass): Don't check pass->has_execute.
12469 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12470 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12471 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12472 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12473 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12474 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
12475 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
12476 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
12477 gimple-low.c, gimple-ssa-isolate-paths.c,
12478 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
12479 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
12480 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
12481 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
12482 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
12483 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
12484 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
12485 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
12486 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
12487 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
12488 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
12489 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12490 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12491 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12492 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12493 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12494 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12495 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12496 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12497 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12498 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
12499 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12500 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
12501 web.c: Remove initializer for pass_data::has_execute.
12502
12503 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12504
12505 * graphite-htab.h: Use hash_map instead of hash_table.
12506 * graphite-clast-to-gimple.c: Adjust.
12507 * passes.c: Use hash_map instead of hash_table.
12508 * sese.c: Likewise.
12509 * sese.h: Remove now unused code.
12510
12511 2014-07-08 Sriraman Tallam <tmsriram@google.com>
12512
12513 PR target/61599
12514 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
12515 than zero.
12516
12517 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12518
12519 PR rtl-optimization/61673
12520 * combine.c (simplify_comparison): Test just mode's sign bit
12521 in tmode rather than the sign bit and any bits above it.
12522
12523 2014-07-08 Roman Gareev <gareevroman@gmail.com>
12524
12525 * graphite-isl-ast-to-gimple.c (generate_isl_context):
12526 Add __isl_give to the declaration.
12527 (generate_isl_schedule): Likewise.
12528 (scop_to_isl_ast): Likewise.
12529
12530 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12531
12532 * config/arm/arm.c (cortexa5_extra_costs): New table.
12533 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
12534
12535 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12536
12537 PR tree-optimization/61725
12538 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
12539 range, use range_includes_zerop_p instead of integer_zerop on
12540 vr0->min, only use log2 of max if min is not negative.
12541
12542 2014-07-08 Richard Biener <rguenther@suse.de>
12543
12544 * tree-ssa-dom.h (loop_depth_of_name): Remove.
12545 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
12546 restriction on loop depth difference.
12547 (record_equality): Likewise.
12548 (propagate_rhs_into_lhs): Likewise. Simplify condition.
12549 (loop_depth_of_name): Remove.
12550 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
12551 restriction on loop depth difference.
12552 (init_copy_prop): Likewise.
12553
12554 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12555
12556 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
12557 parameter.
12558 (walk_aliased_vdefs): Likewise.
12559 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
12560 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
12561 (detect_type_change_from_memory_writes): Check if entry was reached.
12562
12563 2014-07-08 Richard Biener <rguenther@suse.de>
12564
12565 PR tree-optimization/61681
12566 * tree-ssa-structalias.c (find_what_var_points_to): Expand
12567 NONLOCAL inside ESCAPED.
12568
12569 2014-07-08 Richard Biener <rguenther@suse.de>
12570
12571 PR tree-optimization/61680
12572 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12573 Handle properly all read-write dependences with group accesses.
12574
12575 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12576
12577 PR tree-optimization/61576
12578 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
12579 block containing reduction statement is predecessor of phi basi block.
12580
12581 2014-07-08 Marek Polacek <polacek@redhat.com>
12582
12583 PR c/60226
12584 * fold-const.c (round_up_loc): Change the parameter type.
12585 Remove assert.
12586 * fold-const.h (round_up_loc): Adjust declaration.
12587 * stor-layout.c (finalize_record_size): Check for too large types.
12588
12589 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
12590
12591 * symtab.c: Include calls.h.
12592 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
12593
12594 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
12595
12596 * config/rs6000/rs6000.c (output_vec_const_move): Handle
12597 little-endian code generation.
12598 * config/rs6000/spe.md (spe_evmergehi): Rename to...
12599 (vec_perm00_v2si): ... this. Handle little-endian code generation.
12600 (spe_evmergehilo): Rename to...
12601 (vec_perm01_v2si): ... this. Handle little-endian code generation.
12602 (spe_evmergelo): Rename to...
12603 (vec_perm11_v2si): ... this. Handle little-endian code generation.
12604 (spe_evmergelohi): Rename to...
12605 (vec_perm10_v2si): ... this. Handle little-endian code generation.
12606 (spe_evmergehi, spe_evmergehilo): New expanders.
12607 (spe_evmergelo, spe_evmergelohi): Likewise.
12608 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
12609 (*frob_tf_ti): Likewise.
12610 (*frob_<mode>_di_2): Likewise.
12611 (*frob_tf_di_8_2): Likewise.
12612 (*frob_di_<mode>): Likewise.
12613 (*frob_ti_tf): Likewise.
12614 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
12615 (*frob_ti_<mode>_8_2): Likewise.
12616 (*frob_ti_tf_2): Likewise.
12617 (mov_si<mode>_e500_subreg0): Rename to...
12618 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
12619 endianness only.
12620 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
12621 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
12622 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
12623 the big endianness only.
12624 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
12625 (*mov_si<mode>_e500_subreg0_2): Rename to...
12626 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
12627 big big endianness only.
12628 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
12629 (*mov_si<mode>_e500_subreg4): Rename to...
12630 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
12631 endianness only.
12632 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
12633 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
12634 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
12635 the big endianness only.
12636 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
12637 pattern.
12638 (*mov_si<mode>_e500_subreg4_2): Rename to...
12639 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
12640 endianness only.
12641 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
12642 (*mov_sitf_e500_subreg8): Rename to...
12643 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
12644 endianness only.
12645 (*mov_sitf_e500_subreg8_le): New instruction pattern.
12646 (*mov_sitf_e500_subreg8_2): Rename to...
12647 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
12648 endianness only.
12649 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12650 (*mov_sitf_e500_subreg12): Rename to...
12651 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
12652 endianness only.
12653 (*mov_sitf_e500_subreg12_le): New instruction pattern.
12654 (*mov_sitf_e500_subreg12_2): Rename to...
12655 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
12656 endianness only.
12657 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12658
12659 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
12660
12661 * asan.c (instrument_strlen_call): Do not instrument first byte
12662 in strlen if already instrumented.
12663
12664 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12665
12666 * config/arm/arm.opt (mwords-little-endian): Delete.
12667 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12668 of TARGET_LITTLE_WORDS.
12669 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12670 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12671 warning.
12672 * doc/invoke.texi: Remove references to -mwords-little-endian.
12673
12674 2014-07-07 Jakub Jelinek <jakub@redhat.com>
12675
12676 * expmed.c (struct init_expmed_rtl): Change all fields but
12677 pow2 and cint from struct rtx_def to rtx.
12678 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12679 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
12680 at the end again.
12681
12682 2014-07-06 Marek Polacek <polacek@redhat.com>
12683
12684 PR c/6940
12685 * doc/invoke.texi: Document -Wsizeof-array-argument.
12686
12687 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
12688
12689 * wide-int.h (wide_int_storage): Change declaration from struct
12690 to class.
12691
12692 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
12693
12694 * cgraph.c (cgraph_create_indirect_edge): Update call of
12695 get_polymorphic_call_info.
12696 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12697 (possible_polymorphic_call_targets): Add parameter call.
12698 (decl_maybe_in_construction_p): New predicate.
12699 (get_polymorphic_call_info): Add parameter call;
12700 use decl_maybe_in_construction_p.
12701 * gimple-fold.c (fold_gimple_assign): Update use of
12702 possible_polymorphic_call_targets.
12703 (gimple_fold_call): Likewise.
12704 * ipa-prop.c: Inlcude calls.h
12705 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12706 (param_type_may_change_p): New predicate.
12707 (detect_type_change_from_memory_writes): Break out from ...
12708 (detect_type_change): ... this one; use param_type_may_change_p.
12709 (detect_type_change_ssa): Use param_type_may_change_p.
12710 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12711
12712 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
12713
12714 PR target/49423
12715 * config/arm/arm-protos.h (arm_legitimate_address_p,
12716 arm_is_constant_pool_ref): Add prototypes.
12717 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12718 (arm_is_constant_pool_ref) New function.
12719 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12720 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12721 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12722 operand. Remove pool_range and neg_pool_range attributes.
12723 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12724 pool_range and neg_pool_range attributes.
12725 * config/arm/constraints.md (Uh): New constraint.
12726 (Uq): Don't allow constant pool references.
12727
12728 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
12729
12730 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12731 (move_lo_quad_internal_be_<mode>): Likewise.
12732 (move_lo_quad_<mode>): Convert to define_expand.
12733 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12734 (aarch64_simd_move_hi_quad_be_<mode>): New.
12735 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12736 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12737 (aarch64_combinez_be<mode>): New.
12738 (aarch64_combine<mode>): Convert to define_expand.
12739 (aarch64_combine_internal<mode>): New.
12740 (aarch64_simd_combine<mode>): Remove bogus RTL description.
12741
12742 2014-07-04 Tom de Vries <tom@codesourcery.com>
12743
12744 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12745 combination of earlyclobber and read/write modifiers.
12746
12747 2014-07-04 Tom de Vries <tom@codesourcery.com>
12748
12749 * config/aarch64/aarch64-simd.md
12750 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12751
12752 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
12753
12754 PR target/61714
12755 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12756
12757 2014-07-04 Jakub Jelinek <jakub@redhat.com>
12758
12759 PR middle-end/61654
12760 * cgraphunit.c (expand_thunk): Call free_dominance_info.
12761
12762 PR tree-optimization/61684
12763 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12764 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12765
12766 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12767 Kito Cheng <kito@0xlab.org>
12768 Monk Chiang <sh.chiang04@gmail.com>
12769
12770 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12771 (nds32_symbol_load_store_p): Move to ...
12772 (nds32_fp_as_gp_check_available): Move to ...
12773 * config/nds32/nds32-fp-as-gp.c: ... here.
12774 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12775 extern declaration.
12776
12777 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12778 Kito Cheng <kito@0xlab.org>
12779 Monk Chiang <sh.chiang04@gmail.com>
12780
12781 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12782 (nds32_expand_store_multiple): Move to ...
12783 (nds32_expand_movmemqi): Move to ...
12784 * config/nds32/nds32-memory-manipulation.c: ... here.
12785
12786 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12787 Kito Cheng <kito@0xlab.org>
12788 Monk Chiang <sh.chiang04@gmail.com>
12789
12790 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
12791 (nds32_output_casesi_pc_relative): Move to ...
12792 (nds32_output_casesi): Move to ...
12793 (nds32_mem_format): Move to ...
12794 (nds32_output_16bit_store): Move to ...
12795 (nds32_output_16bit_load): Move to ...
12796 (nds32_output_32bit_store): Move to ...
12797 (nds32_output_32bit_load): Move to ...
12798 (nds32_output_32bit_load_s): Move to ...
12799 (nds32_output_stack_push): Move to ...
12800 (nds32_output_stack_pop): Move to ...
12801 * config/nds32/nds32-md-auxiliary.c: ... here.
12802
12803 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12804 Ling-Hua Tseng <uranus@tinlans.org>
12805
12806 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12807 the purpose of this file.
12808
12809 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12810 Kito Cheng <kito@0xlab.org>
12811 Monk Chiang <sh.chiang04@gmail.com>
12812
12813 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12814 (nds32_address_cost): Move implementation to ...
12815 * config/nds32/nds32-cost.c: ... here.
12816 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12817 (nds32_address_cost_impl): Declare.
12818
12819 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12820 Kito Cheng <kito@0xlab.org>
12821 Monk Chiang <sh.chiang04@gmail.com>
12822
12823 * config/nds32/nds32.c
12824 (nds32_consecutive_registers_load_store_p): Move to ...
12825 (nds32_valid_multiple_load_store): Move to ...
12826 (nds32_valid_stack_push_pop): Move to ...
12827 (nds32_can_use_bclr_p): Move to ...
12828 (nds32_can_use_bset_p): Move to ...
12829 (nds32_can_use_btgl_p): Move to ...
12830 (nds32_can_use_bitci_p): Move to ...
12831 * config/nds32/nds32-predicates.c: ... here.
12832
12833 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12834 Kito Cheng <kito@0xlab.org>
12835 Monk Chiang <sh.chiang04@gmail.com>
12836
12837 * config/nds32/nds32.c
12838 (nds32_expand_builtin_null_ftype_reg): Move to ...
12839 (nds32_expand_builtin_reg_ftype_imm): Move to ...
12840 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12841 (nds32_init_builtins): Move implementation to ...
12842 (nds32_expand_builtin): Move implementation to ...
12843 * config/nds32/nds32-intrinsic.c: ... here.
12844 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12845 (nds32_expand_builtin_impl): Declare.
12846
12847 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12848 Kito Cheng <kito@0xlab.org>
12849 Monk Chiang <sh.chiang04@gmail.com>
12850
12851 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12852 (nds32_emit_section_tail_template): Move to ...
12853 (nds32_emit_isr_jmptbl_section): Move to ...
12854 (nds32_emit_isr_vector_section): Move to ...
12855 (nds32_emit_isr_reset_conten): Move to ...
12856 (nds32_check_isr_attrs_conflict): Move to ...
12857 (nds32_construct_isr_vectors_information): Move to ...
12858 (nds32_asm_file_start): Move implementation to ...
12859 (nds32_asm_file_end): Move implementation to ...
12860 * config/nds32/nds32-isr.c: ... here.
12861 * config/nds32/nds32-protos.h
12862 (nds32_check_isr_attrs_conflict): Declare.
12863 (nds32_construct_isr_vectors_information): Declare.
12864 (nds32_asm_file_start_for_isr): Declare.
12865 (nds32_asm_file_end_for_isr): Declare.
12866
12867 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12868 Kito Cheng <kito@0xlab.org>
12869 Monk Chiang <sh.chiang04@gmail.com>
12870
12871 * config.gcc (nds32*): Add new modules to extra_objs.
12872 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12873 (nds32be-*-*): Likewise.
12874 * config/nds32/nds32-cost.c: New file.
12875 * config/nds32/nds32-fp-as-gp.c: New file.
12876 * config/nds32/nds32-intrinsic.c: New file.
12877 * config/nds32/nds32-isr.c: New file.
12878 * config/nds32/nds32-md-auxiliary.c: New file.
12879 * config/nds32/nds32-memory-manipulation.c: New file.
12880 * config/nds32/nds32-pipelines-auxiliary.c: New file.
12881 * config/nds32/nds32-predicates.c: New file.
12882 * config/nds32/t-nds32: New file.
12883
12884 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12885
12886 PR tree-optimization/61682
12887 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12888 using cases and when one of the operands is equal to 1.
12889
12890 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
12891
12892 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12893 ashr<mode>3): Correct mode of operands[2].
12894 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12895 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12896 Correct mode of operands[2]. Fix split condition.
12897
12898 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
12899
12900 * arm.md (arch): Add armv6_or_vfpv3.
12901 (arch_enabled): Add test for the above.
12902 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12903 on VFP9.
12904 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12905
12906 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12907
12908 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12909 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12910 HWI 1 and negate the unsigned value.
12911 * expmed.c (expand_sdiv_pow2): For modes wider than word always
12912 use AND instead of shift.
12913 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12914
12915 2014-07-03 Marek Polacek <polacek@redhat.com>
12916
12917 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12918 (-fsanitize=float-divide-by-zero): Move to the table with
12919 -fsanitize=undefined suboptions.
12920 (-fsanitize=float-cast-overflow): Likewise.
12921
12922 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
12923
12924 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12925 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12926 endianness.
12927
12928 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12929
12930 * loop-invariant.c (struct invariant): Add a new member: eqno;
12931 (find_identical_invariants): Update eqno;
12932 (create_new_invariant): Init eqno;
12933 (get_inv_cost): Compute comp_cost with eqno;
12934
12935 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
12936
12937 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12938 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12939 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12940 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12941 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12942
12943 2014-07-02 Christian Bruel <christian.bruel@st.com>
12944
12945 PR target/29349
12946 PR target/53513
12947 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12948 (make_preds_opaque): Delete.
12949 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12950 (commit_mode_sets): New function.
12951 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12952 Process all modes at once.
12953 * basic-block.h (pre_edge_lcm_avs): Declare.
12954 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12955 Call clear_aux_for_edges. Fix comments.
12956 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12957 (pre_edge_rev_lcm): Idem.
12958 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12959 parameter.
12960 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12961 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12962 Idem.
12963 * config/i386/i386.c (x96_emit_mode_set): Idem.
12964 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12965 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
12966 (fpscr_toggle) Disallow from delay slot.
12967 * target.def (emit_mode_set): Add prev_mode parameter.
12968 * doc/tm.texi: Regenerate.
12969
12970 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12971
12972 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12973 variable i.
12974
12975 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12976
12977 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12978 vtable_pointer_value_to_vtable): Constify.
12979 (contains_polymorphic_type_p): Declare.
12980 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12981 vtable_pointer_value_to_vtable): Constify.
12982 (contains_polymorphic_type_p): New predicate.
12983 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12984 polymorphic types.
12985 (ipa_set_ancestor_jf): Likewise.
12986 (detect_type_change): Return false in easy cases.
12987 (compute_complex_assign_jump_func): Require type to contain
12988 polymorphic type.
12989 (compute_known_type_jump_func): Likewise.
12990
12991 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12992
12993 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12994 Remove.
12995 (type_in_anonymous_namespace_p): Constify argument.
12996 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12997 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12998 (main_odr_variant): New function.
12999 (hash_type_name): Make static; update assert; do not ICE on
13000 non-records.
13001 (types_same_for_odr): Bring here from tree.c; simplify and remove
13002 old structural comparing code that doesn't work for templates.
13003 (odr_hasher::equal): Update assert.
13004 (add_type_duplicate): Return true when bases should be computed;
13005 replace incomplete loader by complete; do not output duplicated
13006 warnings; do not ICE on non-records; set odr_violated flag.
13007 (get_odr_type): Be ready to replace incomplete type by complete
13008 one; work on ODR variants instead of main variants; reorder item
13009 in array so bases have still smaller indexes.
13010 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
13011 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
13012
13013 2014-07-01 Cary Coutant <ccoutant@google.com>
13014
13015 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
13016 lookup.
13017 (resolve_addr_in_expr): When replacing the rtx in a location list
13018 entry, get a new address table entry.
13019 (dwarf2out_finish): Call index_location_lists even if there are no
13020 addr_index_table entries yet.
13021
13022 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13023
13024 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
13025 change for not being obvious.
13026
13027 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
13028
13029 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
13030 unused argument.
13031
13032 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13033
13034 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
13035 (vcagt_f64): Likewise.
13036 (vcale_f64): Likewise.
13037 (vcaled_f64): Likewise.
13038 (vcales_f32): Likewise.
13039 (vcalt_f64): Likewise.
13040 (vcaltd_f64): Likewise.
13041 (vcalts_f32): Likewise.
13042
13043 2014-07-01 Marek Polacek <polacek@redhat.com>
13044
13045 * doc/invoke.texi: Document -Wint-conversion.
13046
13047 2014-07-01 Marek Polacek <polacek@redhat.com>
13048
13049 PR c/58286
13050 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13051
13052 2014-07-01 Martin Liska <mliska@suse.cz>
13053
13054 IPA REF alias refactoring
13055 * cgraph.h (iterate_direct_aliases): New function.
13056 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13057 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13058 FOR_EACH_ALIAS added.
13059 (cgraph_for_node_and_aliases): Likewise.
13060 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13061 * ipa-inline.c (reset_edge_caches): Likewise.
13062 (update_caller_keys): Likewise.
13063 * trans-mem.c (ipa_tm_execute): Likewise.
13064 *varpool.c (varpool_analyze_node): Likewise.
13065 (varpool_for_node_and_aliases): Likewise.
13066 * ipa-ref.h (first_alias): New function.
13067 (last_alias): Likewise.
13068 (has_aliases_p): Likewise.
13069 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13070 is sensitive to IPA_REF_ALIASes.
13071 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13072 are put at the beginning of the list.
13073 (symtab_node::iterate_direct_aliases): New function.
13074
13075 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13076
13077 Revert:
13078 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13079 type is complete.
13080 (write_ts_type_common_tree_pointers): Do not stream fields not set
13081 for incomplete types; do not stream duplicated fields for variants;
13082 sanity check that variant and type match.
13083 (write_ts_type_non_common_tree_pointers): Likewise.
13084 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13085 TYPE_SIZE whether type is complete.
13086 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13087 write_ts_type_common_tree_pointers
13088 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13089
13090 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13091
13092 * var-tracking.c (add_stores): Return instead of asserting if old
13093 and new values for conditional store are the same.
13094
13095 2014-06-30 Richard Henderson <rth@redhat.com>
13096
13097 PR rtl-opt/61608
13098 PR target/39284
13099 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13100 the cfg if there were any changes.
13101 * passes.def: Revert move of peephole2 after reorder_blocks;
13102 move duplicate_computed_gotos before peephole2.
13103
13104 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13105
13106 * except.c (emit_note_eh_region_end): New helper function.
13107 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13108 emit EH_REGION_END note.
13109 * jump.c (cleanup_barriers): Do not split a call and its
13110 corresponding CALL_ARG_LOCATION note.
13111
13112 2014-06-30 Jeff Law <law@redhat.com>
13113
13114 PR tree-optimization/61607
13115 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13116 deeper into the SSA_NAME_VALUE chain.
13117
13118 2014-06-30 Marek Polacek <polacek@redhat.com>
13119
13120 * convert.c (convert_to_integer): Don't instrument conversions if the
13121 function has no_sanitize_undefined attribute.
13122 * ubsan.c: Don't run the ubsan pass if the function has
13123 no_sanitize_undefined attribute.
13124
13125 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13126
13127 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13128 -fsanitize=undefined suboptions.
13129
13130 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13131
13132 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13133 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13134 against bigendian and adjust indices.
13135
13136 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13137
13138 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13139
13140 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13141
13142 PR target/61633
13143 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13144 Add alternative; make early clobber. Adjust both split patterns
13145 to use operand 0 as the working register.
13146
13147 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13148
13149 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13150 as ira_object_id_map might be NULL, or 1.
13151
13152 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13153
13154 * loop-invariant.c (get_inv_cost): Handle register class.
13155 (gain_for_invariant): Check the register pressure of the inv
13156 and its overlapped register class, other than all.
13157
13158 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13159
13160 * doc/invoke.texi (Optimize Options): Fix descriptions of
13161 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13162
13163 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13164
13165 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13166 documentation.
13167
13168 2014-06-29 Tobias Grosser <tobias@grosser.es>
13169
13170 PR bootstrap/61650
13171 * graphite-isl-ast-to-gimple.c: Add missing guards.
13172
13173 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13174
13175 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13176 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13177 * flag-types.h: Add new enum fgraphite_generator.
13178 * graphite-isl-ast-to-gimple.c: New.
13179 * graphite-isl-ast-to-gimple.h: New.
13180 * graphite.c (graphite_transform_loops): Add choice of Graphite
13181 code generator, which depends on flag_graphite_code_gen.
13182
13183 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13184
13185 * graphite-dependences.c (subtract_commutative_associative_deps):
13186 Add NULL checking of the following variables: must_raw_no_source,
13187 may_raw_no_source, must_war_no_source, may_war_no_source,
13188 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13189 must_war, may_war, must_waw, may_waw.
13190
13191 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13192
13193 * graphite-clast-to-gimple.c: gloog is renamed to
13194 graphite_regenerate_ast_cloog. gloog_error is renamed to
13195 graphite_regenerate_error.
13196 * graphite-clast-to-gimple.h: The definition of the struct
13197 bb_pbb_def is moved to graphite-htab.h.
13198 Add inclusion of the hash-table.h.
13199 * graphite-htab.h: The declaration of the function gloog is moved
13200 to graphite-clast-to-gimple.h and renamed to
13201 graphite_regenerate_ast_cloog.
13202 * graphite.c (graphite_transform_loops): gloog is renamed
13203 to graphite_regenerate_ast_cloog.
13204
13205 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13206
13207 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13208 type is complete.
13209 (write_ts_type_common_tree_pointers): Do not stream fields not set
13210 for incomplete types; do not stream duplicated fields for variants;
13211 sanity check that variant and type match.
13212 (write_ts_type_non_common_tree_pointers): Likewise.
13213 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13214 TYPE_SIZE whether type is complete.
13215 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13216 write_ts_type_common_tree_pointers
13217 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13218
13219 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13220
13221 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13222
13223 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13224
13225 * tree-inline.c (remap_type_1): Do not duplicate fields
13226 that are shared in between type and its main variant.
13227
13228 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13229
13230 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13231 of the type.
13232 (ipa_set_ancestor_jf) Likewise.
13233 (check_stmt_for_type_change): Check that we work on main variant.
13234 (detect_type_change): Look into main variant.
13235 (compute_known_type_jump_func): Check that main variant has BINFO.
13236
13237 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13238
13239 * ipa-devirt.c (set_type_binfo): New function.
13240 (add_type_duplicate): Use it.
13241 (get_odr_type): Sanity check that binfos points to main variants.
13242 (get_class_context): Be sure the context's outer_type is main variant.
13243 (contains_type_p): Walk main variant.
13244 (get_polymorphic_call_info_for_decl): Set outer_type to be
13245 main variant.
13246 (get_polymorphic_call_info): Likewise.
13247 (possible_polymorphic_call_targets): Sanity check that we operate
13248 on main variant.
13249
13250 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13251
13252 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13253
13254 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13255
13256 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13257 accidental change due to wide-int branch merge.
13258
13259 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13260
13261 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13262 compressed debug support.
13263 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13264 * configure: Regenerate.
13265 * config.in: Regenerate.
13266 * common.opt (compressed_debug_sections): New enum.
13267 (gz, gz=): New options.
13268 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13269 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13270 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13271 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13272 LINK_COMPRESS_DEBUG_SPEC.
13273 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13274 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13275 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13276 (Debugging Options): Document -gz[=type].
13277
13278 2014-06-27 Martin Jambor <mjambor@suse.cz>
13279
13280 PR ipa/61160
13281 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13282 args_to_skip, use those from node instead. Copy args_to_skip and
13283 combined_args_to_skip from node to the new thunk.
13284 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13285 (cgraph_create_virtual_clone): Moved computation of
13286 combined_args_to_skip...
13287 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13288
13289 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13290
13291 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13292 redundant diagnostic machinary.
13293
13294 2014-06-27 Richard Biener <rguenther@suse.de>
13295
13296 * tree-ssa-math-opts.c (bswap_replace): Fix
13297 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13298
13299 2014-06-27 Martin Liska <mliska@suse.cz>
13300
13301 * gimple.h (gimple_location_safe): New function introduced.
13302 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13303 of gimple_location_safe replaces gimple_location.
13304 (gimple_fold_call): Likewise.
13305 * ipa-devirt.c (ipa_devirt): Likewise.
13306 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13307 * ipa.c (walk_polymorphic_call_targets): Likewise.
13308 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13309
13310 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13311
13312 PR tree-optimization/57233
13313 PR tree-optimization/61299
13314 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13315 functions.
13316 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13317 would be lowered to scalar shifts, check if corresponding
13318 shifts and vector BIT_IOR_EXPR are supported and don't lower
13319 or lower just to narrower vector type in that case.
13320 * expmed.c (expand_shift_1): Fix up handling of vector
13321 shifts and rotates.
13322
13323 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13324
13325 PR target/61586
13326 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13327
13328 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13329
13330 * doc/invoke.texi (-fsemantic-interposition): Document.
13331 * common.opt (fsemantic-interposition): New flag.
13332 * varasm.c (decl_replaceable_p): Use it.
13333
13334 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13335
13336 PR target/61542
13337 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13338 extraction other than index 3.
13339
13340 2014-06-26 Teresa Johnson <tejohnson@google.com>
13341
13342 * doc/invoke.texi: Fix typo.
13343 * dumpfile.c: Add support for documented -fdump-* options
13344 optimized/missed/note/optall.
13345
13346 2014-06-26 Martin Jambor <mjambor@suse.cz>
13347
13348 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13349 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13350 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13351 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13352 * opts.c (default_options_optimization): Set
13353 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13354 * doc/invoke.texi (allow-load-data-races)
13355 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13356 (allow-store-data-races): Document the new default.
13357
13358 2014-06-26 Martin Jambor <mjambor@suse.cz>
13359
13360 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13361 renamed to ipa_impossible_devirt_target. Fix typo.
13362 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13363 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13364 ipa_impossible_devirt_target.
13365
13366 2014-06-26 Richard Biener <rguenther@suse.de>
13367
13368 PR tree-optimization/61607
13369 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
13370 explaining why we restrict copies on loop depth.
13371 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13372 on loop depth.
13373 (record_equivalences_from_phis): Instead add it here.
13374
13375 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
13376
13377 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
13378 (LTO_WRAPPER_OBJS): New variable.
13379 (lto-wrapper$(exeext)): Use it.
13380 * collect2.c: Include "collect-utils.h".
13381 (verbose, debug): Remove variables.
13382 (at_file_supplied): No longer static.
13383 (tool_name): New variable.
13384 (do_wait, fork_execute, maybe_unlink): Don't declare.
13385 (tool_cleanup): No longer static.
13386 (notice): Remove function.
13387 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
13388 fork_execute calls.
13389 (collect_wait, do_wait, collect_execute): Remove functions.
13390 (maybe_unlink): No longer static.
13391 * collect2.h (verbose, debug): Don't declare.
13392 (at_file_supplied): Declare.
13393 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
13394 changed.
13395 (collect_execute): Replace with implementation from collect2, plus a
13396 new arg use_atfile. All callers changed.
13397 (collect_wait): Replace with implementation from collect2.
13398 (maybe_unlink_file): Remove function.
13399 (fork_execute): Replace with implementation from collect2, plus a
13400 new arg use_atfile. All callers changed.
13401 (do_wait): Add call to utils_cleanup to the error path.
13402 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
13403 (tool_cleanup): Adjust declarations.
13404 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
13405 * tlink.c: Include "collect-utils.h".
13406 (tlink_execute): New arg use_atfile. All callers changed.
13407 (tlink_init, tlink_execute): Remove declarations.
13408
13409 * collect-utils.c (save_temps): New variable.
13410 (do_wait): Use it instead of debug. Use fatal_error.
13411 * collect-utils.h (save_temps): Declare.
13412 * collect2.c (verbose): Rename from vflag. All uses changed.
13413 (tool_cleanup): New function, copied from collect_atexit.
13414 (collect_atexit, handler): Just call it.
13415 * collect2.h (verbose): Declaration renamed from vflag.
13416 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
13417 debug.
13418
13419 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
13420 (lto-wrapper$(exeext)): Link with collect-utils.o.
13421 * collect-utils.c: New file.
13422 * collect-utils.h: New file.
13423 * lto-wrapper.c: Include "collect-utils.h".
13424 (args_name): Delete variable.
13425 (tool_name): New variable.
13426 (tool_cleanup): New function.
13427 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
13428 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
13429 (fork_execute): Remove functions.
13430
13431 2014-06-26 Nick Clifton <nickc@redhat.com>
13432
13433 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
13434
13435 * doc/extend.texi (Function Attributes): Fix typo in description
13436 of RX vector attribute.
13437
13438 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13439
13440 * config.gcc (supported_defaults): Error when passing either
13441 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
13442
13443 2014-06-26 Richard Biener <rguenther@suse.de>
13444
13445 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13446 propagating volatile pointers.
13447
13448 2014-06-26 Richard Biener <rguenther@suse.de>
13449
13450 PR tree-optimization/61607
13451 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
13452 loop if we redirected its latch edge.
13453 (thread_block_1): Do not cancel loops prematurely.
13454
13455 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
13456
13457 * toplev.c (backend_init_target): Move init_emit_regs and
13458 init_regs to...
13459 (backend_init) ... here; skip ira_init_once and backend_init_target.
13460 (target_reinit) ... and here; clear
13461 this_target_rtl->lang_dependent_initialized.
13462 (lang_dependent_init_target): Clear
13463 this_target_rtl->lang_dependent_initialized;
13464 break out rtl initialization to ...
13465 (initialize_rtl): ... here; call also backend_init_target
13466 and ira_init_once.
13467 * toplev.h (initialize_rtl): New function.
13468 * function.c: Include toplev.h
13469 (init_function_start): Call initialize_rtl.
13470 * rtl.h (target_rtl): Add target_specific_initialized,
13471 lang_dependent_initialized.
13472
13473 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
13474 Jakub Jelinek <jakub@redhat.com>
13475
13476 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
13477
13478 2014-06-25 Tom de Vries <tom@codesourcery.com>
13479
13480 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
13481
13482 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13483
13484 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
13485 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
13486 Issue a strict overflow warning if appropriate.
13487
13488 2014-06-25 Martin Liska <mliska@suse.cz>
13489
13490 IPA REF refactoring
13491 * Makefile.in: Removed header file (ipa-ref-inline.h).
13492 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
13493 called.
13494 (cgraph_speculative_call_info): Likewise.
13495 (cgraph_for_node_thunks_and_aliases): Likewise.
13496 (cgraph_for_node_and_aliases): Likewise.
13497 (verify_cgraph_node): Likewise.
13498 * cgraph.h: Batch of IPA REF functions become member functions of
13499 symtab_node: add_reference, maybe_add_reference, clone_references,
13500 clone_referring, clone_reference, find_reference,
13501 remove_stmt_references, remove_all_references,
13502 remove_all_referring, dump_references, dump_referring,
13503 has_alias_p, iterate_reference, iterate_referring.
13504 * cgraphbuild.c (record_reference): New IPA REF function used.
13505 (record_type_list): Likewise.
13506 (record_eh_tables): Likewise.
13507 (mark_address): Likewise.
13508 (mark_load): Likewise.
13509 (mark_store): Likewise.
13510 (pass_build_cgraph_edges): Likewise.
13511 (rebuild_cgraph_edge): Likewise.
13512 (cgraph_rebuild_references): Likewise.
13513 (pass_remove_cgraph_callee_edges): Likewise.
13514 * cgraphclones.c (cgraph_clone_node): Likewise.
13515 (cgraph_create_virtual_clone): Likewise.
13516 (cgraph_materialize_clone): Likewise.
13517 (cgraph_materialize_all_clones): Likewise.
13518 * cgraphunit.c (cgraph_reset_node): Likewise.
13519 (cgraph_reset_node): Likewise.
13520 (analyze_function): Likewise.
13521 (assemble_thunks_and_aliases): Likewise.
13522 (expand_function): Likewise.
13523 * ipa-comdats.c (propagate_comdat_group): Likewise.
13524 (enqueue_references): Likewise.
13525 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
13526 (create_specialized_node): Likewise.
13527 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
13528 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
13529 * ipa-inline.c (reset_edge_caches): Likewise.
13530 (update_caller_keys): Likewise.
13531 (execute): Likewise.
13532 * ipa-prop.c (remove_described_reference): Likewise.
13533 (propagate_controlled_uses): Likewise.
13534 (ipa_edge_duplication_hook): Likewise.
13535 (ipa_modify_call_arguments): Likewise.
13536 * ipa-pure-const.c (propagate_pure_const): Likewise.
13537 * ipa-ref-inline.h: Header file removed, functions moved
13538 to symtab_node class.
13539 * ipa-ref.c (remove_reference): New class member function.
13540 (cannot_lead_to_return): New class member function.
13541 (referring_ref_list): Likewise.
13542 (referred_ref_list): Likewise.
13543 Rest of functions moved to symtab_node class.
13544 * ipa-ref.h: New member functions remove_reference,
13545 cannot_lead_to_return, referring_ref_list, referred_ref_list added
13546 to ipa_ref class.
13547 ipa_ref_list class has new member functions: first_reference,
13548 first_referring, clear, nreferences.
13549 * ipa-reference.c (analyze_function): New IPA REF function used.
13550 (write_node_summary_p): Likewise.
13551 (ipa_reference_write_optimization_summary): Likewise.
13552 * ipa-split.c (split_function): Likewise.
13553 * ipa-utils.c (ipa_reverse_postorder): Likewise.
13554 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
13555 (function_and_variable_visibility): Likewise.
13556 * ipa.c (has_addr_references_p): Likewise.
13557 (process_references): Argument type changed.
13558 (symtab_remove_unreachable_nodes): New IPA REF function used.
13559 (process_references): Likewise.
13560 (set_writeonly_bit): Likewise.
13561 * lto-cgraph.c: Implementation of new symtab_node member functions
13562 that uses new IPA REF functions.
13563 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
13564 function used.
13565 * lto-streamer-out.c (output_symbol_p): Likewise.
13566 * lto-streamer.h (referenced_from_this_partition_p): Argument type
13567 changed.
13568 * symtab.c: Implementation of new IPA REF API.
13569 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
13570 (ipa_tm_create_version): Likewise.
13571 (ipa_tm_execute): Likewise.
13572 * tree-emutls.c (gen_emutls_addr): Likewise.
13573 * tree-inline.c (copy_bb): Likewise.
13574 (delete_unreachable_blocks_update_callgraph): Likewise.
13575 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
13576 (varpool_for_node_and_aliases): Likewise.
13577
13578 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13579
13580 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
13581
13582 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13583
13584 PR bootstrap/61598
13585 * fold-const.c (fold_checksum_tree): Use a hash_table of const
13586 tree_node * instead of tree_node *.
13587 (fold): Adjust.
13588 (print_fold_checksum): Likewise.
13589 (fold_check_failed): Likewise.
13590 (debug_fold_checksum): Likewise.
13591 (fold_build1_stat_loc): Likewise.
13592 (fold_build2_stat_loc): Likewise.
13593 (fold_build3_stat_loc): Likewise.
13594 (fold_build_call_array_loc): Likewise.
13595
13596 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
13597
13598 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
13599 implementation with call to...
13600 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
13601 function.
13602 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
13603 Declare.
13604
13605 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
13606
13607 PR tree-optimization/57742
13608 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
13609 after replacing the statement.
13610
13611 2014-06-25 Nick Clifton <nickc@redhat.com>
13612
13613 * config/v850/v850.c (GHS_default_section_names): Change to const
13614 char * type.
13615 (GHS_current_section_names): Likewise.
13616 (v850_insert_attributes): Do not build strings, just assign the
13617 names directly. Change the type of 'chosen_section' to const
13618 char*.
13619 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
13620 directly to the array entry.
13621 * config/v850/v850.h (GHS_default_section_names): Change to const
13622 char * type.
13623 (GHS_current_section_names): Likewise.
13624
13625 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13626
13627 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
13628 (LANG_HOOKS_DECLS): Add it.
13629 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
13630 has correct type.
13631 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
13632 * langhooks.h (struct lang_hooks_for_decls): Add
13633 omp_clause_linear_ctor hook.
13634 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
13635 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
13636 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
13637 combined simd loop use omp_clause_linear_ctor hook.
13638
13639 2014-06-24 Cong Hou <congh@google.com>
13640
13641 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
13642 pattern recognition.
13643 (type_conversion_p): PROMOTION is true if it's a type promotion
13644 conversion, and false otherwise. Return true if the given expression
13645 is a type conversion one.
13646 * tree-vectorizer.h: Adjust the number of patterns.
13647 * tree.def: Add SAD_EXPR.
13648 * optabs.def: Add sad_optab.
13649 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13650 * expr.c (expand_expr_real_2): Likewise.
13651 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13652 * gimple.c (get_gimple_rhs_num_ops): Likewise.
13653 * optabs.c (optab_for_tree_code): Likewise.
13654 * tree-cfg.c (estimate_operator_cost): Likewise.
13655 * tree-ssa-operands.c (get_expr_operands): Likewise.
13656 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13657 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13658 * doc/generic.texi: Add document for SAD_EXPR.
13659 * doc/md.texi: Add document for ssad and usad.
13660
13661 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13662
13663 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13664 qualification in cast.
13665
13666 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
13667
13668 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13669 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13670 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13671 (tree_function_decl): ... here.
13672 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13673 streaming of vindex to ...
13674 (write_ts_function_decl_tree_pointers): ... here.
13675 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13676 Do not stream DECL_VINDEX.
13677 (lto_input_ts_function_decl_tree_pointers): Stream it here.
13678
13679 2014-06-24 Catherine Moore <clm@codesourcery.com>
13680 Sandra Loosemore <sandra@codesourcery.com>
13681
13682 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13683 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13684 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13685
13686 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13687
13688 * doc/invoke.texi (Warning Options): Remove duplicated
13689 -Wmaybe-uninitialized.
13690
13691 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13692
13693 PR tree-optimization/57742
13694 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13695 (handle_builtin_malloc, handle_builtin_memset): New functions.
13696 (strlen_optimize_stmt): Call them.
13697 * passes.def: Move strlen after loop+dom but before vrp.
13698
13699 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR target/61570
13702 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13703 model family 6 CPU with has_longmode never use a CPU without
13704 64-bit support.
13705
13706 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
13707
13708 PR target/61570
13709 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13710 the last change.
13711
13712 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13713
13714 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13715 * dominance.c (iterate_fix_dominators): Use hash_map instead of
13716 pointer_map.
13717 * hash-map.h: New file.
13718 * ipa-comdats.c: Use hash_map instead of pointer_map.
13719 * ipa.c: Likewise.
13720 * lto-section-out.c: Adjust.
13721 * lto-streamer.h: Replace pointer_map with hash_map.
13722 * symtab.c (verify_symtab): Likewise.
13723 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13724 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13725 * tree-streamer.h: Likewise.
13726 * tree-streamer.c: Adjust.
13727 * pointer-set.h: Remove pointer_map.
13728
13729 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13730
13731 * hash-table.h: Add a template arg to choose between storing values
13732 and storing pointers to values, and then provide partial
13733 specializations for both.
13734 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13735 should store, not the type values should point to.
13736 * tree-into-ssa.c (var_info_hasher): Likewise.
13737 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13738 * tree-complex.c: Adjust.
13739 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13740 table instead of int_tree_map *.
13741 * tree-parloops.c: Adjust.
13742 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13743 type is being stored.
13744 * tree-vectorizer.c: Adjust.
13745
13746 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13747
13748 * hash-table.h: Remove a layer of indirection from hash_table so that
13749 it contains the hash table's data instead of a pointer to the data.
13750 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13751 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13752 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13753 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13754 fold-const.c, gcse.c, ggc-common.c,
13755 gimple-ssa-strength-reduction.c, gimplify.c,
13756 graphite-clast-to-gimple.c, graphite-dependences.c,
13757 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13758 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13759 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13760 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13761 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13762 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13763 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13764 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13765 tree-ssa-live.c, tree-ssa-loop-im.c,
13766 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13767 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13768 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13769 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13770 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13771 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13772 vtable-verify.c, vtable-verify.h: Adjust.
13773
13774 2014-06-24 Richard Biener <rguenther@suse.de>
13775
13776 PR tree-optimization/61572
13777 * tree-ssa-sink.c (statement_sink_location): Do not sink
13778 loads from hard registers.
13779
13780 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13781
13782 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13783 not mentioned in clauses use private clause if the iterator is
13784 declared in #pragma omp for simd, and when adding lastprivate
13785 instead, add it to the outer #pragma omp for too. Diagnose
13786 if the variable is private in outer context. For simd collapse > 1
13787 loops, replace all iterators with temporaries.
13788 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13789 same even in collapse > 1 loops.
13790
13791 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13792 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13793 non-NULL.
13794 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13795 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13796 non-NULL.
13797 (gimplify_adjust_omp_clauses): Likewise.
13798 * omp-low.c (lower_rec_simd_input_clauses,
13799 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13800 safelen the same as safelen(1).
13801 * tree-nested.c (convert_nonlocal_omp_clauses,
13802 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
13803 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13804 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13805 Fixup handling of GIMPLE_OMP_TARGET.
13806 (convert_tramp_reference_stmt, convert_gimple_call): Handle
13807 GIMPLE_OMP_TARGET.
13808
13809 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
13810
13811 PR tree-optimization/61554
13812 * tree-ssa-propagate.c: Include "bitmap.h".
13813 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13814 properly update constructor/destructor.
13815 (substitute_and_fold_dom_walker::before_dom_children):
13816 Remove call to gimple_purge_dead_eh_edges, add bb->index to
13817 need_eh_cleaup instead.
13818 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13819 need_eh_cleanup.
13820
13821 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13822
13823 * varpool.c (dump_varpool_node): Dump used_by_single_function.
13824 * tree-pass.h (make_pass_ipa_single_use): New pass.
13825 * cgraph.h (used_by_single_function): New flag.
13826 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13827 Stream it.
13828 * passes.def (pass_ipa_single_use): Scedule.
13829 * ipa.c (BOTTOM): New macro.
13830 (meet): New function
13831 (propagate_single_user): New function.
13832 (ipa_single_use): New function.
13833 (pass_data_ipa_single_use): New pass.
13834 (pass_ipa_single_use): New pass.
13835 (pass_ipa_single_use::gate): New gate.
13836 (make_pass_ipa_single_use): New function.
13837
13838 2014-06-23 Kai Tietz <ktietz@redhat.com>
13839
13840 PR target/39284
13841 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13842 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13843
13844 2014-06-23 Richard Biener <rguenther@suse.de>
13845
13846 * tree-ssa-loop.c (gate_loop): New function.
13847 (pass_tree_loop::gate): Call it.
13848 (pass_data_tree_no_loop, pass_tree_no_loop,
13849 make_pass_tree_no_loop): New.
13850 * tree-vectorizer.c: Include tree-scalar-evolution.c
13851 (pass_slp_vectorize::execute): Initialize loops and SCEV if
13852 required.
13853 (pass_slp_vectorize::clone): New method.
13854 * timevar.def (TV_TREE_NOLOOP): New.
13855 * tree-pass.h (make_pass_tree_no_loop): Declare.
13856 * passes.def (pass_tree_no_loop): New pass group with
13857 SLP vectorizer.
13858
13859 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
13860
13861 PR target/61570
13862 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13863 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13864
13865 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13866
13867 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13868 "yes" where needed.
13869
13870 2014-06-23 Alan Modra <amodra@gmail.com>
13871
13872 PR bootstrap/61583
13873 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13874 to zero on debug statements.
13875
13876 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13877
13878 PR target/60825
13879 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13880 Ignore third operand if present by marking qualifier_internal.
13881
13882 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13883
13884 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13885 vector extension.
13886 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13887 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13888 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13889 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13890 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13891 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13892 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13893 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13894 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13895 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13896 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13897 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13898 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13899 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13900 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13901 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13902 logic in GCC vector extensions
13903
13904 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13905 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13906 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13907 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13908 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13909 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13910 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13911 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13912 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13913 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13914
13915 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13916
13917 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13918 extensions.
13919
13920 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13921 (vget_low_s64): Use __GET_LOW macro.
13922 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13923 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13924 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13925 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13926 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13927
13928 (vcombine_s64): Use GCC vector extensions; remove cast.
13929 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13930 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13931 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13932 Fix type signature; remove cast.
13933
13934 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13935
13936 PR target/60825
13937 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13938 V1DFmode.
13939 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13940 add V1DFmode
13941 (BUILTIN_VD1): New.
13942 (BUILTIN_VD_RE): Remove.
13943 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13944 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13945 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13946 variant but not df.
13947 (vreinterpretv1df*, vreinterpret*v1df): New.
13948 (vreinterpretdf*, vreinterpret*df): Remove.
13949 * config/aarch64/aarch64-simd.md (aarch64_create,
13950 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13951 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13952 (VD1): New.
13953 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13954 (vcreate_f64): Remove cast, use v1df builtin.
13955 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13956 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13957 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13958 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13959 vmov_n_f64, vst1_f64): Use gcc vector extensions.
13960 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13961 add range check using __builtin_aarch64_im_lane_boundsi.
13962 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13963 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13964 type signature, use gcc vector extensions.
13965 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13966 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13967 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13968 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13969 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13970 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13971 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13972 vreinterpret_u64_f64): Use v1df builtin not df.
13973
13974 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13975
13976 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13977 vector registers.
13978
13979 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13980
13981 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13982 priority directly.
13983
13984 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13985
13986 * loop-invariant.c (pre_check_invariant_p): New function.
13987 (find_invariant_insn): Call pre_check_invariant_p.
13988
13989 2014-06-22 Richard Henderson <rth@redhat.com>
13990
13991 PR target/61565
13992 * compare-elim.c (struct comparison): Add eh_note.
13993 (find_comparison_dom_walker::before_dom_children): Don't eliminate
13994 a redundant comparison in a different EH region. Purge EH edges if
13995 necessary.
13996
13997 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13998
13999 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
14000 (var_shift): Use it.
14001 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
14002 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14003 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14004 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14005 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14006 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
14007 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
14008 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
14009 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
14010 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
14011 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
14012 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
14013 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
14014 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
14015 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
14016 *rotldi3_internal15be): Use the new attribute. Merge register and
14017 integer alternatives.
14018
14019 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14020
14021 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
14022 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
14023 split, *ashrdi3_internal3 and split): Delete, merge into...
14024 (ashr<mode>3): New expander.
14025 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
14026 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
14027
14028 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14029
14030 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
14031 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
14032 *rotldi3_internal3 and split): Delete, merge into...
14033 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
14034 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
14035 Use "rotlw" extended mnemonic.
14036
14037 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14038
14039 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
14040 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
14041 and split, *ashldi3_internal3 and split): Delete, merge into...
14042 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14043 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14044
14045 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14046
14047 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14048 (lshrsi3, two anonymous define_insns and define_splits,
14049 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14050 *lshrdi3_internal3 and split): Delete, merge into...
14051 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14052 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14053
14054 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14055
14056 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14057 Remove "O" alternative.
14058
14059 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14060
14061 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14062 (mips_move_from_gpr_cost): Likewise.
14063 (mips_register_move_cost): Update accordingly.
14064 (mips_secondary_reload_class): Remove name of in_p.
14065
14066 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14067
14068 PR target/61503
14069 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14070 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14071
14072 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14073
14074 * config/nios2/nios2.c: Include "builtins.h".
14075
14076 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14077
14078 * cgraph.h (tls_model_names): New variable.
14079 * print-tree.c (print_node): Simplify.
14080 * varpool.c (tls_model_names): New variable.
14081 (dump_varpool_node): Output tls model.
14082
14083 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14084
14085 * ipa-visibility.c (function_and_variable_visibility): Disable
14086 temporarily local aliases for some targets.
14087
14088 2014-06-20 Marek Polacek <polacek@redhat.com>
14089
14090 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14091 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14092 into SANITIZE_UNDEFINED.
14093 * doc/invoke.texi: Describe -fsanitize=bounds.
14094 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14095 functions created in the FEs.
14096 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14097 (expand_UBSAN_BOUNDS): New function.
14098 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14099 * internal-fn.h: Don't define internal functions here.
14100 * opts.c (common_handle_option): Add -fsanitize=bounds.
14101 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14102 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14103 * tree-core.h: Define internal functions here.
14104 (struct tree_base): Add ifn field.
14105 * tree-pretty-print.c: Include "internal-fn.h".
14106 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14107 * tree.c (get_callee_fndecl): Likewise.
14108 (build_call_expr_internal_loc): New function.
14109 * tree.def (CALL_EXPR): Update description.
14110 * tree.h (CALL_EXPR_IFN): Define.
14111 (build_call_expr_internal_loc): Declare.
14112 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14113 types.
14114 (ubsan_type_descriptor): Change bool parameter to enum
14115 ubsan_print_style. Adjust the code. Add handling of
14116 UBSAN_PRINT_ARRAY.
14117 (ubsan_expand_bounds_ifn): New function.
14118 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14119 (ubsan_build_overflow_builtin): Likewise.
14120 (instrument_bool_enum_load): Likewise.
14121 (ubsan_instrument_float_cast): Likewise.
14122 * ubsan.h (enum ubsan_print_style): New enum.
14123 (ubsan_expand_bounds_ifn): Declare.
14124 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14125
14126 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14127
14128 * config/rs6000/rs6000.md: Append `DONE' to preparation
14129 statements of `bswap' pattern splitters.
14130
14131 2014-06-20 Tom de Vries <tom@codesourcery.com>
14132
14133 * target.def (call_fusage_contains_non_callee_clobbers): Update
14134 definition.
14135 * doc/tm.texi: Regenerate.
14136
14137 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14138 Max Ostapenko <m.ostapenko@partner.samsung.com>
14139
14140 PR sanitizer/61547
14141 * asan.c (instrument_strlen_call): Fixed instrumentation of
14142 trailing byte.
14143
14144 2014-06-20 Martin Jambor <mjambor@suse.cz>
14145
14146 PR ipa/61540
14147 * ipa-prop.c (impossible_devirt_target): New function.
14148 (try_make_edge_direct_virtual_call): Use it, also instead of
14149 asserting.
14150
14151 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14152 Max Ostapenko <m.ostapenko@partner.samsung.com>
14153
14154 PR sanitizer/61530
14155 * asan.c (build_check_stmt): Add condition.
14156
14157 2014-06-20 Martin Jambor <mjambor@suse.cz>
14158
14159 PR ipa/61211
14160 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14161 expanded clones.
14162
14163 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14164
14165 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14166 Update comments.
14167 (VCONQ): Make comment more helpful.
14168 (VCON): Delete.
14169 * config/aarch64/aarch64-simd.md
14170 (aarch64_sqdmulh_lane<mode>):
14171 Use VCOND for operands 2. Update lane checking and flipping logic.
14172 (aarch64_sqrdmulh_lane<mode>): Likewise.
14173 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14174 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14175 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14176 attribute of operand 3 to VCOND.
14177 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14178 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14179 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14180 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14181 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14182 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14183 define_insn.
14184 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14185 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14186 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14187 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14188 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14189 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14190 operand to VCOND. Update lane flipping and bounds checking logic.
14191 (aarch64_sqdmlal2_lane<mode>): Likewise.
14192 (aarch64_sqdmlsl_lane<mode>): Likewise.
14193 (aarch64_sqdmull_lane<mode>): Likewise.
14194 (aarch64_sqdmull2_lane<mode>): Likewise.
14195 (aarch64_sqdmlal_laneq<mode>):
14196 Replace VCON usage with VCONQ.
14197 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14198 (aarch64_sqdmlal2_laneq<mode>): Emit
14199 aarch64_sqdmlal2_laneq<mode>_internal insn.
14200 Replace VCON with VCONQ.
14201 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14202 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14203 (aarch64_sqdmull_laneq<mode>): Emit
14204 aarch64_sqdmull_laneq<mode>_internal insn.
14205 Replace VCON with VCONQ.
14206 (aarch64_sqdmull2_laneq<mode>): Emit
14207 aarch64_sqdmull2_laneq<mode>_internal insn.
14208 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14209 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14210 of 3rd argument to int16x4_t.
14211 (vqdmlalh_lane_s16): Likewise.
14212 (vqdmlslh_lane_s16): Likewise.
14213 (vqdmull_high_lane_s16): Likewise.
14214 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14215 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14216 (vqdmlsl_lane_s16): Likewise.
14217 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14218 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14219 (vqdmlals_lane_s32): Likewise.
14220 (vqdmlsls_lane_s32): Likewise.
14221 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14222 (vqdmulls_lane_s32): Likewise.
14223 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14224 (vqdmlsl_lane_s32): Likewise.
14225 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14226 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14227 (vqrdmulhh_lane_s16): Likewise.
14228 (vqdmlsl_high_lane_s16): Likewise.
14229 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14230 (vqdmlsl_high_lane_s32): Likewise.
14231 (vqrdmulhs_lane_s32): Likewise.
14232
14233 2014-06-20 Tom de Vries <tom@codesourcery.com>
14234
14235 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14236 get_call_reg_set_usage.
14237
14238 2014-06-20 Tom de Vries <tom@codesourcery.com>
14239
14240 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14241 it contains all call_used_regs.
14242
14243 2014-06-20 Tom de Vries <tom@codesourcery.com>
14244
14245 * final.c (collect_fn_hard_reg_usage): Add and use variable
14246 function_used_regs.
14247
14248 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14249
14250 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14251 (set_init_priority, get_init_priority, set_fini_priority,
14252 get_fini_priority): New methods.
14253 * tree.c (init_priority_for_decl): Remove.
14254 (init_ttree): Do not initialize init priority.
14255 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14256 (decl_priority_info): Remove.
14257 (decl_init_priority_insert): Rewrite.
14258 (decl_fini_priority_insert): Rewrite.
14259 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14260 tree_priority_map_marked_p): Remove.
14261 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14262 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14263 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14264 not output priorities.
14265 (pack_ts_function_decl_value_fields): Likewise.
14266 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14267 not input priorities.
14268 (unpack_ts_function_decl_value_fields): Likewise.
14269 * symtab.c (symbol_priority_map): Declare.
14270 (init_priority_hash): Declare.
14271 (symtab_unregister_node): Unregister from priority hash, too.
14272 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14273 New methods.
14274 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14275 (symbol_priority_info): New function.
14276 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14277 New methods.
14278 * tree-core.h (tree_priority_map): Remove.
14279
14280 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14281
14282 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14283 0xff to uint64_t before shifting it up.
14284
14285 2014-06-20 Julian Brown <julian@codesourcery.com>
14286 Chung-Lin Tang <cltang@codesourcery.com>
14287
14288 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14289 TARGET_THUMB1_ONLY. Add comments.
14290
14291 2014-06-19 Tom de Vries <tom@codesourcery.com>
14292
14293 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14294 return type to void.
14295 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14296
14297 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14298
14299 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14300 as "move", from depends_on.
14301
14302 2014-06-19 Terry Guo <terry.guo@arm.com>
14303
14304 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14305 stage.
14306
14307 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14308
14309 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14310 Remove cr5.
14311 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14312
14313 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14314
14315 PR target/61550
14316 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14317 addresses here if reload in progress or completed.
14318
14319 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14320
14321 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14322 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14323 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14324 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14325 (mips_register_priority): New function that implements the target
14326 hook TARGET_REGISTER_PRIORITY.
14327 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14328 (mips_lra_p): Likewise for TARGET_LRA_P.
14329 (TARGET_REGISTER_PRIORITY): Define macro.
14330 (TARGET_SPILL_CLASS): Likewise.
14331 (TARGET_LRA_P): Likewise.
14332 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14333 classes.
14334 (REG_CLASS_NAMES): Likewise.
14335 (REG_CLASS_CONTENTS): Likewise.
14336 (BASE_REG_CLASS): Use M16_SP_REGS.
14337 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14338 New set attribute to enable alternatives depending on the register
14339 allocator used.
14340 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14341 (*lea64): Disable pattern for MIPS16.
14342 * config/mips/mips.opt (mlra): New option.
14343
14344 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14345
14346 * lra-constraints.c (base_to_reg): New function.
14347 (process_address): Use new function.
14348
14349 2014-06-18 Tom de Vries <tom@codesourcery.com>
14350
14351 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14352 * config/aarch64/aarch64.c
14353 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14354 (aarch64_emit_call_insn): New function.
14355 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14356 of emit_call_insn.
14357 * config/aarch64/aarch64.md (define_expand "call_internal")
14358 (define_expand "call_value_internal", define_expand "sibcall_internal")
14359 (define_expand "sibcall_value_internal"): New.
14360 (define_expand "call", define_expand "call_value")
14361 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14362 expand variant and aarch64_emit_call_insn.
14363
14364 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14365 Tom de Vries <tom@codesourcery.com>
14366
14367 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
14368 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14369 Redefine to true.
14370 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
14371 clobbers to CALL_INSN_FUNCTION_USAGE.
14372 (define_expand "sibcall_internal")
14373 (define_expand "sibcall_value_internal"): New.
14374 (define_expand "call", define_expand "call_value"): Add argument to
14375 arm_emit_call_insn.
14376 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
14377 (define_expand "sibcall_value"): Use sibcall_value_internal and
14378 arm_emit_call_insn.
14379
14380 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14381
14382 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
14383
14384 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14385
14386 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
14387 __udivmoddi4.
14388
14389 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14390
14391 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
14392 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
14393 annotations. Fix DWARF information.
14394
14395 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14396
14397 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
14398 __udivmoddi4, and fixups for negative operands.
14399
14400 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14401
14402 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
14403
14404 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14405
14406 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
14407 to __udivmoddi4.
14408
14409 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14410
14411 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
14412 manipulation.
14413
14414 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14415
14416 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
14417 describing register usage on function entry and exit.
14418
14419 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14420
14421 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
14422 (__aeabi_ldivmod): Fix whitespace.
14423
14424 2014-06-18 Andreas Schwab <schwab@suse.de>
14425
14426 * doc/md.texi (Standard Names): Use @itemx for grouped items.
14427 Remove blank line after @item.
14428
14429 2014-06-18 Richard Henderson <rth@redhat.com>
14430
14431 PR target/61545
14432 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
14433
14434 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14435
14436 * config/arm/arm.c (neon_vector_mem_operand): Allow register
14437 POST_MODIFY for neon loads and stores.
14438 (arm_print_operand): Output post-index register for neon loads and
14439 stores.
14440
14441 2014-06-18 Richard Biener <rguenther@suse.de>
14442
14443 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
14444
14445 2014-06-18 Richard Biener <rguenther@suse.de>
14446
14447 * tree-pass.h (make_pass_dce_loop): Remove.
14448 * passes.def: Replace pass_dce_loop with pass_dce.
14449 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
14450 changed free niter estimates and reset the scev cache.
14451 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
14452 make_pass_dce_loop): Remove.
14453 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
14454 (fini_copy_prop): Return whether something changed. Always
14455 let substitute_and_fold perform DCE and free niter estimates
14456 and reset the scev cache if so.
14457 (execute_copy_prop): If sth changed schedule cleanup-cfg.
14458 (pass_data_copy_prop): Do not unconditionally schedule
14459 cleanup-cfg or update-ssa.
14460
14461 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14462
14463 PR tree-optimization/61518
14464 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14465 reduction var is used in reduction stmt or phi-function only.
14466
14467 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14468
14469 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
14470
14471 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14472
14473 PR tree-optimization/61517
14474 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
14475 whose rhs's first tree is the source expression instead of the
14476 expression itself.
14477 (find_bswap_or_nop): Likewise.
14478 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
14479 gimple stmt whose rhs's first tree is the source. In the memory source
14480 case, move the stmt to be replaced close to one of the original load to
14481 avoid the problem of a store between the load and the stmt's original
14482 location.
14483 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
14484 signature.
14485
14486 2014-06-18 Andreas Schwab <schwab@suse.de>
14487
14488 PR rtl-optimization/54555
14489 * postreload.c (move2add_use_add2_insn): Substitute
14490 STRICT_LOW_PART only if it is cheaper.
14491
14492 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
14493
14494 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
14495 Do not use unspec as call operand. Use memory_operand instead of
14496 memory_nox32_operand and add "m" operand constraint. Disable
14497 pattern for TARGET_X32.
14498 (*sibcall_pop_memory): Ditto.
14499 (*sibcall_value_memory): Ditto.
14500 (*sibcall_value_pop_memory): Ditto.
14501 (sibcall peepholes): Merge SImode and DImode patterns using
14502 W mode iterator. Use memory_operand instead of memory_nox32_operand.
14503 Disable pattern for TARGET_X32. Check if eliminated register is
14504 really dead after call insn. Generate call RTX without unspec operand.
14505 (sibcall_value peepholes): Ditto.
14506 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
14507 instead of memory_nox32_operand. Check if eliminated register is
14508 really dead after call insn. Generate call RTX without unspec operand.
14509 (sibcall_value_pop peepholes): Ditto.
14510 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
14511
14512 2014-06-18 Terry Guo <terry.guo@arm.com>
14513
14514 PR target/61544
14515 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
14516 reach the head.
14517
14518 2014-06-18 Olivier Hainque <hainque@adacore.com>
14519
14520 * tree-core.h (tree_block): Add an "end_locus" field, allowing
14521 memorization of the end of block source location.
14522 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
14523 * gimplify.c (gimplify_bind_expr): Propagate the block start and
14524 end source location info we have on the block entry/exit code we
14525 generate.
14526
14527 2014-06-18 Richard Biener <rguenther@suse.de>
14528
14529 * common.opt (fssa-phiopt): New option.
14530 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
14531 but not with -Og.
14532 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
14533 * doc/invoke.texi (-fssa-phiopt): Document.
14534
14535 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14536
14537 * genattrtab.c (n_bypassed): New variable.
14538 (process_bypasses): Initialise n_bypassed.
14539 Count number of bypassed reservations.
14540 (make_automaton_attrs): Allocate space for bypassed reservations
14541 rather than number of bypasses.
14542
14543 2014-06-18 Richard Biener <rguenther@suse.de>
14544
14545 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
14546 we propagated anything.
14547 (substitute_and_fold_dom_walker::before_dom_children): Something
14548 changed if we propagated into PHI arguments.
14549 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
14550 we removed a stmt.
14551
14552 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
14553
14554 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
14555 vector case.
14556 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
14557 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
14558 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
14559 Introduces alternative way of loads group permutaions.
14560 (vect_transform_grouped_load): Try alternative way of permutations.
14561
14562 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14563
14564 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
14565 changed in ORT_TARGET region, don't jump to do_outer.
14566 (struct gimplify_adjust_omp_clauses_data): New type.
14567 (gimplify_adjust_omp_clauses_1): Adjust for data being
14568 a struct gimplify_adjust_omp_clauses_data pointer instead
14569 of tree *. Pass pre_p as a new argument to
14570 lang_hooks.decls.omp_finish_clause hook.
14571 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
14572 splay_tree_foreach to pass both list_p and pre_p.
14573 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
14574 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
14575 gimplify_adjust_omp_clauses callers.
14576 * langhooks.c (lhd_omp_finish_clause): New function.
14577 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
14578 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
14579 * langhooks.h (struct lang_hooks_for_decls): Add a new
14580 gimple_seq * argument to omp_finish_clause hook.
14581 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
14582 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
14583 (scan_omp_parallel, lower_omp_for): When adding
14584 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
14585 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
14586 * tree-nested.c (convert_nonlocal_omp_clauses,
14587 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
14588 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
14589
14590 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
14591
14592 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
14593 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
14594
14595 2014-06-17 Xinliang David Li <davidxl@google.com>
14596
14597 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
14598 * passes.c (pass_init_dump_file): Do not set initialize
14599 flag to false unconditionally.
14600
14601 2014-06-17 Richard Biener <rguenther@suse.de>
14602
14603 * genopinit.c (main): Use vec<>::qsort method.
14604 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14605 Likewise.
14606 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
14607
14608 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
14609
14610 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
14611 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
14612 (mips_move_to_gpr_cost): Remove ST_REGS case.
14613 (mips_move_from_gpr_cost): Likewise.
14614 (mips_register_move_cost): Likewise.
14615 (mips_secondary_reload_class): Likewise.
14616
14617 2014-06-17 Richard Biener <rguenther@suse.de>
14618
14619 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
14620 (pass_all_optimizations): Move 3rd copy-prop pass from after
14621 fre to before ifcombine/phiopt.
14622
14623 2014-06-17 Richard Biener <rguenther@suse.de>
14624
14625 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
14626 and allow all blocks to be forwarders.
14627
14628 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
14629
14630 PR target/61483
14631 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
14632 variable 'size'; calculate 'size' right in the front; use
14633 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
14634 pcum->aapcs_stack_words.
14635
14636 2014-06-17 Nick Clifton <nickc@redhat.com>
14637
14638 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
14639 (umulhi3, mulsidi3, umulsidi3): Likewise.
14640
14641 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
14642
14643 PR middle-end/61508
14644 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14645 check for section name.
14646
14647 2014-06-17 Richard Biener <rguenther@suse.de>
14648
14649 * tree-ssa-propagate.c: Include domwalk.h.
14650 (substitute_and_fold): Outline main worker into a domwalker ...
14651 (substitute_and_fold_dom_walker::before_dom_children): ... here.
14652 Schedule stmts we can fully propagate for removal. Remove
14653 poor-mans DCE.
14654 (substitute_and_fold): Apply a dominator walk to perform
14655 substitution. Process stmts scheduled for removal here.
14656
14657 2014-06-17 Richard Biener <rguenther@suse.de>
14658
14659 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14660 of PHI node moving.
14661
14662 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14663
14664 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14665 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14666 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14667 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14668 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14669 TARGET_HARD_FLOAT.
14670 (get_fpscr) : Likewise.
14671
14672 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14673
14674 PR rtl-optimization/61325
14675 * lra-constraints.c (valid_address_p): Add forward declaration.
14676 (simplify_operand_subreg): Check address validity before and after
14677 alter_reg of memory subreg.
14678
14679 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
14680
14681 * config/i386/i386.c (decide_alg): Correctly handle
14682 maximum size of stringop algorithm.
14683
14684 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14685
14686 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14687
14688 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14689
14690 PR rtl-optimization/61522
14691 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14692
14693 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
14694
14695 Revert:
14696 * symtab.c (symtab_node::reset_section): New method.
14697 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14698 for localization.
14699 * cgraph.h (reset_section): Declare.
14700 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14701 do not consider comdat locals.
14702 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14703 for new symbol.
14704 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14705 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14706 reset sections of symbols dragged out of the comdats.
14707 (function_and_variable_visibility): Reset sections of
14708 localized symbols.
14709
14710 2014-06-16 Richard Biener <rguenther@suse.de>
14711
14712 PR tree-optimization/61482
14713 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14714 [-INF(OVF), +INF(OVF)] range.
14715
14716 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14717
14718 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14719 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14720 handling 32-bit multiplication.
14721
14722 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
14723
14724 PR middle-end/61430
14725 * lra-lives.c (process_bb_lives): Skip creating copy during
14726 insn scan when src/dest has constrained to same regno.
14727
14728 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14729
14730 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14731 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14732
14733 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14734
14735 * asan.c (check_func): New function.
14736 (maybe_create_ssa_name): Likewise.
14737 (build_check_stmt_with_calls): Likewise.
14738 (use_calls_p): Likewise.
14739 (report_error_func): Change interface.
14740 (build_check_stmt): Allow non-integer lengths; add support
14741 for new parameter.
14742 (asan_instrument): Likewise.
14743 (instrument_mem_region_access): Moved code to build_check_stmt.
14744 (instrument_derefs): Likewise.
14745 (instrument_strlen_call): Likewise.
14746 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14747 * doc/invoke.texi: Describe new parameter.
14748 * params.def: Define new parameter.
14749 * params.h: Likewise.
14750 * sanitizer.def: Describe new builtins.
14751
14752 2014-06-16 Richard Biener <rguenther@suse.de>
14753
14754 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14755 Make all defs available at the end.
14756 (eliminate): If we remove a PHI node schedule cfg-cleanup.
14757
14758 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14759
14760 PR plugins/45078
14761 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14762
14763 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
14764
14765 PR bootstrap/61516
14766 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14767 initialization. Replace remaining use of uid.
14768
14769 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14770
14771 * c-family/c-common.c (handle_tls_model_attribute): Use
14772 set_decl_tls_model.
14773 * c-family/c-common.c (handle_tls_model_attribute): Use
14774 set_decl_tls_model.
14775 * cgraph.h (struct varpool_node): Add tls_model.
14776 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14777 * tree.h (DECL_TLS_MODEL): Update.
14778 (DECL_THREAD_LOCAL_P): Check that variable is static.
14779 (decl_tls_model): Declare.
14780 (set_decl_tls_model): Declare.
14781 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14782 set symbol prorperties.
14783 (get_emutls_init_templ_addr): Cleanup.
14784 (new_emutls_decl): Update.
14785 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14786 (lto_input_varpool_node): Likewise.
14787 * lto-streamer-out.c (hash_tree): Likewise.
14788 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14789 not stream DECL_TLS_MODEL.
14790 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14791 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14792
14793 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14794
14795 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14796
14797 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14798
14799 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14800 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14801 lists.
14802 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14803 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14804 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14805 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14806 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14807 (df_get_artificial_defs, df_get_artificial_uses)
14808 (df_single_def, df_single_use): Update accordingly.
14809 (df_refs_chain_dump): Take the first element in a linked list as
14810 parameter, rather than a pointer to an array of pointers.
14811 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14812 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14813 (df_chain_create_bb_process_use): Likewise.
14814 (df_md_bb_local_compute_process_def): Likewise.
14815 * fwprop.c (process_defs, process_uses): Likewise.
14816 (register_active_defs, update_uses): Likewise.
14817 (forward_propagate_asm): Update for new df_ref linking.
14818 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14819 (df_null_ref_rec, df_null_mw_rec): Likewise.
14820 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14821 explicitly.
14822 (df_scan_free_bb_info): Remove check for null artificial_defs.
14823 (df_install_ref_incremental): Adjust for new df_ref linking.
14824 Use a single-element insertion rather than a full sort.
14825 (df_ref_chain_delete_du_chain): Take the first element
14826 in a linked list as parameter, rather than a pointer to an array of
14827 pointers.
14828 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14829 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14830 (df_insn_info_delete): Remove check for null defs and call to
14831 df_scan_free_mws_vec.
14832 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14833 null rather than df_null_*_rec.
14834 (df_insn_rescan_debug_internal): Likewise, and update null
14835 checks in the same way. Remove check for null defs.
14836 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14837 Move a single element rather doing a full sort.
14838 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14839 linking.
14840 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
14841 Initialize df_ref and df_mw_hardreg lists to null rather than
14842 df_null_*_rec.
14843 (df_ref_compare): Take df_refs as parameter, transferring the
14844 old interface to...
14845 (df_ref_ptr_compare): ...this new function.
14846 (df_sort_and_compress_refs): Update accordingly.
14847 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14848 old interface to...
14849 (df_mw_ptr_compare): ...this new function.
14850 (df_sort_and_compress_mws): Update accordingly.
14851 (df_install_refs, df_install_mws): Return a linked list rather than
14852 an array of pointers.
14853 (df_refs_add_to_chains): Assert that old lists are empty rather
14854 than freeing them.
14855 (df_insn_refs_verify): Don't handle null defs speciailly.
14856 * web.c (union_match_dups): Update for new df_ref linking.
14857
14858 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14859
14860 * df.h (df_ref_create, df_ref_remove): Delete.
14861 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14862 (df_ref_remove): Likewise.
14863
14864 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14865
14866 * df.h (df_single_def, df_single_use): New functions.
14867 * ira.c (find_moveable_pseudos): Use them.
14868
14869 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14870
14871 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14872 * df-problems.c (df_note_bb_compute): Use it.
14873 * regstat.c (regstat_bb_compute_ri): Likewise.
14874
14875 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14876
14877 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14878 * cse.c (cse_extended_basic_block): Use them.
14879 * dce.c (mark_artificial_use): Likewise.
14880 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14881 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14882 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14883 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14884 (df_simulate_initialize_backwards): Likewise.
14885 (df_simulate_finalize_backwards): Likewise.
14886 (df_simulate_initialize_forwards): Likewise.
14887 (df_md_simulate_artificial_defs_at_top): Likewise.
14888 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14889 * regrename.c (init_rename_info): Likewise.
14890 * regstat.c (regstat_bb_compute_ri): Likewise.
14891 (regstat_bb_compute_calls_crossed): Likewise.
14892
14893 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14894
14895 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14896 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14897 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14898 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14899 * combine.c (create_log_links): Likewise.
14900 * compare-elim.c (find_flags_uses_in_insn): Likewise.
14901 (try_eliminate_compare): Likewise.
14902 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14903 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14904 (remove_reg_equal_equiv_notes_for_defs): Likewise.
14905 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14906 (word_dce_process_block, dce_process_block): Likewise.
14907 * ddg.c (def_has_ccmode_p): Likewise.
14908 * df-core.c (df_bb_regno_first_def_find): Likewise.
14909 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14910 * df-problems.c (df_rd_simulate_one_insn): Likewise.
14911 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14912 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14913 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14914 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14915 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14916 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14917 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14918 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14919 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14920 * fwprop.c (local_ref_killed_between_p): Likewise.
14921 (all_uses_available_at, free_load_extend): Likewise.
14922 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14923 * hw-doloop.c (scan_loop): Likewise.
14924 * ifcvt.c (dead_or_predicable): Likewise.
14925 * init-regs.c (initialize_uninitialized_regs): Likewise.
14926 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14927 (process_bb_node_lives): Likewise.
14928 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14929 (find_moveable_pseudos): Likewise.
14930 * loop-invariant.c (check_dependencies, record_uses): Likewise.
14931 * recog.c (peep2_find_free_register): Likewise.
14932 * ree.c (get_defs): Likewise.
14933 * regstat.c (regstat_bb_compute_ri): Likewise.
14934 (regstat_bb_compute_calls_crossed): Likewise.
14935 * sched-deps.c (find_inc, find_mem): Likewise.
14936 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14937 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14938 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14939 (prepare_shrink_wrap): Likewise.
14940 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14941 * web.c (union_defs, pass_web::execute): Likewise.
14942 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14943 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14944
14945 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
14946
14947 * lra-assign.c (assign_by_spills): Add code to assign vector regs
14948 to inheritance pseudos.
14949 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14950
14951 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
14952
14953 PR target/61415
14954 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14955 (BU_MISC_2): Rename to ...
14956 (BU_LDBL128_2): ... this.
14957 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14958 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14959 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14960 RS6000_BTM_LDBL128.
14961 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14962 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14963 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14964 (unpacktf_1): Likewise.
14965 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14966 (__builtin_longdouble_dw1): Likewise.
14967 * doc/sourcebuild.texi (longdouble128): Document.
14968
14969 2014-06-13 Jeff Law <law@redhat.com>
14970
14971 PR rtl-optimization/61094
14972 PR rtl-optimization/61446
14973 * ree.c (combine_reaching_defs): Get the mode for the copy from
14974 the extension insn rather than the defining insn.
14975
14976 2014-06-13 Dehao Chen <dehao@google.com>
14977
14978 * dwarf2out.c (add_linkage_name): Emit more linkage name.
14979
14980 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
14981
14982 * doc/install.texi (--enable-linker-plugin-configure-flags)
14983 (--enable-linker-plugin-flags): Document new flags.
14984
14985 2014-06-13 Martin Jambor <mjambor@suse.cz>
14986
14987 PR ipa/61186
14988 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14989 cache_token if returning early.
14990
14991 2014-06-13 Nick Clifton <nickc@redhat.com>
14992
14993 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14994 requested alignment is active.
14995 (LABEL_ALIGN): Likewise.
14996 (LOOP_ALIGN): Likewise.
14997
14998 2014-06-13 Richard Biener <rguenther@suse.de>
14999
15000 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15001 Rewrite to propagate the VN result into all uses where
15002 possible and to remove stmts becoming dead because of that.
15003 (eliminate): Generalize stmt removal handling, remove in
15004 reverse dominator order to support proper debug stmt
15005 generation. Update stmts before removing stmts.
15006 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
15007
15008 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15009
15010 PR tree-optimization/61375
15011 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
15012 symbolic number cannot be represented in an uint64_t.
15013 (find_bswap_or_nop_1): Likewise.
15014
15015 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15016
15017 * symtab.c (symtab_node::reset_section): New method.
15018 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15019 for localization.
15020 * cgraph.h (reset_section): Declare.
15021 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15022 do not consider comdat locals.
15023 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15024 for new symbol.
15025 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15026 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15027 reset sections of symbols dragged out of the comdats.
15028 (function_and_variable_visibility): Reset sections of
15029 localized symbols.
15030
15031 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
15032
15033 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
15034 to use symtab and decl_binds_to_current_def_p
15035 * tree-vectorizer.c (increase_alignment): Increase alignment
15036 of alias target, too.
15037
15038 2014-06-12 Jakub Jelinek <jakub@redhat.com>
15039
15040 PR middle-end/61486
15041 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
15042 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15043 if outer combined construct is distribute.
15044 (gimplify_omp_for): For OMP_DISTRIBUTE set
15045 gimplify_omp_ctxp->distribute.
15046 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15047 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15048 mapping into decl map.
15049
15050 2014-06-12 Jason Merrill <jason@redhat.com>
15051
15052 * common.opt (fabi-version): Change default to 0.
15053
15054 2014-06-12 Jason Merrill <jason@redhat.com>
15055
15056 * toplev.c (process_options): Reject -fabi-version=1.
15057
15058 2014-06-12 Jeff Law <law@redhat.com>
15059
15060 PR tree-optimization/61009
15061 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15062 value when we stop processing a block due to problematic PHIs.
15063
15064 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15065
15066 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15067 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15068 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15069 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15070 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15071 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15072 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15073 are not in the spec.
15074
15075 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15076
15077 PR target/59843
15078 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15079 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15080 Support V1DFmode.
15081
15082 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15083
15084 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15085
15086 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15087
15088 PR target/61443
15089 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15090 loading from address spaces.
15091
15092 2014-06-12 Martin Liska <mliska@suse.cz>
15093
15094 PR ipa/61462
15095 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15096 statement is reachable.
15097
15098 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15099
15100 * symtab.c (section_hash): New hash.
15101 (symtab_unregister_node): Clear section before freeing.
15102 (hash_section_hash_entry): New haser.
15103 (eq_sections): New function.
15104 (symtab_node::set_section_for_node): New method.
15105 (set_section_1): Update.
15106 (symtab_node::set_section): Take string instead of tree as parameter.
15107 (symtab_resolve_alias): Update.
15108 * cgraph.h (section_hash_entry_d): New structure.
15109 (section_hash_entry): New typedef.
15110 (cgraph_node): Change comdat_group_ to x_comdat_group,
15111 change section_ to x_section and turn into section_hash_entry;
15112 update accestors; put set_section_for_node offline.
15113 * tree.c (decl_section_name): Turn into string.
15114 (set_decl_section_name): Change parameter to be string.
15115 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15116 * sdbout.c (sdbout_one_type): Update.
15117 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15118 * varasm.c (IN_NAMED_SECTION, get_named_section,
15119 resolve_unique_section, hot_function_section, get_named_text_section,
15120 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15121 make_decl_rtl, default_unique_section): Update.
15122 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15123 (c6x_elf_unique_section): Update.
15124 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15125 * config/pa/pa.c (pa_function_section): Update.
15126 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15127 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15128 * config/arc/arc.c (arc_in_small_data_p): Update.
15129 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15130 * config/mcore/mcore.c (mcore_unique_section): Update.
15131 * config/mips/mips.c (mips16_build_function_stub): Update.
15132 (mips16_build_call_stub): Update.
15133 (mips_function_rodata_section): Update.
15134 (mips_in_small_data_p): Update.
15135 * config/score/score.c (score_in_small_data_p): Update.
15136 * config/rx/rx.c (rx_in_small_data): Update.
15137 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15138 (rs6000_xcoff_asm_named_section): Update.
15139 (rs6000_xcoff_unique_section): Update.
15140 * config/frv/frv.c (frv_string_begins_with): Update.
15141 (frv_in_small_data_p): Update.
15142 * config/v850/v850.c (v850_encode_data_area): Update.
15143 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15144 (bfin_handle_l1_data_attribute): Update.
15145 (bfin_handle_l2_attribute): Update.
15146 * config/mep/mep.c (mep_unique_section): Update.
15147 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15148 Update.
15149 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15150 (h8300_handle_tiny_data_attribute): Update.
15151 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15152 (m32r_in_small_data_p): Update.
15153 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15154 * config/i386/i386.c (ix86_in_large_data_p): Update.
15155 * config/i386/winnt.c (i386_pe_unique_section): Update.
15156 * config/darwin.c (darwin_function_section): Update.
15157 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15158 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15159 (new_emutls_decl): Update.
15160 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15161 input_varpool_node): Update.
15162 (ead_string_cst): Turn to ...
15163 (read_string): ... this one.
15164 * dwarf2out.c (secname_for_decl): Update.
15165 * asan.c (asan_protect_global): Update.
15166
15167 2014-06-11 DJ Delorie <dj@redhat.com>
15168
15169 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15170 cache lines.
15171 * config/rx/rx.c (rx_option_override): Likewise.
15172 (rx_align_for_label): Likewise.
15173
15174 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15175
15176 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15177
15178 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15179 prototype.
15180
15181 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15182
15183 * common.md: New file.
15184 * doc/md.texi: Update description of generic, machine-independent
15185 constraints.
15186 * config/s390/constraints.md (e): Delete.
15187 * Makefile.in (md_file): Include common.md.
15188 * config/m32c/t-m32c (md_file): Likewise.
15189 * genpreds.c (general_mem): New array.
15190 (generic_constraint_letters): Remove constraints now defined by
15191 common.md.
15192 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15193 Allow the first character to be '<' or '>' as well.
15194 * genoutput.c (general_mem): New array.
15195 (indep_constraints): Remove constraints now defined by common.md.
15196 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15197 Remove special handling of 'm'.
15198 * ira-costs.c (record_reg_classes): Remove special handling of
15199 constraints now defined by common.md.
15200 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15201 * ira-lives.c (single_reg_class): Likewise.
15202 (ira_implicitly_set_insn_hard_regs): Likewise.
15203 * lra-constraints.c (reg_class_from_constraints): Likewise.
15204 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15205 * postreload.c (reload_cse_simplify_operands): Likewise.
15206 * reload.c (push_secondary_reload, scratch_reload_class)
15207 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15208 * reload1.c (maybe_fix_stack_asms): Likewise.
15209 * targhooks.c (default_secondary_reload): Likewise.
15210 * stmt.c (parse_output_constraint): Likewise.
15211 * recog.c (preprocess_constraints): Likewise.
15212 (constrain_operands, peep2_find_free_register): Likewise.
15213 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15214 must be handled specially.
15215
15216 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15217
15218 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15219 * genpreds.c (have_const_dbl_constraints): Delete.
15220 (add_constraint): Don't set it.
15221 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15222 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15223 constraints using the lookup_constraint logic.
15224 * ira-lives.c (single_reg_class): Likewise.
15225 * ira.c (ira_setup_alts): Likewise.
15226 * lra-constraints.c (process_alt_operands): Likewise.
15227 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15228 * reload.c (find_reloads): Likewise.
15229
15230 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15231
15232 * genpreds.c (const_int_start, const_int_end): New variables.
15233 (choose_enum_order): Output CONST_INT constraints before memory
15234 constraints.
15235 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15236 Add CT_CONST_INT.
15237 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15238 * ira.c (ira_setup_alts): Likewise.
15239 * lra-constraints.c (process_alt_operands): Likewise.
15240 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15241 * reload.c (find_reloads): Likewise.
15242
15243 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15244
15245 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15246 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15247 * recog.c (preprocess_constraints): Update accordingly.
15248
15249 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15250
15251 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15252 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15253 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15254 * genpreds.c (print_type_tree): New function.
15255 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15256 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15257 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15258 Write out enum constraint_type and get_constraint_type.
15259 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15260 constraint_num rather than a constraint string.
15261 (satisfies_address_constraint_p): Likewise.
15262 (reg_class_from_constraints): Avoid old constraint macros.
15263 (process_alt_operands, process_address_1): Likewise.
15264 (curr_insn_transform): Likewise.
15265 * ira-costs.c (record_reg_classes): Likewise.
15266 (record_operand_costs): Likewise.
15267 * ira-lives.c (single_reg_class): Likewise.
15268 (ira_implicitly_set_insn_hard_regs): Likewise.
15269 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15270 * postreload.c (reload_cse_simplify_operands): Likewise.
15271 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15272 (constrain_operands, peep2_find_free_register): Likewise.
15273 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15274 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15275 * reload1.c (maybe_fix_stack_asms): Likewise.
15276 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15277 * targhooks.c (default_secondary_reload): Likewise.
15278 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15279 to EXTRA_CONSTRAINT_STR.
15280 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15281
15282 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15283
15284 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15285 (write_constraint_satisfied_p_array): ...this new function.
15286 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15287 an array.
15288 (write_insn_preds_c): Update accordingly.
15289
15290 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15291
15292 * genpreds.c (write_lookup_constraint): Rename to...
15293 (write_lookup_constraint_1): ...this.
15294 (write_lookup_constraint_array): New function.
15295 (write_tm_preds_h): Define lookup_constraint as an inline function
15296 that uses write_lookup_constraint_array where possible.
15297 (write_insn_preds_c): Update for the changes above.
15298
15299 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15300
15301 * doc/md.texi (regclass_for_constraint): Rename to...
15302 (reg_class_for_constraint): ...this.
15303 * genpreds.c (num_constraints, enum_order, register_start)
15304 (register_end, satisfied_start, memory_start, memory_end)
15305 (address_start, address_end): New variables.
15306 (add_constraint): Count the number of constraints.
15307 (choose_enum_order): New function.
15308 (write_enum_constraint_num): Iterate over enum_order.
15309 (write_regclass_for_constraint): Rename to...
15310 (write_reg_class_for_constraint_1): ...this and update output
15311 accordingly.
15312 (write_constraint_satisfied_p): Rename to...
15313 (write_constraint_satisfied_p_1): ...this and update output
15314 accordingly. Do nothing if all extra constraints are register
15315 constraints.
15316 (write_insn_extra_memory_constraint): Delete.
15317 (write_insn_extra_address_constraint): Delete.
15318 (write_range_function): New function.
15319 (write_tm_preds_h): Define constraint_satisfied_p and
15320 reg_class_for_constraint as inline functions that do a range check
15321 before calling the out-of-line function. Use write_range_function
15322 to implement insn_extra_{register,memory,address}_constraint,
15323 the first of which is new.
15324 (write_insn_preds_c): Update after above changes to write_* functions.
15325 (main): Call choose_enum_order.
15326
15327 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15328
15329 PR tree-optimization/61306
15330 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15331 expression instead of its size.
15332 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15333 false to prevent optimization when the result is unpredictable due to
15334 arithmetic right shift of signed type with highest byte is set.
15335 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15336 (init_symbolic_number): Likewise.
15337 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15338 when the result is unpredictable due to sign extension.
15339
15340 2014-06-11 Terry Guo <terry.guo@arm.com>
15341
15342 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15343 (*thumb1_addsi3): Ditto.
15344 (*thumb_subdi3): Ditto.
15345 (thumb1_subsi3_insn): Ditto.
15346 (*thumb_mulsi3): Ditto.
15347 (*thumb_mulsi3_v6): Ditto.
15348 (*thumb1_andsi3_insn): Ditto.
15349 (thumb1_bicsi3): Ditto.
15350 (*thumb1_iorsi3_insn): Ditto.
15351 (*thumb1_xorsi3_insn): Ditto.
15352 (*thumb1_ashlsi3): Ditto.
15353 (*thumb1_ashrsi3): Ditto.
15354 (*thumb1_lshrsi3): Ditto.
15355 (*thumb1_rotrsi3): Ditto.
15356 (*thumb1_negdi2): Ditto.
15357 (*thumb1_negsi2): Ditto.
15358 (*thumb1_abssi2): Ditto.
15359 (*thumb1_neg_abssi2): Ditto.
15360 (*thumb1_one_cmplsi2): Ditto.
15361 (*thumb1_zero_extendhisi2): Ditto.
15362 (*thumb1_zero_extendqisi2): Ditto.
15363 (*thumb1_zero_extendqisi2_v6): Ditto.
15364 (thumb1_extendhisi2): Ditto.
15365 (thumb1_extendqisi2): Ditto.
15366 (*thumb1_movdi_insn): Ditto.
15367 (*thumb1_movsi_insn): Ditto.
15368 (*thumb1_movhi_insn): Ditto.
15369 (thumb_movhi_clobber): Ditto.
15370 (*thumb1_movqi_insn): Ditto.
15371 (*thumb1_movhf): Ditto.
15372 (*thumb1_movsf_insn): Ditto.
15373 (*thumb_movdf_insn): Ditto.
15374 (movmem12b): Ditto.
15375 (movmem8b): Ditto.
15376 (cbranchqi4): Ditto.
15377 (cbranchsi4_insn): Ditto.
15378 (cbranchsi4_scratch): Ditto.
15379 (*negated_cbranchsi4): Ditto.
15380 (*tbit_cbranch): Ditto.
15381 (*tlobits_cbranch): Ditto.
15382 (*tstsi3_cbranch): Ditto.
15383 (*cbranchne_decr1): Ditto.
15384 (*addsi3_cbranch): Ditto.
15385 (*addsi3_cbranch_scratch): Ditto.
15386 (*thumb_cmpdi_zero): Ditto.
15387 (cstoresi_eq0_thumb1): Ditto.
15388 (cstoresi_ne0_thumb1): Ditto.
15389 (*cstoresi_eq0_thumb1_insn): Ditto.
15390 (*cstoresi_ne0_thumb1_insn): Ditto.
15391 (cstoresi_nltu_thumb1): Ditto.
15392 (cstoresi_ltu_thumb1): Ditto.
15393 (thumb1_addsi3_addgeu): Ditto.
15394 (*thumb_jump): Ditto.
15395 (*call_reg_thumb1_v5): Ditto.
15396 (*call_reg_thumb1): Ditto.
15397 (*call_value_reg_thumb1_v5): Ditto.
15398 (*call_value_reg_thumb1): Ditto.
15399 (*call_insn): Ditto.
15400 (*call_value_insn): Ditto.
15401 (thumb1_casesi_internal_pic): Ditto.
15402 (thumb1_casesi_dispatch): Ditto.
15403 (*thumb1_indirect_jump): Ditto.
15404 (prologue_thumb1_interwork): Ditto.
15405 (*epilogue_insns): Ditto.
15406 (consttable_1): Ditto.
15407 (consttable_2): Ditto.
15408 (tablejump): Ditto.
15409 (*thumb1_tablejump): Ditto.
15410 (thumb_eh_return): Ditto.
15411 (define_peephole2): Two of them are thumb1 only and got moved into
15412 new file thumb1.md.
15413 (define_split): Six of them are thumb1 only and got moved into new
15414 file thumb1.md.
15415 * config/arm/thumb1.md: New file comprised of above thumb1 only
15416 patterns.
15417
15418 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15419
15420 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
15421 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
15422 dependencies.
15423 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
15424 (aarch64_crc_builtin_datum): New struct.
15425 (aarch64_crc_builtin_data): New.
15426 (aarch64_init_crc32_builtins): New function.
15427 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
15428 (aarch64_crc32_expand_builtin): New.
15429 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
15430 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15431 __ARM_FEATURE_CRC32 when appropriate.
15432 (TARGET_CRC32): Define.
15433 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
15434 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
15435 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
15436 (aarch64_<crc_variant>): New pattern.
15437 * config/aarch64/arm_acle.h: New file.
15438 * config/aarch64/iterators.md (CRC): New int iterator.
15439 (crc_variant, crc_mode): New int attributes.
15440 * doc/aarch64-acle-intrinsics.texi: New file.
15441 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
15442 Include aarch64-acle-intrinsics.texi.
15443
15444 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
15445
15446 * tree-vect-data-refs.c (vect_grouped_store_supported): New
15447 check for stores group of length 3.
15448 (vect_permute_store_chain): New permutations for stores group of
15449 length 3.
15450 * tree-vect-stmts.c (vect_model_store_cost): Change cost
15451 of vec_perm_shuffle for the new permutations.
15452
15453 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15454
15455 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
15456 table rewriting temporarily on targets not supporting ONE_ONLY.
15457
15458 2014-06-11 Richard Biener <rguenther@suse.de>
15459
15460 PR middle-end/61437
15461 Revert
15462 2014-06-04 Richard Biener <rguenther@suse.de>
15463
15464 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15465 TREE_PUBLIC and DECL_EXTERNAL decls.
15466
15467 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15468
15469 * varasm.c (set_implicit_section): New function.
15470 (resolve_unique_section): Use it to set implicit section
15471 for aliases, too.
15472 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
15473 (default_function_section): Likewise.
15474 (decl_binds_to_current_def_p): Constify argument.
15475 * varasm.h (decl_binds_to_current_def_p): Update prototype.
15476 * asan.c (asan_protect_global): Use
15477 symtab_get_node (decl)->implicit_section.
15478 * symtab.c (dump_symtab_base): Dump implicit sections.
15479 (verify_symtab_base): Verify sanity of sectoins and comdats.
15480 (symtab_resolve_alias): Alias share the section of its target.
15481 (set_section_1): New function.
15482 (symtab_node::set_section): Move here, recurse to aliases.
15483 (verify_symtab): Check for duplicated symtab lists.
15484 * tree-core.h (implicit_section_name_p): Remove.
15485 * tree-vect-data-refs.c: Include varasm.h.
15486 (vect_can_force_dr_alignment_p): Fix conditional on when
15487 decl bints to current definition; use
15488 symtab_get_node (decl)->implicit_section.
15489 * cgraph.c (cgraph_make_node_local_1): Fix section set.
15490 * cgraph.h (struct symtab_node): Add implicit_section.
15491 (set_section): Rename to ...
15492 (set_section_for_node): ... this one.
15493 (set_section): Declare.
15494 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
15495 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15496 input_overwrite_node, input_varpool_node): Stream implicit_section.
15497 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
15498 removal; it will fail in LTO.
15499
15500 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15501
15502 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
15503 Change second alternative type to f_mcr.
15504 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
15505 and 12th alternatives' types to f_mcr and f_mrc.
15506 (*movdi_aarch64): Same for 12th and 13th alternatives.
15507 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
15508 (aarch64_movtilow_tilow): Change type to fmov.
15509
15510 2014-06-10 Jiong Wang <jiong.wang@arm.com>
15511
15512 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
15513 (aarch64_save_or_restore_callee_save_registers): Fix layout.
15514
15515 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15516
15517 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
15518 New expander.
15519 (aarch64_sqrdmulh_lane<mode>): Likewise.
15520 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15521 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15522 (aarch64_sqdmulh_laneq<mode>): New expander.
15523 (aarch64_sqrdmulh_laneq<mode>): Likewise.
15524 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
15525 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
15526 (aarch64_sqdmulh_lane<mode>): New expander.
15527 (aarch64_sqrdmulh_lane<mode>): Likewise.
15528 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15529 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15530 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
15531 (aarch64_sqdmlal_laneq<mode>): Likewise.
15532 (aarch64_sqdmlsl_lane<mode>): Likewise.
15533 (aarch64_sqdmlsl_laneq<mode>): Likewise.
15534 (aarch64_sqdmlal2_lane<mode>): Likewise.
15535 (aarch64_sqdmlal2_laneq<mode>): Likewise.
15536 (aarch64_sqdmlsl2_lane<mode>): Likewise.
15537 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15538 (aarch64_sqdmull_lane<mode>): Likewise.
15539 (aarch64_sqdmull_laneq<mode>): Likewise.
15540 (aarch64_sqdmull2_lane<mode>): Likewise.
15541 (aarch64_sqdmull2_laneq<mode>): Likewise.
15542
15543 2014-06-10 Richard Biener <rguenther@suse.de>
15544
15545 PR tree-optimization/61438
15546 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
15547 (eliminate_dom_walker::before_dom_children): Only try to inhibit
15548 insertion of IVs if running PRE.
15549 (eliminate): Adjust.
15550 (pass_pre::execute): Likewise.
15551 (pass_fre::execute): Likewise.
15552
15553 2014-06-10 Richard Biener <rguenther@suse.de>
15554
15555 PR middle-end/61456
15556 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15557 Do not use the main variant for the type comparison.
15558 (ncr_compar): Likewise.
15559 (nonoverlapping_component_refs_p): Likewise.
15560
15561 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
15562
15563 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
15564 REG_CFA_RESTORE mode.
15565
15566 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
15567
15568 * config/i386/i386.c (expand_vec_perm_pblendv): New.
15569 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
15570 expand_vec_perm_pblendv.
15571
15572 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15573
15574 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
15575 available.
15576 Simplify description of __crc32d and __crc32cd intrinsics.
15577 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
15578 availability.
15579
15580 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
15581
15582 PR lto/61334
15583 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
15584 * config.in: Regenerate.
15585 * configure: Likewise.
15586
15587 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15588
15589 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
15590 and public vars.
15591 (intersect_static_var_sets): Remove.
15592 (propagate): Do not prune local statics.
15593
15594 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15595
15596 PR fortran/60928
15597 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
15598 Set lastprivate_firstprivate even if omp_private_outer_ref
15599 langhook returns true.
15600 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
15601 langhook, call unshare_expr on new_var and call
15602 build_outer_var_ref to get the last argument.
15603
15604 2014-06-10 Marek Polacek <polacek@redhat.com>
15605
15606 PR c/60988
15607 * doc/extend.texi: Add cindex for transparent_union.
15608
15609 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
15610
15611 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
15612 init_symbolic_number ().
15613
15614 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
15615
15616 PR middle-end/61141
15617 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
15618 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
15619 (verify_rtl_sharing): Likewise.
15620
15621 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
15622
15623 PR c++/54442
15624 * tree.c (build_qualified_type): Use a canonical type for
15625 TYPE_CANONICAL.
15626
15627 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15628
15629 * config/arm/arm-modes.def: Remove XFmode.
15630
15631 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
15632
15633 PR target/61062
15634 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
15635 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
15636 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
15637 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
15638 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
15639 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
15640 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
15641 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
15642 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
15643
15644 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
15645
15646 * tree-core.h (tree_decl_with_vis): Remove section_name.
15647
15648 2014-06-09 Kito Cheng <kito@0xlab.org>
15649
15650 * ira.c (ira): Don't call init_caller_save if LRA enabled
15651 since LRA use its own infrastructure to handle that.
15652
15653 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15654
15655 * symtab.c (dump_symtab_base): Update dumping.
15656 (symtab_make_decl_local): Clear only DECL_COMDAT.
15657 * tree-vect-data-refs.c (Check that variable is static before
15658 tampering with sections.
15659 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15660 (cgraph_create_virtual_clone): Likewise.
15661 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15662 (decl_section_name, set_decl_section_name): New accessors.
15663 (find_decls_types_r): Do not walk section name
15664 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15665 (decl_comdat_group, decl_comdat_group_id): Constify.
15666 (decl_section_name, set_decl_section_name): Update.
15667 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15668 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15669 (cgraph_make_node_local_1): Clear section and comdat group.
15670 * cgraph.h (set_comdat_group): Sanity check.
15671 (get_section, set_section): New.
15672 * ipa-comdats.c (ipa_comdats): Use get_section.
15673 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15674 * lto-streamer-out.c: Do not follow section names.
15675 * c-family/c-common.c (handle_section_attribute): Update.
15676 * lto-cgraph.c (lto_output_node): Output section.
15677 (lto_output_varpool_node): Likewise.
15678 (read_comdat_group): Rename to ...
15679 (read_identifier): ... this one.
15680 (read_string_cst): New function.
15681 (input_node, input_varpool_node): Input section names.
15682 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15683 (new_emutls_decl): Update.
15684 (secname_for_decl): Check section names only of static vars.
15685 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15686 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15687 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15688 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15689 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15690 * config/mcore/mcore.c (mcore_unique_section): Likewise.
15691 * config/mips/mips.c (mips16_build_function_stub): Likewise.
15692 * config/v850/v850.c (v850_insert_attributes): Likewise.
15693 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15694 Likewise.
15695 (h8300_handle_tiny_data_attribute): Likewise.
15696 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15697 (bfin_handle_l2_attribute): Likewise.
15698
15699 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15700
15701 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15702 remove static initializer.
15703
15704 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15705
15706 * varasm.c (use_blocks_for_decl_p): Check symbol table
15707 instead of alias attribute.
15708 (place_block_symbol): Recurse on aliases.
15709
15710 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15711
15712 * ipa-visibility.c: Include varasm.h
15713 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15714
15715 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15716
15717 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15718 outputting aliases.
15719
15720 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
15721
15722 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15723 from test_insn into GGC space escape via SET_SRC.
15724
15725 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
15726
15727 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15728 call statement, if any.
15729 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15730 statements, if any. Tidy up.
15731
15732 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15733
15734 PR target/61431
15735 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15736 iterators, VSX_D that handles 64-bit types, and VSX_LE that
15737 handles swapping the two 64-bit double words on little endian
15738 systems. Include V1TImode and optionally TImode in VSX_LE so that
15739 these types are properly swapped. Change all of the insns and
15740 splits that do the 64-bit swaps to use VSX_LE.
15741 (vsx_le_perm_load_<mode>): Likewise.
15742 (vsx_le_perm_store_<mode>): Likewise.
15743 (splitters for little endian memory operations): Likewise.
15744 (vsx_xxpermdi2_le_<mode>): Likewise.
15745 (vsx_lxvd2x2_le_<mode>): Likewise.
15746 (vsx_stxvd2x2_le_<mode>): Likewise.
15747
15748 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
15749
15750 PR target/61423
15751 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15752 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15753 and corresponding splitters. Zero extend general register
15754 or memory input operand to XMM temporary. Enable for
15755 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15756 (floatunssi<mode>2): Update expander predicate.
15757
15758 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
15759
15760 PR rtl-optimization/61325
15761 * lra-constraints.c (process_address_1): Check scale equal to one
15762 to prevent transformation: base + scale * index => base + new_reg.
15763
15764 2014-06-06 Richard Biener <rguenther@suse.de>
15765
15766 PR tree-optimization/59299
15767 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15768 a def operand.
15769 (nearest_common_dominator_of_uses): Likewise.
15770 (statement_sink_location): Adjust. Support sinking loads.
15771
15772 2014-06-06 Martin Jambor <mjambor@suse.cz>
15773
15774 * ipa-prop.c (get_place_in_agg_contents_list): New function.
15775 (build_agg_jump_func_from_list): Likewise.
15776 (determine_known_aggregate_parts): Renamed to
15777 determine_locally_known_aggregate_parts. Moved some functionality
15778 to the two functions above, removed bound checks.
15779
15780 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
15781
15782 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15783 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15784 (aarch64_progress_pointer): Likewise.
15785 (aarch64_copy_one_part_and_move_pointers): Likewise.
15786 (aarch64_expand_movmen): Likewise.
15787 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15788 * config/aarch64/aarch64.md (movmem<mode>): New.
15789
15790 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
15791
15792 * targhooks.c (default_add_stmt_cost): Call target specific
15793 hook instead of default one.
15794
15795 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
15796
15797 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15798 endianness instead of host endianness.
15799 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15800 comments.
15801
15802 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15803
15804 PR debug/53927
15805 * function.c (instantiate_decls): Process the saved static chain.
15806 (expand_function_start): If not optimizing, save the static chain
15807 onto the stack.
15808 * tree-nested.c (convert_all_function_calls): Always create the static
15809 chain for nested functions if not optimizing.
15810
15811 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15812
15813 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15814
15815 2014-06-06 Richard Biener <rguenther@suse.de>
15816
15817 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15818 (construct_init_block): Likewise.
15819 (construct_exit_block): Likewise.
15820 (pass_expand::execute): Likewise.
15821 * graphite.c (graphite_transforms): Replace check for current_loops
15822 with a check for > 1 loops.
15823 (pass_graphite_transforms::execute): Adjust.
15824 * ipa-split.c (split_function): Remove check for current_loops.
15825 * omp-low.c (expand_parallel_call): Likewise.
15826 (expand_omp_for_init_counts): Likewise.
15827 (extract_omp_for_update_vars): Likewise.
15828 (expand_omp_for_generic): Likewise.
15829 (expand_omp_sections): Likewise.
15830 (expand_omp_target): Likewise.
15831 * tracer.c (tail_duplicate): Likewise.
15832 (pass_tracer::execute): Likewise.
15833 * trans-mem.c (expand_transaction): Likewise.
15834 * tree-complex.c (expand_complex_div_wide): Likewise.
15835 * tree-eh.c (lower_resx): Likewise.
15836 (cleanup_empty_eh_merge_phis): Likewise.
15837 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15838 current_loops with a check for > 1 loops.
15839 (pass_predcom::execute): Adjust.
15840 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15841 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15842 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15843 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15844 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15845 * tree-switch-conversion.c (process_switch): Likewise.
15846 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15847 * tree-vrp.c (vrp_visit_phi_node): Likewise.
15848 (execute_vrp): Likewise.
15849 * ubsan.c (ubsan_expand_null_ifn): Likewise.
15850
15851 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15852
15853 * rtl.h (insn_location): Declare.
15854 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15855 with UNKNOWN_LOCATION.
15856 * emit-rtl.c (insn_location): New function.
15857 * final.c (notice_source_line): Check that the instruction has a
15858 location before retrieving it and use insn_location.
15859 * modulo-sched.c (loop_single_full_bb_p): Likewise.
15860 * print-rtl.c (print_rtx): Likewise.
15861
15862 2014-06-06 Richard Biener <rguenther@suse.de>
15863
15864 * passes.def: Move 2nd VRP pass before phi-only-cprop.
15865
15866 2014-06-06 Christian Bruel <christian.bruel@st.com>
15867
15868 PR tree-optimization/43934
15869 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15870 cost.
15871
15872 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
15873
15874 * ira-lives.c (single_reg_class): Add missing break. Explicitly
15875 return NO_REGS for extra address and memory constraints. Handle
15876 operands that match (or are equivalent to something that matches)
15877 extra constant constraints. Ignore other non-register operands.
15878
15879 2014-06-06 Alan Modra <amodra@gmail.com>
15880
15881 PR target/61300
15882 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15883 * doc/tm.texi: Regenerate.
15884 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15885 Use throughout in place of REG_PARM_STACK_SPACE.
15886 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15887 "incoming" param. Pass to rs6000_function_parms_need_stack.
15888 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15889 prototype_p when incoming. Use function decl when incoming
15890 to handle K&R style functions.
15891 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15892 (INCOMING_REG_PARM_STACK_SPACE): Define.
15893
15894 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15895
15896 PR target/52472
15897 * cfgexpand.c (expand_debug_expr): Use address space of nested
15898 TREE_TYPE for ADDR_EXPR and MEM_REF.
15899
15900 2014-06-05 Jeff Law <law@redhat.com>
15901
15902 PR tree-optimization/61289
15903 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15904 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
15905 looking for those which match LHS. All callers changed.
15906 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15907 parameters and code which manipulated them. All callers changed.
15908 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15909 and DST_MAP parameters. Simplify invalidation code by just calling
15910 invalidate_equivalences. All callers changed.
15911 (thread_across_edge): Simplify now that we don't need to maintain
15912 the map of equivalences to invalidate.
15913
15914 2014-06-05 Kai Tietz <ktietz@redhat.com>
15915 Richard Henderson <rth@redhat.com>
15916
15917 PR target/46219
15918 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15919 checking for !TARGET_X32.
15920 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15921 (sibcall_intern): New define_insn, plus required peepholes.
15922 (sibcall_pop_intern): Likewise.
15923 (sibcall_value_intern): Likewise.
15924 (sibcall_value_pop_intern): Likewise.
15925
15926 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
15927
15928 * tree-inline.c (tree_function_versioning): Check DF info existence
15929 before accessing it.
15930
15931 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15932
15933 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15934 frame_size.
15935 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15936 aarch64_frame hard_fp_offset and frame_size.
15937 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15938 frame_size; remove original_frame_size.
15939 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15940 (aarch64_initial_elimination_offset): Remove frame_size and
15941 offset. Use aarch64_frame frame_size.
15942
15943 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15944 Jiong Wang <jiong.wang@arm.com>
15945 Renlin <renlin.li@arm.com>
15946
15947 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15948 initialization of R30 offset. Update offset. Iterate core
15949 regisers upto X30. Remove X29, X30 specific code.
15950
15951 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15952 Jiong Wang <jiong.wang@arm.com>
15953
15954 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15955 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15956 (aarch64_register_saved_on_entry): Adjust test.
15957
15958 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15959
15960 * config/aarch64/aarch64.h (machine_function): Move
15961 saved_varargs_size from here...
15962 (aarch64_frame): ... to here.
15963
15964 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15965 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15966 (aarch64_initial_elimination_offset)
15967 (aarch64_setup_incoming_varargs): Adjust location of
15968 saved_varargs_size.
15969
15970 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15971
15972 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15973 layout comment.
15974
15975 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
15976 Prachi Godbole <Prachi.Godbole@imgtec.com>
15977
15978 * config/mips/mips-cpus.def: Add definition for p5600. Updated
15979 mips32r5 entry to use PROCESSOR_P5600.
15980 * config/mips/mips-tables.opt: Regenerate.
15981 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15982 * config/mips/mips.c (mips_fmadd_bypass): New function.
15983 (mips_rtx_cost_data): Add costs for p5600.
15984 (mips_issue_rate): Add support for p5600.
15985 (mips_multipass_dfa_lookahead): Likewise.
15986 * config/mips/mips.h (TUNE_P5600): New define.
15987 (TUNE_MACC_CHAINS): Add TUNE_P5600.
15988 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15989 * config/mips/mips.md: Include p5600.md.
15990 (processor): Add p5600.
15991 * config/mips/p5600.md: New file.
15992
15993 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
15994
15995 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15996 * config/i386/predicates.md (palignr_operand): New.
15997 Indicates if permutation is suitable for palignr instruction.
15998
15999 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
16000
16001 PR tree-optimization/61319
16002 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
16003 stmt belongs to loop.
16004
16005 2014-06-05 Richard Biener <rguenther@suse.de>
16006
16007 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
16008 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
16009 (lookup_tmp_var): Adjust.
16010 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
16011
16012 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16013
16014 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
16015
16016 2014-06-05 Marek Polacek <polacek@redhat.com>
16017
16018 PR c/49706
16019 * doc/invoke.texi: Document -Wlogical-not-parentheses.
16020
16021 2014-06-04 Tom de Vries <tom@codesourcery.com>
16022
16023 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
16024 CONST_INT.
16025
16026 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
16027
16028 PR tree-optimization/61385
16029 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
16030
16031 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
16032
16033 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
16034 changed to use fatal_error.
16035 (main): Ensure lto_wrapper_cleanup is run atexit.
16036
16037 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16038
16039 * lra-constraints.c (valid_address_p): Move earlier in file.
16040 (address_eliminator): New structure.
16041 (satisfies_memory_constraint_p): New function.
16042 (satisfies_address_constraint_p): Likewise.
16043 (process_alt_operands, process_address, curr_insn_transform): Use them.
16044
16045 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16046
16047 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16048 const pointer.
16049 (target_lra_int, default_target_lra_int, this_target_lra_int)
16050 (op_alt_data): Delete.
16051 * lra.h (lra_init): Delete.
16052 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16053 (init_insn_code_data_once): Remove op_alt_data handling.
16054 (finish_insn_code_data_once): Likewise.
16055 (init_op_alt_data): Delete.
16056 (get_static_insn_data): Initialize operand_alternative to null.
16057 (free_insn_recog_data): Cast operand_alternative before freeing it.
16058 (setup_operand_alternative): Take the operand_alternative as
16059 parameter and assume it isn't already cached in the static
16060 insn data.
16061 (lra_set_insn_recog_data): Update accordingly.
16062 (lra_init): Delete.
16063 * ira.c (ira_init): Don't call lra_init.
16064 * target-globals.h (this_target_lra_int): Declare.
16065 (target_globals): Remove lra_int.
16066 (restore_target_globals): Update accordingly.
16067 * target-globals.c: Don't include lra-int.h.
16068 (default_target_globals, save_target_globals): Remove lra_int.
16069
16070 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16071
16072 * recog.h (operand_alternative): Convert reg_class, reject,
16073 matched and matches into bitfields.
16074 (preprocess_constraints): New overload.
16075 (preprocess_insn_constraints): New function.
16076 (preprocess_constraints): Take the insn as parameter.
16077 (recog_op_alt): Change into a pointer.
16078 (target_recog): Add x_op_alt.
16079 * recog.c (asm_op_alt): New variable.
16080 (recog_op_alt): Change into a pointer.
16081 (preprocess_constraints): New overload, replacing the old function
16082 definition with one that doesn't use global state.
16083 (preprocess_insn_constraints): New function.
16084 (preprocess_constraints): Use them. Take the insn as parameter.
16085 Use asm_op_alt for asms.
16086 (recog_init): Free existing x_op_alt entries.
16087 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16088 pointer const.
16089 (make_early_clobber_and_input_conflicts): Likewise.
16090 (process_bb_node_lives): Pass the insn to process_constraints.
16091 * reg-stack.c (check_asm_stack_operands): Likewise.
16092 (subst_asm_stack_regs): Likewise.
16093 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16094 * regrename.c (build_def_use): Likewise.
16095 * sched-deps.c (sched_analyze_insn): Likewise.
16096 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16097 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16098 (note_invalid_constants): Likewise.
16099 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16100 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16101 const.
16102
16103 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16104
16105 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16106 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16107 alternatives.
16108 (make_early_clobber_and_input_conflicts): Likewise.
16109 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16110
16111 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16112
16113 * recog.h (alternative_class): New function.
16114 (which_op_alt): Return a const recog_op_alt.
16115 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16116 (subst_asm_stack_regs): Likewise.
16117 * config/arm/arm.c (note_invalid_constants): Likewise.
16118 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16119 the operand_alternative; use alternative class instead.
16120 * sel-sched.c (get_reg_class): Likewise.
16121 * regrename.c (build_def_use): Likewise.
16122 (hide_operands, restore_operands, record_out_operands): Update type
16123 accordingly.
16124
16125 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16126
16127 * recog.h (recog_op_alt): Convert to a flat array.
16128 (which_op_alt): New function.
16129 * recog.c (recog_op_alt): Convert to a flat array.
16130 (preprocess_constraints): Update accordingly, grouping all
16131 operands of the same alternative together, rather than the
16132 other way around.
16133 * ira-lives.c (check_and_make_def_conflict): Likewise.
16134 (make_early_clobber_and_input_conflicts): Likewise.
16135 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16136 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16137 (subst_asm_stack_regs): Likewise.
16138 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16139 * regrename.c (hide_operands, record_out_operands): Likewise.
16140 (build_def_use): Likewise.
16141 * sel-sched.c (get_reg_class): Likewise.
16142 * config/arm/arm.c (note_invalid_constants): Likewise.
16143
16144 2014-06-04 Jason Merrill <jason@redhat.com>
16145
16146 PR c++/51253
16147 PR c++/61382
16148 * gimplify.c (gimplify_arg): Non-static.
16149 * gimplify.h: Declare it.
16150
16151 2014-06-04 Richard Biener <rguenther@suse.de>
16152
16153 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16154 TREE_PUBLIC and DECL_EXTERNAL decls.
16155
16156 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16157
16158 * regcprop.c (copyprop_hardreg_forward_1): Account for
16159 HARD_REGNO_CALL_PART_CLOBBERED.
16160
16161 2014-06-04 Richard Biener <rguenther@suse.de>
16162
16163 * configure.ac: Check whether the underlying type of int64_t
16164 is long or long long.
16165 * configure: Regenerate.
16166 * config.in: Likewise.
16167 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16168 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16169
16170 2014-06-04 Richard Biener <rguenther@suse.de>
16171
16172 PR tree-optimization/60098
16173 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16174 we hit a kill.
16175 (dse_optimize_stmt): Simplify, now that we found a kill
16176 earlier.
16177
16178 2014-06-04 Richard Biener <rguenther@suse.de>
16179
16180 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16181 of accesses with non-invariant address.
16182
16183 2014-06-04 Martin Liska <mliska@suse.cz>
16184
16185 * cgraph.h (cgraph_make_wrapper): New function introduced.
16186 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16187 * ipa-inline.h (inline_analyze_function): The function is global.
16188 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16189
16190 2014-06-04 Martin Liska <mliska@suse.cz>
16191
16192 * tree.h (private_lookup_attribute_starting): New function.
16193 (lookup_attribute_starting): Likewise.
16194 * tree.c (private_lookup_attribute_starting): Likewise.
16195
16196 2014-06-04 Martin Liska <mliska@suse.cz>
16197
16198 * cgraph.h (expand_thunk): New argument added.
16199 (address_taken_from_non_vtable_p): New global function.
16200 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16201 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16202 * cgraphunit.c (analyze_function): Likewise.
16203 (assemble_thunks_and_aliases): Argument added to call.
16204 (expand_thunk): New argument forces to produce GIMPLE thunk.
16205
16206 2014-06-04 Martin Liska <mliska@suse.cz>
16207
16208 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16209 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16210 * profile.c (branch_prob): Likewise.
16211
16212 2014-06-04 Martin Jambor <mjambor@suse.cz>
16213
16214 PR ipa/61340
16215 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16216 handler for switch on an ipa_ref_use enum.
16217 * ipa-reference.c (analyze_function): Likewise.
16218
16219 2014-06-04 Kai Tietz <ktietz@redhat.com>
16220
16221 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16222 from old call-instruction.
16223
16224 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16225
16226 * config/aarch64/aarch64.c (aarch64_classify_address)
16227 (aarch64_legitimize_reload_address): Support full addressing modes
16228 for vector modes.
16229 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16230 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16231
16232 2014-06-03 Andrew Pinski <apinski@cavium.com>
16233
16234 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16235 for OP0.
16236
16237 2014-06-03 Andrew Pinski <apinski@cavium.com>
16238
16239 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16240 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16241
16242 2014-06-03 Kai Tietz <ktietz@redhat.com>
16243
16244 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16245 for 64-bit ms-abi.
16246
16247 2014-06-03 Dehao Chen <dehao@google.com>
16248
16249 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16250 the same loop.
16251
16252 2014-06-03 Marek Polacek <polacek@redhat.com>
16253
16254 PR c/60439
16255 * doc/invoke.texi: Document -Wswitch-bool.
16256 * function.c (stack_protect_epilogue): Cast controlling expression of
16257 the switch to int.
16258 * gengtype.c (walk_type): Generate switch expression with its
16259 controlling expression cast to int.
16260
16261 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16262
16263 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16264 and attiny841.
16265 * config/avr/avr-tables.opt: Regenerate.
16266 * config/avr/t-multilib: Regenerate.
16267 * doc/avr-mmcu.texi: Regenerate.
16268
16269 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16270 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16271
16272 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16273 (ata6617c, ata664251): Add new avr35 devices.
16274 (ata6612c): Add new avr4 device.
16275 (ata6613c, ata6614q): Add new avr5 devices.
16276 * config/avr/avr-tables.opt: Regenerate.
16277 * config/avr/t-multilib: Regenerate.
16278 * doc/avr-mmcu.texi: Regenerate.
16279
16280 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16281
16282 * gcc/config/aarch64/aarch64-builtins.c
16283 (aarch64_types_binop_ssu_qualifiers): New static data.
16284 (TYPES_BINOP_SSU): Define.
16285 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16286 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16287 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16288 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16289 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16290 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16291 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16292 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16293 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16294 suffix to builtin function name, remove cast.
16295 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16296 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16297 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16298
16299 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16300
16301 * gcc/config/aarch64/aarch64-builtins.c
16302 (aarch64_types_binop_uus_qualifiers,
16303 aarch64_types_shift_to_unsigned_qualifiers,
16304 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16305 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16306 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16307 sqshlu_n, uqshl_n): Update qualifiers.
16308 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16309 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16310 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16311 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16312 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16313 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16314 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16315 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16316 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16317 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16318 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16319 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16320 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16321 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16322 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16323 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16324 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16325 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16326 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16327 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16328 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16329 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16330 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16331 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16332 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16333 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16334 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16335
16336 2014-06-03 Teresa Johnson <tejohnson@google.com>
16337
16338 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16339
16340 2014-06-02 Jason Merrill <jason@redhat.com>
16341
16342 PR c++/61020
16343 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16344
16345 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16346
16347 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16348 location == 0.
16349
16350 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16351
16352 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16353 New pattern.
16354 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16355 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16356 * config/aarch64/iterators.md (REVERSE): New iterator.
16357 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16358 (rev_op): New int_attribute.
16359 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16360 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16361 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16362 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16363 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16364 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16365 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16366 Replace temporary __asm__ with __builtin_shuffle.
16367
16368 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16369
16370 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
16371 mips64r5.
16372 * config/mips/mips-tables.opt: Regenerate.
16373 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
16374 to use mips_isa_rev rather than ISA_MIPS32R2.
16375 * config/mips/mips.h (ISA_MIPS32R3): New define.
16376 (ISA_MIPS32R5): New define.
16377 (ISA_MIPS64R3): New define.
16378 (ISA_MIPS64R5): New define.
16379 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
16380 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
16381 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
16382 and mips64r5.
16383 (MIPS_ISA_SYNCI_SPEC): Likewise.
16384 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
16385 (LINK_SPEC): Added mips32r3 and mips32r5.
16386 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
16387 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
16388 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
16389 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
16390 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
16391 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
16392 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
16393
16394 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16395
16396 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
16397 options.
16398 * config/mips/mips.opt (mxpa): New option.
16399 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
16400 assembler.
16401
16402 2014-06-03 Martin Jambor <mjambor@suse.cz>
16403
16404 PR ipa/61160
16405 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
16406 thunks.
16407
16408 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
16409
16410 PR tree-optimization/61328
16411 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
16412 initialization from find_bswap_or_nop_1.
16413 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
16414 in source_expr2 before using the size value the function sets. Also
16415 make use of init_symbolic_number () in both the old place and
16416 find_bswap_or_nop_load () to avoid reading uninitialized memory when
16417 doing recursion in the GIMPLE_BINARY_RHS case.
16418
16419 2014-06-03 Richard Biener <rguenther@suse.de>
16420
16421 PR tree-optimization/61383
16422 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
16423 stmts can't trap.
16424
16425 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
16426
16427 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
16428 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
16429 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
16430 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
16431 in this file.
16432 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16433 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
16434 * system.h: ...here and make it unconditional.
16435 * target.def (conditional_register_usage): Mention
16436 define_register_constraint instead of old-style constraint macros.
16437 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
16438 * doc/tm.texi: Regenerate.
16439 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
16440 protected by !USE_MD_CONSTRAINTS.
16441 * config/frv/frv.md: Remove quote from old version of documentation.
16442 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
16443 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
16444 CONST_DOUBLE_OK_FOR_LETTER.
16445 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
16446
16447 2014-06-02 Andrew Pinski <apinski@cavium.com>
16448
16449 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
16450 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
16451 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
16452 file whose name depends on -mabi= and -mbig-endian.
16453 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
16454 Handle LP64 better and handle ilp32 too.
16455 (MULTILIB_OPTIONS): Delete.
16456 (MULTILIB_DIRNAMES): Delete.
16457
16458 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
16459
16460 * expr.h: Remove prototypes of functions defined in builtins.c.
16461 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
16462 Remove prototypes of functions defined in builtins.c.
16463 * builtins.h: Update prototype list to include all exported functions.
16464 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
16465 no_c99_libc_has_function): Move to targhooks.c
16466 (build_string_literal, build_call_expr_loc_array,
16467 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
16468 to tree.c.
16469 (expand_builtin_object_size, fold_builtin_object_size): Make static.
16470 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
16471 no_c99_libc_has_function): Relocate from builtins.c.
16472 * tree.c: Include builtins.h.
16473 (build_call_expr_loc_array, build_call_expr_loc_vec,
16474 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
16475 from builtins.c.
16476 * fold-const.h (fold_fma): Move prototype to builtins.h.
16477 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
16478 * asan.c: Include builtins.h.
16479 * cfgexpand.c: Likewise.
16480 * convert.c: Likewise.
16481 * emit-rtl.c: Likewise.
16482 * except.c: Likewise.
16483 * expr.c: Likewise.
16484 * fold-const.c: Likewise.
16485 * gimple-fold.c: Likewise.
16486 * gimple-ssa-strength-reduction.c: Likewise.
16487 * gimplify.c: Likewise.
16488 * ipa-inline.c: Likewise.
16489 * ipa-prop.c: Likewise.
16490 * lto-streamer-out.c: Likewise.
16491 * stmt.c: Likewise.
16492 * tree-inline.c: Likewise.
16493 * tree-object-size.c: Likewise.
16494 * tree-sra.c: Likewise.
16495 * tree-ssa-ccp.c: Likewise.
16496 * tree-ssa-forwprop.c: Likewise.
16497 * tree-ssa-loop-ivcanon.c: Likewise.
16498 * tree-ssa-loop-ivopts.c: Likewise.
16499 * tree-ssa-math-opts.c: Likewise.
16500 * tree-ssa-reassoc.c: Likewise.
16501 * tree-ssa-threadedge.c: Likewise.
16502 * tree-streamer-in.c: Likewise.
16503 * tree-vect-data-refs.c: Likewise.
16504 * tree-vect-patterns.c: Likewise.
16505 * tree-vect-stmts.c: Likewise.
16506 * config/aarch64/aarch64.c: Likewise.
16507 * config/alpha/alpha.c: Likewise.
16508 * config/arc/arc.c: Likewise.
16509 * config/arm/arm.c: Likewise.
16510 * config/avr/avr.c: Likewise.
16511 * config/bfin/bfin.c: Likewise.
16512 * config/c6x/c6x.c: Likewise.
16513 * config/cr16/cr16.c: Likewise.
16514 * config/cris/cris.c: Likewise.
16515 * config/epiphany/epiphany.c: Likewise.
16516 * config/fr30/fr30.c: Likewise.
16517 * config/frv/frv.c: Likewise.
16518 * config/h8300/h8300.c: Likewise.
16519 * config/i386/i386.c: Likewise.
16520 * config/i386/winnt.c: Likewise.
16521 * config/ia64/ia64.c: Likewise.
16522 * config/iq2000/iq2000.c: Likewise.
16523 * config/lm32/lm32.c: Likewise.
16524 * config/m32c/m32c.c: Likewise.
16525 * config/m32r/m32r.c: Likewise.
16526 * config/m68k/m68k.c: Likewise.
16527 * config/mcore/mcore.c: Likewise.
16528 * config/mep/mep.c: Likewise.
16529 * config/microblaze/microblaze.c: Likewise.
16530 * config/mips/mips.c: Likewise.
16531 * config/mmix/mmix.c: Likewise.
16532 * config/mn10300/mn10300.c: Likewise.
16533 * config/moxie/moxie.c: Likewise.
16534 * config/msp430/msp430.c: Likewise.
16535 * config/nds32/nds32.c: Likewise.
16536 * config/pa/pa.c: Likewise.
16537 * config/pdp11/pdp11.c: Likewise.
16538 * config/picochip/picochip.c: Likewise.
16539 * config/rl78/rl78.c: Likewise.
16540 * config/rs6000/rs6000.c: Likewise.
16541 * config/rx/rx.c: Likewise.
16542 * config/s390/s390.c: Likewise.
16543 * config/score/score.c: Likewise.
16544 * config/sh/sh.c: Likewise.
16545 * config/sparc/sparc.c: Likewise.
16546 * config/spu/spu.c: Likewise.
16547 * config/stormy16/stormy16.c: Likewise.
16548 * config/tilegx/tilegx.c: Likewise.
16549 * config/tilepro/tilepro.c: Likewise.
16550 * config/v850/v850.c: Likewise.
16551 * config/vax/vax.c: Likewise.
16552 * config/xtensa/xtensa.c: Likewise.
16553
16554 2014-06-02 Jeff Law <law@redhat.com>
16555
16556 PR rtl-optimization/61094
16557 * ree.c (combine_reaching_defs): Do not reextend an insn if it
16558 was marked as do_no_reextend. If a copy is needed to eliminate
16559 an extension, then mark it as do_not_reextend.
16560
16561 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
16562
16563 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
16564
16565 2014-06-02 Richard Henderson <rth@redhat.com>
16566
16567 PR target/61336
16568 * config/alpha/alpha.c (print_operand_address): Allow symbolic
16569 addresses inside asms. Use output_operand_lossage instead of
16570 gcc_unreachable.
16571
16572 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
16573
16574 PR target/61239
16575 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
16576 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
16577
16578 2014-06-02 Tom de Vries <tom@codesourcery.com>
16579
16580 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
16581 case that x has VOIDmode.
16582
16583 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
16584
16585 * varasm.c (copy_constant): Delete function.
16586 (build_constant_desc): Don't call it.
16587
16588 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16589
16590 PR target/61154
16591 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
16592 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
16593 with immediate_operand.
16594
16595 2014-06-02 Andreas Schwab <schwab@suse.de>
16596
16597 * config/ia64/ia64.c
16598 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
16599 pending_data_specs first.
16600
16601 2014-06-02 Richard Biener <rguenther@suse.de>
16602
16603 PR tree-optimization/61378
16604 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
16605 valueized_anything.
16606
16607 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
16608
16609 * config/i386/constraints.md (Bw): Rename from 'w'.
16610 (Bz): Rename from 'z'.
16611 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
16612
16613 2014-06-01 Kai Tietz <ktietz@redhat.com>
16614
16615 PR target/61377
16616 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
16617 * config/i386/i386.md (sibcall_insn_operand): Use Bs
16618 instead of m constraint.
16619
16620 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
16621
16622 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
16623 a separate alternative where the scratch operand 2 is marked as
16624 early clobber.
16625
16626 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16627
16628 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16629 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
16630 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
16631 and __builtins_arm_get_fpscr.
16632 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16633 __builtins_arm_get_fpscr.
16634 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
16635 __builtins_arm_ldfpscr.
16636 (arm_atomic_assign_expand_fenv): New function.
16637 * config/arm/vfp.md (set_fpscr): New pattern.
16638 (get_fpscr) : Likewise.
16639 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
16640 VUNSPEC_SET_FPSCR.
16641 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16642 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
16643
16644 2014-05-30 Jakub Jelinek <jakub@redhat.com>
16645
16646 * asan.c (report_error_func): Add SLOW_P argument, use
16647 BUILT_IN_ASAN_*_N if set.
16648 (build_check_stmt): Likewise.
16649 (instrument_derefs): If T has insufficient alignment,
16650 force same handling as for odd sizes.
16651
16652 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16653 BUILT_IN_ASAN_REPORT_STORE_N): New.
16654 * asan.c (struct asan_mem_ref): Change access_size type to
16655 HOST_WIDE_INT.
16656 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16657 update_mem_ref_hash_table): Likewise.
16658 (asan_mem_ref_hasher::hash): Hash in a HWI.
16659 (report_error_func): Change size_in_bytes argument to HWI.
16660 Use *_N builtins if size_in_bytes is larger than 16 or not power of
16661 two.
16662 (build_shadow_mem_access): New function.
16663 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
16664 Handle size_in_bytes not power of two or larger than 16.
16665 (instrument_derefs): Don't give up if size_in_bytes is not
16666 power of two or is larger than 16.
16667
16668 2014-05-30 Kai Tietz <ktietz@redhat.com>
16669
16670 PR target/60104
16671 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16672 for sibling-tail-calls.
16673 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16674 to its use.
16675 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16676 (sibcall_insn_operand): Add check for sibcall_memory_operand.
16677
16678 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16679
16680 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16681 * config/avr/avr-tables.opt: Regenerate.
16682 * config/avr/t-multilib: Regenerate.
16683 * doc/avr-mmcu.texi: Regenerate.
16684
16685 2014-05-30 Ian Lance Taylor <iant@google.com>
16686
16687 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16688 target("sse").
16689
16690 2014-05-30 Tom de Vries <tom@codesourcery.com>
16691
16692 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16693 Redefine as true.
16694
16695 2014-05-30 Tom de Vries <tom@codesourcery.com>
16696
16697 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16698 * lra.c (initialize_lra_reg_info_element): Add init of
16699 actual_call_used_reg_set field.
16700 (lra): Call lra_create_live_ranges before lra_inheritance for
16701 -fuse-caller-save.
16702 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16703 -fuse-caller-save.
16704 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16705 instead of call_used_reg_set for -fuse-caller-save.
16706 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16707
16708 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16709
16710 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16711 to mov_imm.
16712 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16713
16714 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16715
16716 * ira.c (ira_get_dup_out_num): Check for output operands at
16717 the start of the loop. Handle cases where an included alternative
16718 follows an excluded one.
16719
16720 2014-05-29 Mike Stump <mikestump@comcast.net>
16721
16722 PR debug/61352
16723 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16724 post ld passes when lto is used.
16725
16726 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
16727
16728 PR rtl-optimization/61325
16729 * lra-constraints.c (process_address): Rename to process_address_1.
16730 (process_address): New function.
16731
16732 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
16733
16734 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16735 TYPES_BINOPV): New static data.
16736 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16737 New builtin.
16738 * config/aarch64/aarch64-simd.md (aarch64_ext,
16739 aarch64_im_lane_boundsi): New patterns.
16740 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16741 patterns for EXT.
16742 (aarch64_evpc_ext): New function.
16743
16744 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16745
16746 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16747 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16748 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16749 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16750 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16751
16752 2014-05-29 Tom de Vries <tom@codesourcery.com>
16753
16754 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16755
16756 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
16757 Richard Sandiford <rdsandiford@googlemail.com>
16758
16759 * arm/iterators.md (shiftable_ops): New code iterator.
16760 (t2_binop0, arith_shift_insn): New code attributes.
16761 * arm/predicates.md (shift_nomul_operator): New predicate.
16762 * arm/arm.md (insn_enabled): Delete.
16763 (enabled): Remove insn_enabled test.
16764 (*arith_shiftsi): Delete. Replace with ...
16765 (*<arith_shift_insn>_multsi): ... new pattern.
16766 (*<arith_shift_insn>_shiftsi): ... new pattern.
16767 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16768
16769 2014-05-29 Radovan Obradovic <robradovic@mips.com>
16770 Tom de Vries <tom@codesourcery.com>
16771
16772 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16773 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16774 clobber.
16775 (mips_split_call): Use POST_CALL_TMP_REG.
16776 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16777
16778 2014-05-29 Tom de Vries <tom@codesourcery.com>
16779
16780 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16781 with #ifdef STACK_REGS.
16782
16783 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
16784
16785 * varasm.c (get_variable_section): Walk aliases.
16786 (place_block_symbol): Walk aliases.
16787
16788 2014-05-28 Tom de Vries <tom@codesourcery.com>
16789
16790 Revert:
16791 2014-05-28 Tom de Vries <tom@codesourcery.com>
16792
16793 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16794 * lra.c (initialize_lra_reg_info_element): Add init of
16795 actual_call_used_reg_set field.
16796 (lra): Call lra_create_live_ranges before lra_inheritance for
16797 -fuse-caller-save.
16798 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16799 -fuse-caller-save.
16800 * lra-constraints.c (need_for_call_save_p): Use
16801 actual_call_used_reg_set instead of call_used_reg_set for
16802 -fuse-caller-save.
16803 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16804
16805 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16806
16807 * doc/md.texi: Document that the % constraint character must
16808 be at the beginning of the string.
16809 * genoutput.c (validate_insn_alternatives): Check that '=',
16810 '+' and '%' only appear at the beginning of a constraint.
16811 * ira.c (commutative_constraint_p): Delete.
16812 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16813 at the start of the string.
16814 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16815 duplicate '='s.
16816 * config/arm/neon.md (bicdi3_neon): Likewise.
16817 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16818 (slt_si, sltu_si): Likewise.
16819 * config/vax/vax.md (sbcdi3): Likewise.
16820 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16821 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16822 (mul64): Move '%' to beginning of constraint.
16823 * config/arm/arm.md (*xordi3_insn): Likewise.
16824 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16825 (xorsi3): Likewise.
16826
16827 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16828
16829 * doc/md.texi: Document the restrictions on the "enabled" attribute.
16830
16831 2014-05-28 Jason Merrill <jason@redhat.com>
16832
16833 PR c++/47202
16834 * cgraph.h (symtab_node::get_comdat_group_id): New.
16835 * cgraphunit.c (analyze_functions): Call it.
16836 * symtab.c (dump_symtab_node): Likewise.
16837 * tree.c (decl_comdat_group_id): New.
16838 * tree.h: Declare it.
16839 * lto-streamer-out.c (write_symbol): Use it.
16840 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16841
16842 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16843
16844 PR bootstrap/PR61146
16845 * wide-int.cc: Do not include longlong.h when compiling with clang.
16846
16847 2014-05-28 Richard Biener <rguenther@suse.de>
16848
16849 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16850 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16851 (vrp_visit_assignment_or_call): Print less vertical space.
16852 (vrp_visit_stmt): Likewise.
16853 (vrp_visit_phi_node): Likewise. For a PHI argument with
16854 VR_VARYING range consider recording it as copy.
16855
16856 2014-05-28 Richard Biener <rguenther@suse.de>
16857
16858 Revert
16859 2014-05-28 Richard Biener <rguenther@suse.de>
16860
16861 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16862
16863 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16864
16865 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16866 sufficiently aligned and an offset is used at the same time.
16867 (expand_expr_real_1): Likewise.
16868
16869 2014-05-28 Richard Biener <rguenther@suse.de>
16870
16871 PR middle-end/61045
16872 * fold-const.c (fold_comparison): When folding
16873 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16874 the sign of the remaining constant operand stays the same.
16875
16876 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
16877
16878 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16879 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16880 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16881 to the assembler.
16882 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16883 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16884 (m32bit-doubles) Likewise.
16885 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16886 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16887 option for RL78.
16888
16889 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16890
16891 * configure.ac ($gcc_cv_ld_clearcap): New test.
16892 * configure: Regenerate.
16893 * config.in: Regenerate.
16894 * config/sol2.opt (mclear-hwcap): New option.
16895 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16896 * config/sol2-clearcap.map: Moved here from
16897 testsuite/gcc.target/i386/clearcap.map.
16898 * config/sol2-clearcapv2.map: Move here from
16899 gcc.target/i386/clearcapv2.map.
16900 * config/t-sol2 (install): Depend on install-clearcap-map.
16901 (install-clearcap-map): New target.
16902 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16903 -mclear-hwcap.
16904
16905 2014-05-28 Richard Biener <rguenther@suse.de>
16906
16907 * hwint.h (*_HALF_WIDE_INT*): Move to ...
16908 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16909 ... here and remove the rest.
16910 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16911
16912 2014-05-28 Richard Biener <rguenther@suse.de>
16913
16914 PR tree-optimization/61335
16915 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16916 new range fails, drop to varying.
16917
16918 2014-05-28 Olivier Hainque <hainque@adacore.com>
16919
16920 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16921 (CPP_SPEC): Add entry for -mcpu=8548.
16922 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16923 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16924
16925 2014-05-28 Tom de Vries <tom@codesourcery.com>
16926
16927 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16928 * lra.c (initialize_lra_reg_info_element): Add init of
16929 actual_call_used_reg_set field.
16930 (lra): Call lra_create_live_ranges before lra_inheritance for
16931 -fuse-caller-save.
16932 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16933 -fuse-caller-save.
16934 * lra-constraints.c (need_for_call_save_p): Use
16935 actual_call_used_reg_set instead of call_used_reg_set for
16936 -fuse-caller-save.
16937 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16938
16939 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16940 Tom de Vries <tom@codesourcery.com>
16941
16942 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16943 to gccoptlist.
16944 (@item -fuse-caller-save): New item.
16945
16946 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16947 Tom de Vries <tom@codesourcery.com>
16948
16949 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16950 OPT_fuse_caller_save.
16951
16952 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16953 Tom de Vries <tom@codesourcery.com>
16954
16955 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16956 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16957 get_call_reg_set_usage.
16958 * resource.c (mark_set_resources, mark_target_live_regs): Use
16959 get_call_reg_set_usage.
16960 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16961 field.
16962 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16963 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16964 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16965 * ira-build.c (ira_create_allocno): Init
16966 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16967 (create_cap_allocno, propagate_allocno_info)
16968 (propagate_some_info_from_allocno)
16969 (copy_info_to_removed_store_destinations): Handle
16970 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16971 * ira-costs.c (ira_tune_allocno_costs): Use
16972 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16973
16974 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16975 Tom de Vries <tom@codesourcery.com>
16976
16977 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16978 and function_used_regs_valid fields.
16979 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16980 find_all_hard_reg_sets.
16981 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16982 (get_call_reg_set_usage): New function.
16983 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16984 * regs.h (get_call_reg_set_usage): Declare.
16985
16986 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16987
16988 PR libgcc/61152
16989 * config/dbx.h (License): Add Runtime Library Exception.
16990 * config/newlib-stdint.h (License): Same.
16991 * config/rtems.h (License): Same
16992 * config/initfini-array.h (License): Same
16993 * config/v850/v850.h (License): Same.
16994 * config/v850/v850-opts.h (License): Same
16995 * config/v850/rtems.h (License): Same.
16996
16997 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16998
16999 PR target/61044
17000 * doc/extend.texi (Local Labels): Note that label differences are
17001 not supported for AVR.
17002
17003 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17004 Olivier Hainque <hainque@adacore.com>
17005
17006 * rtl.h (set_for_reg_notes): Declare.
17007 * emit-rtl.c (set_for_reg_notes): New function.
17008 (set_unique_reg_note): Use it.
17009 * optabs.c (add_equal_note): Likewise
17010
17011 2014-05-27 Andrew Pinski <apinski@cavium.com>
17012
17013 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
17014 Use <w> for the register in assembly template.
17015 (stack_protect_test): Use the mode of operands[0] for the result.
17016 (stack_protect_test_<mode>): Use <w> for the register
17017 in assembly template.
17018
17019 2014-05-27 DJ Delorie <dj@redhat.com>
17020
17021 * config/rx/rx.c (add_vector_labels): New.
17022 (rx_output_function_prologue): Call it.
17023 (rx_handle_func_attribute): Don't require empty arguments.
17024 (rx_handle_vector_attribute): New.
17025 (rx_attribute_table): Add "vector" attribute.
17026 * doc/extend.texi (interrupt, vector): Document new/changed
17027 RX-specific attributes.
17028
17029 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
17030
17031 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17032
17033 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
17034 predicate to detect a negative quotient.
17035
17036 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
17037
17038 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
17039 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
17040 Add X - Y CMP 0 to X CMP Y transformation.
17041 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
17042
17043 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17044
17045 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17046 before printing.
17047
17048 2014-05-27 Steve Ellcey <sellcey@mips.com>
17049
17050 * config/mips/mips.c: Add include of cgraph.h.
17051
17052 2014-05-27 Richard Biener <rguenther@suse.de>
17053
17054 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17055
17056 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17057
17058 PR libgcc/61152
17059 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17060 * config/arm/arm-cores.def (License): Same.
17061 * config/arm/arm-opts.h (License): Same.
17062 * config/arm/aout.h (License): Same.
17063 * config/arm/bpabi.h (License): Same.
17064 * config/arm/elf.h (License): Same.
17065 * config/arm/linux-elf.h (License): Same.
17066 * config/arm/linux-gas.h (License): Same.
17067 * config/arm/netbsd-elf.h (License): Same.
17068 * config/arm/uclinux-eabi.h (License): Same.
17069 * config/arm/uclinux-elf.h (License): Same.
17070 * config/arm/vxworks.h (License): Same.
17071
17072 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17073
17074 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17075 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17076 (arm_init_neon_builtins): Handle NEON_BSWAP.
17077 Define required type nodes.
17078 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17079 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17080 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17081 * config/arm/iterators.md (VDQHSD): New mode iterator.
17082
17083 2014-05-27 Richard Biener <rguenther@suse.de>
17084
17085 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17086 Try using literal operands when comparing value-ranges failed.
17087
17088 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17089
17090 * ira.c (commutative_operand): Adjust for change to recog_data.
17091 [Missing from previous commit.]
17092
17093 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17094
17095 * system.h (TEST_BIT): New macro.
17096 * recog.h (alternative_mask): New type.
17097 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17098 (recog_data_d): Replace alternative_enabled_p array with
17099 enabled_alternatives.
17100 (target_recog): New structure.
17101 (default_target_recog, this_target_recog): Declare.
17102 (get_enabled_alternatives, recog_init): Likewise.
17103 * recog.c (default_target_recog, this_target_recog): New variables.
17104 (get_enabled_alternatives): New function.
17105 (extract_insn): Use it.
17106 (recog_init): New function.
17107 (preprocess_constraints, constrain_operands): Adjust for change to
17108 recog_data.
17109 * postreload.c (reload_cse_simplify_operands): Likewise.
17110 * reload.c (find_reloads): Likewise.
17111 * ira-costs.c (record_reg_classes): Likewise.
17112 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17113 all alternatives after a disabled one would be skipped.
17114 (ira_implicitly_set_insn_hard_regs): Likewise.
17115 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17116 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17117 with enabled_alternatives.
17118 * lra.c (free_insn_recog_data): Update accordingly.
17119 (lra_update_insn_recog_data): Likewise.
17120 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17121 * lra-constraints.c (process_alt_operands): Likewise. Handle
17122 only_alternative as part of the enabled mask.
17123 * target-globals.h (this_target_recog): Declare.
17124 (target_globals): Add a recog field.
17125 (restore_target_globals): Restore this_target_recog.
17126 * target-globals.c: Include recog.h.
17127 (default_target_globals): Initialize recog field.
17128 (save_target_globals): Likewise.
17129 * reginfo.c (reinit_regs): Call recog_init.
17130 * toplev.c (backend_init_target): Likewise.
17131
17132 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17133
17134 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17135 rather than any named insn's code.
17136
17137 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17138
17139 PR libgcc/61152
17140 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17141 * config/arm/arm-cores.def (License): Same.
17142
17143 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17144
17145 * tree.h (decl_comdat_group): Declare.
17146 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17147 * tree.c (decl_comdat_group): Here.
17148
17149 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17150
17151 PR rtl-optimization/61222
17152 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17153 the shift, truncate the PLUS operand to the result mode.
17154
17155 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17156
17157 PR target/61271
17158 * config/i386/i386.c (ix86_rtx_costs)
17159 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17160 Fix condition.
17161
17162 2014-05-26 Martin Jambor <mjambor@suse.cz>
17163
17164 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17165 subreg uses.
17166
17167 2014-05-26 Richard Biener <rguenther@suse.de>
17168
17169 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17170 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17171 Provide specializations.
17172 (wi::int_traits <HOST_WIDE_INT>,
17173 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17174
17175 2014-05-26 Alan Modra <amodra@gmail.com>
17176
17177 PR target/61098
17178 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17179 params and return a bool. Remove dead code. Update comment.
17180 Assert we have a const_int source. Remove bogus code from
17181 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17182 handling of constants > 2G and reg_equal note, from..
17183 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17184 return value. Update comment. If we can, use a new pseudo
17185 for intermediate calculations.
17186 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17187 prototype.
17188 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17189 call to rs6000_emit_set_const in splitter.
17190 (movdi_internal64+2, +3): Likewise.
17191
17192 2014-05-26 Richard Biener <rguenther@suse.de>
17193
17194 * system.h: Define __STDC_FORMAT_MACROS before
17195 including inttypes.h.
17196 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17197 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17198 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17199 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17200 HOST_WIDEST_INT_C): Remove.
17201 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17202 if C99 inttypes.h is not available.
17203 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17204 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17205 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17206 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17207 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17208 (struct output_info): Likewise.
17209 (print_statistics): Adjust.
17210 (dump_bitmap_statistics): Likewise.
17211 * bt-load.c (migrate_btr_defs): Print with PRId64.
17212 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17213 (MAX_SAFE_MULTIPLIER): Adjust.
17214 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17215 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17216 dump_cgraph_node): Likewise.
17217 * final.c (dump_basic_block_info): Likewise.
17218 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17219 * gcov.c (format_gcov): Likewise.
17220 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17221 for calculation.
17222 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17223 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17224 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17225 Use PRId64 for dumping.
17226 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17227 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17228 (add_allocno_hard_regs): Adjust.
17229 * loop-doloop.c (doloop_modify): Print using PRId64.
17230 * loop-iv.c (inverse): Compute in uint64_t.
17231 (determine_max_iter, iv_number_of_iterations): Likewise.
17232 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17233 Print using PRId64.
17234 * lto-streamer-out.c (write_symbol): Use uint64_t.
17235 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17236 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17237 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17238 * modulo-sched.c (const_iteration_count): Use int64_t.
17239 (sms_schedule): Dump using PRId64.
17240 * predict.c (dump_prediction): Likewise.
17241 * pretty-print.h (pp_widest_integer): Remove.
17242 * profile.c (get_working_sets, is_edge_inconsistent,
17243 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17244 * tree-pretty-print.c (pp_double_int): Remove case handling
17245 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17246 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17247 and adjust users.
17248 (pass_optimize_bswap::execute): Remove restriction on hosts.
17249 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17250 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17251 * tree.c (widest_int_cst_value): Remove.
17252 * tree.h (widest_int_cst_value): Likewise.
17253 * value-prof.c (dump_histogram_value): Print using PRId64.
17254 * gengtype.c (main): Also inject int64_t.
17255 * ggc-page.c (struct max_alignment): Use int64_t.
17256 * alloc-pool.c (struct allocation_object_def): Likewise.
17257 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17258 for computation.
17259 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17260 * doc/tm.texi: Regenerated.
17261 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17262 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17263 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17264 mmix_output_register_setting): Use [u]int64_t in prototypes.
17265 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17266 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17267 mmix_output_octa, mmix_output_shifted_value): Adjust.
17268 (mmix_intval): Adjust. Remove unreachable case.
17269 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17270
17271 2014-05-26 Richard Biener <rguenther@suse.de>
17272
17273 * configure.ac: Drop __int64 type check. Insist that we
17274 found uint64_t and int64_t.
17275 * hwint.h (HOST_BITS_PER___INT64): Remove.
17276 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17277 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17278 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17279 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17280 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17281 for dst_q_src_df_rms_cdt.
17282 * configure: Regenerate.
17283 * config.in: Likewise.
17284
17285 2014-05-26 Michael Tautschnig <mt@debian.org>
17286
17287 PR target/61249
17288 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17289 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17290
17291 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17292
17293 PR rtl-optimization/61278
17294 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17295
17296 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17297
17298 PR rtl-optimization/61220
17299 Part of PR rtl-optimization/61225
17300 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17301 insn; skip split_edge for a block with only one successor.
17302
17303 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17304
17305 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17306 for variables.
17307
17308 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17309
17310 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17311 (update_vtable_references): New function.
17312 (function_and_variable_visibility): Rewrite also vtable initializers.
17313 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17314
17315 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17316
17317 * ggc.h (ggc_grow): New function.
17318 * ggc-none.c (ggc_grow): New function.
17319 * ggc-page.c (ggc_grow): Likewise.
17320
17321 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17322
17323 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17324 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17325 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17326 varpool_externally_visible_p, can_replace_by_local_alias,
17327 update_visibility_by_resolution_info, function_and_variable_visibility,
17328 pass_data_ipa_function_and_variable_visibility,
17329 make_pass_ipa_function_and_variable_visibility,
17330 whole_program_function_and_variable_visibility,
17331 pass_data_ipa_whole_program_visibility,
17332 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17333 * cgraph.h (cgraph_local_node_p): Declare.
17334 * ipa-visibility.c: New file.
17335 * Makefile.in (OBJS): Add ipa-visiblity.o
17336
17337 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17338
17339 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17340 that var decl is available.
17341
17342 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17343
17344 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17345 symtab_node pointer.
17346 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17347 (find_decls_types_r): Do not walk COMDAT_GROUP.
17348 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17349 * varasm.c (make_decl_one_only): Use set_comdat_group;
17350 create node if needed.
17351 * ipa-inline-transform.c (save_inline_function_body): Update
17352 way we decl->symtab mapping.
17353 * symtab.c (symtab_hash, hash_node, eq_node
17354 symtab_insert_node_to_hashtable): Remove.
17355 (symtab_register_node): Update.
17356 (symtab_unregister_node): Update.
17357 (symtab_get_node): Reimplement as inline function.
17358 (symtab_add_to_same_comdat_group): Update.
17359 (symtab_dissolve_same_comdat_group_list): Update.
17360 (dump_symtab_base): Update.
17361 (verify_symtab_base): Update.
17362 (symtab_make_decl_local): Update.
17363 (fixup_same_cpp_alias_visibility): Update.
17364 (symtab_nonoverwritable_alias): Update.
17365 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17366 * ipa.c (update_visibility_by_resolution_info): UPdate.
17367 * bb-reorder.c: Include cgraph.h
17368 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
17369 with comdat groups.
17370 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
17371 * cgraph.c (cgraph_get_create_node): Update.
17372 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
17373 and comdat_group_.
17374 (symtab_get_node): Make inline.
17375 (symtab_insert_node_to_hashtable): Remove.
17376 (symtab_can_be_discarded): Update.
17377 (decl_comdat_group): New function.
17378 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
17379 Update.
17380 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
17381 comdat group name.
17382 (read_comdat_group): New function.
17383 (input_node, input_varpool_node): Use it.
17384 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
17385 comdat groups.
17386 * mips.c (mips_start_unique_function): Likewise.
17387 (ix86_code_end): Likewise.
17388 (rs6000_code_end): Likweise.
17389 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
17390
17391 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17392
17393 * gengtype-state.c (fatal_reading_state): Bring offline.
17394 * optabs.c (widening_optab_handler): Bring offline.
17395 * optabs.h (widening_optab_handler): Likewise.
17396 * final.c (get_attr_length_1): Likewise.
17397
17398 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17399
17400 * sched-int.h (sd_iterator_cond): Manually tail recurse.
17401
17402 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17403
17404 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
17405 (ppc440-compare): Include shift with dot.
17406 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
17407 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
17408 without dot.
17409 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
17410 without dot.
17411 (e6500_sfx2): Include it.
17412 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
17413 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17414 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
17415 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
17416 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
17417 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
17418 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
17419 *lshiftrt_internal1le, *lshiftrt_internal1be,
17420 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
17421 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
17422 *rotldi3_internal10le, *rotldi3_internal10be,
17423 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
17424 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
17425 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
17426 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
17427 define_insns): Use type "shift" in the appropriate alternatives.
17428
17429 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17430
17431 * config/rs6000/rs6000.md (type): Add "logical". Delete
17432 "fast_compare".
17433 (dot): Adjust comment.
17434 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
17435 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
17436 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
17437 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
17438 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
17439 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
17440 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
17441 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17442
17443 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17444 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17445 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17446 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17447 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17448 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17449 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17450 * config/rs6000/8540.md (ppc8540_su): Adjust.
17451 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17452 cell-cmp-microcoded): Adjust.
17453 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17454 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17455 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17456 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17457 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17458 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17459 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17460 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17461 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17462 Adjust.
17463 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17464 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
17465 Adjust. Adjust comment.
17466 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17467 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17468
17469 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17470
17471 * config/rs6000/rs6000.md (type): Add "add".
17472 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
17473 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
17474 define_insns): Use it.
17475 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17476
17477 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17478 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17479 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17480 * config/rs6000/601.md (ppc601-integer): Adjust.
17481 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17482 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17483 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17484 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17485 * config/rs6000/8540.md (ppc8540_su): Adjust.
17486 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17487 cell-cmp-microcoded): Adjust.
17488 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17489 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17490 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17491 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17492 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17493 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17494 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17495 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17496 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17497 Adjust.
17498 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17499 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
17500 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17501 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17502
17503 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17504
17505 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
17506 "delayed_compare", "var_delayed_compare".
17507 (var_shift): New attribute.
17508 (cell_micro): Adjust.
17509 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
17510 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
17511 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
17512 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17513 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17514 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17515 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17516 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
17517 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
17518 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17519 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
17520 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
17521 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
17522 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
17523 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
17524 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
17525 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
17526 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
17527 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
17528 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
17529 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
17530 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
17531 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
17532 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17533 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17534
17535 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17536 * config/rs6000/440.md (ppc440-integer): Adjust.
17537 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17538 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
17539 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17540 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17541 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17542 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17543 * config/rs6000/8540.md (ppc8540_su): Adjust.
17544 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17545 cell-cmp-microcoded): Adjust.
17546 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
17547 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17548 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
17549 e500mc64_delayed): Adjust.
17550 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
17551 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
17552 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17553 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
17554 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
17555 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
17556 power6-delayed-compare, power6-var-delayed-compare): Adjust.
17557 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
17558 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
17559 Adjust comment.
17560 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17561 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17562
17563 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17564
17565 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
17566 (bits): New mode_attr.
17567 (idiv_ldiv): Delete mode_attr.
17568 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
17569 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17570 rs6000_adjust_priority, is_nonpipeline_insn,
17571 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17572
17573 * config/rs6000/40x.md (ppc403-idiv): Adjust.
17574 * config/rs6000/440.md (ppc440-idiv): Adjust.
17575 * config/rs6000/476.md (ppc476-idiv): Adjust.
17576 * config/rs6000/601.md (ppc601-idiv): Adjust.
17577 * config/rs6000/603.md (ppc603-idiv): Adjust.
17578 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
17579 ppc620-ldiv): Adjust.
17580 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
17581 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
17582 * config/rs6000/8540.md (ppc8540_divide): Adjust.
17583 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
17584 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
17585 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
17586 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
17587 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
17588 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
17589 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
17590 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
17591 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
17592 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
17593 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
17594 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
17595 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
17596 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
17597 * config/rs6000/titan.md (titan_fxu_div): Adjust.
17598
17599 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17600
17601 * config/rs6000/rs6000.md (type): Delete "insert_word",
17602 "insert_dword". Add "insert".
17603 (size): Update comment.
17604 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17605 insn_must_be_first_in_group): Adjust.
17606 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17607 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17608 *insvsi_internal6, insvdi_internal): Adjust.
17609
17610 * config/rs6000/40x.md (ppc403-integer): Adjust.
17611 * config/rs6000/440.md (ppc440-integer): Adjust.
17612 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
17613 * config/rs6000/601.md (ppc601-integer): Adjust.
17614 * config/rs6000/603.md (ppc603-integer): Adjust.
17615 * config/rs6000/6xx.md (ppc604-integer): Adjust.
17616 * config/rs6000/7450.md (ppc7450-integer): Adjust.
17617 * config/rs6000/7xx.md (ppc750-integer): Adjust.
17618 * config/rs6000/8540.md (ppc8540_su): Adjust.
17619 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
17620 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
17621 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17622 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
17623 * config/rs6000/e5500.md (e5500_sfx): Adjust.
17624 * config/rs6000/e6500.md (e6500_sfx): Adjust.
17625 * config/rs6000/mpc.md (mpccore-integer): Adjust.
17626 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
17627 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
17628 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
17629 * config/rs6000/power7.md (power7-integer): Adjust.
17630 * config/rs6000/power8.md (power8-1cyc): Adjust.
17631 * config/rs6000/rs64.md (rs64a-integer): Adjust.
17632 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17633
17634 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17635
17636 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
17637 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
17638 (size): New attribute.
17639 (dot): New attribute.
17640 (cell_micro): Adjust.
17641 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
17642 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
17643 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
17644 umuldi3_highpart): Adjust.
17645 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17646 rs6000_adjust_priority, is_nonpipeline_insn,
17647 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17648
17649 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17650 ppc405-imul3): Adjust.
17651 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17652 * config/rs6000/476.md (ppc476-imul): Adjust.
17653 * config/rs6000/601.md (ppc601-imul): Adjust.
17654 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17655 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17656 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17657 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17658 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17659 Adjust.
17660 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17661 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17662 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17663 cell-imul): Adjust.
17664 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17665 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17666 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17667 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17668 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17669 * config/rs6000/mpc.md (mpccore-imul): Adjust.
17670 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17671 power4-lmul, power4-imul, power4-imul3): Adjust.
17672 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17673 power5-lmul, power5-imul, power5-imul3): Adjust.
17674 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17675 power6-lmul, power6-imul, power6-imul3): Adjust.
17676 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17677 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17678
17679 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17680 rs64a-lmul): Adjust.
17681 * config/rs6000/titan.md (titan_imul): Adjust.
17682
17683 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17684
17685 * config/rs6000/rs6000.md (type): Add new value "halfmul".
17686 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17687 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17688 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17689 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17690 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17691 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17692 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17693 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17694 * config/rs6000/titan.md: Delete nonsensical comment.
17695 (titan_imul): Add type imul3.
17696 (titan_mulhw): Remove type imul3; add type halfmul.
17697
17698 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17699
17700 * config/rs6000/rs6000.md (type): Reorder, reformat.
17701
17702 2014-05-23 Martin Jambor <mjambor@suse.cz>
17703
17704 PR tree-optimization/53787
17705 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17706 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17707 analysis_done, update all uses.
17708 * ipa-prop.c: Include domwalk.h
17709 (param_analysis_info): Removed.
17710 (param_aa_status): New type.
17711 (ipa_bb_info): Likewise.
17712 (func_body_info): Likewise.
17713 (ipa_get_bb_info): New function.
17714 (aa_overwalked): Likewise.
17715 (find_dominating_aa_status): Likewise.
17716 (parm_bb_aa_status_for_bb): Likewise.
17717 (parm_preserved_before_stmt_p): Changed to use new param AA info.
17718 (load_from_unmodified_param): Accept func_body_info as a parameter
17719 instead of parms_ainfo.
17720 (parm_ref_data_preserved_p): Changed to use new param AA info.
17721 (parm_ref_data_pass_through_p): Likewise.
17722 (ipa_load_from_parm_agg_1): Likewise. Update callers.
17723 (compute_complex_assign_jump_func): Changed to use new param AA info.
17724 (compute_complex_ancestor_jump_func): Likewise.
17725 (ipa_compute_jump_functions_for_edge): Likewise.
17726 (ipa_compute_jump_functions): Removed.
17727 (ipa_compute_jump_functions_for_bb): New function.
17728 (ipa_analyze_indirect_call_uses): Likewise, moved variable
17729 declarations down.
17730 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17731 and info, moved variable declarations down.
17732 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17733 node and info.
17734 (ipa_analyze_stmt_uses): Likewise.
17735 (ipa_analyze_params_uses): Removed.
17736 (ipa_analyze_params_uses_in_bb): New function.
17737 (ipa_analyze_controlled_uses): Likewise.
17738 (free_ipa_bb_info): Likewise.
17739 (analysis_dom_walker): New class.
17740 (ipa_analyze_node): Handle node-specific forbidden analysis,
17741 initialize and free func_body_info, use dominator walker.
17742 (ipcp_modif_dom_walker): New class.
17743 (ipcp_transform_function): Create and free func_body_info, use
17744 ipcp_modif_dom_walker, moved a lot of functionality there.
17745
17746 2014-05-23 Marek Polacek <polacek@redhat.com>
17747 Jakub Jelinek <jakub@redhat.com>
17748
17749 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17750 * gcc.c (sanitize_spec_function): Likewise.
17751 * convert.c (convert_to_integer): Include "ubsan.h". Add
17752 floating-point to integer instrumentation.
17753 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17754 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17755 SANITIZE_NONDEFAULT.
17756 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17757 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17758 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17759 * ubsan.c: Include "realmpfr.h" and "dfp.h".
17760 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17761 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17762 float/double/long double.
17763 (ubsan_instrument_float_cast): New function.
17764 * ubsan.h (ubsan_instrument_float_cast): Declare.
17765
17766 2014-05-23 Jiong Wang <jiong.wang@arm.com>
17767
17768 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17769 predicate.
17770 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
17771 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17772 Adjust for tailcalling through registers.
17773 * config/aarch64/aarch64.h (enum reg_class): New caller save
17774 register class.
17775 (REG_CLASS_NAMES): Likewise.
17776 (REG_CLASS_CONTENTS): Likewise.
17777 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17778 Allow tailcalling without decls.
17779
17780 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17781
17782 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17783 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17784
17785 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17786 gsi, and variables v_* to v*.
17787
17788 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
17789
17790 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17791
17792 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17793
17794 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17795 * omp-low.c: Update accordingly.
17796
17797 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17798 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17799 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17800 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17801 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17802 GF_OMP_TARGET_KIND_UPDATE.
17803
17804 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17805 Explicitly enumerate the expected region types.
17806
17807 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
17808
17809 PR other/56955
17810 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
17811 documentation; the old documentation didn't clearly state the
17812 constraints on the contents of the pointed-to storage.
17813
17814 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17815
17816 Fix bootstrap error on ia64
17817 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17818 Return default value.
17819
17820 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
17821
17822 PR tree-optimization/54733
17823 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17824 (CMPNOP): Define.
17825 (find_bswap_or_nop_load): New.
17826 (find_bswap_1): Renamed to ...
17827 (find_bswap_or_nop_1): This. Also add support for memory source.
17828 (find_bswap): Renamed to ...
17829 (find_bswap_or_nop): This. Also add support for memory source and
17830 detection of bitwise operations equivalent to load in target
17831 endianness.
17832 (execute_optimize_bswap): Likewise. Also move its leading comment back
17833 in place and split statement transformation into ...
17834 (bswap_replace): This.
17835
17836 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17837
17838 PR rtl-optimization/61215
17839 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17840 simplify_gen_subreg until final substitution.
17841
17842 2014-05-23 Alan Modra <amodra@gmail.com>
17843
17844 PR target/61231
17845 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17846 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17847 Use "Y" constraint rather than "m".
17848
17849 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17850
17851 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17852 define.
17853 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17854 New function declaration.
17855 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17856 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17857 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17858 (aarch64_init_builtins) : Initialize builtins
17859 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17860 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17861 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17862 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17863 and __builtins_aarch64_set_fpsr.
17864 (aarch64_atomic_assign_expand_fenv): New function.
17865 * config/aarch64/aarch64.md (set_fpcr): New pattern.
17866 (get_fpcr) : Likewise.
17867 (set_fpsr) : Likewise.
17868 (get_fpsr) : Likewise.
17869 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17870 and UNSPECV_SET_FPSR.
17871 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17872 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17873 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17874
17875 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17876
17877 PR rtl-optimization/60969
17878 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17879 constraints. Set up mem cost for NO_REGS case.
17880
17881 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
17882
17883 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17884
17885 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
17886
17887 * config/darwin.c: Include "lto-section-names.h".
17888 (LTO_SEGMENT_NAME): Don't define.
17889 * config/i386/winnt.c: Include "lto-section-names.h".
17890 * lto-streamer.c: Include "lto-section-names.h".
17891 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17892 * lto-wrapper.c: Include "lto-section-names.h".
17893 (LTO_SECTION_NAME_PREFIX): Don't define.
17894 * lto-section-names.h: New file.
17895 * cgraphunit.c: Include "lto-section-names.h".
17896
17897 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
17898
17899 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17900
17901 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
17902
17903 PR target/61208
17904 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17905
17906 2014-05-22 Nick Clifton <nickc@redhat.com>
17907
17908 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17909
17910 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
17911
17912 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17913 -> (T)A transformation to integer types.
17914
17915 2014-05-22 Teresa Johnson <tejohnson@google.com>
17916
17917 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17918 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17919 (gcov_rewrite): Use gcov_nonruntime_assert.
17920 (gcov_open): Ditto.
17921 (gcov_write_words): Ditto.
17922 (gcov_write_length): Ditto.
17923 (gcov_read_words): Use gcov_nonruntime_assert, and remove
17924 gcc_assert from IN_LIBGCOV code.
17925 (gcov_read_summary): Use gcov_error to flag profile corruption.
17926 (gcov_sync): Use gcov_nonruntime_assert.
17927 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17928 (gcov_histo_index): Use gcov_nonruntime_assert.
17929 (static void gcov_histogram_merge): Ditto.
17930 (compute_working_sets): Ditto.
17931 * gcov-io.h (gcov_nonruntime_assert): Define.
17932 (gcov_error): Define for !IN_LIBGCOV
17933
17934 2014-05-22 Richard Biener <rguenther@suse.de>
17935
17936 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17937 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17938 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17939 and deallocation site.
17940 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17941 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17942 passing through the incoming points-to set.
17943 (handle_lhs_call): Use flags argument instead of recomputing it.
17944 (find_func_aliases_for_call): Call handle_lhs_call with proper
17945 call return flags.
17946
17947 2014-05-22 Jakub Jelinek <jakub@redhat.com>
17948
17949 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17950 all padding bits in REAL_VALUE_TYPE are cleared.
17951
17952 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17953
17954 Cleanup and improve multipass_dfa_lookahead_guard
17955 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17956 (core2i7_first_cycle_multipass_begin,)
17957 (core2i7_first_cycle_multipass_issue,)
17958 (core2i7_first_cycle_multipass_backtrack): Update signature.
17959 * config/ia64/ia64.c
17960 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17961 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17962 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17963 hook definition.
17964 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17965 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
17966 values.
17967 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17968 return values.
17969 * doc/tm.texi: Regenerate.
17970 * doc/tm.texi.in
17971 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17972 * haifa-sched.c (ready_try): Make signed to allow negative values.
17973 (rebug_ready_list_1): Update.
17974 (choose_ready): Simplify.
17975 (sched_extend_ready_list): Update.
17976
17977 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17978
17979 Remove IA64 speculation tweaking flags
17980 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17981 speculation tuning flags.
17982 (msched-prefer-non-data-spec-insns,)
17983 (msched-prefer-non-control-spec-insns): Obsolete options.
17984 * haifa-sched.c (choose_ready): Remove handling of
17985 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17986 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17987 and PREFER_NON_DATA_SPEC.
17988 * sel-sched.c (process_spec_exprs): Remove handling of
17989 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17990
17991 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17992
17993 Improve scheduling debug output
17994 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17995 (advance_one_cycle): Update.
17996 (schedule_insn, queue_to_ready): Add debug printouts.
17997 (debug_ready_list_1): New static function.
17998 (debug_ready_list): Update.
17999 (max_issue): Add debug printouts.
18000 (dump_insn_stream): New static function.
18001 (schedule_block): Use it. Also better indent printouts.
18002
18003 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18004
18005 Fix sched_insn debug counter
18006 * haifa-sched.c (schedule_insn): Update.
18007 (struct haifa_saved_data): Add nonscheduled_insns_begin.
18008 (save_backtrack_point, restore_backtrack_point): Update.
18009 (first_nonscheduled_insn): New static function.
18010 (queue_to_ready, choose_ready): Use it.
18011 (schedule_block): Init nonscheduled_insns_begin.
18012 (sched_emit_insn): Update.
18013
18014
18015 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18016
18017 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
18018 to GENERAL_REGS.
18019 (aarch64_secondary_reload) : LikeWise.
18020 (aarch64_class_max_nregs) : Remove CORE_REGS.
18021 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
18022 (REG_CLASS_NAMES) : Likewise.
18023 (REG_CLASS_CONTENTS) : LikeWise.
18024 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
18025
18026 2014-05-21 Guozhi Wei <carrot@google.com>
18027
18028 PR target/61202
18029 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
18030 constraint.
18031 (vqdmulhq_n_s16): Likewise.
18032
18033 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
18034
18035 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
18036
18037 2014-05-21 Marek Polacek <polacek@redhat.com>
18038
18039 PR sanitizer/61272
18040 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
18041
18042 2014-05-21 Martin Jambor <mjambor@suse.cz>
18043
18044 * doc/invoke.texi (Optimize Options): Document parameters
18045 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18046 ipa-cp-array-index-hint-bonus.
18047
18048 2014-05-21 Mark Wielaard <mjw@redhat.com>
18049
18050 PR debug/16063
18051 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18052 version >= 3 or not strict DWARF.
18053 * langhooks.h (struct lang_hooks_for_types): Add
18054 enum_underlying_base_type.
18055 * langhooks.c (lhd_enum_underlying_base_type): New function.
18056 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18057 enum_underlying_base_type.
18058 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18059 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18060 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18061
18062 2014-05-21 Richard Biener <rguenther@suse.de>
18063
18064 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18065
18066 2014-05-21 John Marino <gnugcc@marino.st>
18067
18068 * config.gcc (*-*-dragonfly*): New target.
18069 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18070 * configure: Regenerate.
18071 * config/dragonfly-stdint.h: New.
18072 * config/dragonfly.h: New.
18073 * config/dragonfly.opt: New.
18074 * config/i386/dragonfly.h: New.
18075 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18076
18077 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18078
18079 * tree.def (VOID_CST): New.
18080 * tree-core.h (TI_VOID): New.
18081 * tree.h (void_node): New.
18082 * tree.c (tree_node_structure_for_code, tree_code_size)
18083 (iterative_hash_expr): Handle VOID_CST.
18084 (build_common_tree_nodes): Initialize void_node.
18085
18086 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18087
18088 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18089 functions.
18090 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18091
18092 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18093 more places.
18094
18095 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18096 flag_reorder_blocks_and_partition.
18097 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18098
18099 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18100
18101 PR target/54236
18102 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18103 constraints.
18104 (*addc_r_t): Add new insn_and_split.
18105
18106 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18107
18108 PR middle-end/61252
18109 * omp-low.c (handle_simd_reference): New function.
18110 (lower_rec_input_clauses): Use it. Defer adding reference
18111 initialization even for reduction without placeholder if in simd,
18112 handle it properly later on.
18113
18114 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18115
18116 PR tree-optimization/60899
18117 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18118 assume all static symbols will have definition wile parsing and
18119 check the do have definition later in compilation; check that
18120 variable referring symbol will be output before concluding that
18121 reference is safe; be conservative for referring local statics;
18122 be more precise about when comdat is output in other partition.
18123
18124 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18125
18126 PR bootstrap/60984
18127 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18128 parameter.
18129 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18130 (ipa_inline): Loop inline_to_all_callers until no more aliases
18131 are removed.
18132
18133 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18134
18135 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18136 set writeonly flag only for vars actually written to.
18137
18138 2014-05-20 Dehao Chen <dehao@google.com>
18139
18140 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18141 and callee count to get clone count.
18142 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18143 count in copy_body.
18144
18145 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18146
18147 PR rtl-optimization/61243
18148 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18149
18150 2014-05-20 Xinliang David Li <davidxl@google.com>
18151
18152 * cgraphunit.c (walk_polymorphic_call_targets): Add
18153 dbgcnt and fopt-info support.
18154 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18155 * ipa-devirt.c (ipa_devirt): Ditto.
18156 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18157 * ipa.c (walk_polymorphic_call_targets): Ditto.
18158 * gimple-fold.c (fold_gimple_assign): Ditto.
18159 (gimple_fold_call): Ditto.
18160 * dbgcnt.def: New counter.
18161
18162 2014-05-20 DJ Delorie <dj@redhat.com>
18163
18164 * config/msp430/msp430.md (split): Don't allow subregs when
18165 splitting SImode adds.
18166 (andneghi): Fix subtraction logic.
18167 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18168
18169 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18170
18171 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18172 symbols.
18173 * except.c (switch_to_exception_section, resolve_unique_section,
18174 get_named_text_section, default_function_rodata_section,
18175 align_variable, get_block_for_decl, default_section_type_flags):
18176 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18177 * symtab.c (symtab_add_to_same_comdat_group,
18178 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18179 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18180 Likewise.
18181 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18182 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18183 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18184 (c6x_function_in_section_p): Likewise.
18185 * config/darwin.c (machopic_select_section): Likewise.
18186 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18187 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18188 * config/mep/mep.c (mep_select_section): LIkewise.
18189 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18190
18191 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18192
18193 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18194 EH region of calls to pure functions that can throw an exception.
18195 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18196 (copy_reference_ops_from_call): Also copy the EH region of the call if
18197 it can throw an exception.
18198
18199 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18200
18201 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18202 nested VEC_SELECTs that are inverses of each other.
18203
18204 2014-05-20 Richard Biener <rguenther@suse.de>
18205
18206 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18207 (extract_and_process_scc_for_name): not here.
18208 (cond_dom_walker::before_dom_children): Only process
18209 stmts that end the BB in interesting ways.
18210 (run_scc_vn): Mark param uses as visited.
18211
18212 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18213
18214 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18215 arm_restrict_it.
18216
18217 2014-05-20 Nick Clifton <nickc@redhat.com>
18218
18219 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18220 (msp430_gimplify_va_arg_expr): New function.
18221 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18222
18223 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18224 operand 0 in order to prevent confusion about the number of
18225 registers involved.
18226
18227 2014-05-20 Richard Biener <rguenther@suse.de>
18228
18229 PR tree-optimization/61221
18230 * tree-ssa-pre.c (el_to_update): Remove.
18231 (eliminate_dom_walker::before_dom_children): Handle released
18232 VDEFs by value-numbering them to the associated VUSE. Update
18233 stmt immediately for substituted call address.
18234 (eliminate): Remove delayed stmt updating code.
18235 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18236 possibly late re-numbered vuses.
18237 (vn_reference_lookup_2): Adjust.
18238 (vn_reference_lookup_pieces): Likewise.
18239 (vn_reference_lookup): Likewise.
18240
18241 2014-05-20 Richard Biener <rguenther@suse.de>
18242
18243 * config.gcc: Remove need_64bit_hwint.
18244 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18245 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18246 it to be true.
18247 * config.in: Regenerate.
18248 * configure: Likewise.
18249
18250 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18251
18252 * doc/extend.texi: Create Label Attributes section,
18253 move all label attributes into it and reference it.
18254
18255 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18256
18257 * arm.c (thumb1_reorg): When scanning backwards skip anything
18258 that's not a proper insn.
18259
18260 2014-05-19 Richard Biener <rguenther@suse.de>
18261
18262 PR tree-optimization/61221
18263 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18264 Do nothing for unreachable blocks.
18265 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18266 Improve unreachability detection.
18267
18268 2014-05-19 Richard Biener <rguenther@suse.de>
18269
18270 PR tree-optimization/61209
18271 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18272
18273 2014-05-19 Nick Clifton <nickc@redhat.com>
18274
18275 * except.c (init_eh): Fix computation of builtin setjmp buffer
18276 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18277
18278 2014-05-19 Richard Biener <rguenther@suse.de>
18279
18280 PR tree-optimization/61184
18281 * tree-vrp.c (is_negative_overflow_infinity): Use
18282 TREE_OVERFLOW_P and do that check first.
18283 (is_positive_overflow_infinity): Likewise.
18284 (is_overflow_infinity): Likewise.
18285 (vrp_operand_equal_p): Properly treat operands with
18286 differing overflow as not equal.
18287
18288 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18289
18290 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18291 shift simplification where it was intended.
18292
18293 2014-05-19 Christian Bruel <christian.bruel@st.com>
18294
18295 PR target/61195
18296 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18297
18298 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18299
18300 PR target/61084
18301 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18302 than wide_int.
18303
18304 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18305
18306 * reg-notes.def (CROSSING_JUMP): Likewise.
18307 * rtl.h (rtx_def): Update comment for jump flag.
18308 (CROSSING_JUMP_P): Define.
18309 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18310 of a REG_CROSSING_JUMP note.
18311 * cfghooks.c (tidy_fallthru_edges): Likewise.
18312 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18313 * emit-rtl.c (try_split): Likewise.
18314 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18315 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18316 * jump.c (redirect_jump_2): Likewise.
18317 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18318 (relax_delay_slots): Likewise.
18319 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18320 (bbit_di): Likewise.
18321 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18322 * config/sh/sh.md (jump_compact): Likewise.
18323 * bb-reorder.c (rotate_loop): Likewise.
18324 (pass_duplicate_computed_gotos::execute): Likewise.
18325 (add_reg_crossing_jump_notes): Rename to...
18326 (update_crossing_jump_flags): ...this.
18327 (pass_partition_blocks::execute): Update accordingly.
18328
18329 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18330
18331 * tree.h: Remove extraneous template <>.
18332
18333 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18334
18335 * ipa.c (symtab_remove_unreachable_nodes): Remove
18336 symbol from comdat group if its body was eliminated.
18337 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18338 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18339 (symtab_unregister_node): ... this one.
18340 (verify_symtab_base): More strict checking of comdats.
18341 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18342
18343 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18344
18345 * tree-pass.h (make_pass_ipa_comdats): New pass.
18346 * timevar.def (TV_IPA_COMDATS): New timevar.
18347 * passes.def (pass_ipa_comdats): Add.
18348 * Makefile.in (OBJS): Add ipa-comdats.o
18349 * ipa-comdats.c: New file.
18350
18351 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18352
18353 * ipa.c (update_visibility_by_resolution_info): New function.
18354 (function_and_variable_visibility): Use it.
18355
18356 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18357
18358 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18359 New functions.
18360 (FOR_EACH_DEFINED_SYMBOL): New macro.
18361 (varpool_first_static_initializer, varpool_next_static_initializer,
18362 varpool_first_defined_variable, varpool_next_defined_variable):
18363 Fix comments.
18364 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18365
18366 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18367
18368 * ggc-page.c (ggc_handle_finalizers): Add comment.
18369
18370 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18371
18372 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
18373 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
18374 (ggc_internal_cleared_alloc): Likewise.
18375 * ggc-page.c (finalizer): New class.
18376 (vec_finalizer): Likewise.
18377 (globals::finalizers): New member.
18378 (globals::vec_finalizers): Likewise.
18379 (ggc_internal_alloc): Record the finalizer if any for the block being
18380 allocated.
18381 (ggc_handle_finalizers): New function.
18382 (ggc_collect): Call ggc_handle_finalizers.
18383 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
18384 finalizer.
18385 (ggc_internal_cleared_alloc): Likewise.
18386 (finalize): New function.
18387 (need_finalization_p): Likewise.
18388 (ggc_alloc): Install the type's destructor as the finalizer if it
18389 might do something.
18390 (ggc_cleared_alloc): Likewise.
18391 (ggc_vec_alloc): Likewise.
18392 (ggc_cleared_vec_alloc): Likewise.
18393
18394 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18395
18396 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
18397
18398 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18399
18400 * alias.c (record_alias_subset): Adjust.
18401 * bitmap.c (bitmap_element_allocate): Likewise.
18402 (bitmap_gc_alloc_stat): Likewise.
18403 * cfg.c (init_flow): Likewise.
18404 (alloc_block): Likewise.
18405 (unchecked_make_edge): Likewise.
18406 * cfgloop.c (alloc_loop): Likewise.
18407 (flow_loops_find): Likewise.
18408 (rescan_loop_exit): Likewise.
18409 * cfgrtl.c (init_rtl_bb_info): Likewise.
18410 * cgraph.c (insert_new_cgraph_node_version): Likewise.
18411 (cgraph_allocate_node): Likewise.
18412 (cgraph_create_edge_1): Likewise.
18413 (cgraph_allocate_init_indirect_info): Likewise.
18414 * cgraphclones.c (cgraph_clone_edge): Likewise.
18415 * cgraphunit.c (add_asm_node): Likewise.
18416 (init_lowered_empty_function): Likewise.
18417 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
18418 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18419 (alpha_use_linkage): Likewise.
18420 * config/arc/arc.c (arc_init_machine_status): Likewise.
18421 * config/arm/arm.c (arm_init_machine_status): Likewise.
18422 * config/avr/avr.c (avr_init_machine_status): Likewise.
18423 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18424 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
18425 * config/cris/cris.c (cris_init_machine_status): Likewise.
18426 * config/darwin.c (machopic_indirection_name): Likewise.
18427 (darwin_build_constant_cfstring): Likewise.
18428 (darwin_enter_string_into_cfstring_table): Likewise.
18429 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
18430 * config/frv/frv.c (frv_init_machine_status): Likewise.
18431 * config/i386/i386.c (get_dllimport_decl): Likewise.
18432 (ix86_init_machine_status): Likewise.
18433 (assign_386_stack_local): Likewise.
18434 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18435 (i386_pe_maybe_record_exported_symbol): Likewise.
18436 (i386_pe_record_stub): Likewise.
18437 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18438 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18439 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18440 (m32c_note_pragma_address): Likewise.
18441 * config/mep/mep.c (mep_init_machine_status): Likewise.
18442 (mep_note_pragma_flag): Likewise.
18443 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18444 (mips16_local_alias): Likewise.
18445 (mips_init_machine_status): Likewise.
18446 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18447 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18448 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
18449 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
18450 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
18451 * config/pa/pa.c (pa_init_machine_status): Likewise.
18452 (pa_get_deferred_plabel): Likewise.
18453 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
18454 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18455 (rs6000_init_machine_status): Likewise.
18456 (output_toc): Likewise.
18457 * config/s390/s390.c (s390_init_machine_status): Likewise.
18458 * config/score/score.c (score_output_external): Likewise.
18459 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18460 * config/spu/spu.c (spu_init_machine_status): Likewise.
18461 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
18462 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
18463 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18464 * coverage.c (coverage_end_function): Likewise.
18465 * dbxout.c (dbxout_init): Likewise.
18466 * doc/gty.texi: Don't mention variable_size attribute.
18467 * dwarf2cfi.c (new_cfi): Adjust.
18468 (new_cfi_row): Likewise.
18469 (copy_cfi_row): Likewise.
18470 (create_cie_data): Likewise.
18471 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
18472 (new_loc_descr): Likewise.
18473 (find_AT_string_in_table): Likewise.
18474 (add_addr_table_entry): Likewise.
18475 (new_die): Likewise.
18476 (add_var_loc_to_decl): Likewise.
18477 (clone_die): Likewise.
18478 (clone_as_declaration): Likewise.
18479 (break_out_comdat_types): Likewise.
18480 (new_loc_list): Likewise.
18481 (add_loc_descr_to_each): Likewise.
18482 (add_location_or_const_value_attribute): Likewise.
18483 (add_linkage_name): Likewise.
18484 (lookup_filename): Likewise.
18485 (dwarf2out_var_location): Likewise.
18486 (new_line_info_table): Likewise.
18487 (dwarf2out_init): Likewise.
18488 (mem_loc_descriptor): Likewise.
18489 (loc_descriptor): Likewise.
18490 (add_const_value_attribute): Likewise.
18491 (tree_add_const_value_attribute): Likewise.
18492 (comp_dir_string): Likewise.
18493 (dwarf2out_vms_debug_main_pointer): Likewise.
18494 (string_cst_pool_decl): Likewise.
18495 * emit-rtl.c (set_mem_attrs): Likewise.
18496 (get_reg_attrs): Likewise.
18497 (start_sequence): Likewise.
18498 (init_emit): Likewise.
18499 (init_emit_regs): Likewise.
18500 * except.c (init_eh_for_function): Likewise.
18501 (gen_eh_region): Likewise.
18502 (gen_eh_region_catch): Likewise.
18503 (gen_eh_landing_pad): Likewise.
18504 (add_call_site): Likewise.
18505 * function.c (add_frame_space): Likewise.
18506 (insert_temp_slot_address): Likewise.
18507 (assign_stack_temp_for_type): Likewise.
18508 (get_hard_reg_initial_val): Likewise.
18509 (allocate_struct_function): Likewise.
18510 (prepare_function_start): Likewise.
18511 (types_used_by_var_decl_insert): Likewise.
18512 * gengtype.c (variable_size_p): Remove function.
18513 (enum alloc_quantity): Remove enum.
18514 (write_typed_alloc_def): Remove function.
18515 (write_typed_struct_alloc_def): Likewise.
18516 (write_typed_typedef_alloc_def): Likewise.
18517 (write_typed_alloc_defns): Likewise.
18518 (main): Adjust.
18519 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
18520 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
18521 * ggc.h (ggc_alloc): new function.
18522 (ggc_cleared_alloc): Likewise.
18523 (ggc_vec_alloc): Template on type of vector element, and remove
18524 element size argument.
18525 (ggc_cleared_vec_alloc): Likewise.
18526 * gimple.c (gimple_build_omp_for): Adjust.
18527 (gimple_copy): Likewise.
18528 * ipa-cp.c (get_replacement_map): Likewise.
18529 (find_aggregate_values_for_callers_subset): Likewise.
18530 (known_aggs_to_agg_replacement_list): Likewise.
18531 * ipa-devirt.c (get_odr_type): Likewise.
18532 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
18533 (read_agg_replacement_chain): Likewise.
18534 * loop-iv.c (get_simple_loop_desc): Likewise.
18535 * lto-cgraph.c (input_node_opt_summary): Likewise.
18536 * lto-section-in.c (lto_new_in_decl_state): Likewise.
18537 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18538 (input_eh_region): Likewise.
18539 (input_eh_lp): Likewise.
18540 (input_cfg): Likewise.
18541 * optabs.c (set_optab_libfunc): Likewise.
18542 (init_tree_optimization_optabs): Likewise.
18543 (set_conv_libfunc): Likewise.
18544 * passes.c (do_per_function_toporder): Likewise.
18545 * rtl.h: Don't use variable_size gty attribute.
18546 * sese.c (if_region_set_false_region): Adjust.
18547 * stringpool.c (gt_pch_save_stringpool): Likewise.
18548 * target-globals.c (save_target_globals): Likewise.
18549 * toplev.c (general_init): Likewise.
18550 * trans-mem.c (record_tm_replacement): Likewise.
18551 (split_bb_make_tm_edge): Likewise.
18552 * tree-cfg.c (move_sese_region_to_fn): Likewise.
18553 * tree-data-ref.h (lambda_vector_new): Likewise.
18554 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18555 * tree-iterator.c (tsi_link_before): Likewise.
18556 (tsi_link_after): Likewise.
18557 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18558 * tree-ssa-loop-niter.c (record_estimate): Likewise.
18559 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18560 * tree-ssa-operands.h: Don't use variable_size gty attribute.
18561 * tree-ssa.c (init_tree_ssa): Adjust.
18562 * tree-ssanames.c (set_range_info): Likewise.
18563 (get_ptr_info): Likewise.
18564 (duplicate_ssa_name_ptr_info): Likewise.
18565 (duplicate_ssa_name_range_info): Likewise.
18566 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
18567 (unpack_ts_fixed_cst_value_fields): Likewise.
18568 * tree.c (build_fixed): Likewise.
18569 (build_real): Likewise.
18570 (build_string): Likewise.
18571 (decl_priority_info): Likewise.
18572 (decl_debug_expr_insert): Likewise.
18573 (decl_value_expr_insert): Likewise.
18574 (decl_debug_args_insert): Likewise.
18575 (type_hash_add): Likewise.
18576 (build_omp_clause): Likewise.
18577 * ubsan.c (decl_for_type_insert): Likewise.
18578 * varasm.c (get_unnamed_section): Likewise.
18579 (get_noswitch_section): Likewise.
18580 (get_section): Likewise.
18581 (get_block_for_section): Likewise.
18582 (create_block_symbol): Likewise.
18583 (build_constant_desc): Likewise.
18584 (create_constant_pool): Likewise.
18585 (force_const_mem): Likewise.
18586 (record_tm_clone_pair): Likewise.
18587 * varpool.c (varpool_create_empty_node): Likewise.
18588
18589 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18590
18591 * dwarf2out.c (tree_add_const_value_attribute): Call
18592 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
18593 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
18594 instead of ggc_internal_<x>alloc_stat.
18595 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
18596 (ggc_realloc): Likewise.
18597 * ggc-none.c (ggc_internal_alloc): Likewise.
18598 (ggc_internal_cleared_alloc): Likewise.
18599 * ggc-page.c: Likewise.
18600 * ggc.h (ggc_internal_alloc_stat): Likewise.
18601 (ggc_internal_alloc): Remove macro.
18602 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
18603 (ggc_internal_cleared_alloc): Remove macro.
18604 (GGC_RESIZEVEC): Adjust.
18605 (ggc_resizevar): Remove macro.
18606 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
18607 (ggc_internal_cleared_vec_alloc_stat): Likewise.
18608 (ggc_internal_vec_cleared_alloc): Remove macro.
18609 (ggc_alloc_atomic_stat): Drop _stat suffix.
18610 (ggc_alloc_atomic): Remove macro.
18611 (ggc_alloc_cleared_atomic): Remove macro.
18612 (ggc_alloc_string_stat): Drop _stat suffix.
18613 (ggc_alloc_string): Remove macro.
18614 (ggc_alloc_rtx_def_stat): Adjust.
18615 (ggc_alloc_tree_node_stat): Likewise.
18616 (ggc_alloc_cleared_tree_node_stat): Likewise.
18617 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
18618 (ggc_alloc_cleared_simd_clone_stat): Likewise.
18619 * gimple.c (gimple_build_omp_for): Likewise.
18620 (gimple_copy): Likewise.
18621 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
18622 * toplev.c (realloc_for_line_map): Adjust.
18623 * tree-data-ref.h (lambda_vector_new): Likewise.
18624 * tree-phinodes.c (allocate_phi_node): Likewise.
18625 * tree.c (grow_tree_vec_stat): Likewise.
18626 * vec.h (va_gc::reserve): Adjust.
18627
18628 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
18629
18630 * config/microblaze/microblaze.c (break_handler): New Declaration.
18631 (microblaze_break_function_p,microblaze_is_break_handler): New.
18632 (compute_frame_size): Use microblaze_break_function_p.
18633 Add the test of break_handler.
18634 (microblaze_function_prologue) : Add the test of variable
18635 break_handler. Check the fnname by BREAK_HANDLER_NAME.
18636 (microblaze_function_epilogue) : Add the test of break_handler.
18637 (microblaze_globalize_label) : Add the test of break_handler.
18638 Check the name by BREAK_HANDLER_NAME.
18639
18640 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
18641
18642 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
18643 microblaze_is_break_handler test.
18644 (call_internal1,call_value_intern): Use microblaze_break_function_p.
18645 Use SYMBOL_REF_DECL.
18646
18647 * config/microblaze/microblaze-protos.h
18648 (microblaze_break_function_p,microblaze_is_break_handler):
18649 New Declaration.
18650
18651 * doc/extend.texi (MicroBlaze break_handler Functions): Document
18652 new MicroBlaze break_handler functions.
18653
18654 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18655
18656 * doc/extend.texi (Size of an asm): Move node text according
18657 to its @menu entry position.
18658
18659 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
18660
18661 PR tree-optimization/61140
18662 PR tree-optimization/61150
18663 PR tree-optimization/61197
18664 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18665
18666 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18667
18668 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
18669
18670 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
18671
18672 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18673 __SIZEOF_INT128__ is defined.
18674
18675 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18676
18677 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18678 (rs6000_delegitimize_address): Use it.
18679
18680 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18681
18682 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18683 inplace argument. Store the new address in the original MEM when true.
18684 * emit-rtl.c (change_address_1): Likewise.
18685 (adjust_address_1, adjust_automodify_address_1, offset_address):
18686 Update accordingly.
18687 * rtl.h (plus_constant): Add an inplace argument.
18688 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
18689 when true. Avoid generating (plus X (const_int 0)).
18690 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18691 in-place. Pass true to plus_constant.
18692 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18693
18694 2014-05-16 Dehao Chen <dehao@google.com>
18695
18696 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18697
18698 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18699
18700 PR target/54089
18701 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18702 patterns.
18703 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18704
18705 2014-05-16 Dehao Chen <dehao@google.com>
18706
18707 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18708 optimize_function_for_size_p.
18709 * regs.h (REG_FREQ_FROM_BB): Likewise.
18710
18711 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18712
18713 PR target/51244
18714 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18715 negt_reg_operand cases.
18716 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18717 predicate.
18718 * config/sh/predicates.md (cbranch_treg_value): Simplify.
18719
18720 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18721
18722 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18723 target variants.
18724
18725 2014-05-16 David Malcolm <dmalcolm@redhat.com>
18726
18727 Revert:
18728 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18729
18730 * tree-cfg.c (dump_function_to_file): Dump the return type of
18731 functions, in a line to itself before the function body, mimicking
18732 the layout of a C function.
18733
18734 2014-05-16 Dehao Chen <dehao@google.com>
18735
18736 * cfghooks.c (make_forwarder_block): Use direct computation to
18737 get fall-through edge's count and frequency.
18738
18739 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
18740
18741 * config/arc/arc.c (arc_init): Fix typo in error message.
18742 * config/i386/i386.c (ix86_expand_builtin): Likewise.
18743 (split_stack_prologue_scratch_regno): Likewise.
18744 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18745 word from error message.
18746
18747 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18748
18749 * ira-costs.c: Fix typo in comment.
18750
18751 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
18752
18753 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18754
18755 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
18756
18757 * varpool.c (dump_varpool_node): Dump write-only flag.
18758 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18759 write-only flag.
18760 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18761 write-only variables.
18762 * ipa.c (process_references): New function.
18763 (set_readonly_bit): New function.
18764 (set_writeonly_bit): New function.
18765 (clear_addressable_bit): New function.
18766 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18767 fix handling of aliases.
18768 * cgraph.h (struct varpool_node): Add writeonly flag.
18769
18770 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
18771
18772 PR rtl-optimization/60969
18773 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18774 Calculate costs for this case.
18775
18776 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
18777
18778 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18779 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18780
18781 2014-05-16 Richard Biener <rguenther@suse.de>
18782
18783 PR tree-optimization/61194
18784 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18785 bool patterns ending in a COND_EXPR.
18786
18787 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18788
18789 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18790
18791 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18792
18793 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18794 where we were unable to cost an RTX.
18795
18796 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18797
18798 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18799 HIGH, LO_SUM.
18800
18801 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18802 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18803
18804 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18805
18806 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18807 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18808
18809 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18810 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18811
18812 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18813 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18814
18815 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18816 operators.
18817
18818 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18819 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18820
18821 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18822 DIV/MOD.
18823
18824 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18825 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18826
18827 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18828 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18829
18830 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18831 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18832
18833 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18834 rotates and shifts.
18835
18836 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18837 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18838
18839 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18840 ZERO_EXTEND and SIGN_EXTEND better.
18841
18842 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18843 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18844
18845 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18846 logical operations.
18847
18848 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18849 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18850
18851 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18852 costs when costing loads and stores to memory.
18853
18854 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18855 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
18856
18857 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18858 for SET RTX.
18859
18860 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18861
18862 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18863
18864 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18865 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18866
18867 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18868 to...
18869 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18870 well formed.
18871 (aarch64_rtx_mult_cost): New.
18872 (aarch64_rtx_costs): Use it, refactor as appropriate.
18873
18874 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18875 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18876
18877 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18878 emit instructions, return number of instructions which would
18879 be emitted.
18880 (aarch64_add_constant): Update call to aarch64_build_constant.
18881 (aarch64_output_mi_thunk): Likewise.
18882 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18883 a CONST_DOUBLE.
18884
18885 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18886
18887 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18888 (TARGET_RTX_COSTS): Call it.
18889
18890 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18891
18892 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18893 (cortexa57_vector_cost): Likewise.
18894 (cortexa57_tunings): Use them.
18895
18896 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18897
18898 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18899 (cpu_addrcost_table): Use it.
18900 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18901 (aarch64_address_cost): Rewrite using aarch64_classify_address,
18902 move it.
18903
18904 2014-05-16 Richard Biener <rguenther@suse.de>
18905
18906 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18907 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18908 (visit_phi): Ignore edges marked as not executable.
18909 (class cond_dom_walker): New.
18910 (cond_dom_walker::before_dom_children): Value-number
18911 control statements and mark successor edges as not
18912 executable if possible.
18913 (run_scc_vn): First walk all control statements in
18914 dominator order, marking edges as not executable.
18915 * tree-inline.c (copy_edges_for_bb): Be not confused
18916 about random edge flags.
18917
18918 2014-05-16 Richard Biener <rguenther@suse.de>
18919
18920 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18921
18922 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
18923
18924 PR target/61193
18925 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18926 (__TM_simple_begin): Use it.
18927 (__TM_begin): Likewise.
18928
18929 2014-05-15 Martin Jambor <mjambor@suse.cz>
18930
18931 PR ipa/61085
18932 * ipa-prop.c (update_indirect_edges_after_inlining): Check
18933 type_preserved flag when the indirect edge is polymorphic.
18934
18935 2014-05-15 Martin Jambor <mjambor@suse.cz>
18936
18937 PR tree-optimization/61090
18938 * tree-sra.c (sra_modify_expr): Pass the current gsi to
18939 build_ref_for_model.
18940
18941 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18942
18943 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18944 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18945
18946 2014-05-15 Jakub Jelinek <jakub@redhat.com>
18947
18948 PR tree-optimization/61158
18949 * fold-const.c (fold_binary_loc): If X is zero-extended and
18950 shiftc >= prec, make sure zerobits is all ones instead of
18951 invoking undefined behavior.
18952
18953 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18954
18955 * regcprop.h: New file.
18956 * regcprop.c (skip_debug_insn_p): New decl.
18957 (replace_oldest_value_reg): Check skip_debug_insn_p.
18958 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18959 * shrink-wrap.c: Include regcprop.h.
18960 (prepare_shrink_wrap): Call
18961 copyprop_hardreg_forward_bb_without_debug_insn.
18962
18963 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18964
18965 * shrink-wrap.h: Update comment.
18966 * shrink-wrap.c: Update comment.
18967 (next_block_for_reg): Rename to live_edge_for_reg.
18968 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18969 (move_insn_for_shrink_wrap): Split live_edge.
18970 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18971
18972 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18973
18974 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18975 Delete.
18976 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18977 * config/sparc/sparc.md (fptype_ut699): New attribute.
18978 (in_branch_delay): Return false if -mfix-ut699 is specified and
18979 fptype_ut699 is set to single.
18980 (truncdfsf2): Add fptype_ut699 attribute.
18981 (fix_truncdfsi2): Likewise.
18982 (floatsisf2): Change fptype attribute.
18983 (fix_truncsfsi2): Likewise.
18984 (negtf2_notv9): Delete.
18985 (negtf2_v9): Likewise.
18986 (negtf2_hq): New instruction.
18987 (negtf2): New instruction and splitter.
18988 (negdf2_notv9): Rewrite.
18989 (abstf2_notv9): Delete.
18990 (abstf2_hq_v9): Likewise.
18991 (abstf2_v9): Likewise.
18992 (abstf2_hq): New instruction.
18993 (abstf2): New instruction and splitter.
18994 (absdf2_notv9): Rewrite.
18995
18996 2014-05-14 Cary Coutant <ccoutant@google.com>
18997
18998 PR debug/61013
18999 * opts.c (common_handle_option): Don't special-case "-g".
19000 (set_debug_level): Default to at least level 2 with "-g".
19001
19002 2014-05-14 DJ Delorie <dj@redhat.com>
19003
19004 * config/msp430/msp430.c (msp430_builtin): Add
19005 MSP430_BUILTIN_DELAY_CYCLES.
19006 (msp430_init_builtins): Register void __delay_cycles(long long).
19007 (msp430_builtin_decl): Add it.
19008 (cg_magic_constant): New.
19009 (msp430_expand_delay_cycles): New.
19010 (msp430_expand_builtin): Call it.
19011 (msp430_print_operand_raw): Change integer printing from "int" to
19012 HOST_WIDE_INT.
19013 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
19014 (delay_cycles_start): New.
19015 (delay_cycles_end): New.
19016 (delay_cycles_32): New.
19017 (delay_cycles_32x): New.
19018 (delay_cycles_16): New.
19019 (delay_cycles_16x): New.
19020 (delay_cycles_2): New.
19021 (delay_cycles_1): New.
19022 * doc/extend.texi: Document __delay_cycles().
19023
19024 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
19025
19026 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
19027 length attribute computation.
19028
19029 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
19030
19031 PR debug/61188
19032 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
19033
19034 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
19035
19036 PR target/61084
19037 * config/sparc/sparc.md: Fix types of low and high in DI constant
19038 splitter. Use gen_int_mode in some other splitters.
19039
19040 2014-05-14 Martin Jambor <mjambor@suse.cz>
19041
19042 PR ipa/60897
19043 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19044
19045 2014-05-14 James Norris <jnorris@codesourcery.com>
19046
19047 * omp-low.c (expand_parallel_call): Remove shadow variable.
19048 (expand_omp_taskreg): Likewise.
19049
19050 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19051
19052 * common/config/i386/i386-common.c
19053 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19054 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19055 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19056 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19057 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19058 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19059 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19060 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19061 xsavecintrin.h, xsavesintrin.h.
19062 (x86_64-*-*): Ditto.
19063 * config/i386/clflushoptintrin.h: New.
19064 * config/i386/xsavecintrin.h: Ditto.
19065 * config/i386/xsavesintrin.h: Ditto.
19066 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19067 (bit_XSAVES): Ditto.
19068 (bit_XSAVES): Ditto.
19069 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19070 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19071 -mno-clflushopt.
19072 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19073 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19074 OPTION_MASK_ISA_XSAVES.
19075 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19076 -mxsavec, -mxsaves.
19077 (PTA_CLFLUSHOPT) Define.
19078 (PTA_XSAVEC): Ditto.
19079 (PTA_XSAVES): Ditto.
19080 (ix86_option_override_internal): Handle new options.
19081 (ix86_valid_target_attribute_inner_p): Ditto.
19082 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19083 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19084 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19085 (bdesc_special_args): Add __builtin_ia32_xsaves,
19086 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19087 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19088 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19089 (ix86_expand_builtin): Handle new builtins.
19090 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19091 (TARGET_CLFLUSHOPT_P): Ditto.
19092 (TARGET_XSAVEC): Ditto.
19093 (TARGET_XSAVEC_P): Ditto.
19094 (TARGET_XSAVES): Ditto.
19095 (TARGET_XSAVES_P): Ditto.
19096 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19097 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19098 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19099 (ANY_XRSTOR): New.
19100 (ANY_XRSTOR64): Ditto.
19101 (xrstor): Ditto.
19102 (xrstor): Change into <xrstor>.
19103 (xrstor_rex64): Change into <xrstor>_rex64.
19104 (xrstor64): Change into <xrstor>64
19105 (clflushopt): New.
19106 * config/i386/i386.opt (mclflushopt): New.
19107 (mxsavec): Ditto.
19108 (mxsaves): Ditto.
19109 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19110 xsavecintrin.h.
19111 * doc/invoke.texi: Document new options.
19112
19113 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19114
19115 PR rtl-optimization/60866
19116 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19117 Default it to -1. Pass it down to init_simplejump_data.
19118 (init_simplejump_data): New parameter old_seqno. Pass it down
19119 to get_seqno_for_a_jump.
19120 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19121 initializing new jump seqno as a last resort. Add comment.
19122 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19123 jump and pass it down to sel_init_new_insn.
19124 (sel_redirect_edge_and_branch_force): Likewise.
19125
19126 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19127
19128 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19129 shifted values to avoid build warning.
19130
19131 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19132
19133 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19134 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19135 (cfg_layout_merge_blocks): Likewise.
19136 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19137
19138 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19139
19140 PR rtl-optimization/60901
19141 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19142 bb predecessor belongs to the same scheduling region. Adjust comment.
19143
19144 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19145
19146 * doc/sourcebuild.texi: (dfp_hw): Document.
19147 (p8vector_hw): Likewise.
19148 (powerpc_eabi_ok): Likewise.
19149 (powerpc_elfv2): Likewise.
19150 (powerpc_htm_ok): Likewise.
19151 (ppc_recip_hw): Likewise.
19152 (vsx_hw): Likewise.
19153
19154 2014-05-13 Cary Coutant <ccoutant@google.com>
19155
19156 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19157
19158 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19159
19160 * gengtype-parse.c (require3): Eliminate in favor of...
19161 (require4): New.
19162 (require_template_declaration): Update to support optional single *
19163 on a type.
19164
19165 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19166 (create_user_defined_type): Handle a single level of explicit
19167 pointerness within template arguments.
19168 (struct write_types_data): Add field "kind".
19169 (filter_type_name): Handle "*" character.
19170 (write_user_func_for_structure_ptr): Require a write_types_data
19171 rather than just a prefix string, so that we can look up the kind
19172 of the wtd and use it as an index into wrote_user_func_for_ptr,
19173 ensuring that such functions are written at most once. Support
19174 subclasses by invoking the marking function of the ultimate base class.
19175 (write_user_func_for_structure_body): Require a write_types_data
19176 rather than just a prefix string, so that we can pass this to
19177 write_user_func_for_structure_ptr.
19178 (write_func_for_structure): Likewise.
19179 (ggc_wtd): Add initializer of new "kind" field.
19180 (pch_wtd): Likewise.
19181
19182 * gengtype.h (enum write_types_kinds): New.
19183 (struct type): Add field wrote_user_func_for_ptr to the "s"
19184 union member.
19185
19186 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19187
19188 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19189 instead of const_binop.
19190 (fold_binary_loc): Likewise.
19191
19192 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19193
19194 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19195 calculation to match get_ref_base_and_extent.
19196
19197 2014-05-13 Catherine Moore <clm@codesourcery.com>
19198 Sandra Loosemore <sandra@codesourcery.com>
19199
19200 * configure.ac: Fix assembly for explicit JALR relocation check.
19201 * configure: Regenerate.
19202
19203 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19204
19205 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19206 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19207 Remove associated type declarations and initialisations.
19208 (arm_expand_neon_builtin): Likewise.
19209 (neon_emit_pair_result_insn): Delete.
19210 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19211 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19212 (neon_vzip<mode>): Likewise.
19213 (neon_vuzp<mode>): Likewise.
19214
19215 2014-05-13 Richard Biener <rguenther@suse.de>
19216
19217 PR ipa/60973
19218 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19219 it needs revisiting whether the call still may be tail-called.
19220
19221 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19222
19223 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19224 * rtl.h (block_symbol): Reduce number of fields to 2.
19225 (rtx_def): Add u2.symbol_ref_flags.
19226 (SYMBOL_REF_FLAGS): Use it.
19227 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19228 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19229 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19230 Lower index of SYMBOL_REF_DATA.
19231 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19232 Print SYMBOL_REF_FLAGS at the same time.
19233 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19234
19235 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19236
19237 * rtl.def (VAR_LOCATION): Remove "i" field.
19238 * rtl.h (rtx_def): Add u2.var_location_status.
19239 (PAT_VAR_LOCATION_STATUS): Use it.
19240 (gen_rtx_VAR_LOCATION): Declare.
19241 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19242 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19243 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19244
19245 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19246
19247 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19248 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19249
19250 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19251
19252 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19253 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19254 * rtl.h (rtx_def): Add insn_uid to u2 field.
19255 (RTX_FLAG_CHECK8): Delete in favor of...
19256 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19257 (INSN_DELETED_P): Update accordingly.
19258 (INSN_UID): Use u2.insn_uid.
19259 (INSN_CHAIN_CODE_P): Define.
19260 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19261 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19262 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19263 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19264 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19265 indices accordingly.
19266 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19267 Update indices for insn-chain rtxes.
19268 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19269 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19270 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19271 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19272 * combine.c (try_combine): Likewise.
19273 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19274
19275 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19276
19277 * rtl.def (REG): Remove middle field.
19278 * rtl.h (rtx_def): Add orignal_regno to u2.
19279 (ORIGINAL_REGNO): Use it instead of field 1.
19280 (REG_ATTRS): Lower field index accordingly.
19281 * gengtype.c (adjust_field_rtx_def): Remove handling of
19282 ORIGINAL_REGNO. Move REG_ATTRS index down.
19283 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19284 code that prints the REGNO.
19285
19286 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19287
19288 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19289 GENERATOR_FILE.
19290
19291 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19292
19293 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19294
19295 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19296
19297 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19298 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19299
19300 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19301
19302 * config/aarch64/aarch64-protos.h
19303 (aarch64_hard_regno_caller_save_mode): New prototype.
19304 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19305 New function.
19306 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19307
19308 2014-05-13 Christian Bruel <christian.bruel@st.com>
19309
19310 * target.def (mode_switching): New hook vector.
19311 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19312 (mode_exit, modepriority_to_mode): Likewise.
19313 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19314 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19315 * target.h: Include tm.h and hard-reg-set.h.
19316 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19317 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19318 * doc/tm.texi Regenerate.
19319 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19320 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19321 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19322 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19323 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19324 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19325 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19326 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19327 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19328 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19329 (ix86_emit_mode_set): Hookify.
19330 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19331 Delete.
19332 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19333 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19334 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19335 (epiphany_mode_priority_to_mode): Remove declaration.
19336 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19337 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19338 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19339 Likewise.
19340 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19341 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19342 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19343
19344 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19345
19346 PR target/61060
19347 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19348 is const0_rtx, return immediately. Don't test count == 0 when
19349 it is always true.
19350
19351 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19352
19353 * Makefile.in: add shrink-wrap.o.
19354 * config/i386/i386.c: include "shrink-wrap.h"
19355 * function.c: Likewise.
19356 (requires_stack_frame_p, next_block_for_reg,
19357 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19358 dup_block_and_redirect): Move to shrink-wrap.c
19359 (thread_prologue_and_epilogue_insns): Extract three code segments
19360 as functions in shrink-wrap.c
19361 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19362 shrink-wrap.h
19363 * shrink-wrap.c: New file.
19364 * shrink-wrap.h: New file.
19365
19366 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19367
19368 * doc/extend.texi: Reflect current numbers of pragmas. Remove
19369 reference to Solaris.
19370
19371 2014-05-12 Mike Stump <mikestump@comcast.net>
19372
19373 PR other/31778
19374 * genattrtab.c (filename): Add.
19375 (convert_set_attr_alternative): Improve error message.
19376 (check_defs): Restore read_md_filename for error messages.
19377 (gen_insn): Save filename.
19378
19379 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
19380
19381 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
19382 -fno-local-ivars and -fivar-visibility.
19383 * c-family/c.opt: Make -Wshadow also implicitly enable
19384 -Wshadow-ivar.
19385
19386 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19387
19388 * doc/tm.texi: Remove reference to deleted macro.
19389 * doc/tm.texi.in: Likewise.
19390
19391 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19392
19393 PR target/60991
19394 * config/avr/avr.c (avr_out_store_psi): Use correct constant
19395 to restore Y.
19396
19397 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
19398
19399 PR libgcc/61152
19400 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
19401 * config/arm/aout.h (License): Same.
19402 * config/arm/bpabi.h (License): Same.
19403 * config/arm/elf.h (License): Same.
19404 * config/arm/linux-elf.h (License): Same.
19405 * config/arm/linux-gas.h (License): Same.
19406 * config/arm/netbsd-elf.h (License): Same.
19407 * config/arm/uclinux-eabi.h (License): Same.
19408 * config/arm/uclinux-elf.h (License): Same.
19409 * config/arm/vxworks.h (License): Same.
19410
19411 2014-05-11 Jakub Jelinek <jakub@redhat.com>
19412
19413 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
19414 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
19415 number of operands to 3.
19416 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
19417 * tree-nested.c (convert_nonlocal_omp_clauses,
19418 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
19419 * gimplify.c (gimplify_scan_omp_clauses): Handle
19420 OMP_CLAUSE_LINEAR_STMT.
19421 * omp-low.c (lower_rec_input_clauses): Fix typo.
19422 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
19423 cast between Fortran boolean_type_node and C _Bool if
19424 needed.
19425
19426 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
19427
19428 PR tree-optimization/61136
19429 * wide-int.h (multiple_of_p): Define a version that doesn't return
19430 the quotient.
19431 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
19432 integer_zerop/const_binop pair.
19433 (multiple_of_p): Likewise, converting both operands to widest_int
19434 precision.
19435
19436 2014-05-09 Teresa Johnson <tejohnson@google.com>
19437
19438 * cgraphunit.c (analyze_functions): Use correct dump file.
19439
19440 2014-05-09 Florian Weimer <fweimer@redhat.com>
19441
19442 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
19443 expand_used_vars.
19444 (stack_protect_return_slot_p): New function.
19445 (expand_used_vars): Call stack_protect_decl_p and
19446 stack_protect_return_slot_p for -fstack-protector-strong.
19447
19448 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
19449 Andrew Haley <aph@redhat.com>
19450 Richard Sandiford <rdsandiford@googlemail.com>
19451
19452 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
19453 pages.
19454
19455 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19456
19457 PR middle-end/61111
19458 * fold-const.c (fold_binary_loc): Changed width of mask.
19459
19460 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19461
19462 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
19463 unsigned int initializers for regno_in, regno_out.
19464
19465 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19466
19467 PR target/61055
19468 * config/avr/avr.md (cc): Add new attribute set_vzn.
19469 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
19470 Set cc insn attribute to set_vzn instead of set_zn for alternatives
19471 with INC, DEC or NEG.
19472 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
19473 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
19474 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
19475
19476 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19477
19478 Revert:
19479 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19480
19481 * wide-int.cc (UTItype): Define.
19482 (UDWtype): Define for appropriate W_TYPE_SIZE.
19483
19484 2014-05-09 Richard Biener <rguenther@suse.de>
19485
19486 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
19487 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
19488 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
19489 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
19490 ssa_propagate): Adjust.
19491
19492 2014-05-08 Jeff Law <law@redhat.com>
19493
19494 PR tree-optimization/61009
19495 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
19496 tri-state rather than a boolean. When a block is too big to
19497 thread through, inform caller via negative return value.
19498 (thread_across_edge): If a block was too big for normal threading,
19499 then it's too big for a joiner too, so remove temporary equivalences
19500 and return immediately.
19501
19502 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
19503 Matthias Klose <doko@ubuntu.com>
19504
19505 PR driver/61106
19506 * optc-gen.awk: Fix option handling for -Wunused-parameter.
19507
19508 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19509
19510 PR target/59952
19511 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
19512
19513 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19514
19515 PR target/61092
19516 * config/alpha/alpha.c: Include gimple-iterator.h.
19517 (alpha_gimple_fold_builtin): New function. Move
19518 ALPHA_BUILTIN_UMULH folding from ...
19519 (alpha_fold_builtin): ... here.
19520 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
19521
19522 2014-05-08 Wei Mi <wmi@google.com>
19523
19524 PR target/58066
19525 * config/i386/i386.c (ix86_compute_frame_layout): Update
19526 preferred_stack_boundary for call, expanded from tls descriptor.
19527 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
19528 to depend on SP register.
19529 (*tls_local_dynamic_base_32_gnu): Ditto.
19530 (*tls_local_dynamic_32_once): Ditto.
19531 (tls_global_dynamic_64_<mode>): Set
19532 ix86_tls_descriptor_calls_expanded_in_cfun.
19533 (tls_local_dynamic_base_64_<mode>): Ditto.
19534 (tls_global_dynamic_32): Set
19535 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
19536 to depend on SP register.
19537 (tls_local_dynamic_base_32): Ditto.
19538
19539 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19540
19541 * config/arm/arm_neon.h: Update comment.
19542 * config/arm/neon-docgen.ml: Delete.
19543 * config/arm/neon-gen.ml: Delete.
19544 * doc/arm-neon-intrinsics.texi: Update comment.
19545
19546 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19547
19548 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
19549 and v4sf versions.
19550 (vand, vorr, veor, vorn, vbic): Remove.
19551 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
19552 iterator.
19553 (neon_vsub_unspec): Likewise.
19554 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
19555
19556 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19557
19558 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
19559 (vadd_s16): Likewise.
19560 (vadd_s32): Likewise.
19561 (vadd_f32): Likewise.
19562 (vadd_u8): Likewise.
19563 (vadd_u16): Likewise.
19564 (vadd_u32): Likewise.
19565 (vadd_s64): Likewise.
19566 (vadd_u64): Likewise.
19567 (vaddq_s8): Likewise.
19568 (vaddq_s16): Likewise.
19569 (vaddq_s32): Likewise.
19570 (vaddq_s64): Likewise.
19571 (vaddq_f32): Likewise.
19572 (vaddq_u8): Likewise.
19573 (vaddq_u16): Likewise.
19574 (vaddq_u32): Likewise.
19575 (vaddq_u64): Likewise.
19576 (vmul_s8): Likewise.
19577 (vmul_s16): Likewise.
19578 (vmul_s32): Likewise.
19579 (vmul_f32): Likewise.
19580 (vmul_u8): Likewise.
19581 (vmul_u16): Likewise.
19582 (vmul_u32): Likewise.
19583 (vmul_p8): Likewise.
19584 (vmulq_s8): Likewise.
19585 (vmulq_s16): Likewise.
19586 (vmulq_s32): Likewise.
19587 (vmulq_f32): Likewise.
19588 (vmulq_u8): Likewise.
19589 (vmulq_u16): Likewise.
19590 (vmulq_u32): Likewise.
19591 (vsub_s8): Likewise.
19592 (vsub_s16): Likewise.
19593 (vsub_s32): Likewise.
19594 (vsub_f32): Likewise.
19595 (vsub_u8): Likewise.
19596 (vsub_u16): Likewise.
19597 (vsub_u32): Likewise.
19598 (vsub_s64): Likewise.
19599 (vsub_u64): Likewise.
19600 (vsubq_s8): Likewise.
19601 (vsubq_s16): Likewise.
19602 (vsubq_s32): Likewise.
19603 (vsubq_s64): Likewise.
19604 (vsubq_f32): Likewise.
19605 (vsubq_u8): Likewise.
19606 (vsubq_u16): Likewise.
19607 (vsubq_u32): Likewise.
19608 (vsubq_u64): Likewise.
19609 (vand_s8): Likewise.
19610 (vand_s16): Likewise.
19611 (vand_s32): Likewise.
19612 (vand_u8): Likewise.
19613 (vand_u16): Likewise.
19614 (vand_u32): Likewise.
19615 (vand_s64): Likewise.
19616 (vand_u64): Likewise.
19617 (vandq_s8): Likewise.
19618 (vandq_s16): Likewise.
19619 (vandq_s32): Likewise.
19620 (vandq_s64): Likewise.
19621 (vandq_u8): Likewise.
19622 (vandq_u16): Likewise.
19623 (vandq_u32): Likewise.
19624 (vandq_u64): Likewise.
19625 (vorr_s8): Likewise.
19626 (vorr_s16): Likewise.
19627 (vorr_s32): Likewise.
19628 (vorr_u8): Likewise.
19629 (vorr_u16): Likewise.
19630 (vorr_u32): Likewise.
19631 (vorr_s64): Likewise.
19632 (vorr_u64): Likewise.
19633 (vorrq_s8): Likewise.
19634 (vorrq_s16): Likewise.
19635 (vorrq_s32): Likewise.
19636 (vorrq_s64): Likewise.
19637 (vorrq_u8): Likewise.
19638 (vorrq_u16): Likewise.
19639 (vorrq_u32): Likewise.
19640 (vorrq_u64): Likewise.
19641 (veor_s8): Likewise.
19642 (veor_s16): Likewise.
19643 (veor_s32): Likewise.
19644 (veor_u8): Likewise.
19645 (veor_u16): Likewise.
19646 (veor_u32): Likewise.
19647 (veor_s64): Likewise.
19648 (veor_u64): Likewise.
19649 (veorq_s8): Likewise.
19650 (veorq_s16): Likewise.
19651 (veorq_s32): Likewise.
19652 (veorq_s64): Likewise.
19653 (veorq_u8): Likewise.
19654 (veorq_u16): Likewise.
19655 (veorq_u32): Likewise.
19656 (veorq_u64): Likewise.
19657 (vbic_s8): Likewise.
19658 (vbic_s16): Likewise.
19659 (vbic_s32): Likewise.
19660 (vbic_u8): Likewise.
19661 (vbic_u16): Likewise.
19662 (vbic_u32): Likewise.
19663 (vbic_s64): Likewise.
19664 (vbic_u64): Likewise.
19665 (vbicq_s8): Likewise.
19666 (vbicq_s16): Likewise.
19667 (vbicq_s32): Likewise.
19668 (vbicq_s64): Likewise.
19669 (vbicq_u8): Likewise.
19670 (vbicq_u16): Likewise.
19671 (vbicq_u32): Likewise.
19672 (vbicq_u64): Likewise.
19673 (vorn_s8): Likewise.
19674 (vorn_s16): Likewise.
19675 (vorn_s32): Likewise.
19676 (vorn_u8): Likewise.
19677 (vorn_u16): Likewise.
19678 (vorn_u32): Likewise.
19679 (vorn_s64): Likewise.
19680 (vorn_u64): Likewise.
19681 (vornq_s8): Likewise.
19682 (vornq_s16): Likewise.
19683 (vornq_s32): Likewise.
19684 (vornq_s64): Likewise.
19685 (vornq_u8): Likewise.
19686 (vornq_u16): Likewise.
19687 (vornq_u32): Likewise.
19688 (vornq_u64): Likewise.
19689
19690 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19691
19692 * wide-int.cc (UTItype): Define.
19693 (UDWtype): Define for appropriate W_TYPE_SIZE.
19694
19695 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
19696
19697 PR tree-optimization/59100
19698 * tree-ssa-phiopt.c: Include tree-inline.h.
19699 (neutral_element_p, absorbing_element_p): New functions.
19700 (value_replacement): Handle conditional binary operations with a
19701 neutral or absorbing element.
19702
19703 2014-05-08 Richard Biener <rguenther@suse.de>
19704
19705 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19706 folding the expression.
19707 (valueize_expr): Remove.
19708 (visit_reference_op_load): Do not valueize the result of
19709 vn_get_expr_for.
19710 (simplify_binary_expression): Likewise.
19711 (simplify_unary_expression): Likewise.
19712
19713 2014-05-08 Richard Biener <rguenther@suse.de>
19714
19715 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19716 looking at TYPE_ARG_TYPES.
19717
19718 2014-05-08 Richard Biener <rguenther@suse.de>
19719
19720 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19721 pointer propagation special-case.
19722
19723 2014-05-08 Bin Cheng <bin.cheng@arm.com>
19724
19725 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19726 core part of address expressions.
19727
19728 2014-05-08 Alan Modra <amodra@gmail.com>
19729
19730 PR target/60737
19731 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19732 loads and stores when -mno-strict-align at any alignment.
19733 (expand_block_clear): Similarly. Also correct calculation of
19734 instruction count.
19735
19736 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
19737
19738 PR middle-end/39246
19739 * tree-complex.c (expand_complex_move): Keep line info when expanding
19740 complex move.
19741 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19742 of complex expression. Use new argument to display correct location
19743 for values coming from phi statement.
19744 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19745 (warn_uninitialized_phi): Pass location of phi argument to
19746 warn_uninit.
19747 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19748 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19749
19750 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19751
19752 * config/rs6000/predicates.md (indexed_address_mem): New.
19753 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19754 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19755 fpstore_ux, fpstore_u.
19756 (sign_extend, indexed, update): New.
19757 (cell_micro): Adjust.
19758 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19759 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19760 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19761 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19762 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19763 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19764 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19765 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19766 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19767 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19768 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19769 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19770 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19771 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19772 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19773
19774 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19775 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19776 *vsx_extract_<mode>_store): Adjust.
19777 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19778 is_cracked_insn, insn_must_be_first_in_group,
19779 insn_must_be_last_in_group): Adjust.
19780
19781 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19782 Adjust.
19783 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19784 ppc440-fpstore): Adjust.
19785 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19786 ppc476-fpstore): Adjust.
19787 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19788 ppc601-fpstore): Adjust.
19789 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19790 Adjust.
19791 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19792 Adjust.
19793 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19794 ppc7450-fpstore): Adjust.
19795 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19796 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19797 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19798 Adjust.
19799 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19800 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19801 cell-fpstore, cell-fpstore-update): Adjust.
19802 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19803 ppce300c3_store, ppce300c3_fpstore): Adjust.
19804 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19805 e500mc_fpstore): Adjust.
19806 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19807 e500mc64_store, e500mc64_fpstore): Adjust.
19808 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19809 e5500_fpstore): Adjust.
19810 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19811 e6500_fpstore): Adjust.
19812 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19813 Adjust.
19814 * config/rs6000/power4.md (power4-load, power4-load-ext,
19815 power4-load-ext-update, power4-load-ext-update-indexed,
19816 power4-load-update-indexed, power4-load-update, power4-fpload,
19817 power4-fpload-update, power4-store, power4-store-update,
19818 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19819 Adjust.
19820 * config/rs6000/power5.md (power5-load, power5-load-ext,
19821 power5-load-ext-update, power5-load-ext-update-indexed,
19822 power5-load-update-indexed, power5-load-update, power5-fpload,
19823 power5-fpload-update, power5-store, power5-store-update,
19824 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19825 Adjust.
19826 * config/rs6000/power6.md (power6-load, power6-load-ext,
19827 power6-load-update, power6-load-update-indexed,
19828 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19829 power6-fpload-update, power6-store, power6-store-update,
19830 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19831 Adjust.
19832 * config/rs6000/power7.md (power7-load, power7-load-ext,
19833 power7-load-update, power7-load-update-indexed,
19834 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19835 power7-fpload-update, power7-store, power7-store-update,
19836 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19837 Adjust.
19838 * config/rs6000/power8.md (power8-load, power8-load-update,
19839 power8-load-ext, power8-load-ext-update, power8-fpload,
19840 power8-fpload-update, power8-store, power8-store-update-indexed,
19841 power8-fpstore, power8-fpstore-update): Adjust.
19842 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19843 Adjust.
19844 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19845 titan_lsu_store, titan_lsu_fpstore): Adjust.
19846 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19847
19848 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
19849
19850 PR target/60884
19851 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19852 unrolled byte insns. Emit address increments after move insns.
19853
19854 2014-05-07 David Malcolm <dmalcolm@redhat.com>
19855
19856 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19857 const_gimple, rather than a gimple.
19858 (gimple_call_builtin_p): Likewise, for the three variants.
19859
19860 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19861 (gimple_call_builtin_p): Likewise, for the three variants.
19862
19863 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19864
19865 PR tree-optimization/61095
19866 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19867
19868 2014-05-07 Richard Biener <rguenther@suse.de>
19869
19870 PR tree-optimization/61034
19871 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19872 (maybe_skip_until): Use translate to take into account
19873 lattices when trying to do disambiguations.
19874 (get_continuation_for_phi_1): Likewise.
19875 (get_continuation_for_phi): Adjust for added translate arguments.
19876 (walk_non_aliased_vuses): Likewise.
19877 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19878 (walk_non_aliased_vuses): Likewise.
19879 (call_may_clobber_ref_p_1): Declare.
19880 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19881 calls. Stop early if we are only supposed to disambiguate.
19882 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19883
19884 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
19885
19886 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19887 Emit an error when the function has arguments.
19888
19889 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19890
19891 * cfgloop.h (unswitch_loops): Remove.
19892 * doc/passes.texi: Remove references to loop-unswitch.c
19893 * timevar.def (TV_LOOP_UNSWITCH): Remove.
19894
19895 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
19896
19897 * tree-vect-data-refs.c (vect_grouped_load_supported): New
19898 check for loads group of length 3.
19899 (vect_permute_load_chain): New permutations for loads group of
19900 length 3.
19901 * tree-vect-stmts.c (vect_model_load_cost): Change cost
19902 of vec_perm_shuffle for the new permutations.
19903
19904 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
19905
19906 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19907 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19908 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19909 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19910 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19911 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19912 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19913 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19914
19915 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19916
19917 * loop-unswitch.c: Delete.
19918
19919 2014-05-07 Richard Biener <rguenther@suse.de>
19920
19921 * config.gcc: Always set need_64bit_hwint to yes.
19922
19923 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
19924
19925 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19926 of using optimize_size.
19927
19928 2014-05-06 Mike Stump <mikestump@comcast.net>
19929
19930 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19931
19932 2014-05-06 Joseph Myers <joseph@codesourcery.com>
19933
19934 * config/i386/sse.md (*mov<mode>_internal)
19935 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19936 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19937 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19938 (*<code><mode>3, *andnot<mode>3<mask_name>)
19939 (<mask_codefor><code><mode>3<mask_name>): Only consider
19940 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19941
19942 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19943
19944 Revert:
19945 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19946
19947 * lra-constraints.c (valid_address_p): Move earlier in file.
19948 Add a constraint argument to the address_info version.
19949 (satisfies_memory_constraint_p): New function.
19950 (satisfies_address_constraint_p): Likewise.
19951 (process_alt_operands, curr_insn_transform): Use them.
19952 (process_address): Pass the constraint to valid_address_p when
19953 checking address operands.
19954
19955 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
19956
19957 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19958 to their respective blocks. Fix inadvertent use of "node".
19959
19960 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19961
19962 * emit-rtl.c (init_derived_machine_modes): New functionm, split
19963 out from...
19964 (init_emit_once): ...here.
19965 * rtl.h (init_derived_machine_modes): Declare.
19966 * toplev.c (do_compile): Call it even if no_backend.
19967
19968 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
19969 Mike Stump <mikestump@comcast.net>
19970 Richard Sandiford <rdsandiford@googlemail.com>
19971 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19972
19973 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19974 (rtx_equal_for_memref_p): Update comment.
19975 (adjust_offset_for_component_ref): Use wide-int interfaces.
19976 * builtins.c (get_object_alignment_2): Likewise.
19977 (c_readstr): Likewise.
19978 (target_char_cast): Add comment.
19979 (determine_block_size): Use wide-int interfaces.
19980 (expand_builtin_signbit): Likewise.
19981 (fold_builtin_int_roundingfn): Likewise.
19982 (fold_builtin_bitop): Likewise.
19983 (fold_builtin_bswap): Likewise.
19984 (fold_builtin_logarithm): Use signop.
19985 (fold_builtin_pow): Likewise.
19986 (fold_builtin_memory_op): Use wide-int interfaces.
19987 (fold_builtin_object_size): Likewise.
19988 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19989 nb_iterations_estimate.
19990 (record_niter_bound): Use wide-int interfaces.
19991 (get_estimated_loop_iterations_int): Likewise.
19992 (get_estimated_loop_iterations): Likewise.
19993 (get_max_loop_iterations): Likewise.
19994 * cfgloop.h: Include wide-int.h.
19995 (struct nb_iter_bound): Change bound to widest_int.
19996 (struct loop): Change nb_iterations_upper_bound and
19997 nb_iterations_estimate to widest_int.
19998 (record_niter_bound): Switch to use widest_int.
19999 (get_estimated_loop_iterations): Likewise.
20000 (get_max_loop_iterations): Likewise.
20001 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
20002 update for wide-int.
20003 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
20004 * combine.c (try_combine): Likewise.
20005 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
20006 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
20007 interfaces.
20008 (aarch64_float_const_representable_p): Likewise.
20009 * config/arc/arc.c: Include wide-int.h.
20010 (arc_can_use_doloop_p): Use wide-int interfaces.
20011 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
20012 (vfp3_const_double_index): Likewise.
20013 * config/avr/avr.c (avr_out_round): Likewise.
20014 (avr_fold_builtin): Likewise.
20015 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
20016 (bfin_can_use_doloop_p): Likewise.
20017 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
20018 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
20019 * config/i386/i386.c: Include wide-int.h.
20020 (ix86_data_alignment): Use wide-int interfaces.
20021 (ix86_local_alignment): Likewise.
20022 (ix86_emit_swsqrtsf): Update real_from_integer.
20023 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
20024 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20025 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
20026 (zero_constant): Likewise.
20027 (input_operand): Likewise.
20028 (splat_input_operand): Likewise.
20029 (non_logical_cint_operand): Change const_double to const_wide_int.
20030 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
20031 (easy_altivec_constant): Remove comment.
20032 (paired_expand_vector_init): Use CONSTANT_P.
20033 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
20034 (rs6000_emit_move): Update checks.
20035 (rs6000_aggregate_candidate): Use wide-int interfaces.
20036 (rs6000_expand_ternop_builtin): Likewise.
20037 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
20038 (rs6000_assemble_integer): Likewise.
20039 (rs6000_hash_constant): Likewise.
20040 (output_toc): Likewise.
20041 (rs6000_rtx_costs): Likewise.
20042 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20043 * config/rs6000/rs6000-c.c: Include wide-int.h.
20044 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20045 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20046 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20047 Handle CONST_WIDE_INT.
20048 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20049 Use tree_fits_uhwi_p.
20050 * config/sparc/sparc.c: Include wide-int.h.
20051 (sparc_fold_builtin): Use wide-int interfaces.
20052 * config/vax/vax.c: Include wide-int.h.
20053 (vax_float_literal): Use real_from_integer.
20054 * coretypes.h (struct hwivec_def): New.
20055 (hwivec): New.
20056 (const_hwivec): New.
20057 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20058 (equiv_constant): Handle CONST_WIDE_INT.
20059 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20060 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20061 * dbxout.c (stabstr_U): Use wide-int interfaces.
20062 (dbxout_type): Update to use cst_fits_shwi_p.
20063 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20064 (TARGET_SUPPORTS_WIDE_INT): Add default.
20065 * dfp.c: Include wide-int.h.
20066 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20067 decimal_real_to_integer.
20068 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20069 decimal_real_to_integer.
20070 * doc/generic.texi (Constant expressions): Update for wide_int.
20071 * doc/rtl.texi (const_double): Likewise.
20072 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20073 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20074 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20075 (REAL_VALUE_FROM_INT): Remove.
20076 (TARGET_SUPPORTS_WIDE_INT): New.
20077 * doc/tm.texi: Regenerate.
20078 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20079 * double-int.h: Include wide-int.h.
20080 (struct wi::int_traits): New.
20081 * dwarf2out.c (get_full_len): New.
20082 (dw_val_equal_p): Add case dw_val_class_wide_int.
20083 (size_of_loc_descr): Likewise.
20084 (output_loc_operands): Likewise.
20085 (insert_double): Remove.
20086 (insert_wide_int): New.
20087 (add_AT_wide): New.
20088 (print_die): Add case dw_val_class_wide_int.
20089 (attr_checksum): Likewise.
20090 (attr_checksum_ordered): Likewise.
20091 (same_dw_val_p): Likewise.
20092 (size_of_die): Likewise.
20093 (value_format): Likewise.
20094 (output_die): Likewise.
20095 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20096 Use wide-int.
20097 (clz_loc_descriptor): Use wide-int interfaces.
20098 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20099 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20100 (round_up_to_align): Use wide-int interfaces.
20101 (field_byte_offset): Likewise.
20102 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20103 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20104 CONST_DOUBLE handling. Use wide-int interfaces.
20105 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20106 (gen_enumeration_type_die): Use add_AT_wide.
20107 (hash_loc_operands): Add case dw_val_class_wide_int.
20108 (compare_loc_operands): Likewise.
20109 * dwarf2out.h: Include wide-int.h.
20110 (wide_int_ptr): New.
20111 (enum dw_val_class): Add dw_val_class_wide_int.
20112 (struct dw_val_struct): Add val_wide.
20113 * emit-rtl.c (const_wide_int_htab): New.
20114 (const_wide_int_htab_hash): New.
20115 (const_wide_int_htab_eq): New.
20116 (lookup_const_wide_int): New.
20117 (const_double_htab_hash): Use wide-int interfaces.
20118 (const_double_htab_eq): Likewise.
20119 (rtx_to_double_int): Conditionally compile for wide-int.
20120 (immed_double_int_const): Rename to immed_wide_int_const and
20121 update for wide-int.
20122 (immed_double_const): Conditionally compile for wide-int.
20123 (init_emit_once): Use wide-int interfaces.
20124 * explow.c (plus_constant): Likewise.
20125 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20126 (lshift_value): Use wide-int interfaces.
20127 (expand_mult): Likewise.
20128 (choose_multiplier): Likewise.
20129 (expand_smod_pow2): Likewise.
20130 (make_tree): Likewise.
20131 * expr.c (convert_modes): Consolidate handling of constants.
20132 Use wide-int interfaces.
20133 (emit_group_load_1): Add note.
20134 (store_expr): Update comment.
20135 (get_inner_reference): Use wide-int interfaces.
20136 (expand_constructor): Update comment.
20137 (expand_expr_real_2): Use wide-int interfaces.
20138 (expand_expr_real_1): Likewise.
20139 (reduce_to_bit_field_precision): Likewise.
20140 (const_vector_from_tree): Likewise.
20141 * final.c: Include wide-int-print.h.
20142 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20143 * fixed-value.c: Include wide-int.h.
20144 (fixed_from_string): Use wide-int interfaces.
20145 (fixed_to_decimal): Likewise.
20146 (fixed_convert_from_real): Likewise.
20147 (real_convert_from_fixed): Likewise.
20148 * fold-const.h (mem_ref_offset): Return an offset_int.
20149 (div_if_zero_remainder): Remove code parameter.
20150 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20151 Use wide-int interfaces.
20152 (may_negate_without_overflow_p): Use wide-int interfaces.
20153 (negate_expr_p): Likewise.
20154 (fold_negate_expr): Likewise.
20155 (int_const_binop_1): Likewise.
20156 (const_binop): Likewise.
20157 (fold_convert_const_int_from_int): Likewise.
20158 (fold_convert_const_int_from_real): Likewise.
20159 (fold_convert_const_int_from_fixed): Likewise.
20160 (fold_convert_const_fixed_from_int): Likewise.
20161 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20162 (sign_bit_p): Use wide-int interfaces.
20163 (make_range_step): Likewise.
20164 (build_range_check): Likewise. Pass an integer of the correct type
20165 instead of using integer_one_node.
20166 (range_predecessor): Pass an integer of the correct type instead
20167 of using integer_one_node.
20168 (range_successor): Likewise.
20169 (merge_ranges): Likewise.
20170 (unextend): Use wide-int interfaces.
20171 (extract_muldiv_1): Likewise.
20172 (fold_div_compare): Likewise.
20173 (fold_single_bit_test): Likewise.
20174 (fold_sign_changed_comparison): Likewise.
20175 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20176 (fold_plusminus_mult_expr): Use wide-int interfaces.
20177 (native_encode_int): Likewise.
20178 (native_interpret_int): Likewise.
20179 (fold_unary_loc): Likewise.
20180 (pointer_may_wrap_p): Likewise.
20181 (size_low_cst): Likewise.
20182 (mask_with_tz): Likewise.
20183 (fold_binary_loc): Likewise.
20184 (fold_ternary_loc): Likewise.
20185 (multiple_of_p): Likewise.
20186 (tree_call_nonnegative_warnv_p): Update calls to
20187 tree_int_cst_min_precision and real_from_integer.
20188 (fold_negate_const): Use wide-int interfaces.
20189 (fold_abs_const): Likewise.
20190 (fold_relational_const): Use tree_int_cst_lt.
20191 (round_up_loc): Use wide-int interfaces.
20192 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20193 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20194 * gengtype.c: Remove include of double-int.h.
20195 (do_typedef): Use wide-int interfaces.
20196 (open_base_files): Add wide-int.h.
20197 (main): Add offset_int and widest_int typedefs.
20198 * gengtype-lex.l: Handle "^".
20199 (CXX_KEYWORD): Add "static".
20200 * gengtype-parse.c (require3): New.
20201 (require_template_declaration): Handle constant template arguments
20202 and nested templates.
20203 * gengtype-state.c: Don't include "double-int.h".
20204 * genpreds.c (write_one_predicate_function): Update comment.
20205 (write_tm_constrs_h): Add check for hval and lval use in
20206 CONST_WIDE_INT.
20207 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20208 (add_to_sequence): Likewise.
20209 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20210 and const_double_operand.
20211 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20212 interfaces.
20213 * gimple-fold.c (get_base_constructor): Likewise.
20214 (fold_array_ctor_reference): Likewise.
20215 (fold_nonarray_ctor_reference): Likewise.
20216 (fold_const_aggregate_ref_1): Likewise.
20217 (gimple_val_nonnegative_real_p): Likewise.
20218 (gimple_fold_indirect_ref): Likewise.
20219 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20220 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20221 (struct slsr_cand_d): Change index to be widest_int.
20222 (struct incr_info_d): Change incr to be widest_int.
20223 (alloc_cand_and_find_basis): Use wide-int interfaces.
20224 (slsr_process_phi): Likewise.
20225 (backtrace_base_for_ref): Likewise. Return a widest_int.
20226 (restructure_reference): Take a widest_int instead of a double_int.
20227 (slsr_process_ref): Use wide-int interfaces.
20228 (create_mul_ssa_cand): Likewise.
20229 (create_mul_imm_cand): Likewise.
20230 (create_add_ssa_cand): Likewise.
20231 (create_add_imm_cand): Take a widest_int instead of a double_int.
20232 (slsr_process_add): Use wide-int interfaces.
20233 (slsr_process_cast): Likewise.
20234 (slsr_process_copy): Likewise.
20235 (dump_candidate): Likewise.
20236 (dump_incr_vec): Likewise.
20237 (replace_ref): Likewise.
20238 (cand_increment): Likewise. Return a widest_int.
20239 (cand_abs_increment): Likewise.
20240 (replace_mult_candidate): Take a widest_int instead of a double_int.
20241 (replace_unconditional_candidate): Use wide-int interfaces.
20242 (incr_vec_index): Take a widest_int instead of a double_int.
20243 (create_add_on_incoming_edge): Likewise.
20244 (create_phi_basis): Use wide-int interfaces.
20245 (replace_conditional_candidate): Likewise.
20246 (record_increment): Take a widest_int instead of a double_int.
20247 (record_phi_increments): Use wide-int interfaces.
20248 (phi_incr_cost): Take a widest_int instead of a double_int.
20249 (lowest_cost_path): Likewise.
20250 (total_savings): Likewise.
20251 (analyze_increments): Use wide-int interfaces.
20252 (ncd_with_phi): Take a widest_int instead of a double_int.
20253 (ncd_of_cand_and_phis): Likewise.
20254 (nearest_common_dominator_for_cands): Likewise.
20255 (insert_initializers): Use wide-int interfaces.
20256 (all_phi_incrs_profitable): Likewise.
20257 (replace_one_candidate): Likewise.
20258 (replace_profitable_candidates): Likewise.
20259 * godump.c: Include wide-int-print.h.
20260 (go_output_typedef): Use wide-int interfaces.
20261 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20262 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20263 (build_loop_iteration_domains): Likewise.
20264 * hooks.h: Include wide-int.h rather than double-int.h.
20265 (hook_bool_dint_dint_uint_bool_true): Delete.
20266 (hook_bool_wint_wint_uint_bool_true): Declare.
20267 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20268 (hook_bool_wint_wint_uint_bool_true): New.
20269 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20270 interfaces.
20271 (ubsan_expand_si_overflow_mul_check): Likewise.
20272 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20273 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20274 (get_ancestor_addr_info): Likewise.
20275 (ipa_modify_call_arguments): Likewise.
20276 * loop-doloop.c (doloop_modify): Likewise.
20277 (doloop_optimize): Likewise.
20278 * loop-iv.c (iv_number_of_iterations): Likewise.
20279 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20280 (unroll_loop_constant_iterations): Likewise.
20281 (decide_unroll_runtime_iterations): Likewise.
20282 (unroll_loop_runtime_iterations): Likewise.
20283 (decide_peel_simple): Likewise.
20284 (decide_unroll_stupid): Likewise.
20285 * lto-streamer-in.c (streamer_read_wi): Add.
20286 (input_cfg): Use wide-int interfaces.
20287 (lto_input_tree_1): Likewise.
20288 * lto-streamer-out.c (streamer_write_wi): Add.
20289 (hash_tree): Use wide-int interfaces.
20290 (output_cfg): Likewise.
20291 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20292 (GTFILES): Add wide-int.h and signop.h.
20293 (TAGS): Look for .cc files too.
20294 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20295 * optabs.c (expand_subword_shift): Likewise.
20296 (expand_doubleword_shift): Likewise.
20297 (expand_absneg_bit): Likewise.
20298 (expand_copysign_absneg): Likewise.
20299 (expand_copysign_bit): Likewise.
20300 * postreload.c (reload_cse_simplify_set): Likewise.
20301 * predict.c (predict_iv_comparison): Likewise.
20302 * pretty-print.h: Include wide-int-print.h.
20303 (pp_wide_int) New.
20304 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20305 * print-tree.c: Include wide-int-print.h.
20306 (print_node_brief): Use wide-int interfaces.
20307 (print_node): Likewise.
20308 * read-rtl.c (validate_const_wide_int): New.
20309 (read_rtx_code): Add CONST_WIDE_INT case.
20310 * real.c: Include wide-int.h.
20311 (real_to_integer2): Delete.
20312 (real_to_integer): New function, returning a wide_int.
20313 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20314 (ten_to_ptwo): Update call to real_from_integer.
20315 (real_digit): Likewise.
20316 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20317 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20318 (REAL_VALUE_TO_INT): Delete.
20319 (real_to_integer): Declare a wide-int form.
20320 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20321 * recog.c (const_int_operand): Improve comment.
20322 (const_scalar_int_operand): New.
20323 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20324 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20325 (split_double): Likewise.
20326 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20327 (rtx_size): Likewise.
20328 (rtx_alloc_stat_v): New.
20329 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20330 (cwi_output_hex): New.
20331 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20332 (cwi_check_failed_bounds): New.
20333 * rtl.def (CONST_WIDE_INT): New.
20334 * rtl.h: Include <utility> and wide-int.h.
20335 (struct hwivec_def): New.
20336 (CWI_GET_NUM_ELEM): New.
20337 (CWI_PUT_NUM_ELEM): New.
20338 (struct rtx_def): Add num_elem and hwiv.
20339 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20340 (CASE_CONST_UNIQUE): Likewise.
20341 (CASE_CONST_ANY): Likewise.
20342 (CONST_SCALAR_INT_P): Likewise.
20343 (CONST_WIDE_INT_P): New.
20344 (CWI_ELT): New.
20345 (HWIVEC_CHECK): New.
20346 (cwi_check_failed_bounds): New.
20347 (CWI_ELT): New.
20348 (HWIVEC_CHECK): New.
20349 (CONST_WIDE_INT_VEC) New.
20350 (CONST_WIDE_INT_NUNITS) New.
20351 (CONST_WIDE_INT_ELT) New.
20352 (rtx_mode_t): New type.
20353 (wi::int_traits <rtx_mode_t>): New.
20354 (wi::shwi): New.
20355 (wi::min_value): New.
20356 (wi::max_value): New.
20357 (rtx_alloc_v) New.
20358 (const_wide_int_alloc): New.
20359 (immed_wide_int_const): New.
20360 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20361 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20362 * signop.h: New file.
20363 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20364 (simplify_const_unary_operation): Use wide-int interfaces.
20365 (simplify_binary_operation_1): Likewise.
20366 (simplify_const_binary_operation): Likewise.
20367 (simplify_const_relational_operation): Likewise.
20368 (simplify_immed_subreg): Likewise.
20369 * stmt.c (expand_case): Likewise.
20370 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
20371 signop rather than a bool.
20372 * stor-layout.c (layout_type): Use wide-int interfaces.
20373 (initialize_sizetypes): Update calls to
20374 set_min_and_max_values_for_integral_type.
20375 (set_min_and_max_values_for_integral_type): Take a signop rather
20376 than a bool. Use wide-int interfaces.
20377 (fixup_signed_type): Update accordingly. Remove
20378 HOST_BITS_PER_DOUBLE_INT limit.
20379 (fixup_unsigned_type): Likewise.
20380 * system.h (STATIC_CONSTANT_P): New.
20381 (STATIC_ASSERT): New.
20382 * target.def (can_use_doloop_p): Take widest_ints rather than
20383 double_ints.
20384 * target.h: Include wide-int.h rather than double-int.h.
20385 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
20386 than double_ints.
20387 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
20388 rather than INT_CST_LT_UNSIGNED.
20389 (can_use_doloop_if_innermost): Take widest_ints rather than
20390 double_ints.
20391 * tree-affine.c: Include wide-int-print.h.
20392 (double_int_ext_for_comb): Delete.
20393 (wide_int_ext_for_comb): New.
20394 (aff_combination_zero): Use wide-int interfaces.
20395 (aff_combination_const): Take a widest_int instead of a double_int.
20396 (aff_combination_elt): Use wide-int interfaces.
20397 (aff_combination_scale): Take a widest_int instead of a double_int.
20398 (aff_combination_add_elt): Likewise.
20399 (aff_combination_add_cst): Likewise.
20400 (aff_combination_add): Use wide-int interfaces.
20401 (aff_combination_convert): Likewise.
20402 (tree_to_aff_combination): Likewise.
20403 (add_elt_to_tree): Take a widest_int instead of a double_int.
20404 (aff_combination_to_tree): Use wide-int interfaces.
20405 (aff_combination_remove_elt): Likewise.
20406 (aff_combination_add_product): Take a widest_int instead of
20407 a double_int.
20408 (aff_combination_mult): Use wide-int interfaces.
20409 (aff_combination_expand): Likewise.
20410 (double_int_constant_multiple_p): Delete.
20411 (wide_int_constant_multiple_p): New.
20412 (aff_combination_constant_multiple_p): Take a widest_int pointer
20413 instead of a double_int pointer.
20414 (print_aff): Use wide-int interfaces.
20415 (get_inner_reference_aff): Take a widest_int pointer
20416 instead of a double_int pointer.
20417 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
20418 * tree-affine.h: Include wide-int.h.
20419 (struct aff_comb_elt): Change type of coef to widest_int.
20420 (struct affine_tree_combination): Change type of offset to widest_int.
20421 (double_int_ext_for_comb): Delete.
20422 (wide_int_ext_for_comb): New.
20423 (aff_combination_const): Use widest_int instead of double_int.
20424 (aff_combination_scale): Likewise.
20425 (aff_combination_add_elt): Likewise.
20426 (aff_combination_constant_multiple_p): Likewise.
20427 (get_inner_reference_aff): Likewise.
20428 (aff_comb_cannot_overlap_p): Likewise.
20429 (aff_combination_zero_p): Use wide-int interfaces.
20430 * tree.c: Include tree.h.
20431 (init_ttree): Use make_int_cst.
20432 (tree_code_size): Removed code for INTEGER_CST case.
20433 (tree_size): Add INTEGER_CST case.
20434 (make_node_stat): Update comment.
20435 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
20436 (build_int_cst_type): Use wide-int interfaces.
20437 (double_int_to_tree): Likewise.
20438 (double_int_fits_to_tree_p): Delete.
20439 (force_fit_type_double): Delete.
20440 (force_fit_type): New.
20441 (int_cst_hash_hash): Use wide-int interfaces.
20442 (int_cst_hash_eq): Likewise.
20443 (build_int_cst_wide): Delete.
20444 (wide_int_to_tree): New.
20445 (cache_integer_cst): Use wide-int interfaces.
20446 (build_low_bits_mask): Likewise.
20447 (cst_and_fits_in_hwi): Likewise.
20448 (real_value_from_int_cst): Likewise.
20449 (make_int_cst_stat): New.
20450 (integer_zerop): Use wide_int interfaces.
20451 (integer_onep): Likewise.
20452 (integer_all_onesp): Likewise.
20453 (integer_pow2p): Likewise.
20454 (integer_nonzerop): Likewise.
20455 (tree_log2): Likewise.
20456 (tree_floor_log2): Likewise.
20457 (tree_ctz): Likewise.
20458 (int_size_in_bytes): Likewise.
20459 (mem_ref_offset): Return an offset_int rather than a double_int.
20460 (build_type_attribute_qual_variant): Use wide_int interfaces.
20461 (type_hash_eq): Likewise
20462 (tree_int_cst_equal): Likewise.
20463 (tree_int_cst_lt): Delete.
20464 (tree_int_cst_compare): Likewise.
20465 (tree_fits_shwi_p): Use wide_int interfaces.
20466 (tree_fits_uhwi_p): Likewise.
20467 (tree_int_cst_sign_bit): Likewise.
20468 (tree_int_cst_sgn): Likewise.
20469 (tree_int_cst_min_precision): Take a signop rather than a bool.
20470 (simple_cst_equal): Use wide_int interfaces.
20471 (compare_tree_int): Likewise.
20472 (iterative_hash_expr): Likewise.
20473 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
20474 INT_CST_LT.
20475 (get_type_static_bounds): Use wide_int interfaces.
20476 (tree_int_cst_elt_check_failed): New.
20477 (build_common_tree_nodes): Reordered to set prec before filling in
20478 value.
20479 (int_cst_value): Check cst_and_fits_in_hwi.
20480 (widest_int_cst_value): Use wide_int interfaces.
20481 (upper_bound_in_type): Likewise.
20482 (lower_bound_in_type): Likewise.
20483 (num_ending_zeros): Likewise.
20484 (drop_tree_overflow): Likewise.
20485 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
20486 (gen_conditions_for_pow_cst_base): Likewise.
20487 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
20488 (group_case_labels_stmt): Use wide-int interfaces.
20489 (verify_gimple_assign_binary): Likewise.
20490 (print_loop): Likewise.
20491 * tree-chrec.c (tree_fold_binomial): Likewise.
20492 * tree-core.h (struct tree_base): Add int_length.
20493 (struct tree_int_cst): Change rep of value.
20494 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
20495 (dr_may_alias_p): Likewise.
20496 (max_stmt_executions_tree): Likewise.
20497 * tree.def (INTEGER_CST): Update comment.
20498 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
20499 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
20500 * tree-dump.c: Include wide-int.h and wide-int-print.h.
20501 (dequeue_and_dump): Use wide-int interfaces.
20502 * tree.h: Include wide-int.h.
20503 (NULL_TREE): Moved to earlier loc in file.
20504 (TREE_INT_CST_ELT_CHECK): New.
20505 (tree_int_cst_elt_check_failed): New.
20506 (TYPE_SIGN): New.
20507 (TREE_INT_CST): Delete.
20508 (TREE_INT_CST_LOW): Use wide-int interfaces.
20509 (TREE_INT_CST_HIGH): Delete.
20510 (TREE_INT_CST_NUNITS): New.
20511 (TREE_INT_CST_EXT_NUNITS): Likewise.
20512 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
20513 (TREE_INT_CST_ELT): Likewise.
20514 (INT_CST_LT): Delete.
20515 (tree_int_cst_elt_check): New (two forms).
20516 (type_code_size): Update comment.
20517 (make_int_cst_stat, make_int_cst): New.
20518 (tree_to_double_int): Delete.
20519 (double_int_fits_to_tree_p): Delete.
20520 (force_fit_type_double): Delete.
20521 (build_int_cstu): Replace with out-of-line function.
20522 (build_int_cst_wide): Delete.
20523 (tree_int_cst_lt): Define inline.
20524 (tree_int_cst_le): New.
20525 (tree_int_cst_compare): Define inline.
20526 (tree_int_cst_min_precision): Take a signop rather than a bool.
20527 (wi::int_traits <const_tree>): New.
20528 (wi::int_traits <tree>): New.
20529 (wi::extended_tree): New.
20530 (wi::int_traits <wi::extended_tree>): New.
20531 (wi::to_widest): New.
20532 (wi::to_offset): New.
20533 (wi::fits_to_tree_p): New.
20534 (wi::min_value): New.
20535 (wi::max_value): New.
20536 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
20537 (copy_tree_body_r): Likewise.
20538 * tree-object-size.c (compute_object_offset): Likewise.
20539 (addr_object_size): Likewise.
20540 * tree-predcom.c: Include wide-int-print.h.
20541 (struct dref_d): Change type of offset to widest_int.
20542 (dump_dref): Call wide-int printer.
20543 (aff_combination_dr_offset): Use wide-int interfaces.
20544 (determine_offset): Take a widest_int pointer rather than a
20545 double_int pointer.
20546 (split_data_refs_to_components): Use wide-int interfaces.
20547 (suitable_component_p): Likewise.
20548 (order_drefs): Likewise.
20549 (add_ref_to_chain): Likewise.
20550 (valid_initializer_p): Likewise.
20551 (determine_roots_comp): Likewise.
20552 * tree-pretty-print.c: Include wide-int-print.h.
20553 (dump_generic_node): Use wide-int interfaces.
20554 * tree-sra.c (sra_ipa_modify_expr): Likewise.
20555 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
20556 (move_fixed_address_to_symbol): Likewise.
20557 (move_hint_to_base): Likewise.
20558 (move_pointer_to_base): Likewise.
20559 (move_variant_to_index): Likewise.
20560 (most_expensive_mult_to_index): Likewise.
20561 (addr_to_parts): Likewise.
20562 (copy_ref_info): Likewise.
20563 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20564 (indirect_refs_may_alias_p): Likewise.
20565 (stmt_kills_ref_p_1): Likewise.
20566 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
20567 * tree-ssa-ccp.c: Update comment at top of file. Include
20568 wide-int-print.h.
20569 (struct prop_value_d): Change type of mask to widest_int.
20570 (extend_mask): New function.
20571 (dump_lattice_value): Use wide-int interfaces.
20572 (get_default_value): Likewise.
20573 (set_constant_value): Likewise.
20574 (set_value_varying): Likewise.
20575 (valid_lattice_transition): Likewise.
20576 (set_lattice_value): Likewise.
20577 (value_to_double_int): Delete.
20578 (value_to_wide_int): New.
20579 (get_value_from_alignment): Use wide-int interfaces.
20580 (get_value_for_expr): Likewise.
20581 (do_dbg_cnt): Likewise.
20582 (ccp_finalize): Likewise.
20583 (ccp_lattice_meet): Likewise.
20584 (bit_value_unop_1): Use widest_ints rather than double_ints.
20585 (bit_value_binop_1): Likewise.
20586 (bit_value_unop): Use wide-int interfaces.
20587 (bit_value_binop): Likewise.
20588 (bit_value_assume_aligned): Likewise.
20589 (evaluate_stmt): Likewise.
20590 (ccp_fold_stmt): Likewise.
20591 (visit_cond_stmt): Likewise.
20592 (ccp_visit_stmt): Likewise.
20593 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20594 (constant_pointer_difference): Likewise.
20595 (associate_pointerplus): Likewise.
20596 (combine_conversions): Likewise.
20597 * tree-ssa-loop.h: Include wide-int.h.
20598 (struct tree_niter_desc): Change type of max to widest_int.
20599 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
20600 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
20601 (remove_redundant_iv_tests): Likewise.
20602 (canonicalize_loop_induction_variables): Likewise.
20603 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
20604 (constant_multiple_of): Take a widest_int pointer instead of
20605 a double_int pointer.
20606 (get_computation_aff): Use wide-int interfaces.
20607 (ptr_difference_cost): Likewise.
20608 (difference_cost): Likewise.
20609 (get_loop_invariant_expr_id): Likewise.
20610 (get_computation_cost_at): Likewise.
20611 (iv_elimination_compare_lt): Likewise.
20612 (may_eliminate_iv): Likewise.
20613 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
20614 instead of double_int.
20615 (max_loop_iterations): Likewise.
20616 (max_stmt_executions): Likewise.
20617 (estimated_stmt_executions): Likewise.
20618 * tree-ssa-loop-niter.c: Include wide-int-print.h.
20619 (split_to_var_and_offset): Use wide-int interfaces.
20620 (determine_value_range): Likewise.
20621 (bound_difference_of_offsetted_base): Likewise.
20622 (bounds_add): Take a widest_int instead of a double_int.
20623 (number_of_iterations_ne_max): Use wide-int interfaces.
20624 (number_of_iterations_ne): Likewise.
20625 (number_of_iterations_lt_to_ne): Likewise.
20626 (assert_loop_rolls_lt): Likewise.
20627 (number_of_iterations_lt): Likewise.
20628 (number_of_iterations_le): Likewise.
20629 (number_of_iterations_cond): Likewise.
20630 (number_of_iterations_exit): Likewise.
20631 (finite_loop_p): Likewise.
20632 (derive_constant_upper_bound_assign): Likewise.
20633 (derive_constant_upper_bound): Return a widest_int.
20634 (derive_constant_upper_bound_ops): Likewise.
20635 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
20636 (record_estimate): Take a widest_int rather than a double_int.
20637 (record_nonwrapping_iv): Use wide-int interfaces.
20638 (double_int_cmp): Delete.
20639 (wide_int_cmp): New.
20640 (bound_index): Take a widest_int rather than a double_int.
20641 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
20642 (maybe_lower_iteration_bound): Likewise.
20643 (estimate_numbers_of_iterations_loop): Likewise.
20644 (estimated_loop_iterations): Take a widest_int pointer than than
20645 a double_int pointer.
20646 (estimated_loop_iterations_int): Use wide-int interfaces.
20647 (max_loop_iterations): Take a widest_int pointer than than
20648 a double_int pointer.
20649 (max_loop_iterations_int): Use wide-int interfaces.
20650 (max_stmt_executions): Take a widest_int pointer than than
20651 a double_int pointer.
20652 (estimated_stmt_executions): Likewise.
20653 (n_of_executions_at_most): Use wide-int interfaces.
20654 (scev_probably_wraps_p): Likewise.
20655 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20656 to real_to_integer.
20657 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20658 interfaces.
20659 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20660 double_ints. Adjust for trailing_wide_ints <3> representation.
20661 (set_nonzero_bits): Likewise.
20662 (get_range_info): Return wide_ints rather than double_ints.
20663 Adjust for trailing_wide_ints <3> representation.
20664 (get_nonzero_bits): Likewise.
20665 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20666 representation.
20667 * tree-ssanames.h (struct range_info_def): Replace min, max and
20668 nonzero_bits with a trailing_wide_ints <3>.
20669 (set_range_info): Use wide_int_refs rather than double_ints.
20670 (set_nonzero_bits): Likewise.
20671 (get_range_info): Return wide_ints rather than double_ints.
20672 (get_nonzero_bits): Likewise.
20673 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20674 * tree-ssa-pre.c (phi_translate_1): Likewise.
20675 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20676 (acceptable_pow_call): Likewise.
20677 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20678 interfaces.
20679 (vn_reference_fold_indirect): Likewise.
20680 (vn_reference_maybe_forwprop_address): Likewise.
20681 (valueize_refs_1): Likewise.
20682 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20683 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20684 tree_int_cst_lt and tree_int_cst_le.
20685 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20686 interfaces.
20687 (streamer_alloc_tree): Likewise.
20688 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20689 (streamer_write_tree_header): Likewise.
20690 (streamer_write_integer_cst): Likewise.
20691 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20692 (build_constructors): Likewise.
20693 (array_value_type): Likewise.
20694 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20695 (vect_check_gather): Likewise.
20696 * tree-vect-generic.c (build_replicated_const): Likewise.
20697 (expand_vector_divmod): Likewise.
20698 * tree-vect-loop.c (vect_transform_loop): Likewise.
20699 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20700 (vect_do_peeling_for_alignment): Likewise.
20701 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20702 * tree-vrp.c: Include wide-int.h.
20703 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20704 (extract_range_from_assert): Use wide-int interfaces.
20705 (vrp_int_const_binop): Likewise.
20706 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20707 double_int pointers.
20708 (ranges_from_anti_range): Use wide-int interfaces.
20709 (quad_int_cmp): Delete.
20710 (quad_int_pair_sort): Likewise.
20711 (extract_range_from_binary_expr_1): Use wide-int interfaces.
20712 (extract_range_from_unary_expr_1): Likewise.
20713 (adjust_range_with_scev): Likewise.
20714 (masked_increment): Take and return wide_ints rather than double_ints.
20715 (register_edge_assert_for_2): Use wide-int interfaces.
20716 (check_array_ref): Likewise.
20717 (search_for_addr_array): Likewise.
20718 (maybe_set_nonzero_bits): Likewise.
20719 (union_ranges): Pass an integer of the correct type instead of
20720 using integer_one_node.
20721 (intersect_ranges): Likewise.
20722 (simplify_truth_ops_using_ranges): Likewise.
20723 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20724 (range_fits_type_p): Likewise.
20725 (simplify_cond_using_ranges): Likewise. Take a signop rather than
20726 a bool.
20727 (simplify_conversion_using_ranges): Use wide-int interfaces.
20728 (simplify_float_conversion_using_ranges): Likewise.
20729 (vrp_finalize): Likewise.
20730 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20731 (gimple_stringops_transform): Likewise.
20732 * varasm.c (decode_addr_const): Likewise.
20733 (const_hash_1): Likewise.
20734 (const_rtx_hash_1): Likewise
20735 (output_constant): Likewise.
20736 (array_size_for_constructor): Likewise.
20737 (output_constructor_regular_field): Likewise.
20738 (output_constructor_bitfield): Likewise.
20739 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20740 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20741 GENERATOR_FILEs.
20742 * gencheck.c: Define BITS_PER_UNIT.
20743 * wide-int.cc: New.
20744 * wide-int.h: New.
20745 * wide-int-print.cc: New.
20746 * wide-int-print.h: New.
20747
20748 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20749
20750 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20751
20752 2014-05-06 Richard Biener <rguenther@suse.de>
20753
20754 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20755 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20756 (TODO_verify_all): Adjust.
20757 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20758 TODO_verify_stmts and TODO_verify_rtl_sharing.
20759 * bb-reorder.c: Likewise.
20760 * cfgexpand.c: Likewise.
20761 * cprop.c: Likewise.
20762 * cse.c: Likewise.
20763 * function.c: Likewise.
20764 * fwprop.c: Likewise.
20765 * gcse.c: Likewise.
20766 * gimple-ssa-isolate-paths.c: Likewise.
20767 * gimple-ssa-strength-reduction.c: Likewise.
20768 * ipa-split.c: Likewise.
20769 * loop-init.c: Likewise.
20770 * loop-unroll.c: Likewise.
20771 * lower-subreg.c: Likewise.
20772 * modulo-sched.c: Likewise.
20773 * postreload-gcse.c: Likewise.
20774 * predict.c: Likewise.
20775 * recog.c: Likewise.
20776 * sched-rgn.c: Likewise.
20777 * store-motion.c: Likewise.
20778 * tracer.c: Likewise.
20779 * trans-mem.c: Likewise.
20780 * tree-call-cdce.c: Likewise.
20781 * tree-cfg.c: Likewise.
20782 * tree-cfgcleanup.c: Likewise.
20783 * tree-complex.c: Likewise.
20784 * tree-eh.c: Likewise.
20785 * tree-emutls.c: Likewise.
20786 * tree-if-conv.c: Likewise.
20787 * tree-into-ssa.c: Likewise.
20788 * tree-loop-distribution.c: Likewise.
20789 * tree-object-size.c: Likewise.
20790 * tree-parloops.c: Likewise.
20791 * tree-pass.h: Likewise.
20792 * tree-sra.c: Likewise.
20793 * tree-ssa-ccp.c: Likewise.
20794 * tree-ssa-copy.c: Likewise.
20795 * tree-ssa-copyrename.c: Likewise.
20796 * tree-ssa-dce.c: Likewise.
20797 * tree-ssa-dom.c: Likewise.
20798 * tree-ssa-dse.c: Likewise.
20799 * tree-ssa-forwprop.c: Likewise.
20800 * tree-ssa-ifcombine.c: Likewise.
20801 * tree-ssa-loop-ch.c: Likewise.
20802 * tree-ssa-loop-ivcanon.c: Likewise.
20803 * tree-ssa-loop.c: Likewise.
20804 * tree-ssa-math-opts.c: Likewise.
20805 * tree-ssa-phiopt.c: Likewise.
20806 * tree-ssa-phiprop.c: Likewise.
20807 * tree-ssa-pre.c: Likewise.
20808 * tree-ssa-reassoc.c: Likewise.
20809 * tree-ssa-sink.c: Likewise.
20810 * tree-ssa-strlen.c: Likewise.
20811 * tree-ssa-tail-merge.c: Likewise.
20812 * tree-ssa-uncprop.c: Likewise.
20813 * tree-switch-conversion.c: Likewise.
20814 * tree-tailcall.c: Likewise.
20815 * tree-vect-generic.c: Likewise.
20816 * tree-vectorizer.c: Likewise.
20817 * tree-vrp.c: Likewise.
20818 * tsan.c: Likewise.
20819 * var-tracking.c: Likewise.
20820 * bt-load.c: Likewise.
20821 * cfgcleanup.c: Likewise.
20822 * combine-stack-adj.c: Likewise.
20823 * combine.c: Likewise.
20824 * compare-elim.c: Likewise.
20825 * config/epiphany/resolve-sw-modes.c: Likewise.
20826 * config/i386/i386.c: Likewise.
20827 * config/mips/mips.c: Likewise.
20828 * config/s390/s390.c: Likewise.
20829 * config/sh/sh_treg_combine.cc: Likewise.
20830 * config/sparc/sparc.c: Likewise.
20831 * dce.c: Likewise.
20832 * dse.c: Likewise.
20833 * final.c: Likewise.
20834 * ifcvt.c: Likewise.
20835 * mode-switching.c: Likewise.
20836 * passes.c: Likewise.
20837 * postreload.c: Likewise.
20838 * ree.c: Likewise.
20839 * reg-stack.c: Likewise.
20840 * regcprop.c: Likewise.
20841 * regrename.c: Likewise.
20842 * web.c: Likewise.
20843
20844 2014-05-06 Richard Biener <rguenther@suse.de>
20845
20846 PR middle-end/61070
20847 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20848 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20849
20850 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
20851
20852 PR ipa/60965
20853 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20854
20855 2014-05-05 Radovan Obradovic <robradovic@mips.com>
20856 Tom de Vries <tom@codesourcery.com>
20857
20858 * target.def (call_fusage_contains_non_callee_clobbers): New
20859 DEFHOOKPOD.
20860 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20861 Hooks to @menu.
20862 (@node Miscellaneous Register Hooks): New node.
20863 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20864 * doc/tm.texi: Regenerate.
20865
20866 2014-05-05 Marek Polacek <polacek@redhat.com>
20867
20868 PR driver/61065
20869 * opts.c (common_handle_option): Call error_at instead of warning_at.
20870
20871 2014-05-05 Richard Biener <rguenther@suse.de>
20872
20873 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20874 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
20875 under the TODO_verify_il umbrella.
20876
20877 2014-05-05 Richard Biener <rguenther@suse.de>
20878
20879 * passes.c (execute_function_todo): Move TODO_verify_flow under
20880 the TODO_verify_ul umbrella.
20881
20882 2014-05-05 Richard Biener <rguenther@suse.de>
20883
20884 PR middle-end/61010
20885 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20886 X & CST away from a CST that is the mask of a mode.
20887
20888 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20889
20890 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20891 int argument to enum machine_mode.
20892 (picochip_class_max_nregs): Ditto.
20893 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20894 (picochip_class_max_nregs): Ditto.
20895
20896 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20897
20898 * target.def: Add new target hook.
20899 * doc/tm.texi: Regenerate.
20900 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20901 * targhooks.c (default_keep_leaf_when_profiled): New function.
20902
20903 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20904 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20905
20906 2014-05-05 Bin Cheng <bin.cheng@arm.com>
20907
20908 PR tree-optimization/60363
20909 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20910 (copy_phi_args): New parameters. Call get_value_locus_in_path.
20911 (update_destination_phis): New parameter.
20912 (create_edge_and_update_destination_phis): Ditto.
20913 (ssa_fix_duplicate_block_edges): Pass new arguments.
20914 (thread_single_edge): Ditto.
20915
20916 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
20917
20918 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20919 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20920 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20921 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20922 Use RS6000_BTM_HARD_FLOAT.
20923 (BU_MISC_2): Likewise.
20924 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20925 RS6000_BTM_HARD_FLOAT.
20926 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20927 is explicitly used.
20928 (rs6000_invalid_builtin): Add hard floating builtin support.
20929 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20930 hard float builtins.
20931 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20932
20933 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20934
20935 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20936 Add missing function* argument.
20937
20938 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20939
20940 * lra-constraints.c (valid_address_p): Move earlier in file.
20941 Add a constraint argument to the address_info version.
20942 (satisfies_memory_constraint_p): New function.
20943 (satisfies_address_constraint_p): Likewise.
20944 (process_alt_operands, curr_insn_transform): Use them.
20945 (process_address): Pass the constraint to valid_address_p when
20946 checking address operands.
20947
20948 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20949
20950 * config/mips/mips.c (mips_isa_rev): New variable.
20951 (mips_set_architecture): Set it.
20952 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20953 from mips_isa_rev.
20954 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20955 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20956 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20957 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20958 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20959 conditions in terms of mips_isa_rev.
20960 (mips_isa_rev): Declare.
20961
20962 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20963
20964 * config/sh/sh-mem.cc: Use tabs instead of spaces.
20965 (prob_unlikely, prob_likely): Make variables const.
20966
20967 2014-05-03 Denis Chertykov <chertykov@gmail.com>
20968
20969 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20970
20971 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20972
20973 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20974
20975 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20976
20977 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20978 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20979 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20980 functions.
20981 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20982 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20983 sh_pass_in_reg_p.
20984 Replace usage of ROUND_REG with sh_round_reg.
20985 Use CEIL instead of ROUND_ADVANCE.
20986
20987 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20988
20989 PR target/61026
20990 * config/sh/sh.c: Include stdlib headers before everything else.
20991
20992 2014-05-02 Jakub Jelinek <jakub@redhat.com>
20993
20994 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20995 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20996 (gimplify_adjust_omp_clauses): Simd region is never
20997 directly nested in combined parallel. Instead, for linear
20998 with copyin/copyout, if in combined for simd loop, make decl
20999 firstprivate/lastprivate on OMP_FOR.
21000 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
21001 expand_omp_for_static_chunk): When setting endvar, also set
21002 fd->loop.v to the same value.
21003
21004 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21005
21006 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
21007
21008 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
21009
21010 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
21011 expression.
21012
21013 2014-05-02 Marek Polacek <polacek@redhat.com>
21014
21015 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
21016
21017 2014-05-02 Kito Cheng <kito@0xlab.org>
21018
21019 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
21020 to a C expression marco.
21021 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
21022 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
21023 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
21024 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
21025 HONOR_REG_ALLOC_ORDER.
21026 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
21027
21028 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21029
21030 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
21031
21032 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21033
21034 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
21035
21036 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21037
21038 * tree-if-conv.c (is_cond_scalar_reduction): New function.
21039 (convert_scalar_cond_reduction): Likewise.
21040 (predicate_scalar_phi): Add recognition and transformation
21041 of simple conditioanl reduction to be vectorizable.
21042
21043 2014-05-01 Marek Polacek <polacek@redhat.com>
21044
21045 PR c/43245
21046 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21047
21048 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21049
21050 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21051 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21052 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21053 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21054 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21055 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21056 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21057 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21058
21059 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21060
21061 * config/arc/arc.opt (mlra): Move comment above option name
21062 to avoid mis-parsing as language options.
21063
21064 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21065
21066 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21067 * config/sol2.h: ... here.
21068 * config/sol2-10.h: Remove.
21069
21070 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21071 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21072 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21073 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21074 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21075 * config/sol2.h: ... here.
21076 (SECTION_NAME_FORMAT): Don't redefine.
21077 (STARTFILE_ARCH32_SPEC): Rename to ...
21078 (STARTFILE_ARCH_SPEC): ... this.
21079 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21080 * config/sparc/sol2.h: ... here.
21081 (SECTION_NAME_FORMAT): Don't undef.
21082 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21083 (SUBTARGET_EXTRA_SPECS): Remove.
21084 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21085
21086 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21087 (MD_STARTFILE_PREFIX): Remove.
21088 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21089 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21090 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21091 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21092 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21093 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21094 * config/i386/sol2.h: ... here.
21095 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21096 * config/i386/sol2-bi.h: Remove.
21097 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21098 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21099
21100 * config/i386/t-sol2-64: Rename to ...
21101 * config/i386/t-sol2: ... this.
21102 * config/sparc/t-sol2-64: Rename to ...
21103 * config/sparc/t-sol2: ... this.
21104
21105 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21106 sol2_tm_file_head, sol2_tm_file_tail.
21107 Include ${cpu_type}/sol2.h before sol2.h.
21108 Remove sol2-10.h.
21109 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21110 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21111 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21112 Reflect i386/t-sol2-64 renaming.
21113 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21114 Reflect sparc/t-sol2-64 renaming.
21115
21116 2014-04-30 Richard Biener <rguenther@suse.de>
21117
21118 * passes.c (execute_function_todo): Move TODO_verify_stmts
21119 and TODO_verify_ssa under the TODO_verify_il umbrella.
21120 * tree-ssa.h (verify_ssa): Adjust prototype.
21121 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21122 we should verify SSA operands.
21123 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21124 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21125 whether we should verify whether not throwing stmts have EH info.
21126 * graphite-scop-detection.c (create_sese_edges): Adjust.
21127 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21128 * tree-eh.c (lower_try_finally_switch): Do not add the
21129 default case label twice.
21130
21131 2014-04-30 Marek Polacek <polacek@redhat.com>
21132
21133 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21134 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21135 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21136 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21137
21138 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21139
21140 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21141 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21142 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21143 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21144 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21145 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21146 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21147 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21148
21149 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21150
21151 * tree-cfg.c (dump_function_to_file): Dump the return type of
21152 functions, in a line to itself before the function body, mimicking
21153 the layout of a C function.
21154
21155 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21156
21157 PR tree-optimization/60971
21158 * tree-tailcall.c (process_assignment): Reject conversions which
21159 reduce precision.
21160
21161 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21162
21163 * calls.c (initialize_argument_information): Always treat
21164 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21165 (expand_call): Likewise.
21166 (emit_library_call_calue_1): Likewise.
21167 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21168 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21169 code accordingly.
21170
21171 2014-04-29 Nick Clifton <nickc@redhat.com>
21172
21173 * config/msp430/msp430.md (umulsidi): Fix typo.
21174 (mulhisi3): Enable even inside interrupt handlers.
21175 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21176 bigger return address pushed in large mode.
21177
21178 2014-04-29 Nick Clifton <nickc@redhat.com>
21179
21180 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21181 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21182 available modes.
21183 * config/m32r/m32r.c (init_reg_tables): Likewise.
21184 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21185 enum to hold the modes.
21186
21187 2014-04-29 Richard Biener <rguenther@suse.de>
21188
21189 * dominance.c (free_dominance_info): Add overload with
21190 function parameter.
21191 (dom_info_state): Likewise.
21192 (dom_info_available_p): Likewise.
21193 * basic-block.h (free_dominance_info, dom_info_state,
21194 dom_info_available_p): Declare overloads.
21195 * passes.c (execute_function_todo): Verify that verifiers
21196 don't change dominator info state. Drop dominator info
21197 for IPA pass invocations.
21198 * cgraph.c (release_function_body): Restore asserts that
21199 dominator information is released.
21200
21201 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21202
21203 * doc/invoke.texi: Fix typo.
21204 * tree-vrp.c: Fix typos.
21205 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21206
21207 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21208
21209 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21210
21211 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21212
21213 * config/aarch64/aarch64-builtins.c
21214 (aarch64_types_storestruct_lane_qualifiers): New.
21215 (TYPES_STORESTRUCT_LANE): Likewise.
21216 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21217 (st3_lane): Likewise.
21218 (st4_lane): Likewise.
21219 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21220 (vec_store_lanesci_lane<mode>): Likewise.
21221 (vec_store_lanesxi_lane<mode>): Likewise.
21222 (aarch64_st2_lane<VQ:mode>): Likewise.
21223 (aarch64_st3_lane<VQ:mode>): Likewise.
21224 (aarch64_st4_lane<VQ:mode>): Likewise.
21225 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21226 * config/aarch64/arm_neon.h
21227 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21228 use new macro arguments.
21229 (__ST3_LANE_FUNC): Likewise.
21230 (__ST4_LANE_FUNC): Likewise.
21231 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21232 (V_THREE_ELEM): Likewise.
21233 (V_FOUR_ELEM): Likewise.
21234
21235 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21236
21237 * doc/gimple.texi: Replace the description of the now-defunct
21238 union gimple_statement_d with a diagram showing the
21239 gimple_statement_base class hierarchy and its relationships to
21240 the GSS_ and GIMPLE_ enums.
21241
21242 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21243
21244 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21245 * config/aarch64/aarch64.c
21246 (aarch64_cannot_change_mode_class): Weaken conditions.
21247 (aarch64_modes_tieable_p): New.
21248 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21249
21250 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21251
21252 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21253 (loadsync_<mode>): Change mode.
21254 (load_quadpti, store_quadpti): New.
21255 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21256 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21257
21258 2014-04-28 Martin Jambor <mjambor@suse.cz>
21259
21260 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21261 same alias type as the original statement.
21262 (subreplacement_assignment_data): New type.
21263 (handle_unscalarized_data_in_subtree): New type of parameter,
21264 generate new memory accesses with same alias type as the original
21265 statement.
21266 (load_assign_lhs_subreplacements): Likewise.
21267 (sra_modify_constructor_assign): Generate new memory accesses with
21268 same alias type as the original statement.
21269
21270 2014-04-28 Richard Biener <rguenther@suse.de>
21271
21272 * tree-pass.h (TODO_verify_il): Define.
21273 (TODO_verify_all): Complete properly.
21274 * passes.c (execute_function_todo): Move existing loop-closed
21275 SSA verification under TODO_verify_il.
21276 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21277 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21278 Fix tree sharing issue.
21279
21280 2014-04-28 Richard Biener <rguenther@suse.de>
21281
21282 PR middle-end/60092
21283 * builtins.def (DEF_C11_BUILTIN): Add.
21284 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21285 * coretypes.h (enum function_class): Add function_c11_misc.
21286 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21287 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21288 (call_may_clobber_ref_p_1): Likewise.
21289 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21290 (mark_all_reaching_defs_necessary_1): Likewise.
21291 (propagate_necessity): Likewise.
21292 (eliminate_unnecessary_stmts): Likewise.
21293 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21294
21295 2014-04-28 Richard Biener <rguenther@suse.de>
21296
21297 * tree-vrp.c (vrp_var_may_overflow): Remove.
21298 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21299 with overflow immediately bump to one before that value and
21300 let iteration figure out overflow status.
21301
21302 2014-04-28 Richard Biener <rguenther@suse.de>
21303
21304 * configure.ac: Do valgrind header checks unconditionally.
21305 Add --enable-valgrind-annotations.
21306 * system.h: Guard valgrind header inclusion with
21307 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21308 * alloc-pool.c (pool_alloc, pool_free): Use
21309 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21310 to guard possibly dead code.
21311 * config.in: Regenerated.
21312 * configure: Likewise.
21313
21314 2014-04-28 Jeff Law <law@redhat.com>
21315
21316 PR tree-optimization/60902
21317 * tree-ssa-threadedge.c
21318 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21319 over real defs when invalidating outputs from statements that do not
21320 produce useful outputs for threading.
21321
21322 2014-04-28 Richard Biener <rguenther@suse.de>
21323
21324 PR tree-optimization/60979
21325 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21326 SCOPs that end in a block with a successor with abnormal
21327 predecessors.
21328
21329 2014-04-28 Richard Biener <rguenther@suse.de>
21330
21331 * tree-pass.h (execute_pass_list): Adjust prototype.
21332 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21333 (do_per_function): Change callback signature, push all actual
21334 work to the callbals.
21335 (do_per_function_toporder): Likewise.
21336 (execute_function_dump): Adjust.
21337 (execute_function_todo): Likewise.
21338 (clear_last_verified): Likewise.
21339 (verify_curr_properties): Likewise.
21340 (update_properties_after_pass): Likewise.
21341 (execute_pass_list_1): Split out from ...
21342 (execute_pass_list): ... here. Adjust.
21343 (execute_ipa_pass_list): Likewise.
21344 * cgraphunit.c (cgraph_add_new_function): Adjust.
21345 (analyze_function): Likewise.
21346 (expand_function): Likewise.
21347 * cgraph.c (release_function_body): Free dominance info
21348 here instead of asserting it was magically freed elsewhere.
21349
21350 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21351
21352 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21353 * configure: Regenerate.
21354 * config/sparc/sparc.opt (muser-mode): New option.
21355 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21356 for LEON3.
21357 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21358 * doc/invoke.texi (SPARC options): Document -muser-mode.
21359
21360 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21361
21362 * cselib.c (find_slot_memmode): Delete.
21363 (cselib_hasher): Change compare_type to a struct.
21364 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21365 constants.
21366 (preserve_constants_and_equivs): Adjust for new compare_type.
21367 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
21368 (wrap_constant): Delete.
21369 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
21370
21371 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21372
21373 * doc/install.texi (Building with profile feedback): Remove
21374 outdated sentence.
21375
21376 2014-04-26 Tom de Vries <tom@codesourcery.com>
21377
21378 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
21379 array accesses.
21380
21381 2014-04-25 Cary Coutant <ccoutant@google.com>
21382
21383 PR debug/60929
21384 * dwarf2out.c (should_move_die_to_comdat): A type definition
21385 can contain a subprogram definition, but don't move it to a
21386 comdat unit.
21387 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
21388 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
21389 from original DIE.
21390 (clone_tree_hash): Rename to...
21391 (clone_tree_partial): ...this; change callers. Copy
21392 DW_TAG_subprogram DIEs as declarations.
21393 (copy_decls_walk): Don't copy children of a declaration into a
21394 type unit.
21395
21396 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
21397
21398 PR target/60969
21399 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
21400 alternative 12.
21401
21402 2014-04-25 Jiong Wang <jiong.wang@arm.com>
21403
21404 * config/arm/predicates.md (call_insn_operand): Add long_call check.
21405 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
21406 reg for long_call.
21407 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
21408 restriction.
21409
21410 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21411
21412 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
21413
21414 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21415
21416 PR tree-optimization/60930
21417 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
21418 creating a multiply candidate by folding two constant
21419 multiplicands when the result overflows.
21420
21421 2014-04-25 Jakub Jelinek <jakub@redhat.com>
21422
21423 PR tree-optimization/60960
21424 * tree-vect-generic.c (expand_vector_operation): Only call
21425 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
21426
21427 2014-04-25 Tom de Vries <tom@codesourcery.com>
21428
21429 * expr.c (clobber_reg_mode): New function.
21430 * expr.h (clobber_reg): New function.
21431
21432 2014-04-25 Tom de Vries <tom@codesourcery.com>
21433
21434 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
21435 clobbers.
21436
21437 2014-04-25 Radovan Obradovic <robradovic@mips.com>
21438 Tom de Vries <tom@codesourcery.com>
21439
21440 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
21441 handle.
21442 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
21443 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
21444 new argument to find_all_hard_reg_sets call.
21445
21446 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21447
21448 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
21449 Use HOST_WIDE_INT_C for mask literal.
21450 (aarch_rev16_shleft_mask_imm_p): Likewise.
21451
21452 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
21453
21454 PR target/60941
21455 * config/sparc/sparc.md (ashlsi3_extend): Delete.
21456
21457 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
21458
21459 PR preprocessor/56540
21460 * config/i386/i386-c.c (ix86_target_macros): Define
21461 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
21462
21463 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21464
21465 * configure.ac (tga_func): Remove.
21466 (LIB_TLS_SPEC): Remove.
21467 * configure: Regenerate.
21468 * config.in: Regenerate.
21469 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
21470
21471 2014-04-25 Richard Biener <rguenther@suse.de>
21472
21473 PR ipa/60912
21474 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
21475 call stmt use/clobber sets during stmt walk instead of
21476 walking the possibly incomplete set of caller edges.
21477
21478 2014-04-25 Richard Biener <rguenther@suse.de>
21479
21480 PR ipa/60911
21481 * passes.c (apply_ipa_transforms): Inline into only caller ...
21482 (execute_one_pass): ... here. Properly bring in function
21483 bodies for nodes we want to apply IPA transforms to.
21484
21485 2014-04-24 Cong Hou <congh@google.com>
21486
21487 PR tree-optimization/60896
21488 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
21489 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
21490 (vect_mark_pattern_stmts): Set the def type of all statements in
21491 PATTERN_DEF_SEQ as vect_internal_def.
21492
21493 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21494
21495 * doc/extend.texi (PowerPC Built-in Functions): Document new
21496 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
21497 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
21498
21499 * config/rs6000/predicates.md (const_0_to_3_operand): New
21500 predicate to match 0..3 integer constants.
21501
21502 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
21503 to support adding miscellaneous builtin functions.
21504 (BU_DFP_MISC_2): Likewise.
21505 (BU_P7_MISC_1): Likewise.
21506 (BU_P7_MISC_2): Likewise.
21507 (BU_P8V_MISC_3): Likewise.
21508 (BU_MISC_1): Likewise.
21509 (BU_MISC_2): Likewise.
21510 (DIVWE): Add extended divide builtin functions.
21511 (DIVWEO): Likewise.
21512 (DIVWEU): Likewise.
21513 (DIVWEUO): Likewise.
21514 (DIVDE): Likewise.
21515 (DIVDEO): Likewise.
21516 (DIVDEU): Likewise.
21517 (DIVDEUO): Likewise.
21518 (DXEX): Add decimal floating-point builtin functions.
21519 (DXEXQ): Likewise.
21520 (DDEDPD): Likewise.
21521 (DDEDPDQ): Likewise.
21522 (DENBCD): Likewise.
21523 (DENBCDQ): Likewise.
21524 (DIEX): Likewise.
21525 (DIEXQ): Likewise.
21526 (DSCLI): Likewise.
21527 (DSCLIQ): Likewise.
21528 (DSCRI): Likewise.
21529 (DSCRIQ): Likewise.
21530 (CDTBCD): Add new BCD builtin functions.
21531 (CBCDTD): Likewise.
21532 (ADDG6S): Likewise.
21533 (BCDADD): Likewise.
21534 (BCDADD_LT): Likewise.
21535 (BCDADD_EQ): Likewise.
21536 (BCDADD_GT): Likewise.
21537 (BCDADD_OV): Likewise.
21538 (BCDSUB): Likewise.
21539 (BCDSUB_LT): Likewise.
21540 (BCDSUB_EQ): Likewise.
21541 (BCDSUB_GT): Likewise.
21542 (BCDSUB_OV): Likewise.
21543 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
21544 (UNPACK_TD): Likewise.
21545 (PACK_TF): Likewise.
21546 (UNPACK_TF): Likewise.
21547 (UNPACK_TF_0): Likewise.
21548 (UNPACK_TF_1): Likewise.
21549 (PACK_V1TI): Likewise.
21550 (UNPACK_V1TI): Likewise.
21551
21552 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21553 support for decimal floating point builtin functions.
21554 (rs6000_expand_ternop_builtin): Add checks for the new builtin
21555 functions that take constant arguments.
21556 (rs6000_invalid_builtin): Add decimal floating point builtin support.
21557 (rs6000_init_builtins): Setup long double, _Decimal64, and
21558 _Decimal128 types for new builtin functions.
21559 (builtin_function_type): Set the unsigned flags appropriately for
21560 the new builtin functions.
21561 (rs6000_opt_masks): Add support for decimal floating point builtin
21562 functions.
21563
21564 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
21565 floating point builtin functions.
21566 (RS6000_BTM_COMMON): Likewise.
21567 (RS6000_BTI_long_double): Likewise.
21568 (RS6000_BTI_dfloat64): Likewise.
21569 (RS6000_BTI_dfloat128): Likewise.
21570 (long_double_type_internal_node): Likewise.
21571 (dfloat64_type_internal_node): Likewise.
21572 (dfloat128_type_internal_node): Likewise.
21573
21574 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
21575 2.07 bcd arithmetic instructions.
21576 (UNSPEC_BCDSUB): Likewise.
21577 (UNSPEC_BCD_OVERFLOW): Likewise.
21578 (UNSPEC_BCD_ADD_SUB): Likewise.
21579 (bcd_add_sub): Likewise.
21580 (BCD_TEST): Likewise.
21581 (bcd<bcd_add_sub>): Likewise.
21582 (bcd<bcd_add_sub>_test): Likewise.
21583 (bcd<bcd_add_sub>_test2): Likewise.
21584 (bcd<bcd_add_sub>_<code>): Likewise.
21585 (peephole2 for combined bcd ops): Likewise.
21586
21587 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
21588 decimal floating point builtin functions.
21589 (UNSPEC_DENBCD): Likewise.
21590 (UNSPEC_DXEX): Likewise.
21591 (UNSPEC_DIEX): Likewise.
21592 (UNSPEC_DSCLI): Likewise.
21593 (UNSPEC_DSCRI): Likewise.
21594 (D64_D128): Likewise.
21595 (dfp_suffix): Likewise.
21596 (dfp_ddedpd_<mode>): Likewise.
21597 (dfp_denbcd_<mode>): Likewise.
21598 (dfp_dxex_<mode>): Likewise.
21599 (dfp_diex_<mode>): Likewise.
21600 (dfp_dscli_<mode>): Likewise.
21601 (dfp_dscri_<mode>): Likewise.
21602
21603 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
21604 builtin functions.
21605 (UNSPEC_CDTBCD): Likewise.
21606 (UNSPEC_CBCDTD): Likewise.
21607 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
21608 (UNSPEC_DIVEO): Likewise.
21609 (UNSPEC_DIVEU): Likewise.
21610 (UNSPEC_DIVEUO): Likewise.
21611 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
21612 pack/unpack 128-bit types.
21613 (UNSPEC_PACK_128BIT): Likewise.
21614 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
21615 (udiv<mode>3): Use idiv_ldiv mode attribute.
21616 (div<mode>3): Likewise.
21617 (addg6s): Add new BCD builtin functions.
21618 (cdtbcd): Likewise.
21619 (cbcdtd): Likewise.
21620 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
21621 (div_extend): Likewise.
21622 (div<div_extend>_<mode>"): Likewise.
21623 (FP128_64): Add support for new builtin functions to pack/unpack
21624 128-bit types.
21625 (unpack<mode>): Likewise.
21626 (unpacktf_0): Likewise.
21627 (unpacktf_1): Likewise.
21628 (unpack<mode>_dm): Likewise.
21629 (unpack<mode>_nodm): Likewise.
21630 (pack<mode>): Likewise.
21631 (unpackv1ti): Likewise.
21632 (packv1ti): Likewise.
21633
21634 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
21635
21636 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
21637 is disabled.
21638
21639 2014-04-24 Jakub Jelinek <jakub@redhat.com>
21640
21641 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
21642 * gimplify.c (omp_is_private): Change last argument's type to int.
21643 Only diagnose lastprivate if the simd argument is 1, only diagnose
21644 linear if the simd argument is 2.
21645 (gimplify_omp_for): Adjust omp_is_private callers. When adding
21646 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
21647 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
21648 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21649 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21650 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21651 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21652 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21653 * tree-nested.c (convert_nonlocal_omp_clauses,
21654 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21655
21656 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
21657
21658 PR target/60822
21659 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21660 operand 1.
21661
21662 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
21663
21664 * flag-types.h (enum ivar_visibility): Add.
21665
21666 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
21667
21668 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21669 function * argument.
21670
21671 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
21672
21673 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21674
21675 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21676 Tom de Vries <tom@codesourcery.com>
21677
21678 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21679 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21680 reg-note.
21681 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21682 * emit-rtl.c (try_split): Same.
21683
21684 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21685 Tom de Vries <tom@codesourcery.com>
21686
21687 * common.opt (fuse-caller-save): New option.
21688
21689 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
21690
21691 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21692 elements for big-endian.
21693
21694 2014-04-24 Richard Biener <rguenther@suse.de>
21695
21696 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21697 during TER and instead use the sepops interface for expanding
21698 non-GIMPLE_SINGLE_RHS.
21699
21700 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21701
21702 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21703 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21704
21705 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21706
21707 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21708 assembler 64-bit option.
21709 * configure: Regenerate.
21710
21711 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21712
21713 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21714 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21715 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21716 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21717 (TARGET_CRYPTO): Take TARGET_SIMD into account.
21718
21719 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21720
21721 * config/aarch64/aarch64-builtins.c
21722 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21723 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21724 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21725 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21726 builtins.
21727 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21728 (Vrevsuff): New mode attribute.
21729
21730 2014-04-24 Terry Guo <terry.guo@arm.com>
21731
21732 * config/arm/arm.h (machine_function): Define variable
21733 after_arm_reorg here.
21734 * config/arm/arm.c (after_arm_reorg): Remove the definition.
21735 (arm_split_constant): Update the way to access variable
21736 after_arm_reorg.
21737 (arm_reorg): Ditto.
21738 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21739
21740 2014-04-23 Tom de Vries <tom@codesourcery.com>
21741
21742 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21743
21744 2014-04-23 David Malcolm <dmalcolm@redhat.com>
21745
21746 * is-a.h: Update comments to reflect the following changes to the
21747 "pointerness" of the API, making the template parameter match the
21748 return type, allowing use of is-a.h with typedefs of pointers.
21749 (is_a_helper::cast): Return a T rather then a pointer to a T, so
21750 that the return type matches the parameter to the is_a_helper.
21751 (as_a): Likewise.
21752 (dyn_cast): Likewise.
21753
21754 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21755 pointer from the is-a.h API.
21756
21757 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21758 (is_a_helper <cgraph_node *>::test): ...this, matching change to
21759 is-a.h API.
21760 (is_a_helper <varpool_node>::test): Likewise, convert to...
21761 (is_a_helper <varpool_node *>::test): ...this.
21762
21763 (varpool_first_variable): Update for removal of implicit pointer
21764 from the is-a.h API.
21765 (varpool_next_variable): Likewise.
21766 (varpool_first_static_initializer): Likewise.
21767 (varpool_next_static_initializer): Likewise.
21768 (varpool_first_defined_variable): Likewise.
21769 (varpool_next_defined_variable): Likewise.
21770 (cgraph_first_defined_function): Likewise.
21771 (cgraph_next_defined_function): Likewise.
21772 (cgraph_first_function): Likewise.
21773 (cgraph_next_function): Likewise.
21774 (cgraph_first_function_with_gimple_body): Likewise.
21775 (cgraph_next_function_with_gimple_body): Likewise.
21776 (cgraph_alias_target): Likewise.
21777 (varpool_alias_target): Likewise.
21778 (cgraph_function_or_thunk_node): Likewise.
21779 (varpool_variable_node): Likewise.
21780 (symtab_real_symbol_p): Likewise.
21781 * cgraphunit.c (referred_to_p): Likewise.
21782 (analyze_functions): Likewise.
21783 (handle_alias_pairs): Likewise.
21784 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21785 * gimple-ssa.h (gimple_vuse_op): Likewise.
21786 (gimple_vdef_op): Likewise.
21787 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21788 * gimple.c (gimple_build_asm_1): Likewise.
21789 (gimple_build_try): Likewise.
21790 (gimple_build_resx): Likewise.
21791 (gimple_build_eh_dispatch): Likewise.
21792 (gimple_build_omp_for): Likewise.
21793 (gimple_omp_for_set_clauses): Likewise.
21794
21795 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21796 (is_a_helper <gimple_statement_asm *>::test): ...this.
21797 (is_a_helper <gimple_statement_bind>::test): Convert to...
21798 (is_a_helper <gimple_statement_bind *>::test): ...this.
21799 (is_a_helper <gimple_statement_call>::test): Convert to...
21800 (is_a_helper <gimple_statement_call *>::test): ...this.
21801 (is_a_helper <gimple_statement_catch>::test): Convert to...
21802 (is_a_helper <gimple_statement_catch *>::test): ...this.
21803 (is_a_helper <gimple_statement_resx>::test): Convert to...
21804 (is_a_helper <gimple_statement_resx *>::test): ...this.
21805 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21806 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21807 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21808 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21809 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21810 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21811 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21812 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21813 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21814 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21815 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21816 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21817 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21818 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21819 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21820 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21821 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21822 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21823 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21824 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21825 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21826 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21827 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21828 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21829 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21830 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21831 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21832 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21833 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21834 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21835 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21836 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21837 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21838 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21839 (is_a_helper <gimple_statement_phi>::test): Convert to...
21840 (is_a_helper <gimple_statement_phi *>::test): ...this.
21841 (is_a_helper <gimple_statement_transaction>::test): Convert to...
21842 (is_a_helper <gimple_statement_transaction *>::test): ...this.
21843 (is_a_helper <gimple_statement_try>::test): Convert to...
21844 (is_a_helper <gimple_statement_try *>::test): ...this.
21845 (is_a_helper <gimple_statement_wce>::test): Convert to...
21846 (is_a_helper <gimple_statement_wce *>::test): ...this.
21847 (is_a_helper <const gimple_statement_asm>::test): Convert to...
21848 (is_a_helper <const gimple_statement_asm *>::test): ...this.
21849 (is_a_helper <const gimple_statement_bind>::test): Convert to...
21850 (is_a_helper <const gimple_statement_bind *>::test): ...this.
21851 (is_a_helper <const gimple_statement_call>::test): Convert to...
21852 (is_a_helper <const gimple_statement_call *>::test): ...this.
21853 (is_a_helper <const gimple_statement_catch>::test): Convert to...
21854 (is_a_helper <const gimple_statement_catch *>::test): ...this.
21855 (is_a_helper <const gimple_statement_resx>::test): Convert to...
21856 (is_a_helper <const gimple_statement_resx *>::test): ...this.
21857 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21858 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21859 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21860 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21861 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21862 Convert to...
21863 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21864 ...this.
21865 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21866 Convert to...
21867 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21868 ...this.
21869 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21870 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21871 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21872 to...
21873 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21874 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21875 to...
21876 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21877 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21878 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21879 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21880 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21881 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21882 to...
21883 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21884 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21885 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21886 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21887 to...
21888 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21889 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21890 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21891 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21892 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21893 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21894 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21895 (is_a_helper <const gimple_statement_phi>::test): Convert to...
21896 (is_a_helper <const gimple_statement_phi *>::test): ...this.
21897 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21898 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21899 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21900 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21901 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21902 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21903 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21904 to...
21905 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21906 ...this.
21907 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21908 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21909
21910 (gimple_use_ops): Update for removal of implicit pointer from the
21911 is-a.h API.
21912 (gimple_set_use_ops): Likewise.
21913 (gimple_vuse): Likewise.
21914 (gimple_vdef): Likewise.
21915 (gimple_vuse_ptr): Likewise.
21916 (gimple_vdef_ptr): Likewise.
21917 (gimple_set_vuse): Likewise.
21918 (gimple_set_vdef): Likewise.
21919 (gimple_omp_return_set_lhs): Likewise.
21920 (gimple_omp_return_lhs): Likewise.
21921 (gimple_omp_return_lhs_ptr): Likewise.
21922 (gimple_call_fntype): Likewise.
21923 (gimple_call_set_fntype): Likewise.
21924 (gimple_call_set_internal_fn): Likewise.
21925 (gimple_call_use_set): Likewise.
21926 (gimple_call_clobber_set): Likewise.
21927 (gimple_bind_vars): Likewise.
21928 (gimple_bind_set_vars): Likewise.
21929 (gimple_bind_body_ptr): Likewise.
21930 (gimple_bind_set_body): Likewise.
21931 (gimple_bind_add_stmt): Likewise.
21932 (gimple_bind_block): Likewise.
21933 (gimple_bind_set_block): Likewise.
21934 (gimple_asm_ninputs): Likewise.
21935 (gimple_asm_noutputs): Likewise.
21936 (gimple_asm_nclobbers): Likewise.
21937 (gimple_asm_nlabels): Likewise.
21938 (gimple_asm_input_op): Likewise.
21939 (gimple_asm_input_op_ptr): Likewise.
21940 (gimple_asm_output_op): Likewise.
21941 (gimple_asm_output_op_ptr): Likewise.
21942 (gimple_asm_set_output_op): Likewise.
21943 (gimple_asm_clobber_op): Likewise.
21944 (gimple_asm_set_clobber_op): Likewise.
21945 (gimple_asm_label_op): Likewise.
21946 (gimple_asm_set_label_op): Likewise.
21947 (gimple_asm_string): Likewise.
21948 (gimple_catch_types): Likewise.
21949 (gimple_catch_types_ptr): Likewise.
21950 (gimple_catch_handler_ptr): Likewise.
21951 (gimple_catch_set_types): Likewise.
21952 (gimple_catch_set_handler): Likewise.
21953 (gimple_eh_filter_types): Likewise.
21954 (gimple_eh_filter_types_ptr): Likewise.
21955 (gimple_eh_filter_failure_ptr): Likewise.
21956 (gimple_eh_filter_set_types): Likewise.
21957 (gimple_eh_filter_set_failure): Likewise.
21958 (gimple_eh_must_not_throw_fndecl): Likewise.
21959 (gimple_eh_must_not_throw_set_fndecl): Likewise.
21960 (gimple_eh_else_n_body_ptr): Likewise.
21961 (gimple_eh_else_e_body_ptr): Likewise.
21962 (gimple_eh_else_set_n_body): Likewise.
21963 (gimple_eh_else_set_e_body): Likewise.
21964 (gimple_try_eval_ptr): Likewise.
21965 (gimple_try_cleanup_ptr): Likewise.
21966 (gimple_try_set_eval): Likewise.
21967 (gimple_try_set_cleanup): Likewise.
21968 (gimple_wce_cleanup_ptr): Likewise.
21969 (gimple_wce_set_cleanup): Likewise.
21970 (gimple_phi_capacity): Likewise.
21971 (gimple_phi_num_args): Likewise.
21972 (gimple_phi_result): Likewise.
21973 (gimple_phi_result_ptr): Likewise.
21974 (gimple_phi_set_result): Likewise.
21975 (gimple_phi_arg): Likewise.
21976 (gimple_phi_set_arg): Likewise.
21977 (gimple_resx_region): Likewise.
21978 (gimple_resx_set_region): Likewise.
21979 (gimple_eh_dispatch_region): Likewise.
21980 (gimple_eh_dispatch_set_region): Likewise.
21981 (gimple_omp_critical_name): Likewise.
21982 (gimple_omp_critical_name_ptr): Likewise.
21983 (gimple_omp_critical_set_name): Likewise.
21984 (gimple_omp_for_clauses): Likewise.
21985 (gimple_omp_for_clauses_ptr): Likewise.
21986 (gimple_omp_for_set_clauses): Likewise.
21987 (gimple_omp_for_collapse): Likewise.
21988 (gimple_omp_for_index): Likewise.
21989 (gimple_omp_for_index_ptr): Likewise.
21990 (gimple_omp_for_set_index): Likewise.
21991 (gimple_omp_for_initial): Likewise.
21992 (gimple_omp_for_initial_ptr): Likewise.
21993 (gimple_omp_for_set_initial): Likewise.
21994 (gimple_omp_for_final): Likewise.
21995 (gimple_omp_for_final_ptr): Likewise.
21996 (gimple_omp_for_set_final): Likewise.
21997 (gimple_omp_for_incr): Likewise.
21998 (gimple_omp_for_incr_ptr): Likewise.
21999 (gimple_omp_for_set_incr): Likewise.
22000 (gimple_omp_for_pre_body_ptr): Likewise.
22001 (gimple_omp_for_set_pre_body): Likewise.
22002 (gimple_omp_parallel_clauses): Likewise.
22003 (gimple_omp_parallel_clauses_ptr): Likewise.
22004 (gimple_omp_parallel_set_clauses): Likewise.
22005 (gimple_omp_parallel_child_fn): Likewise.
22006 (gimple_omp_parallel_child_fn_ptr): Likewise.
22007 (gimple_omp_parallel_set_child_fn): Likewise.
22008 (gimple_omp_parallel_data_arg): Likewise.
22009 (gimple_omp_parallel_data_arg_ptr): Likewise.
22010 (gimple_omp_parallel_set_data_arg): Likewise.
22011 (gimple_omp_task_clauses): Likewise.
22012 (gimple_omp_task_clauses_ptr): Likewise.
22013 (gimple_omp_task_set_clauses): Likewise.
22014 (gimple_omp_task_child_fn): Likewise.
22015 (gimple_omp_task_child_fn_ptr): Likewise.
22016 (gimple_omp_task_set_child_fn): Likewise.
22017 (gimple_omp_task_data_arg): Likewise.
22018 (gimple_omp_task_data_arg_ptr): Likewise.
22019 (gimple_omp_task_set_data_arg): Likewise.
22020 (gimple_omp_taskreg_clauses): Likewise.
22021 (gimple_omp_taskreg_clauses_ptr): Likewise.
22022 (gimple_omp_taskreg_set_clauses): Likewise.
22023 (gimple_omp_taskreg_child_fn): Likewise.
22024 (gimple_omp_taskreg_child_fn_ptr): Likewise.
22025 (gimple_omp_taskreg_set_child_fn): Likewise.
22026 (gimple_omp_taskreg_data_arg): Likewise.
22027 (gimple_omp_taskreg_data_arg_ptr): Likewise.
22028 (gimple_omp_taskreg_set_data_arg): Likewise.
22029 (gimple_omp_task_copy_fn): Likewise.
22030 (gimple_omp_task_copy_fn_ptr): Likewise.
22031 (gimple_omp_task_set_copy_fn): Likewise.
22032 (gimple_omp_task_arg_size): Likewise.
22033 (gimple_omp_task_arg_size_ptr): Likewise.
22034 (gimple_omp_task_set_arg_size): Likewise.
22035 (gimple_omp_task_arg_align): Likewise.
22036 (gimple_omp_task_arg_align_ptr): Likewise.
22037 (gimple_omp_task_set_arg_align): Likewise.
22038 (gimple_omp_single_clauses): Likewise.
22039 (gimple_omp_single_clauses_ptr): Likewise.
22040 (gimple_omp_single_set_clauses): Likewise.
22041 (gimple_omp_target_clauses): Likewise.
22042 (gimple_omp_target_clauses_ptr): Likewise.
22043 (gimple_omp_target_set_clauses): Likewise.
22044 (gimple_omp_target_child_fn): Likewise.
22045 (gimple_omp_target_child_fn_ptr): Likewise.
22046 (gimple_omp_target_set_child_fn): Likewise.
22047 (gimple_omp_target_data_arg): Likewise.
22048 (gimple_omp_target_data_arg_ptr): Likewise.
22049 (gimple_omp_target_set_data_arg): Likewise.
22050 (gimple_omp_teams_clauses): Likewise.
22051 (gimple_omp_teams_clauses_ptr): Likewise.
22052 (gimple_omp_teams_set_clauses): Likewise.
22053 (gimple_omp_sections_clauses): Likewise.
22054 (gimple_omp_sections_clauses_ptr): Likewise.
22055 (gimple_omp_sections_set_clauses): Likewise.
22056 (gimple_omp_sections_control): Likewise.
22057 (gimple_omp_sections_control_ptr): Likewise.
22058 (gimple_omp_sections_set_control): Likewise.
22059 (gimple_omp_for_set_cond): Likewise.
22060 (gimple_omp_for_cond): Likewise.
22061 (gimple_omp_atomic_store_set_val): Likewise.
22062 (gimple_omp_atomic_store_val): Likewise.
22063 (gimple_omp_atomic_store_val_ptr): Likewise.
22064 (gimple_omp_atomic_load_set_lhs): Likewise.
22065 (gimple_omp_atomic_load_lhs): Likewise.
22066 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22067 (gimple_omp_atomic_load_set_rhs): Likewise.
22068 (gimple_omp_atomic_load_rhs): Likewise.
22069 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22070 (gimple_omp_continue_control_def): Likewise.
22071 (gimple_omp_continue_control_def_ptr): Likewise.
22072 (gimple_omp_continue_set_control_def): Likewise.
22073 (gimple_omp_continue_control_use): Likewise.
22074 (gimple_omp_continue_control_use_ptr): Likewise.
22075 (gimple_omp_continue_set_control_use): Likewise.
22076 (gimple_transaction_body_ptr): Likewise.
22077 (gimple_transaction_label): Likewise.
22078 (gimple_transaction_label_ptr): Likewise.
22079 (gimple_transaction_set_body): Likewise.
22080 (gimple_transaction_set_label): Likewise.
22081
22082 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22083 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22084 * ipa-ref.c (ipa_record_reference): Likewise.
22085 * ipa-reference.c (analyze_function): Likewise.
22086 (ipa_reference_write_optimization_summary): Likewise.
22087 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22088 (address_taken_from_non_vtable_p): Likewise.
22089 (comdat_can_be_unshared_p_1): Likewise.
22090 * lto-cgraph.c (lto_output_ref): Likewise.
22091 (add_references): Likewise.
22092 (compute_ltrans_boundary): Likewise.
22093 (output_symtab): Likewise.
22094 (input_ref): Likewise.
22095 (input_cgraph_1): Likewise.
22096 (output_cgraph_opt_summary): Likewise.
22097 * lto-streamer-out.c (lto_output): Likewise.
22098 (output_symbol_p): Likewise.
22099 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22100 (lsei_start_function_in_partition): Likewise.
22101 (lsei_next_variable_in_partition): Likewise.
22102 (lsei_start_variable_in_partition): Likewise.
22103 * symtab.c (insert_to_assembler_name_hash): Likewise.
22104 (unlink_from_assembler_name_hash): Likewise.
22105 (symtab_unregister_node): Likewise.
22106 (symtab_remove_node): Likewise.
22107 (dump_symtab_node): Likewise.
22108 (verify_symtab_base): Likewise.
22109 (verify_symtab_node): Likewise.
22110 (symtab_make_decl_local): Likewise.
22111 (symtab_alias_ultimate_target): Likewise.
22112 (symtab_resolve_alias): Likewise.
22113 (symtab_get_symbol_partitioning_class): Likewise.
22114 * tree-phinodes.c (allocate_phi_node): Likewise.
22115 (reserve_phi_args_for_new_edge): Likewise.
22116 (remove_phi_args): Likewise.
22117 * varpool.c (varpool_node_for_asm): Likewise.
22118 (varpool_remove_unreferenced_decls): Likewise.
22119
22120 2014-04-23 Jeff Law <law@redhat.com>
22121
22122 PR tree-optimization/60902
22123 * tree-ssa-threadedge.c
22124 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22125 invalidate outputs from statements that do not produce useful
22126 outputs for threading.
22127
22128 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22129
22130 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22131 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22132 machine descriptions for Stack Smashing Protector.
22133
22134 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22135
22136 * aarch64.md (<optab>_rol<mode>3): New pattern.
22137 (<optab>_rolsi3_uxtw): Likewise.
22138 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22139
22140 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22141
22142 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22143 (arm_cortex_a12_tune): Likewise.
22144
22145 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22146
22147 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22148
22149 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22150
22151 * config/arm/arm.md (arm_rev16si2): New pattern.
22152 (arm_rev16si2_alt): Likewise.
22153 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22154
22155 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22156
22157 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22158 (rev16<mode>2_alt): Likewise.
22159 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22160 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22161 (aarch_rev16_shleft_mask_imm_p): Likewise.
22162 (aarch_rev16_p_1): Likewise.
22163 (aarch_rev16_p): Likewise.
22164 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22165 (aarch_rev16_shright_mask_imm_p): Likewise.
22166 (aarch_rev16_shleft_mask_imm_p): Likewise.
22167
22168 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22169
22170 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22171 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22172 rev cost.
22173 (cortex_a53_extra_costs): Likewise.
22174 (cortex_a57_extra_costs): Likewise.
22175 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22176 (cortexa7_extra_costs): Likewise.
22177 (cortexa8_extra_costs): Likewise.
22178 (cortexa12_extra_costs): Likewise.
22179 (cortexa15_extra_costs): Likewise.
22180 (v7m_extra_costs): Likewise.
22181 (arm_new_rtx_costs): Handle BSWAP.
22182
22183 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22184
22185 * config/arm/arm.c (cortexa8_extra_costs): New table.
22186 (arm_cortex_a8_tune): New tuning struct.
22187 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22188
22189 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22190
22191 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22192
22193 2014-04-23 Richard Biener <rguenther@suse.de>
22194
22195 * Makefile.in (OBJS): Remove loop-unswitch.o.
22196 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22197 * passes.def (pass_rtl_unswitch): Likewise.
22198 * loop-init.c (gate_rtl_unswitch): Likewise.
22199 (rtl_unswitch): Likewise.
22200 (pass_data_rtl_unswitch): Likewise.
22201 (pass_rtl_unswitch): Likewise.
22202 (make_pass_rtl_unswitch): Likewise.
22203 * rtl.h (reversed_condition): Likewise.
22204 (compare_and_jump_seq): Likewise.
22205 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22206 and make static.
22207 * loop-unroll.c (compare_and_jump_seq): Likewise.
22208
22209 2014-04-23 Richard Biener <rguenther@suse.de>
22210
22211 PR tree-optimization/60903
22212 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22213 commented code block.
22214 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22215 loop flags to newly created BBs and edges.
22216
22217 2014-04-23 Nick Clifton <nickc@redhat.com>
22218
22219 * config/msp430/msp430.c (msp430_handle_option): Move function
22220 to msp430-common.c
22221 (msp430_option_override): Simplify mcu and mcpu option handling.
22222 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22223 support for -mhwmult command line option.
22224 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22225 -mhwmult command line option.
22226 (msp430_hwmult_enabled): Delete.
22227 (msp43o_output_labelref): Add support for -mhwmult command line option.
22228 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22229 (umulsidi3): Likewise.
22230 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22231 (mcpu, mlarge, msmall): Likewise.
22232 (mhwmult): New option.
22233 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22234 prototype.
22235 (msp430_is_f5_mcu): Remove prototype.
22236 (msp430_use_f5_series_hwmult): Add prototype.
22237 * config/msp430/msp430-opts.h: New file.
22238 * common/config/msp430: New directory.
22239 * common/config/msp430/msp430-common.c: New file.
22240 * config.gcc (msp430): Remove target_has_targetm_common.
22241 * doc/invoke.texi: Document -mhwmult command line option.
22242
22243 2014-04-23 Nick Clifton <nickc@redhat.com>
22244
22245 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22246 default-manifest.o if it can be found in the search path.
22247 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22248
22249 2014-04-23 Terry Guo <terry.guo@arm.com>
22250
22251 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22252
22253 2014-04-23 Richard Biener <rguenther@suse.de>
22254
22255 PR middle-end/60895
22256 * tree-inline.c (declare_return_variable): Use mark_addressable.
22257
22258 2014-04-23 Richard Biener <rguenther@suse.de>
22259
22260 PR middle-end/60891
22261 * loop-init.c (loop_optimizer_init): Make sure to apply
22262 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22263
22264 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22265
22266 PR sanitizer/60275
22267 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22268 New options.
22269 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22270 if flag_sanitize_undefined_trap_on_error.
22271 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22272 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22273 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22274 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22275 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22276 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22277 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22278 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22279 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22280 * ubsan.c (ubsan_instrument_unreachable): Return
22281 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22282 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22283 if flag_sanitize_undefined_trap_on_error and
22284 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22285 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22286 instrument_bool_enum_load): Emit __builtin_trap () if
22287 flag_sanitize_undefined_trap_on_error and
22288 __builtin_handle_*_abort () if !flag_sanitize_recover.
22289 * doc/invoke.texi (-fsanitize-recover,
22290 -fsanitize-undefined-trap-on-error): Document.
22291
22292 2014-04-22 Christian Bruel <christian.bruel@st.com>
22293
22294 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22295 Force immediates to SImode.
22296
22297 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22298
22299 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22300 (lroundsfsi2): New.
22301 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22302 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22303 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22304 (nios2_fpu_insn): Add entry for round.
22305 (N2FPU_NO_ERRNO_P): Define.
22306 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22307 flag_errno_math.
22308 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22309
22310 2014-04-22 Richard Henderson <rth@redhat.com>
22311
22312 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22313 (add<GPI>3_compare0): Remove leading * from name.
22314 (add<GPI>3_carryin): Likewise.
22315 (sub<GPI>3_compare0): Likewise.
22316 (sub<GPI>3_carryin): Likewise.
22317 (<su_optab>mulditi3): New expander.
22318 (multi3): New expander.
22319 (madd<GPI>): Remove leading * from name.
22320
22321 2014-04-22 Martin Jambor <mjambor@suse.cz>
22322
22323 * cgraphclones.c (cgraph_function_versioning): Copy
22324 ipa_transforms_to_apply instead of asserting it is empty.
22325
22326 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22327
22328 PR target/60868
22329 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22330 on count_exp to get mode.
22331
22332 2014-04-22 Andrew Pinski <apinski@cavium.com>
22333
22334 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22335 Handle TLS for ILP32.
22336 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22337 (tlsie_small_<mode>): this and handle PTR.
22338 (tlsie_small_sidi): New pattern.
22339 (tlsle_small): Change to an expand to handle ILP32.
22340 (tlsle_small_<mode>): New pattern.
22341 (tlsdesc_small): Rename to ...
22342 (tlsdesc_small_<mode>): this and handle PTR.
22343
22344 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22345
22346 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22347
22348 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22349
22350 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22351 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22352 (aarch64_types_signed_poly_qualifiers): Likewise.
22353 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22354 (aarch64_types_poly_signed_qualifiers): Likewise.
22355 (TYPES_REINTERP_SS): Type macro added.
22356 (TYPES_REINTERP_SU): Likewise.
22357 (TYPES_REINTERP_SP): Likewise.
22358 (TYPES_REINTERP_US): Likewise.
22359 (TYPES_REINTERP_PS): Likewise.
22360 (aarch64_fold_builtin): New expression folding added.
22361 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22362 Declarations removed.
22363 (REINTERP_SS): Declarations added.
22364 (REINTERP_US): Likewise.
22365 (REINTERP_PS): Likewise.
22366 (REINTERP_SU): Likewise.
22367 (REINTERP_SP): Likewise.
22368 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
22369 (vreinterpretq_p8_f64): Likewise.
22370 (vreinterpret_p16_f64): Likewise.
22371 (vreinterpretq_p16_f64): Likewise.
22372 (vreinterpret_f32_f64): Likewise.
22373 (vreinterpretq_f32_f64): Likewise.
22374 (vreinterpret_f64_f32): Likewise.
22375 (vreinterpret_f64_p8): Likewise.
22376 (vreinterpret_f64_p16): Likewise.
22377 (vreinterpret_f64_s8): Likewise.
22378 (vreinterpret_f64_s16): Likewise.
22379 (vreinterpret_f64_s32): Likewise.
22380 (vreinterpret_f64_s64): Likewise.
22381 (vreinterpret_f64_u8): Likewise.
22382 (vreinterpret_f64_u16): Likewise.
22383 (vreinterpret_f64_u32): Likewise.
22384 (vreinterpret_f64_u64): Likewise.
22385 (vreinterpretq_f64_f32): Likewise.
22386 (vreinterpretq_f64_p8): Likewise.
22387 (vreinterpretq_f64_p16): Likewise.
22388 (vreinterpretq_f64_s8): Likewise.
22389 (vreinterpretq_f64_s16): Likewise.
22390 (vreinterpretq_f64_s32): Likewise.
22391 (vreinterpretq_f64_s64): Likewise.
22392 (vreinterpretq_f64_u8): Likewise.
22393 (vreinterpretq_f64_u16): Likewise.
22394 (vreinterpretq_f64_u32): Likewise.
22395 (vreinterpretq_f64_u64): Likewise.
22396 (vreinterpret_s64_f64): Likewise.
22397 (vreinterpretq_s64_f64): Likewise.
22398 (vreinterpret_u64_f64): Likewise.
22399 (vreinterpretq_u64_f64): Likewise.
22400 (vreinterpret_s8_f64): Likewise.
22401 (vreinterpretq_s8_f64): Likewise.
22402 (vreinterpret_s16_f64): Likewise.
22403 (vreinterpretq_s16_f64): Likewise.
22404 (vreinterpret_s32_f64): Likewise.
22405 (vreinterpretq_s32_f64): Likewise.
22406 (vreinterpret_u8_f64): Likewise.
22407 (vreinterpretq_u8_f64): Likewise.
22408 (vreinterpret_u16_f64): Likewise.
22409 (vreinterpretq_u16_f64): Likewise.
22410 (vreinterpret_u32_f64): Likewise.
22411 (vreinterpretq_u32_f64): Likewise.
22412
22413 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22414
22415 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22416 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
22417 (vreinterpret_p8_s8): Likewise.
22418 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
22419 (vreinterpret_p8_s16): Likewise.
22420 (vreinterpret_p8_s32): Likewise.
22421 (vreinterpret_p8_s64): Likewise.
22422 (vreinterpret_p8_f32): Likewise.
22423 (vreinterpret_p8_u8): Likewise.
22424 (vreinterpret_p8_u16): Likewise.
22425 (vreinterpret_p8_u32): Likewise.
22426 (vreinterpret_p8_u64): Likewise.
22427 (vreinterpret_p8_p16): Likewise.
22428 (vreinterpretq_p8_s8): Likewise.
22429 (vreinterpretq_p8_s16): Likewise.
22430 (vreinterpretq_p8_s32): Likewise.
22431 (vreinterpretq_p8_s64): Likewise.
22432 (vreinterpretq_p8_f32): Likewise.
22433 (vreinterpretq_p8_u8): Likewise.
22434 (vreinterpretq_p8_u16): Likewise.
22435 (vreinterpretq_p8_u32): Likewise.
22436 (vreinterpretq_p8_u64): Likewise.
22437 (vreinterpretq_p8_p16): Likewise.
22438 (vreinterpret_p16_s8): Likewise.
22439 (vreinterpret_p16_s16): Likewise.
22440 (vreinterpret_p16_s32): Likewise.
22441 (vreinterpret_p16_s64): Likewise.
22442 (vreinterpret_p16_f32): Likewise.
22443 (vreinterpret_p16_u8): Likewise.
22444 (vreinterpret_p16_u16): Likewise.
22445 (vreinterpret_p16_u32): Likewise.
22446 (vreinterpret_p16_u64): Likewise.
22447 (vreinterpret_p16_p8): Likewise.
22448 (vreinterpretq_p16_s8): Likewise.
22449 (vreinterpretq_p16_s16): Likewise.
22450 (vreinterpretq_p16_s32): Likewise.
22451 (vreinterpretq_p16_s64): Likewise.
22452 (vreinterpretq_p16_f32): Likewise.
22453 (vreinterpretq_p16_u8): Likewise.
22454 (vreinterpretq_p16_u16): Likewise.
22455 (vreinterpretq_p16_u32): Likewise.
22456 (vreinterpretq_p16_u64): Likewise.
22457 (vreinterpretq_p16_p8): Likewise.
22458 (vreinterpret_f32_s8): Likewise.
22459 (vreinterpret_f32_s16): Likewise.
22460 (vreinterpret_f32_s32): Likewise.
22461 (vreinterpret_f32_s64): Likewise.
22462 (vreinterpret_f32_u8): Likewise.
22463 (vreinterpret_f32_u16): Likewise.
22464 (vreinterpret_f32_u32): Likewise.
22465 (vreinterpret_f32_u64): Likewise.
22466 (vreinterpret_f32_p8): Likewise.
22467 (vreinterpret_f32_p16): Likewise.
22468 (vreinterpretq_f32_s8): Likewise.
22469 (vreinterpretq_f32_s16): Likewise.
22470 (vreinterpretq_f32_s32): Likewise.
22471 (vreinterpretq_f32_s64): Likewise.
22472 (vreinterpretq_f32_u8): Likewise.
22473 (vreinterpretq_f32_u16): Likewise.
22474 (vreinterpretq_f32_u32): Likewise.
22475 (vreinterpretq_f32_u64): Likewise.
22476 (vreinterpretq_f32_p8): Likewise.
22477 (vreinterpretq_f32_p16): Likewise.
22478 (vreinterpret_s64_s8): Likewise.
22479 (vreinterpret_s64_s16): Likewise.
22480 (vreinterpret_s64_s32): Likewise.
22481 (vreinterpret_s64_f32): Likewise.
22482 (vreinterpret_s64_u8): Likewise.
22483 (vreinterpret_s64_u16): Likewise.
22484 (vreinterpret_s64_u32): Likewise.
22485 (vreinterpret_s64_u64): Likewise.
22486 (vreinterpret_s64_p8): Likewise.
22487 (vreinterpret_s64_p16): Likewise.
22488 (vreinterpretq_s64_s8): Likewise.
22489 (vreinterpretq_s64_s16): Likewise.
22490 (vreinterpretq_s64_s32): Likewise.
22491 (vreinterpretq_s64_f32): Likewise.
22492 (vreinterpretq_s64_u8): Likewise.
22493 (vreinterpretq_s64_u16): Likewise.
22494 (vreinterpretq_s64_u32): Likewise.
22495 (vreinterpretq_s64_u64): Likewise.
22496 (vreinterpretq_s64_p8): Likewise.
22497 (vreinterpretq_s64_p16): Likewise.
22498 (vreinterpret_u64_s8): Likewise.
22499 (vreinterpret_u64_s16): Likewise.
22500 (vreinterpret_u64_s32): Likewise.
22501 (vreinterpret_u64_s64): Likewise.
22502 (vreinterpret_u64_f32): Likewise.
22503 (vreinterpret_u64_u8): Likewise.
22504 (vreinterpret_u64_u16): Likewise.
22505 (vreinterpret_u64_u32): Likewise.
22506 (vreinterpret_u64_p8): Likewise.
22507 (vreinterpret_u64_p16): Likewise.
22508 (vreinterpretq_u64_s8): Likewise.
22509 (vreinterpretq_u64_s16): Likewise.
22510 (vreinterpretq_u64_s32): Likewise.
22511 (vreinterpretq_u64_s64): Likewise.
22512 (vreinterpretq_u64_f32): Likewise.
22513 (vreinterpretq_u64_u8): Likewise.
22514 (vreinterpretq_u64_u16): Likewise.
22515 (vreinterpretq_u64_u32): Likewise.
22516 (vreinterpretq_u64_p8): Likewise.
22517 (vreinterpretq_u64_p16): Likewise.
22518 (vreinterpret_s8_s16): Likewise.
22519 (vreinterpret_s8_s32): Likewise.
22520 (vreinterpret_s8_s64): Likewise.
22521 (vreinterpret_s8_f32): Likewise.
22522 (vreinterpret_s8_u8): Likewise.
22523 (vreinterpret_s8_u16): Likewise.
22524 (vreinterpret_s8_u32): Likewise.
22525 (vreinterpret_s8_u64): Likewise.
22526 (vreinterpret_s8_p8): Likewise.
22527 (vreinterpret_s8_p16): Likewise.
22528 (vreinterpretq_s8_s16): Likewise.
22529 (vreinterpretq_s8_s32): Likewise.
22530 (vreinterpretq_s8_s64): Likewise.
22531 (vreinterpretq_s8_f32): Likewise.
22532 (vreinterpretq_s8_u8): Likewise.
22533 (vreinterpretq_s8_u16): Likewise.
22534 (vreinterpretq_s8_u32): Likewise.
22535 (vreinterpretq_s8_u64): Likewise.
22536 (vreinterpretq_s8_p8): Likewise.
22537 (vreinterpretq_s8_p16): Likewise.
22538 (vreinterpret_s16_s8): Likewise.
22539 (vreinterpret_s16_s32): Likewise.
22540 (vreinterpret_s16_s64): Likewise.
22541 (vreinterpret_s16_f32): Likewise.
22542 (vreinterpret_s16_u8): Likewise.
22543 (vreinterpret_s16_u16): Likewise.
22544 (vreinterpret_s16_u32): Likewise.
22545 (vreinterpret_s16_u64): Likewise.
22546 (vreinterpret_s16_p8): Likewise.
22547 (vreinterpret_s16_p16): Likewise.
22548 (vreinterpretq_s16_s8): Likewise.
22549 (vreinterpretq_s16_s32): Likewise.
22550 (vreinterpretq_s16_s64): Likewise.
22551 (vreinterpretq_s16_f32): Likewise.
22552 (vreinterpretq_s16_u8): Likewise.
22553 (vreinterpretq_s16_u16): Likewise.
22554 (vreinterpretq_s16_u32): Likewise.
22555 (vreinterpretq_s16_u64): Likewise.
22556 (vreinterpretq_s16_p8): Likewise.
22557 (vreinterpretq_s16_p16): Likewise.
22558 (vreinterpret_s32_s8): Likewise.
22559 (vreinterpret_s32_s16): Likewise.
22560 (vreinterpret_s32_s64): Likewise.
22561 (vreinterpret_s32_f32): Likewise.
22562 (vreinterpret_s32_u8): Likewise.
22563 (vreinterpret_s32_u16): Likewise.
22564 (vreinterpret_s32_u32): Likewise.
22565 (vreinterpret_s32_u64): Likewise.
22566 (vreinterpret_s32_p8): Likewise.
22567 (vreinterpret_s32_p16): Likewise.
22568 (vreinterpretq_s32_s8): Likewise.
22569 (vreinterpretq_s32_s16): Likewise.
22570 (vreinterpretq_s32_s64): Likewise.
22571 (vreinterpretq_s32_f32): Likewise.
22572 (vreinterpretq_s32_u8): Likewise.
22573 (vreinterpretq_s32_u16): Likewise.
22574 (vreinterpretq_s32_u32): Likewise.
22575 (vreinterpretq_s32_u64): Likewise.
22576 (vreinterpretq_s32_p8): Likewise.
22577 (vreinterpretq_s32_p16): Likewise.
22578 (vreinterpret_u8_s8): Likewise.
22579 (vreinterpret_u8_s16): Likewise.
22580 (vreinterpret_u8_s32): Likewise.
22581 (vreinterpret_u8_s64): Likewise.
22582 (vreinterpret_u8_f32): Likewise.
22583 (vreinterpret_u8_u16): Likewise.
22584 (vreinterpret_u8_u32): Likewise.
22585 (vreinterpret_u8_u64): Likewise.
22586 (vreinterpret_u8_p8): Likewise.
22587 (vreinterpret_u8_p16): Likewise.
22588 (vreinterpretq_u8_s8): Likewise.
22589 (vreinterpretq_u8_s16): Likewise.
22590 (vreinterpretq_u8_s32): Likewise.
22591 (vreinterpretq_u8_s64): Likewise.
22592 (vreinterpretq_u8_f32): Likewise.
22593 (vreinterpretq_u8_u16): Likewise.
22594 (vreinterpretq_u8_u32): Likewise.
22595 (vreinterpretq_u8_u64): Likewise.
22596 (vreinterpretq_u8_p8): Likewise.
22597 (vreinterpretq_u8_p16): Likewise.
22598 (vreinterpret_u16_s8): Likewise.
22599 (vreinterpret_u16_s16): Likewise.
22600 (vreinterpret_u16_s32): Likewise.
22601 (vreinterpret_u16_s64): Likewise.
22602 (vreinterpret_u16_f32): Likewise.
22603 (vreinterpret_u16_u8): Likewise.
22604 (vreinterpret_u16_u32): Likewise.
22605 (vreinterpret_u16_u64): Likewise.
22606 (vreinterpret_u16_p8): Likewise.
22607 (vreinterpret_u16_p16): Likewise.
22608 (vreinterpretq_u16_s8): Likewise.
22609 (vreinterpretq_u16_s16): Likewise.
22610 (vreinterpretq_u16_s32): Likewise.
22611 (vreinterpretq_u16_s64): Likewise.
22612 (vreinterpretq_u16_f32): Likewise.
22613 (vreinterpretq_u16_u8): Likewise.
22614 (vreinterpretq_u16_u32): Likewise.
22615 (vreinterpretq_u16_u64): Likewise.
22616 (vreinterpretq_u16_p8): Likewise.
22617 (vreinterpretq_u16_p16): Likewise.
22618 (vreinterpret_u32_s8): Likewise.
22619 (vreinterpret_u32_s16): Likewise.
22620 (vreinterpret_u32_s32): Likewise.
22621 (vreinterpret_u32_s64): Likewise.
22622 (vreinterpret_u32_f32): Likewise.
22623 (vreinterpret_u32_u8): Likewise.
22624 (vreinterpret_u32_u16): Likewise.
22625 (vreinterpret_u32_u64): Likewise.
22626 (vreinterpret_u32_p8): Likewise.
22627 (vreinterpret_u32_p16): Likewise.
22628 (vreinterpretq_u32_s8): Likewise.
22629 (vreinterpretq_u32_s16): Likewise.
22630 (vreinterpretq_u32_s32): Likewise.
22631 (vreinterpretq_u32_s64): Likewise.
22632 (vreinterpretq_u32_f32): Likewise.
22633 (vreinterpretq_u32_u8): Likewise.
22634 (vreinterpretq_u32_u16): Likewise.
22635 (vreinterpretq_u32_u64): Likewise.
22636 (vreinterpretq_u32_p8): Likewise.
22637 (vreinterpretq_u32_p16): Likewise.
22638
22639 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22640
22641 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
22642 Pattern extended.
22643 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
22644 (sqabs): Likewise.
22645 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22646 (vqnegd_s64): Likewise.
22647 (vqabs_s64): Likewise.
22648 (vqabsd_s64): Likewise.
22649
22650 2014-04-22 Richard Henderson <rth@redhat.com>
22651
22652 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22653 computation to the top of the loop.
22654
22655 2014-04-22 Renlin <renlin.li@arm.com>
22656 Jiong Wang <jiong.wang@arm.com>
22657
22658 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22659 * config/aarch64/aarch64.c (aarch64_layout_frame)
22660 (aarch64_initial_elimination_offset): Likewise.
22661
22662 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
22663
22664 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22665 Fix indentation.
22666
22667 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
22668
22669 * machmode.h (bitwise_mode_for_mode): Declare.
22670 * stor-layout.h (bitwise_type_for_mode): Likewise.
22671 * stor-layout.c (bitwise_mode_for_mode): New function.
22672 (bitwise_type_for_mode): Likewise.
22673 * builtins.c (fold_builtin_memory_op): Use it instead of
22674 int_mode_for_mode and build_nonstandard_integer_type.
22675
22676 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22677
22678 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22679 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22680 (*-*-solaris2*): Simplify.
22681 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22682 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22683 *-*-solaris2.9* handling.
22684
22685 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22686 as bug.
22687 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22688 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22689 handling, simplify.
22690 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22691 * configure: Regenerate.
22692
22693 * config/i386/sol2-9.h: Remove.
22694
22695 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22696 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22697 Remove Solaris 9 references.
22698
22699 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
22700
22701 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22702 (floatuns<GPI:mode><GPF:mode>2): Remove.
22703 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22704 and floatuns conversions.
22705 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22706 and floatuns conversions.
22707 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22708 (w1,w2): New mode attributes for inequal width conversions.
22709
22710 2014-04-22 Renlin Li <Renlin.Li@arm.com>
22711
22712 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22713 the output asm format.
22714
22715 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
22716
22717 * config/aarch64/aarch64-simd.md
22718 (aarch64_cm<optab>di): Always split.
22719 (*aarch64_cm<optab>di): New.
22720 (aarch64_cmtstdi): Always split.
22721 (*aarch64_cmtstdi): New.
22722
22723 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22724
22725 PR tree-optimization/60823
22726 * omp-low.c (ipa_simd_modify_function_body): Go through
22727 all SSA_NAMEs and for those refering to vector arguments
22728 which are going to be replaced adjust SSA_NAME_VAR and,
22729 if it is a default definition, change it into a non-default
22730 definition assigned at the beginning of function from new_decl.
22731 (ipa_simd_modify_stmt_ops): Rewritten.
22732 * tree-dfa.c (set_ssa_default_def): When removing default def,
22733 check for NULL loc instead of NULL *loc.
22734
22735 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22736
22737 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22738 restrictions on core registers for DImode values in Thumb2.
22739
22740 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22741
22742 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22743 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22744
22745 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22746
22747 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22748 (*iordi_notzesidi_di): Likewise.
22749 (*iordi_notsesidi_di): Likewise.
22750
22751 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22752
22753 * config/arm/arm-protos.h (tune_params): New struct members.
22754 * config/arm/arm.c: Initialise tune_params per processor.
22755 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22756 for speed, based on new tune_params.
22757
22758 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22759
22760 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22761 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22762 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22763 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22764 * config/aarch64/arm_neon.h (vrnd_f64): Added.
22765 (vrnda_f64): Likewise.
22766 (vrndi_f64): Likewise.
22767 (vrndm_f64): Likewise.
22768 (vrndn_f64): Likewise.
22769 (vrndp_f64): Likewise.
22770 (vrndx_f64): Likewise.
22771
22772 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22773
22774 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22775 GET_MODE_SIZE argument is enum machine_mode.
22776
22777 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22778
22779 PR target/60910
22780 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22781 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22782
22783 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
22784
22785 PR middle-end/60281
22786 * asan.c (asan_emit_stack_protection): Force the base to align to
22787 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
22788 appropriate bits if STRICT_ALIGNMENT.
22789 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22790 when asan is on.
22791 (expand_used_vars): Leave a space in the stack frame for alignment
22792 if STRICT_ALIGNMENT.
22793
22794 2014-04-21 David Malcolm <dmalcolm@redhat.com>
22795
22796 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22797 than a gimple.
22798 (gimple_store_p): Likewise.
22799 (gimple_assign_load_p): Likewise.
22800 (gimple_assign_cast_p): Likewise.
22801 (gimple_clobber_p): Likewise.
22802
22803 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22804 rather than a gimple.
22805 (gimple_assign_cast_p): Likewise.
22806
22807 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22808
22809 PR target/60735
22810 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22811 If mode is DDmode and TARGET_E500_DOUBLE allow move.
22812
22813 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22814 more debug information for E500 if -mdebug=reg.
22815
22816 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
22817
22818 PR target/60909
22819 * config/i386/i386.c (ix86_expand_builtin)
22820 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22821 register for target RTX.
22822 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22823
22824 2014-04-18 Cong Hou <congh@google.com>
22825
22826 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22827 the widen-mult pattern by handling two operands with different sizes,
22828 and operands whose size is smaller than half of the result type.
22829
22830 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22831
22832 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22833 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22834 (do_estimate_edge_time): Compute it.
22835 * ipa-inline.c (want_inline_small_function_p): Bypass
22836 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22837
22838 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22839
22840 * ipa-inline.c (spec_rem): New static variable.
22841 (dump_overall_stats): New function.
22842 (dump_inline_stats): New function.
22843
22844 2014-04-18 Richard Henderson <rth@redhat.com>
22845
22846 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22847 to GET_MODE_SIZE, not a reg_class_t.
22848
22849 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22850
22851 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22852 (vsx_xxmrglw_<mode>): Likewise.
22853
22854 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
22855
22856 PR target/60876
22857 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22858 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22859 (rs6000_init_hard_regno_mode_ok): Likewise.
22860
22861 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
22862
22863 * ipa-inline.c (inline_small_functions): Account only non-cold
22864 functions.
22865 * doc/invoke.texi (inline-unit-growth): Update documentation.
22866
22867 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
22868
22869 * config/rs6000/rs6000.md (addti3, subti3): New.
22870
22871 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
22872
22873 PR target/60863
22874 * config/i386/i386.c (ix86_expand_clear): Remove outdated
22875 comment. Check optimize_insn_for_size_p instead of
22876 optimize_insn_for_speed_p.
22877
22878 2014-04-17 Martin Jambor <mjambor@suse.cz>
22879
22880 * gimple-iterator.c (gsi_start_edge): New function.
22881 * gimple-iterator.h (gsi_start_edge): Declare.
22882 * tree-sra.c (single_non_eh_succ): New function.
22883 (disqualify_ops_if_throwing_stmt): Renamed to
22884 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
22885 having one non-EH successor BB.
22886 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22887 generate loads into replacements.
22888 (sra_modify_assign): Likewise and and also use the simple path for
22889 such statements.
22890 (sra_modify_function_body): Commit statements on edges.
22891
22892 2014-04-17 Richard Biener <rguenther@suse.de>
22893
22894 PR middle-end/60849
22895 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22896 comparison results and add clarifying comment.
22897
22898 2014-04-17 Jakub Jelinek <jakub@redhat.com>
22899
22900 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22901 (blank_mode): Initialize it.
22902 (emit_mode_size_inline, emit_mode_nunits_inline,
22903 emit_mode_inner_inline): New functions.
22904 (emit_insn_modes_h): Call them and surround their output with
22905 #if GCC_VERSION >= 4001 ... #endif.
22906 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22907 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22908 mode_* arrays if the argument is __builtin_constant_p.
22909 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22910 is enum machine_mode.
22911
22912 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22913
22914 * passes.c (opt_pass::execute): Adjust.
22915 (pass_manager::execute_pass_mode_switching): Likewise.
22916 (early_local_passes::execute): Likewise.
22917 (execute_one_pass): Pass cfun to the pass's execute method.
22918 * tree-pass.h (opt_pass::execute): Add function * argument.
22919 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22920 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22921 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22922 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22923 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22924 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22925 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22926 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22927 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22928 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22929 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22930 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22931 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22932 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22933 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22934 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22935 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22936 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22937 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22938 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22939 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22940 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22941 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22942 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22943 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22944 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22945 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22946 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22947 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22948 Adjust.
22949
22950 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22951
22952 * passes.c (opt_pass::gate): Take function * argument.
22953 (gate_all_early_local_passes): Merge into
22954 (early_local_passes::gate): this.
22955 (gate_all_early_optimizations): Merge into
22956 (all_early_optimizations::gate): this.
22957 (gate_all_optimizations): Mege into
22958 (all_optimizations::gate): this.
22959 (gate_all_optimizations_g): Merge into
22960 (all_optimizations_g::gate): this.
22961 (gate_rest_of_compilation): Mege into
22962 (rest_of_compilation::gate): this.
22963 (gate_postreload): Merge into
22964 (postreload::gate): this.
22965 (dump_one_pass): Pass cfun to the pass's gate method.
22966 (execute_ipa_summary_passes): Likewise.
22967 (execute_one_pass): Likewise.
22968 (ipa_write_summaries_2): Likewise.
22969 (ipa_write_optimization_summaries_1): Likewise.
22970 (ipa_read_summaries_1): Likewise.
22971 (ipa_read_optimization_summaries_1): Likewise.
22972 (execute_ipa_stmt_fixups): Likewise.
22973 * tree-pass.h (opt_pass::gate): Add function * argument.
22974 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22975 combine-stack-adj.c, combine.c, compare-elim.c,
22976 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22977 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22978 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22979 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
22980 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22981 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22982 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22983 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22984 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22985 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22986 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22987 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22988 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22989 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22990 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22991 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22992 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22993 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22994 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22995 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22996 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22997 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22998 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22999 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
23000 var-tracking.c, vtable-verify.c, web.c: Adjust.
23001
23002 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23003
23004 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
23005 * configure: Regenerate.
23006
23007 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23008
23009 * passes.c (dump_one_pass): don't check pass->has_gate.
23010 (execute_ipa_summary_passes): Likewise.
23011 (execute_one_pass): Likewise.
23012 (ipa_write_summaries_2): Likewise.
23013 (ipa_write_optimization_summaries_1): Likewise.
23014 (ipa_read_optimization_summaries_1): Likewise.
23015 (execute_ipa_stmt_fixups): Likewise.
23016 * tree-pass.h (pass_data::has_gate): Remove.
23017 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
23018 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
23019 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
23020 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
23021 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
23022 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
23023 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
23024 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
23025 gimple-low.c, gimple-ssa-isolate-paths.c,
23026 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
23027 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
23028 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
23029 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
23030 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
23031 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
23032 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
23033 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
23034 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
23035 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
23036 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
23037 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
23038 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
23039 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
23040 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
23041 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
23042 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23043 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23044 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23045 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23046 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23047 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23048 Adjust.
23049
23050 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23051
23052 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23053 declaration.
23054 * passes.c (pass_manager::register_dump_files_1): Merge into
23055 (pass_manager::register_dump_files): this, and remove its handling of
23056 properties since the pass always has the properties anyway.
23057 (pass_manager::pass_manager): Adjust.
23058
23059 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23060
23061 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23062 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23063 dealing with properties.
23064 (pass_manager::register_dump_files): Adjust.
23065
23066 2014-03-20 Mark Wielaard <mjw@redhat.com>
23067
23068 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23069 then represent the bound as normal constant value.
23070
23071 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23072
23073 PR target/60847
23074 Forward port from 4.8 branch
23075 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23076
23077 * config/i386/bmiintrin.h (_blsi_u32): New.
23078 (_blsi_u64): Ditto.
23079 (_blsr_u32): Ditto.
23080 (_blsr_u64): Ditto.
23081 (_blsmsk_u32): Ditto.
23082 (_blsmsk_u64): Ditto.
23083 (_tzcnt_u32): Ditto.
23084 (_tzcnt_u64): Ditto.
23085
23086 2014-04-17 Kito Cheng <kito@0xlab.org>
23087
23088 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23089
23090 2014-04-17 Richard Biener <rguenther@suse.de>
23091
23092 PR middle-end/60849
23093 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23094 boolean results for comparisons.
23095
23096 2014-04-17 Richard Biener <rguenther@suse.de>
23097
23098 PR tree-optimization/60836
23099 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23100 initial PHI args to be gimple values.
23101
23102 2014-04-17 Richard Biener <rguenther@suse.de>
23103
23104 PR tree-optimization/60841
23105 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23106 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23107 of stmts to SLP build.
23108 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23109 (vect_analyze_slp): Likewise.
23110 (vect_analyze_slp_instance): Likewise.
23111 (vect_build_slp_tree): Limit overall SLP tree growth.
23112 * tree-vectorizer.h (vect_analyze_data_refs,
23113 vect_analyze_slp): Adjust prototypes.
23114
23115 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23116
23117 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23118 Silvermont.
23119
23120 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23121
23122 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23123 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23124 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23125 for TARGET_SLOW_PSHUFB
23126
23127 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23128
23129 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23130 * config/i386/i386.c (intel_cost): Ditto.
23131
23132 2014-04-17 Joey Ye <joey.ye@arm.com>
23133
23134 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23135
23136 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23137
23138 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23139 with -fuse-profile.
23140
23141 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23142
23143 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23144 (type_all_derivations_known_p): New predicate.
23145 (type_all_ctors_visible_p): New predicate.
23146 (type_possibly_instantiated_p): New predicate.
23147 (get_odr_type): Compute all_derivations_known.
23148 (dump_odr_type): Dump the flag.
23149 (maybe_record_type): Cleanup.
23150 (record_target_from_binfo): Add bases_to_consider array;
23151 record bases for types w/o instances and skip CXX destructor.
23152 (possible_polymorphic_call_targets_1): Add bases_to_consider
23153 and consider_construction parameters; check if type may have instance.
23154 (get_polymorphic_call_info): Set maybe_in_construction to true
23155 when we know nothing.
23156 (record_targets_from_bases): Skip CXX destructors; they are
23157 never called for types in construction.
23158 (possible_polymorphic_call_targets): Do not record target when
23159 type may not have instance.
23160
23161 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23162
23163 PR ipa/60854
23164 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23165 external aliases alive, too.
23166
23167 2014-04-16 Andrew Pinski <apinski@cavium.com>
23168
23169 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23170 definition.
23171
23172 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23173
23174 * final.c (compute_alignments): Do not apply loop alignment to a block
23175 falling through to the exit.
23176
23177 2014-04-16 Catherine Moore <clm@codesourcery.com>
23178
23179 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23180 Adjust constraints for microMIPS store patterns.
23181
23182 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23183
23184 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23185
23186 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23187
23188 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23189 (append_use): Run at -O0.
23190 (append_vdef): Likewise.
23191 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23192 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23193
23194 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23195
23196 PR tree-optimization/60844
23197 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23198 (propagate_op_to_single_use, remove_visited_stmt_chain,
23199 linearize_expr, repropagate_negates, reassociate_bb): Use it
23200 instead of gsi_remove.
23201
23202 2014-04-16 Martin Jambor <mjambor@suse.cz>
23203
23204 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23205 ipa_transforms_to_apply.
23206 (cgraph_function_versioning): Assert that old_node has empty
23207 ipa_transforms_to_apply.
23208 * trans-mem.c (ipa_tm_create_version): Likewise.
23209 * tree-inline.c (tree_function_versioning): Do not duplicate
23210 ipa_transforms_to_apply.
23211
23212 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23213
23214 PR target/60817
23215 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23216 x86_64-*-* cases.
23217 Pass necessary as flags on 64-bit Solaris/x86.
23218 Use lowercase relocs for x86_64-*-*.
23219 * configure: Regenerate.
23220
23221 2014-04-15 Jan Hubicka <jh@suse.cz>
23222
23223 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23224 (maybe_record_node, likely_target_p): Use it.
23225
23226 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23227
23228 PR target/60839
23229 Revert following patch
23230
23231 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23232
23233 PR target/60735
23234 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23235 software floating point or no floating point registers, do not
23236 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23237 in GPRs that occurs after we tested for GPRs that would never be
23238 true.
23239
23240 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23241 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23242 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23243 specifically allow DDmode, since that does not use the SPE SIMD
23244 instructions.
23245
23246 2014-03-21 Mark Wielaard <mjw@redhat.com>
23247
23248 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23249 as unsigned or int depending on type and value used.
23250
23251 2014-04-15 Richard Biener <rguenther@suse.de>
23252
23253 PR rtl-optimization/56965
23254 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23255 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23256 ... here.
23257 * alias.c (true_dependence_1): Do not call
23258 nonoverlapping_component_refs_p.
23259 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23260 nonoverlapping_component_refs_p.
23261 (indirect_refs_may_alias_p): Likewise.
23262
23263 2014-04-15 Teresa Johnson <tejohnson@google.com>
23264
23265 * cfg.c (dump_bb_info): Fix flags check.
23266 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23267
23268 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23269
23270 PR rtl-optimization/60663
23271 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23272 avoid 0 cost.
23273
23274 2014-04-15 Richard Biener <rguenther@suse.de>
23275
23276 * lto-streamer.h (LTO_major_version): Bump to 4.
23277
23278 2014-04-15 Richard Biener <rguenther@suse.de>
23279
23280 * common.opt (lto_partition_model): New enum.
23281 (flto-partition=): Merge separate options with a single with argument,
23282 add -flto-partition=one support.
23283 * flag-types.h (enum lto_partition_model): Declare.
23284 * opts.c (finish_options): Remove duplicate -flto-partition=
23285 option check.
23286 * lto-wrapper.c (run_gcc): Adjust.
23287
23288 2014-04-15 Richard Biener <rguenther@suse.de>
23289
23290 * alias.c (ncr_compar): New function.
23291 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23292
23293 2014-04-15 Richard Biener <rguenther@suse.de>
23294
23295 * alias.c (record_component_aliases): Do not walk BINFOs.
23296
23297 2014-04-15 Richard Biener <rguenther@suse.de>
23298
23299 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23300 Add struct function argument and adjust.
23301 (find_func_aliases_for_call): Likewise.
23302 (find_func_aliases): Likewise.
23303 (find_func_clobbers): Likewise.
23304 (intra_create_variable_infos): Likewise.
23305 (compute_points_to_sets): Likewise.
23306 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23307
23308 2014-04-15 Richard Biener <rguenther@suse.de>
23309
23310 * tree.c (iterative_hash_expr): Use enum tree_code_class
23311 to store TREE_CODE_CLASS.
23312 (tree_block): Likewise.
23313 (tree_set_block): Likewise.
23314 * tree.h (fold_build_pointer_plus_loc): Use
23315 convert_to_ptrofftype_loc.
23316
23317 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23318
23319 PR plugins/59335
23320 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23321 added in 4.9.
23322
23323 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23324
23325 * cfgloop.h (struct loop): Move force_vectorize down.
23326 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23327 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23328 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23329 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23330 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23331 * tree-core.h (enum annot_expr_kind): Add new kind values.
23332 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23333 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23334 kinds.
23335 * tree.def (ANNOTATE_EXPR): Tweak comment.
23336
23337 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23338
23339 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23340 cxa_pure_virtual).
23341
23342 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23343
23344 * tree.h (TYPE_IDENTIFIER): Declare.
23345 * tree.c (subrange_type_for_debug_p): Use it.
23346 * godump.c (go_format_type): Likewise.
23347 * dwarf2out.c (is_cxx_auto, modified_type_die,
23348 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23349 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23350
23351 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23352
23353 PR lto/60820
23354 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23355
23356 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23357
23358 * config/i386/i386.c (examine_argument): Return bool. Return true if
23359 parameter should be passed in memory.
23360 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23361 (construct_container): Update calls to examine_argument.
23362 (function_arg_advance_64): Ditto.
23363 (return_in_memory_32): Merge with ix86_return_in_memory.
23364 (return_in_memory_64): Ditto.
23365 (return_in_memory_ms_64): Ditto.
23366
23367 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23368
23369 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
23370 * coverage.c (coverage_compute_profile_id): Handle externally visible
23371 symbols.
23372
23373 2014-04-14 Martin Jambor <mjambor@suse.cz>
23374
23375 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
23376 DECL_DISREGARD_INLINE_LIMITS functions.
23377
23378 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23379
23380 PR target/60827
23381 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
23382
23383 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23384
23385 PR target/60827
23386 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
23387 optimize_insn_for_speed_p instead of
23388 optimize_function_for_speed_p.
23389
23390 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
23391
23392 * doc/invoke.texi (free): Document AArch64.
23393
23394 2014-04-14 Richard Biener <rguenther@suse.de>
23395
23396 PR tree-optimization/60042
23397 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
23398 (insert_into_preds_of_block): Do not prevent PHI insertion
23399 for REFERENCE exprs here ...
23400 (eliminate_dom_walker::before_dom_children): ... but prevent
23401 their use here under similar conditions when applied to the
23402 IL after PRE optimizations.
23403
23404 2014-04-14 Richard Biener <rguenther@suse.de>
23405
23406 * passes.def: Move early points-to after early SRA.
23407
23408 2014-04-14 Richard Biener <rguenther@suse.de>
23409
23410 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
23411 check for which sign-changes we allow when forwarding
23412 a converted value into a switch.
23413
23414 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23415
23416 * stor-layout.c (place_field): Finalize non-constant offset for the
23417 field, if any.
23418
23419 2014-04-14 Richard Biener <rguenther@suse.de>
23420
23421 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
23422 as argument.
23423 (expand_switch_using_bit_tests_p): Likewise.
23424 (process_switch): Compute and pass on speed_p based on the
23425 switch stmt.
23426 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
23427 optimize_bb_for_speed_p.
23428
23429 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23430
23431 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
23432 * function.h (struct function): Rename has_force_vect_loops into
23433 has_force_vectorize_loops.
23434 * lto-streamer-in.c (input_cfg): Adjust for renaming.
23435 (input_struct_function_base): Likewise.
23436 * lto-streamer-out.c (output_cfg): Likewise.
23437 (output_struct_function_base): Likewise.
23438 * omp-low.c (expand_omp_simd): Likewise.
23439 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23440 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
23441 (version_loop_for_if_conversion): Likewise.
23442 (tree_if_conversion): Likewise.
23443 (main_tree_if_conversion): Likewise.
23444 (gate_tree_if_conversion): Likewise.
23445 * tree-inline.c (copy_loops): Likewise.
23446 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
23447 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
23448 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23449 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
23450 * tree-vectorizer.c (vectorize_loops): Likewise.
23451 * tree-vectorizer.h (unlimited_cost_model): Likewise.
23452
23453 2014-04-14 Richard Biener <rguenther@suse.de>
23454
23455 PR lto/60720
23456 * lto-streamer-out.c (wrap_refs): New function.
23457 (lto_output): Wrap symbol references in global initializes in
23458 type-preserving MEM_REFs.
23459
23460 2014-04-14 Christian Bruel <christian.bruel@st.com>
23461
23462 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
23463
23464 2014-04-14 Christian Bruel <christian.bruel@st.com>
23465
23466 * config/sh/sh.md (setmemqi): New expand pattern.
23467 * config/sh/sh.h (CLEAR_RATIO): Define.
23468 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
23469 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
23470
23471 2014-04-14 Richard Biener <rguenther@suse.de>
23472
23473 PR middle-end/55022
23474 * fold-const.c (negate_expr_p): Don't negate directional rounding
23475 division.
23476 (fold_negate_expr): Likewise.
23477
23478 2014-04-14 Richard Biener <rguenther@suse.de>
23479
23480 PR tree-optimization/59817
23481 PR tree-optimization/60453
23482 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
23483 recursion to catch all CHRECs in the scalar evolution and restrict
23484 the predicate for the remains appropriately.
23485
23486 2014-04-12 Catherine Moore <clm@codesourcery.com>
23487
23488 * config/mips/constraints.md: Add new register constraint "kb".
23489 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
23490 (*movhi_internal): Likewise.
23491 (*movqi_internal): Likewise.
23492 * config/mips/mips.h (M16_STORE_REGS): New register class.
23493 (REG_CLASS_NAMES): Add M16_STORE_REGS.
23494 (REG_CLASS_CONTENTS): Likewise.
23495 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
23496
23497 2014-04-11 Tobias Burnus <burnus@net-b.de>
23498
23499 PR c/60194
23500 * doc/invoke.texi (-Wformat-signedness): Document it.
23501 (Wformat=2): Mention that this enables -Wformat-signedness.
23502
23503 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23504
23505 * common/config/epiphany/epiphany-common.c
23506 (epiphany_option_optimization_table): Enable section anchors by
23507 default at -O1 or higher.
23508 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
23509 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
23510 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
23511 carries no extra cost.
23512 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
23513 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
23514 * config/epiphany/predicates.md (memclob_operand): New predicate.
23515 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
23516 Use memclob_operand predicate and X constraint for operand 3.
23517
23518 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23519
23520 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
23521 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
23522 its operands.
23523
23524 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23525
23526 PR rtl-optimization/60651
23527 * mode-switching.c (optimize_mode_switching): Make sure to emit
23528 sets of a lower numbered entity before sets of a higher numbered
23529 entity to a mode of the same or lower priority.
23530 When creating a seginfo for a basic block that starts with a code
23531 label, move the insertion point past the code label.
23532 (new_seginfo): Document and enforce requirement that
23533 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
23534 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
23535 * doc/tm.texi: Regenerate.
23536
23537 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
23538
23539 PR target/60811
23540 * config/arc/arc.c (arc_save_restore): Fix assert typo.
23541
23542 2013-04-11 Jakub Jelinek <jakub@redhat.com>
23543
23544 * BASE-VER: Set to 4.10.0.
23545
23546 2014-04-11 Tobias Burnus <burnus@net-b.de>
23547
23548 PR other/59055
23549 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
23550 * doc/gcc.texi (Service): Update description in the @menu
23551 * doc/invoke.texi (Option Summary): Remove misplaced and
23552 duplicated @menu.
23553
23554 2014-04-11 Steve Ellcey <sellcey@mips.com>
23555 Jakub Jelinek <jakub@redhat.com>
23556
23557 PR middle-end/60556
23558 * expr.c (convert_move): Use emit_store_flag_force instead of
23559 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
23560 argument to it.
23561
23562 2014-04-11 Richard Biener <rguenther@suse.de>
23563
23564 PR middle-end/60797
23565 * varasm.c (assemble_alias): Avoid endless error reporting
23566 recursion by setting TREE_ASM_WRITTEN.
23567
23568 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23569
23570 * config/s390/s390.md: Add a splitter for NOT rtx.
23571
23572 2014-04-11 Jakub Jelinek <jakub@redhat.com>
23573
23574 PR rtl-optimization/60663
23575 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
23576
23577 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
23578 Jakub Jelinek <jakub@redhat.com>
23579
23580 PR lto/60567
23581 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
23582 flag from decl_node to node.
23583
23584 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23585
23586 PR debug/60655
23587 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
23588 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
23589 ameliorating the cases where it can be.
23590
23591 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
23592
23593 Revert
23594 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23595
23596 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23597 (loadsync_<mode>): Change mode.
23598 (load_quadpti, store_quadpti): New.
23599 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23600 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23601 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
23602
23603 2014-04-09 Cong Hou <congh@google.com>
23604
23605 PR testsuite/60773
23606 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
23607 documentation.
23608
23609 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23610
23611 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
23612 instead of vnor to exploit possible fusion opportunity in the
23613 future.
23614 (altivec_expand_vec_perm_const_le): Likewise.
23615
23616 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23617
23618 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23619 (loadsync_<mode>): Change mode.
23620 (load_quadpti, store_quadpti): New.
23621 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23622 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23623
23624 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
23625
23626 PR target/60763
23627 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
23628 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
23629 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
23630
23631 2014-04-08 Richard Biener <rguenther@suse.de>
23632
23633 PR middle-end/60706
23634 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
23635 a 64bit widest int print double-int similar to on HWI64 hosts.
23636
23637 2014-04-08 Richard Biener <rguenther@suse.de>
23638
23639 PR tree-optimization/60785
23640 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
23641 default defs properly.
23642
23643 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
23644
23645 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23646 (Weffc++): Likewise.
23647
23648 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
23649
23650 * ipa-devirt.c (maybe_record_node): When node is not recorded,
23651 set completep to false rather than true.
23652
23653 2014-04-07 Douglas B Rupp <rupp@adacore.com>
23654
23655 PR target/60504
23656 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23657 ARM_TARGET2_DWARF_FORMAT.
23658
23659 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
23660
23661 PR target/60609
23662 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23663 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23664 ADDR_DIFF_VEC.
23665
23666 2014-04-07 Richard Biener <rguenther@suse.de>
23667
23668 PR tree-optimization/60766
23669 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23670 (may_eliminate_iv): Convert cand_value_at result to desired type.
23671
23672 2014-04-07 Jason Merrill <jason@redhat.com>
23673
23674 PR c++/60731
23675 * common.opt (-fno-gnu-unique): Add.
23676 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23677
23678 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23679
23680 * haifa-sched.c: Fix outdated function reference and minor
23681 grammar errors in introductory comment.
23682
23683 2014-04-07 Richard Biener <rguenther@suse.de>
23684
23685 PR middle-end/60750
23686 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23687 for noreturn calls.
23688 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23689
23690 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
23691
23692 PR debug/55794
23693 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23694 size accounting for thunks.
23695 (pa_asm_output_mi_thunk): Use final_start_function() and
23696 final_end_function() to output function start and end directives.
23697
23698 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23699
23700 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23701 device specific ISA/ feature information. Remove short_sp and
23702 errata_skip ds. Add avr_device_specific_features enum to have device
23703 specific info.
23704 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23705 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23706 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23707 updated device specific info.
23708 * config/avr/avr-mcus.def: Merge device specific details to
23709 dev_attribute field.
23710 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23711 errata_skip.
23712 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23713 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23714 assembler if RMW isa supported by current device.
23715 * config/avr/genmultilib.awk: Update as device info structure changed.
23716 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23717
23718 2014-04-04 Cong Hou <congh@google.com>
23719
23720 PR tree-optimization/60656
23721 * tree-vect-stmts.c (supportable_widening_operation):
23722 Fix a bug that elements in a vector with vect_used_by_reduction
23723 property are incorrectly reordered when the operation on it is not
23724 consistant with the one in reduction operation.
23725
23726 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
23727
23728 PR rtl-optimization/60155
23729 * gcse.c (record_set_data): New function.
23730 (single_set_gcse): New function.
23731 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23732 (hoist_code): Likewise.
23733 (get_pressure_class_and_nregs): Likewise.
23734
23735 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
23736
23737 * explow.c (probe_stack_range): Emit a final optimization blockage.
23738
23739 2014-04-04 Anthony Green <green@moxielogic.com>
23740
23741 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23742 typos.
23743
23744 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
23745
23746 PR ipa/59626
23747 * lto-cgraph.c (input_overwrite_node): Check that partitioning
23748 flags are set only during streaming.
23749 * ipa.c (process_references, walk_polymorphic_call_targets,
23750 symtab_remove_unreachable_nodes): Drop bodies of always inline
23751 after early inlining.
23752 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23753
23754 2014-04-04 Jakub Jelinek <jakub@redhat.com>
23755 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23756
23757 PR debug/60655
23758 * dwarf2out.c (const_ok_for_output_1): Reject expressions
23759 containing a NOT.
23760
23761 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23762
23763 PR bootstrap/60743
23764 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23765 duration.
23766 (cortex_a53_fdivd): Likewise.
23767
23768 2014-04-04 Martin Jambor <mjambor@suse.cz>
23769
23770 PR ipa/60640
23771 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23772 Adjust all callers.
23773 * cgraph.c (clone_of_p): Also return true if thunks match.
23774 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23775 cgraph_function_or_thunk_node and an obsolete comment.
23776 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23777 file.
23778 (build_function_decl_skip_args): Likewise.
23779 (set_new_clone_decl_and_node_flags): New function.
23780 (duplicate_thunk_for_node): Likewise.
23781 (redirect_edge_duplicating_thunks): Likewise.
23782 (cgraph_clone_node): New parameter args_to_skip, pass it to
23783 redirect_edge_duplicating_thunks which is called instead of
23784 cgraph_redirect_edge_callee.
23785 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23786 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23787
23788 2014-04-04 Jeff Law <law@redhat.com>
23789
23790 PR target/60657
23791 * config/arm/predicates.md (const_int_I_operand): New predicate.
23792 (const_int_M_operand): Similarly.
23793 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23794 const_int_operand.
23795 (insv_t2, extv_reg, extzv_t2): Likewise.
23796 (load_multiple_with_writeback): Similarly for const_int_I_operand.
23797 (pop_multiple_with_writeback_and_return): Likewise.
23798 (vfp_pop_multiple_with_writeback): Likewise
23799
23800 2014-04-04 Richard Biener <rguenther@suse.de>
23801
23802 PR ipa/60746
23803 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23804 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23805 non-GIMPLE_LABELs.
23806 * gimplify.h (gimple_add_tmp_var_fn): Declare.
23807 * gimplify.c (gimple_add_tmp_var_fn): New function.
23808 * gimple-expr.h (create_tmp_reg_fn): Declare.
23809 * gimple-expr.c (create_tmp_reg_fn): New function.
23810 * gimple-low.c (record_vars_into): Don't change cfun.
23811 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23812 code generation without cfun.
23813
23814 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
23815
23816 PR bootstrap/60719
23817 * Makefile.in (install-driver): Fix shell scripting.
23818
23819 2014-04-03 Cong Hou <congh@google.com>
23820
23821 PR tree-optimization/60505
23822 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23823 threshold of number of iterations below which no vectorization
23824 will be done.
23825 * tree-vect-loop.c (new_loop_vec_info):
23826 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23827 * tree-vect-loop.c (vect_analyze_loop_operations):
23828 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23829 * tree-vect-loop.c (vect_transform_loop):
23830 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23831 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23832 of iterations of the loop and see if we should build the epilogue.
23833
23834 2014-04-03 Richard Biener <rguenther@suse.de>
23835
23836 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23837 (streamer_tree_cache_create): Adjust.
23838 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23839 to allow optional nodes array.
23840 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23841 (streamer_tree_cache_append): Likewise.
23842 (streamer_tree_cache_create): Create nodes array optionally
23843 as specified by parameter.
23844 * lto-streamer-out.c (create_output_block): Avoid maintaining
23845 the node array in the writer cache.
23846 (DFS_write_tree): Remove assertion.
23847 (produce_asm_for_decls): Free the out decl state hash table early.
23848 * lto-streamer-in.c (lto_data_in_create): Adjust for
23849 streamer_tree_cache_create prototype change.
23850
23851 2014-04-03 Richard Biener <rguenther@suse.de>
23852
23853 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23854 set TREE_CHAIN to NULL_TREE.
23855
23856 2014-04-03 Richard Biener <rguenther@suse.de>
23857
23858 PR tree-optimization/60740
23859 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23860 over all GIMPLE_COND operands.
23861
23862 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
23863
23864 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23865 (Weffc++): Remove Scott's numbering, merge lists and reference
23866 Wnon-virtual-dtor.
23867
23868 2014-04-03 Nick Clifton <nickc@redhat.com>
23869
23870 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23871 properly.
23872
23873 2014-04-03 Martin Jambor <mjambor@suse.cz>
23874
23875 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23876 mention gcc_unreachable before failing.
23877 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23878 removed symbols.
23879
23880 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
23881
23882 PR ipa/60659
23883 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23884 inconsistent code and instead mark the context inconsistent.
23885 (possible_polymorphic_call_targets): For inconsistent contexts
23886 return empty complete list.
23887
23888 2014-04-02 Anthony Green <green@moxielogic.com>
23889
23890 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23891 (extendqisi2, extendhisi2): Define.
23892 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23893 (WCHAR_TYPE): Change to unsigned int.
23894
23895 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23896
23897 PR tree-optimization/60733
23898 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23899 insertion point for PHI candidates to be the end of the feeding
23900 block for the PHI argument.
23901
23902 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
23903
23904 PR rtl-optimization/60650
23905 * lra-constraints.c (process_alt_operands): Decrease reject for
23906 earlyclobber matching.
23907
23908 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23909
23910 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23911
23912 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23913
23914 * config/spu/spu.c (pad_bb): Do not crash when the last
23915 insn is CODE_FOR_blockage.
23916
23917 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23918
23919 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23920 lies outside the target mode.
23921
23922 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23923
23924 PR target/60735
23925 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23926 software floating point or no floating point registers, do not
23927 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23928 in GPRs that occurs after we tested for GPRs that would never be
23929 true.
23930
23931 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23932 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23933 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23934 specifically allow DDmode, since that does not use the SPE SIMD
23935 instructions.
23936
23937 2014-04-02 Richard Biener <rguenther@suse.de>
23938
23939 PR middle-end/60729
23940 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23941 MODE_INTs. Properly use negv_optab.
23942 (expand_abs): Likewise.
23943
23944 2014-04-02 Richard Biener <rguenther@suse.de>
23945
23946 PR bootstrap/60719
23947 * Makefile.in (install-driver): Guard extra installs with special
23948 names properly.
23949
23950 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23951
23952 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23953 Document vec_vgbbd.
23954
23955 2014-04-01 Richard Henderson <rth@redhat.com>
23956
23957 PR target/60704
23958 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23959 alternative enabled before register allocation.
23960
23961 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
23962
23963 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23964 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23965 typo.
23966 (nios2_large_got_address): Remove unneeded 'sym' parameter.
23967 (nios2_got_address): Update nios2_large_got_address call site.
23968 (nios2_delegitimize_address): New function.
23969 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23970 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23971 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23972
23973 2014-04-01 Martin Husemann <martin@duskware.de>
23974
23975 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23976 for -mabi=32.
23977
23978 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
23979
23980 PR rtl-optimization/60604
23981 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23982 check from register_operand.
23983 (register_operand): Redefine in terms of general_operand.
23984 (nonmemory_operand): Use register_operand for the non-constant cases.
23985
23986 2014-04-01 Richard Biener <rguenther@suse.de>
23987
23988 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23989
23990 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
23991
23992 * doc/invoke.texi (mapp-regs): Clarify.
23993
23994 2014-03-31 Ulrich Drepper <drepper@gmail.com>
23995
23996 * config/i386/avx512fintrin.h (__v32hi): Define type.
23997 (__v64qi): Likewise.
23998 (_mm512_set1_epi8): Define.
23999 (_mm512_set1_epi16): Define.
24000 (_mm512_set4_epi32): Define.
24001 (_mm512_set4_epi64): Define.
24002 (_mm512_set4_pd): Define.
24003 (_mm512_set4_ps): Define.
24004 (_mm512_setr4_epi64): Define.
24005 (_mm512_setr4_epi32): Define.
24006 (_mm512_setr4_pd): Define.
24007 (_mm512_setr4_ps): Define.
24008 (_mm512_setzero_epi32): Define.
24009
24010 2014-03-31 Martin Jambor <mjambor@suse.cz>
24011
24012 PR middle-end/60647
24013 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
24014 callsite_arguments_match_p. Updated all callers. Also check types of
24015 corresponding formal parameters and actual arguments.
24016 (not_all_callers_have_enough_arguments_p) Renamed to
24017 some_callers_have_mismatched_arguments_p.
24018
24019 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
24020
24021 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
24022
24023 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
24024
24025 PR target/60034
24026 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
24027 section anchor.
24028
24029 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
24030
24031 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
24032 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
24033 Split out
24034 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
24035 Use FMAMODE_NOVF512 mode iterator.
24036 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
24037 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
24038 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
24039 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
24040 Split out
24041 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
24042 Use VF_128_256 mode iterator.
24043 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24044 Ditto.
24045
24046 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24047
24048 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24049 static chain if needed.
24050
24051 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24052
24053 PR target/60697
24054 * lra-constraints.c (index_part_to_reg): New.
24055 (process_address): Use it.
24056
24057 2014-03-27 Jeff Law <law@redhat.com>
24058 Jakub Jelinek <jakub@redhat.com>
24059
24060 PR target/60648
24061 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24062 gen_rtx_{PLUS,MULT} to build up the address expression.
24063
24064 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24065 creating non-canonical RTL.
24066
24067 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24068
24069 PR ipa/60243
24070 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24071 functions; reorganize to make cheap checks first.
24072 (inline_small_functions): Do not estimate growth when dumping;
24073 it is expensive.
24074 * ipa-inline.h (inline_summary): Add min_size.
24075 (growth_likely_positive): New function.
24076 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24077 (set_cond_stmt_execution_predicate): Cleanup.
24078 (estimate_edge_size_and_time): Compute min_size.
24079 (estimate_calls_size_and_time): Likewise.
24080 (estimate_node_size_and_time): Likewise.
24081 (inline_update_overall_summary): Update min_size.
24082 (do_estimate_edge_time): Likewise.
24083 (do_estimate_edge_size): Update.
24084 (do_estimate_edge_hints): Update.
24085 (growth_likely_positive): New function.
24086
24087 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24088
24089 PR target/60693
24090 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24091 also if addr has VOIDmode.
24092
24093 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24094
24095 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24096 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24097 Declare extern.
24098 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24099 instructions as well as AdvancedSIMD loads.
24100
24101 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24102
24103 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24104 Use crypto_aese type.
24105 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24106 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24107 crypto_aese, crypto_aesmc. Move to types.md.
24108 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24109 crypto_aesmc.
24110 * config/arm/iterators.md (crypto_type): Likewise.
24111
24112 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24113
24114 * cgraph.c: Include expr.h and tree-dfa.h.
24115 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24116 remove LHS.
24117
24118 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24119
24120 PR target/60675
24121 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24122 regs from checking multi-reg pseudos.
24123
24124 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24125
24126 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24127
24128 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24129
24130 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24131 if it would clobber the stack pointer, even temporarily.
24132
24133 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24134
24135 * mode-switching.c: Make small adjustments to the top comment.
24136
24137 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24138
24139 * config/rs6000/constraints.md (wD constraint): New constraint to
24140 match the constant integer to get the top DImode/DFmode out of a
24141 vector in a VSX register.
24142
24143 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24144 match the constant integer to get the top DImode/DFmode out of a
24145 vector in a VSX register.
24146
24147 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24148 for ISA 2.07.
24149
24150 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24151 vbpermq builtins.
24152
24153 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24154 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24155
24156 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24157 Optimize vec_extract of 64-bit values, where the value being
24158 extracted is in the top word, where we can use scalar
24159 instructions. Add direct move and store support. Combine the big
24160 endian/little endian vector select load support into a single insn.
24161 (vsx_extract_<mode>_internal1): Likewise.
24162 (vsx_extract_<mode>_internal2): Likewise.
24163 (vsx_extract_<mode>_load): Likewise.
24164 (vsx_extract_<mode>_store): Likewise.
24165 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24166 combined into vsx_extract_<mode>_load.
24167 (vsx_extract_<mode>_one_le): Likewise.
24168
24169 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24170 define the top 64-bit vector element.
24171
24172 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24173 constraint.
24174
24175 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24176 Document vec_vbpermq builtin.
24177
24178 PR target/60672
24179 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24180 enable use of xxsldwi and xxpermdi builtin functions.
24181 (vec_xxpermdi): Likewise.
24182
24183 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24184 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24185
24186 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24187
24188 PR rtl-optimization/60650
24189 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24190 first_p. Use it.
24191 (find_spills_for): New.
24192 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24193 Spill all pseudos on the second iteration.
24194
24195 2014-03-27 Marek Polacek <polacek@redhat.com>
24196
24197 PR c/50347
24198 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24199 types.
24200
24201 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24202
24203 * config/s390/s390.c (s390_can_use_return_insn): Check for
24204 call-saved FPRs on 31 bit.
24205
24206 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24207
24208 PR middle-end/60682
24209 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24210 if they need regimplification, just drop them instead of
24211 calling gimple_regimplify_operands on them.
24212
24213 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24214
24215 PR target/60580
24216 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24217 (aarch64_frame_pointer_required): Adjust logic.
24218 (aarch64_can_eliminate): Adjust logic.
24219 (aarch64_override_options_after_change): Adjust logic.
24220
24221 2014-03-27 Dehao Chen <dehao@google.com>
24222
24223 * ipa-inline.c (early_inliner): Update node's inline info.
24224
24225 2014-03-26 Dehao Chen <dehao@google.com>
24226
24227 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24228 compiler inserted conditional jumps for NAN float check.
24229
24230 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24231
24232 * ubsan.h (ubsan_create_data): Change second argument's type
24233 to const location_t *.
24234 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24235 _("<unknown>").
24236 (ubsan_create_data): Change second argument to const location_t *PLOC.
24237 Create Loc field whenever PLOC is non-NULL.
24238 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24239 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24240 callers.
24241
24242 PR other/59545
24243 * real.c (real_to_integer2): Change type of low to UHWI.
24244
24245 2014-03-26 Tobias Burnus <burnus@net-b.de>
24246
24247 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24248 (CILK_SELF_SPECS): New define.
24249 (driver_self_specs): Use it.
24250
24251 2014-03-26 Richard Biener <rguenther@suse.de>
24252
24253 * tree-pretty-print.c (percent_K_format): Implement special
24254 case for LTO and its stripped down BLOCK tree.
24255
24256 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24257
24258 PR sanitizer/60636
24259 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24260
24261 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24262 one range is range_int_cst_p, but not both, at least optimize
24263 addition/subtraction of 0 and multiplication by 0 or 1.
24264 * gimple-fold.c (gimple_fold_call): Fold
24265 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24266 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24267 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24268
24269 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24270
24271 PR rtl-optimization/60452
24272 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24273 <case REG>: Return 1 for invalid offsets from the frame pointer.
24274
24275 2014-03-26 Marek Polacek <polacek@redhat.com>
24276
24277 PR c/37428
24278 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24279 a structure/union.
24280
24281 2014-03-26 Marek Polacek <polacek@redhat.com>
24282
24283 PR c/39525
24284 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24285 field members.
24286
24287 2014-03-26 Marek Polacek <polacek@redhat.com>
24288
24289 PR other/59545
24290 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24291 multiplication in unsigned type.
24292
24293 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24294
24295 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24296
24297 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24298
24299 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24300
24301 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24302
24303 PR ipa/60315
24304 * cif-code.def (UNREACHABLE) New code.
24305 * ipa-inline.c (inline_small_functions): Skip edges to
24306 __builtlin_unreachable.
24307 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24308 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24309 predicate to __bulitin_unreachable.
24310 (set_cond_stmt_execution_predicate): Fix issue when
24311 invert_tree_comparison returns ERROR_MARK.
24312 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24313 propagate to inline clones.
24314 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24315 to unreachable.
24316 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24317 * cgraphclones.c (cgraph_clone_node): If call destination is already
24318 ureachable, do not redirect it back.
24319 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24320 unreachable.
24321
24322 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24323
24324 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24325 Do not modify inline clones.
24326
24327 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24328
24329 * config/i386/i386.md (general_sext_operand): New mode attr.
24330 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24331 don't generate (sign_extend (const_int)).
24332 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24333 operands[2]. Use We constraint instead of <i> and
24334 <general_sext_operand> predicate instead of <general_operand>.
24335 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24336 * config/i386/constraints.md (We): New constraint.
24337 * config/i386/predicates.md (x86_64_sext_operand,
24338 sext_operand): New predicates.
24339
24340 2014-03-25 Martin Jambor <mjambor@suse.cz>
24341
24342 PR ipa/60600
24343 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24344 inconsistent devirtualizations to __builtin_unreachable.
24345
24346 2014-03-25 Marek Polacek <polacek@redhat.com>
24347
24348 PR c/35449
24349 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24350
24351 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24352
24353 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24354 order of elements for big-endian.
24355
24356 2014-03-25 Richard Biener <rguenther@suse.de>
24357
24358 PR middle-end/60635
24359 * gimplify-me.c (gimple_regimplify_operands): Update the
24360 re-gimplifed stmt.
24361
24362 2014-03-25 Martin Jambor <mjambor@suse.cz>
24363
24364 PR ipa/59176
24365 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24366 (lto_output_varpool_node): Likewise.
24367 (input_overwrite_node): Likewise.
24368 (input_varpool_node): Likewise.
24369
24370 2014-03-25 Richard Biener <rguenther@suse.de>
24371
24372 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
24373 (run_gcc): Likewise.
24374
24375 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24376
24377 * combine.c (simplify_compare_const): Add MODE argument.
24378 Handle mode_width 0 as very large mode_width.
24379 (try_combine, simplify_comparison): Adjust callers.
24380
24381 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
24382 type to avoid signed integer overflow.
24383 * explow.c (plus_constant): Likewise.
24384
24385 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
24386
24387 * doc/generic.texi: Correct typos.
24388
24389 2014-03-24 Tobias Burnus <burnus@net-b.de>
24390
24391 * doc/invoke.texi (-flto): Expand section about
24392 using static libraries with LTO.
24393
24394 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24395
24396 PR rtl-optimization/60501
24397 * optabs.def (addptr3_optab): New optab.
24398 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
24399 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
24400 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
24401
24402 * lra.c (emit_add3_insn): Use the addptr pattern if available.
24403
24404 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
24405
24406 2014-03-24 Ulrich Drepper <drepper@gmail.com>
24407
24408 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
24409 _mm512_set1_pd.
24410
24411 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
24412 (_mm256_undefined_ps): Define.
24413 (_mm256_undefined_pd): Define.
24414 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
24415 (_mm_undefined_pd): Define.
24416 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
24417 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
24418 (_mm512_undefined_ps): Define.
24419 (_mm512_undefined_pd): Define.
24420 Use _mm*_undefined_*.
24421 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
24422
24423 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
24424
24425 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
24426 (lshr_simd): DI mode added.
24427 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
24428 (aarch64_ushr_simddi): Likewise.
24429 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
24430 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
24431 (vshrd_n_u64): Likewise.
24432
24433 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24434
24435 * Makefile.in (s-macro_list): Depend on cc1.
24436
24437 2014-03-23 Teresa Johnson <tejohnson@google.com>
24438
24439 * ipa-utils.c (ipa_print_order): Use specified dump file.
24440
24441 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
24442
24443 PR rtl-optimization/60601
24444 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
24445
24446 * gcc.c (eval_spec_function): Initialize save_growing_value.
24447
24448 2014-03-22 Jakub Jelinek <jakub@redhat.com>
24449
24450 PR sanitizer/60613
24451 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
24452 code == MINUS_EXPR, never swap op0 with op1.
24453
24454 * toplev.c (init_local_tick): Avoid signed integer multiplication
24455 overflow.
24456 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
24457 shift by first operand's bitsize.
24458
24459 2014-03-21 Jakub Jelinek <jakub@redhat.com>
24460
24461 PR target/60610
24462 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
24463 redefine to 1 or 0.
24464 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
24465 TARGET_ISA_64BIT_P(x).
24466
24467 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24468
24469 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
24470 pattern for vector nor instead of subtract from splat(-1).
24471 (altivec_expand_vec_perm_const_le): Likewise.
24472
24473 2014-03-21 Richard Henderson <rth@twiddle.net>
24474
24475 PR target/60598
24476 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
24477 related insns after epilogue_completed.
24478
24479 2014-03-21 Martin Jambor <mjambor@suse.cz>
24480
24481 PR ipa/59176
24482 * cgraph.h (symtab_node): New flag body_removed.
24483 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
24484 when removing bodies.
24485 * symtab.c (dump_symtab_base): Dump body_removed flag.
24486 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
24487 had their bodies removed.
24488
24489 2014-03-21 Martin Jambor <mjambor@suse.cz>
24490
24491 PR ipa/60419
24492 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
24493 in the border.
24494
24495 2014-03-21 Richard Biener <rguenther@suse.de>
24496
24497 PR tree-optimization/60577
24498 * tree-core.h (struct tree_base): Document nothrow_flag use
24499 in DECL_NONALIASED.
24500 * tree.h (DECL_NONALIASED): New.
24501 (may_be_aliased): Adjust.
24502 * coverage.c (build_var): Set DECL_NONALIASED.
24503
24504 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24505
24506 * expr.c (expand_expr_real_1): Remove outdated comment.
24507
24508 2014-03-20 Jakub Jelinek <jakub@redhat.com>
24509
24510 PR middle-end/60597
24511 * ira.c (adjust_cleared_regs): Call copy_rtx on
24512 *reg_equiv[REGNO (loc)].src_p before passing it to
24513 simplify_replace_fn_rtx.
24514
24515 PR target/60568
24516 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
24517 into CONST, put pic register as first operand of PLUS. Use
24518 gen_const_mem for both 32-bit and 64-bit PIC got loads.
24519
24520 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24521
24522 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
24523
24524 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24525
24526 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
24527 around for store forwarding issue in the FPU on the UT699.
24528 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
24529 loads and operations if -mfix-ut699 is specified.
24530 (divtf3_hq): Tweak attribute.
24531 (sqrttf2_hq): Likewise.
24532
24533 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24534
24535 * calls.c (store_one_arg): Remove incorrect const qualification on the
24536 type of the temporary.
24537 * cfgexpand.c (expand_return): Likewise.
24538 * expr.c (expand_constructor): Likewise.
24539 (expand_expr_real_1): Likewise.
24540
24541 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24542
24543 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
24544 of parts.
24545
24546 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24547
24548 PR target/60039
24549 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
24550
24551 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
24552
24553 * config/arm/aarch-common-protos.h
24554 (alu_cost_table): Fix spelling of "extend".
24555 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
24556
24557 2014-03-19 Richard Biener <rguenther@suse.de>
24558
24559 PR middle-end/60553
24560 * tree-core.h (tree_type_common): Re-order pointer members
24561 to reduce recursion depth during GC walks.
24562
24563 2014-03-19 Marek Polacek <polacek@redhat.com>
24564
24565 PR sanitizer/60569
24566 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
24567 before accessing it.
24568
24569 2014-03-19 Richard Biener <rguenther@suse.de>
24570
24571 PR lto/59543
24572 * lto-streamer-in.c (input_function): In WPA stage do not drop
24573 debug stmts.
24574
24575 2014-03-19 Jakub Jelinek <jakub@redhat.com>
24576
24577 PR tree-optimization/60559
24578 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
24579 with build_zero_cst assignment.
24580
24581 2014-03-18 Kai Tietz <ktietz@redhat.com>
24582
24583 PR rtl-optimization/56356
24584 * sdbout.c (sdbout_parms): Verify that parms'
24585 incoming argument is valid.
24586 (sdbout_reg_parms): Likewise.
24587
24588 2014-03-18 Richard Henderson <rth@redhat.com>
24589
24590 PR target/60562
24591 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
24592 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
24593 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
24594
24595 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
24596
24597 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
24598 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
24599 Italicize plugin event names in description. Explain that
24600 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
24601 Remind that no GCC functions should be called after PLUGIN_FINISH.
24602 Explain what pragmas with expansion are.
24603
24604 2014-03-18 Martin Liska <mliska@suse.cz>
24605
24606 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
24607 gimple call statement is update.
24608 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
24609 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
24610
24611 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24612
24613 PR sanitizer/60557
24614 * ubsan.c (ubsan_instrument_unreachable): Call
24615 initialize_sanitizer_builtins.
24616 (ubsan_pass): Likewise.
24617
24618 PR sanitizer/60535
24619 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
24620 varpool_finalize_decl instead of rest_of_decl_compilation.
24621
24622 2014-03-18 Richard Biener <rguenther@suse.de>
24623
24624 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
24625 by using bitmap_and_compl instead of bitmap_and_compl_into.
24626 (df_rd_transfer_function): Likewise.
24627
24628 2014-03-18 Richard Biener <rguenther@suse.de>
24629
24630 * doc/lto.texi (fresolution): Fix typo.
24631
24632 2014-03-18 Richard Biener <rguenther@suse.de>
24633
24634 * doc/invoke.texi (flto): Update for changes in 4.9.
24635
24636 2014-03-18 Richard Biener <rguenther@suse.de>
24637
24638 * doc/loop.texi: Remove section on the removed lambda framework.
24639 Update loop docs with recent changes in preserving loop structure.
24640
24641 2014-03-18 Richard Biener <rguenther@suse.de>
24642
24643 * doc/lto.texi (-fresolution): Document.
24644
24645 2014-03-18 Richard Biener <rguenther@suse.de>
24646
24647 * doc/contrib.texi: Adjust my name.
24648
24649 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24650
24651 PR ipa/58721
24652 * internal-fn.c: Include diagnostic-core.h.
24653 (expand_BUILTIN_EXPECT): New function.
24654 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24655 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24656 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24657 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24658 IFN_BUILTIN_EXPECT.
24659 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24660 Revert 3 argument __builtin_expect code.
24661 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24662 * gimple-fold.c (gimple_fold_call): Likewise.
24663 * tree.h (fold_builtin_expect): New prototype.
24664 * builtins.c (build_builtin_expect_predicate): Add predictor
24665 argument, if non-NULL, create 3 argument __builtin_expect.
24666 (fold_builtin_expect): No longer static. Add ARG2 argument,
24667 pass it through to build_builtin_expect_predicate.
24668 (fold_builtin_2): Adjust caller.
24669 (fold_builtin_3): Handle BUILT_IN_EXPECT.
24670 * internal-fn.def (BUILTIN_EXPECT): New.
24671
24672 2014-03-18 Tobias Burnus <burnus@net-b.de>
24673
24674 PR ipa/58721
24675 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24676 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24677 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24678
24679 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
24680
24681 PR ipa/58721
24682 * predict.c (combine_predictions_for_bb): Fix up formatting.
24683 (expr_expected_value_1, expr_expected_value): Add predictor argument,
24684 fill what it points to if non-NULL.
24685 (tree_predict_by_opcode): Adjust caller, use the predictor.
24686 * predict.def (PRED_COMPARE_AND_SWAP): Add.
24687
24688 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
24689
24690 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24691 proper constant for the store mode.
24692
24693 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
24694
24695 * symtab.c (change_decl_assembler_name): Fix transparent alias
24696 chain construction.
24697
24698 2014-03-16 Renlin Li <Renlin.Li@arm.com>
24699
24700 * config/aarch64/aarch64.c: Correct the comments about the
24701 aarch64 stack layout.
24702
24703 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
24704
24705 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24706 check for GF_OMP_FOR_KIND_FOR.
24707
24708 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
24709
24710 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24711 ymm and zmm register names.
24712
24713 2014-03-17 Jakub Jelinek <jakub@redhat.com>
24714
24715 PR target/60516
24716 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24717 note creation for the 2010-08-31 changes.
24718
24719 2014-03-17 Marek Polacek <polacek@redhat.com>
24720
24721 PR middle-end/60534
24722 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24723 as -fno-tree-loop-vectorize.
24724 (expand_omp_simd): Likewise.
24725
24726 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
24727
24728 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24729 (eligible_for_call_delay): New prototype.
24730 * config/sparc/sparc.c (tls_call_delay): Rename into...
24731 (eligible_for_call_delay): ...this. Return false if the instruction
24732 cannot be put in the delay slot of a branch.
24733 (eligible_for_restore_insn): Simplify.
24734 (eligible_for_return_delay): Return false if the instruction cannot be
24735 put in the delay slot of a branch and simplify.
24736 (eligible_for_sibcall_delay): Return false if the instruction cannot be
24737 put in the delay slot of a branch.
24738 * config/sparc/sparc.md (fix_ut699): New attribute.
24739 (tls_call_delay): Delete.
24740 (in_call_delay): Reimplement.
24741 (eligible_for_sibcall_delay): Rename into...
24742 (in_sibcall_delay): ...this.
24743 (eligible_for_return_delay): Rename into...
24744 (in_return_delay): ...this.
24745 (in_branch_delay): Reimplement.
24746 (in_uncond_branch_delay): Delete.
24747 (in_annul_branch_delay): Delete.
24748
24749 2014-03-14 Richard Henderson <rth@redhat.com>
24750
24751 PR target/60525
24752 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24753 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24754 (*floathi<X87MODEF>2_i387_with_temp): Remove.
24755 (floathi splitters): Remove.
24756 (float<SWI48x>xf2): New pattern.
24757 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
24758 code that tried to handle DImode for 32-bit, but which was excluded
24759 by the pattern's condition. Drop allocation of stack temporary.
24760 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24761 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24762 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24763 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24764 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24765 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24766 (*float<SWI48><MODEF>2_sse_interunit): Remove.
24767 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24768 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24769 (*float<SWI48x><X87MODEF>2_i387): Remove.
24770 (all float _with_temp splitters): Remove.
24771 (*float<SWI48x><MODEF>2_i387): New pattern.
24772 (*float<SWI48><MODEF>2_sse): New pattern.
24773 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24774 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24775
24776 2014-03-14 Jakub Jelinek <jakub@redhat.com>
24777 Marek Polacek <polacek@redhat.com>
24778
24779 PR middle-end/60484
24780 * common.opt (dump_base_name_prefixed): New Variable.
24781 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24782 if x_dump_base_name_prefixed is already set, set it at the end.
24783
24784 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
24785
24786 PR rtl-optimization/60508
24787 * lra-constraints.c (get_reload_reg): Add new parameter
24788 in_subreg_p.
24789 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24790 Pass the new parameter values.
24791
24792 2014-03-14 Richard Biener <rguenther@suse.de>
24793
24794 * common.opt: Revert unintented changes from r205065.
24795 * opts.c: Likewise.
24796
24797 2014-03-14 Richard Biener <rguenther@suse.de>
24798
24799 PR middle-end/60518
24800 * cfghooks.c (split_block): Properly adjust all loops the
24801 block was a latch of.
24802
24803 2014-03-14 Martin Jambor <mjambor@suse.cz>
24804
24805 PR lto/60461
24806 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24807 and simplify it.
24808
24809 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
24810
24811 PR target/59396
24812 * config/avr/avr.c (avr_set_current_function): Pass function name
24813 through default_strip_name_encoding before sanity checking instead
24814 of skipping the first char of the assembler name.
24815
24816 2014-03-13 Richard Henderson <rth@redhat.com>
24817
24818 PR debug/60438
24819 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24820 (ix86_force_to_memory, ix86_free_from_memory): Remove.
24821 * config/i386/i386-protos.h: Likewise.
24822 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24823 in the expander instead of a splitter.
24824 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24825 any possibility of requiring a memory.
24826 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24827 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24828 (fp branch splitters): Update for ix86_split_fp_branch.
24829 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24830 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24831 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24832 (*fop_<MODEF>_2_i387): Remove f/r alternative.
24833 (*fop_<MODEF>_3_i387): Likewise.
24834 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24835 (splitters for the fop_* register patterns): Remove.
24836 (fscalexf4_i387): Rename from *fscalexf4_i387.
24837 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24838
24839 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24840
24841 PR tree-optimization/59779
24842 * tree-dfa.c (get_ref_base_and_extent): Use double_int
24843 type for bitsize and maxsize instead of HOST_WIDE_INT.
24844
24845 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
24846
24847 PR rtl-optimization/57320
24848 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24849 the CFG after thread_prologue_and_epilogue_insns.
24850
24851 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
24852
24853 PR rtl-optimization/57189
24854 * lra-constraints.c (process_alt_operands): Disfavor spilling
24855 vector pseudos.
24856
24857 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
24858
24859 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24860
24861 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24862
24863 PR tree-optimization/59025
24864 PR middle-end/60418
24865 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24866 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24867
24868 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
24869
24870 PR target/60486
24871 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24872 calls of avr_out_plus_1.
24873
24874 2014-03-13 Bin Cheng <bin.cheng@arm.com>
24875
24876 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24877 BB's single pred and update the father loop's latch info later.
24878
24879 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24880
24881 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24882 (VEC_M): Likewise.
24883 (VEC_N): Likewise.
24884 (VEC_R): Likewise.
24885 (VEC_base): Likewise.
24886 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24887 registers, we need to swap double words in little endian mode.
24888
24889 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24890 to be a container mode for 128-bit integer operations added in ISA
24891 2.07. Unlike TImode and PTImode, the preferred register set is
24892 the Altivec/VMX registers for the 128-bit operations.
24893
24894 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24895 declarations.
24896 (rs6000_split_128bit_ok_p): Likewise.
24897
24898 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24899 macros for creating ISA 2.07 normal and overloaded builtin
24900 functions with 3 arguments.
24901 (BU_P8V_OVERLOAD_3): Likewise.
24902 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24903 for use as overloaded functions.
24904 (VPERM_1TI_UNS): Likewise.
24905 (VSEL_1TI): Likewise.
24906 (VSEL_1TI_UNS): Likewise.
24907 (ST_INTERNAL_1ti): Likewise.
24908 (LD_INTERNAL_1ti): Likewise.
24909 (XXSEL_1TI): Likewise.
24910 (XXSEL_1TI_UNS): Likewise.
24911 (VPERM_1TI): Likewise.
24912 (VPERM_1TI_UNS): Likewise.
24913 (XXPERMDI_1TI): Likewise.
24914 (SET_1TI): Likewise.
24915 (LXVD2X_V1TI): Likewise.
24916 (STXVD2X_V1TI): Likewise.
24917 (VEC_INIT_V1TI): Likewise.
24918 (VEC_SET_V1TI): Likewise.
24919 (VEC_EXT_V1TI): Likewise.
24920 (EQV_V1TI): Likewise.
24921 (NAND_V1TI): Likewise.
24922 (ORC_V1TI): Likewise.
24923 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24924 added in ISA 2.07. Add both normal 'altivec' builtins, and the
24925 overloaded builtin.
24926 (VADDUQM): Likewise.
24927 (VSUBCUQ): Likewise.
24928 (VADDEUQM): Likewise.
24929 (VADDECUQ): Likewise.
24930 (VSUBEUQM): Likewise.
24931 (VSUBECUQ): Likewise.
24932
24933 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24934 __int128_t and __uint128_t types.
24935 (__uint128_type): Likewise.
24936 (altivec_categorize_keyword): Add support for vector __int128_t,
24937 vector __uint128_t, vector __int128, and vector unsigned __int128
24938 as a container type for TImode operations that need to be done in
24939 VSX/Altivec registers.
24940 (rs6000_macro_to_expand): Likewise.
24941 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24942 to support 128-bit integer instructions vaddcuq, vadduqm,
24943 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24944 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24945
24946 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24947 for V1TImode, and set up preferences to use VSX/Altivec registers.
24948 Setup VSX reload handlers.
24949 (rs6000_debug_reg_global): Likewise.
24950 (rs6000_init_hard_regno_mode_ok): Likewise.
24951 (rs6000_preferred_simd_mode): Likewise.
24952 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24953 (easy_altivec_constant): Likewise.
24954 (output_vec_const_move): Likewise.
24955 (rs6000_expand_vector_set): Convert V1TImode set and extract to
24956 simple move.
24957 (rs6000_expand_vector_extract): Likewise.
24958 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24959 addressing.
24960 (rs6000_const_vec): Add support for V1TImode.
24961 (rs6000_emit_le_vsx_load): Swap double words when loading or
24962 storing TImode/V1TImode.
24963 (rs6000_emit_le_vsx_store): Likewise.
24964 (rs6000_emit_le_vsx_move): Likewise.
24965 (rs6000_emit_move): Add support for V1TImode.
24966 (altivec_expand_ld_builtin): Likewise.
24967 (altivec_expand_st_builtin): Likewise.
24968 (altivec_expand_vec_init_builtin): Likewise.
24969 (altivec_expand_builtin): Likewise.
24970 (rs6000_init_builtins): Add support for V1TImode type. Add
24971 support for ISA 2.07 128-bit integer builtins. Define type names
24972 for the VSX/Altivec vector types.
24973 (altivec_init_builtins): Add support for overloaded vector
24974 functions with V1TImode type.
24975 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24976 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24977 external function.
24978 (rs6000_split_128bit_ok_p): Likewise.
24979 (rs6000_handle_altivec_attribute): Create V1TImode from vector
24980 __int128_t and vector __uint128_t.
24981
24982 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24983 and mode attributes.
24984 (VSX_M): Likewise.
24985 (VSX_M2): Likewise.
24986 (VSm): Likewise.
24987 (VSs): Likewise.
24988 (VSr): Likewise.
24989 (VSv): Likewise.
24990 (VS_scalar): Likewise.
24991 (VS_double): Likewise.
24992 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24993
24994 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24995 we support the ISA 2.07 128-bit integer arithmetic instructions.
24996 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24997 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24998 and TImode types for use with the builtin functions.
24999 (V1TI_type_node): Likewise.
25000 (unsigned_V1TI_type_node): Likewise.
25001 (intTI_type_internal_node): Likewise.
25002 (uintTI_type_internal_node): Likewise.
25003
25004 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
25005 128-bit builtin functions.
25006 (UNSPEC_VADDEUQM): Likewise.
25007 (UNSPEC_VADDECUQ): Likewise.
25008 (UNSPEC_VSUBCUQ): Likewise.
25009 (UNSPEC_VSUBEUQM): Likewise.
25010 (UNSPEC_VSUBECUQ): Likewise.
25011 (VM): Add V1TImode to vector mode iterators.
25012 (VM2): Likewise.
25013 (VI_unit): Likewise.
25014 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
25015 (altivec_vaddcuq): Likewise.
25016 (altivec_vsubuqm): Likewise.
25017 (altivec_vsubcuq): Likewise.
25018 (altivec_vaddeuqm): Likewise.
25019 (altivec_vaddecuq): Likewise.
25020 (altivec_vsubeuqm): Likewise.
25021 (altivec_vsubecuq): Likewise.
25022
25023 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
25024 mode iterators.
25025 (BOOL_128): Likewise.
25026 (BOOL_REGS_OUTPUT): Likewise.
25027 (BOOL_REGS_OP1): Likewise.
25028 (BOOL_REGS_OP2): Likewise.
25029 (BOOL_REGS_UNARY): Likewise.
25030 (BOOL_REGS_AND_CR0): Likewise.
25031
25032 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
25033 128-bit integer builtin support.
25034 (vec_vadduqm): Likewise.
25035 (vec_vaddecuq): Likewise.
25036 (vec_vaddeuqm): Likewise.
25037 (vec_vsubecuq): Likewise.
25038 (vec_vsubeuqm): Likewise.
25039 (vec_vsubcuq): Likewise.
25040 (vec_vsubuqm): Likewise.
25041
25042 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25043 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25044 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25045 128-bit integer add/subtract to ISA 2.07.
25046
25047 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25048
25049 * config/arc/arc.c (arc_predicate_delay_insns):
25050 Fix third argument passed to conditionalize_nonjump.
25051
25052 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25053
25054 * config/aarch64/aarch64-builtins.c
25055 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25056 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25057 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25058 instead of __builtin_lfloor.
25059 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25060
25061 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25062
25063 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25064 (tree_ssa_ifcombine_bb_1): New function.
25065 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25066 is an empty forwarder block to then_bb or vice versa and then_bb
25067 and else_bb are effectively swapped.
25068
25069 2014-03-12 Christian Bruel <christian.bruel@st.com>
25070
25071 PR target/60264
25072 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25073 REG_CFA_DEF_CFA note.
25074 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25075 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25076
25077 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25078
25079 PR tree-optimization/60454
25080 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25081
25082 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25083
25084 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25085 Do not define target_cpu_default2 to generic.
25086 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25087 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25088 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25089
25090 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25091 Marc Glisse <marc.glisse@inria.fr>
25092
25093 PR tree-optimization/60502
25094 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25095 instead of build_low_bits_mask.
25096
25097 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25098
25099 PR middle-end/60482
25100 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25101 if there are multiple uses, but op doesn't live on E edge.
25102 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25103 clobber stmts before __builtin_unreachable.
25104
25105 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25106
25107 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25108 hard_frame_pointer_rtx.
25109 * cse.c (cse_insn): Remove volatile check.
25110 * cselib.c (cselib_process_insn): Likewise.
25111 * dse.c (scan_insn): Likewise.
25112
25113 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25114
25115 * config/arc/arc.c (conditionalize_nonjump): New function,
25116 broken out of ...
25117 (arc_ifcvt): ... this.
25118 (arc_predicate_delay_insns): Use it.
25119
25120 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25121
25122 * config/arc/predicates.md (extend_operand): During/after reload,
25123 allow const_int_operand.
25124 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25125 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25126 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25127 to "i".
25128 (umulsi3_highpart_i): Likewise.
25129
25130 2014-03-11 Richard Biener <rguenther@suse.de>
25131
25132 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25133 Add asserts to guard possible wrong-code bugs.
25134
25135 2014-03-11 Richard Biener <rguenther@suse.de>
25136
25137 PR tree-optimization/60429
25138 PR tree-optimization/60485
25139 * tree-ssa-structalias.c (set_union_with_increment): Properly
25140 take into account all fields that overlap the shifted vars.
25141 (do_sd_constraint): Likewise.
25142 (do_ds_constraint): Likewise.
25143 (get_constraint_for_ptr_offset): Likewise.
25144
25145 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25146
25147 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25148 (nios2_compute_frame_layout):
25149 Add calculation of cfun->machine->fp_save_offset.
25150 (nios2_expand_prologue): Correct setting of frame pointer register
25151 in prologue.
25152 (nios2_expand_epilogue): Update recovery of stack pointer from
25153 frame pointer accordingly.
25154 (nios2_initial_elimination_offset): Update calculation of offset
25155 for eliminating to HARD_FRAME_POINTER_REGNUM.
25156
25157 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25158
25159 PR ipa/60457
25160 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25161 cgraph_get_create_node on VAR_DECLs.
25162
25163 2014-03-10 Richard Biener <rguenther@suse.de>
25164
25165 PR middle-end/60474
25166 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25167
25168 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25169
25170 * config/vms/vms.opt (vms_float_format): New variable.
25171
25172 2014-03-08 Tobias Burnus <burnus@net-b.de>
25173
25174 * doc/invoke.texi (-fcilkplus): Update implementation status.
25175
25176 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25177 Richard Biener <rguenther@suse.de>
25178
25179 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25180 consistently accross all TUs.
25181 (run_gcc): Enable -fshort-double automatically at link at link-time
25182 and disallow override.
25183
25184 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25185
25186 PR target/58271
25187 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25188 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25189 if they can't be used.
25190
25191 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25192
25193 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25194 for Solaris 11/x86 ld.
25195 * configure: Regenerate.
25196
25197 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25198
25199 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25200 (LIB_TLS_SPEC): Save as ld_tls_libs.
25201 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25202 (HAVE_AS_IX86_TLSLDM): New test.
25203 * configure, config.in: Regenerate.
25204 * config/i386/i386.c (legitimize_tls_address): Fall back to
25205 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25206 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25207 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25208 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25209
25210 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25211
25212 * common.opt (fira-loop-pressure): Mark as optimization.
25213
25214 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25215
25216 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25217 an OpenMP mappable type.
25218
25219 2014-03-06 Matthias Klose <doko@ubuntu.com>
25220
25221 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25222 MULTILIB_OSDIRNAMES is not defined.
25223
25224 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25225 Meador Inge <meadori@codesourcery.com>
25226
25227 PR target/58595
25228 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25229 (arm_legitimize_address): Call legitimize_tls_address for any
25230 arm_tls_referenced_p expression, handle constant addend. Call it
25231 before testing for !TARGET_ARM.
25232 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25233
25234 2014-03-06 Richard Biener <rguenther@suse.de>
25235
25236 PR middle-end/60445
25237 PR lto/60424
25238 PR lto/60427
25239 Revert
25240 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25241
25242 * tree-streamer.c (record_common_node): Assert we don't record
25243 nodes with type double.
25244 (preload_common_node): Skip type double, complex double and double
25245 pointer since it is now frontend dependent due to fshort-double option.
25246
25247 2014-03-06 Richard Biener <rguenther@suse.de>
25248
25249 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25250 or -fno-lto is specified and the linker has full plugin support.
25251 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25252 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25253 * lto-wrapper.c (merge_and_complain): Merge compile-time
25254 optimization levels.
25255 (run_gcc): And pass it through to the link options.
25256
25257 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25258
25259 PR debug/60381
25260 Revert:
25261 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25262 PR debug/59992
25263 * cselib.c (remove_useless_values): Skip to avoid quadratic
25264 behavior if the condition moved from...
25265 (cselib_process_insn): ... here holds.
25266
25267 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25268
25269 PR plugins/59335
25270 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25271 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25272
25273 PR plugins/59335
25274 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25275 (TM_H): Add x86-tune.def.
25276
25277 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25278
25279 * config/aarch64/aarch64.c (generic_tunings):
25280 Use cortexa57_extra_costs.
25281
25282 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25283
25284 PR lto/60404
25285 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25286 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25287 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25288 cost for in_lto_p.
25289
25290 2014-03-04 Heiher <r@hev.cc>
25291
25292 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25293 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25294
25295 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25296
25297 * config/i386/predicates.md (const2356_operand): Change to ...
25298 (const2367_operand): ... this.
25299 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25300 const2367_operand.
25301 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25302 (*avx512pf_scatterpf<mode>sf): Ditto.
25303 (avx512pf_scatterpf<mode>df): Ditto.
25304 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25305 (*avx512pf_scatterpf<mode>df): Ditto.
25306 * config/i386/i386.c (ix86_expand_builtin): Update
25307 incorrect hint operand error message.
25308
25309 2014-03-04 Richard Biener <rguenther@suse.de>
25310
25311 * lto-section-in.c (lto_get_section_data): Fix const cast.
25312
25313 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25314
25315 * tree-streamer.c (record_common_node): Assert we don't record
25316 nodes with type double.
25317 (preload_common_node): Skip type double, complex double and double
25318 pointer since it is now frontend dependent due to fshort-double option.
25319
25320 2014-03-04 Richard Biener <rguenther@suse.de>
25321
25322 PR lto/60405
25323 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25324 (lto_input_toplevel_asms): Likewise.
25325 * lto-section-in.c (lto_get_section_data): Instead do it here
25326 for every section.
25327
25328 2014-03-04 Richard Biener <rguenther@suse.de>
25329
25330 PR tree-optimization/60382
25331 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25332 dead PHIs a reduction.
25333
25334 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25335
25336 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25337 hint value.
25338 (_mm_prefetch): Move out of GCC target("sse") pragma.
25339 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25340 GCC target("prfchw") pragma.
25341 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25342 for locality <= 2.
25343 * config/i386/i386.c (ix86_option_override_internal): Enable
25344 -mprfchw with -mprefetchwt1.
25345
25346 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25347
25348 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25349 Mark as varying.
25350
25351 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25352
25353 * opts.h (CL_PCH_IGNORE): Define.
25354 * targhooks.c (option_affects_pch_p):
25355 Return false for options that have CL_PCH_IGNORE set.
25356 * opt-functions.awk: Process PchIgnore.
25357 * doc/options.texi: Document PchIgnore.
25358
25359 * config/arc/arc.opt (misize): Add PchIgnore property.
25360
25361 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25362
25363 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25364 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25365 constraint on constants to permit them being loaded into
25366 GENERAL_REGS or BASE_REGS.
25367
25368 2014-03-03 Nick Clifton <nickc@redhat.com>
25369
25370 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
25371 anti-cacnonical alternatives.
25372 (negandhi3_real): New pattern.
25373 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
25374
25375 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25376
25377 * config/avr/avr-mcus.def: Remove atxmega16x1.
25378 * config/avr/avr-tables.opt: Regenerate.
25379 * config/avr/t-multilib: Regenerate.
25380 * doc/avr-mmcu.texi: Regenerate.
25381
25382 2014-03-03 Tobias Grosser <tobias@grosser.es>
25383 Mircea Namolaru <mircea.namolaru@inria.fr>
25384
25385 PR tree-optimization/58028
25386 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
25387 scalar dimensions.
25388
25389 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25390
25391 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
25392 not handled by recognizers.
25393
25394 2014-03-03 Jakub Jelinek <jakub@redhat.com>
25395
25396 PR middle-end/60175
25397 * function.c (expand_function_end): Don't emit
25398 clobber_return_register sequence if clobber_after is a BARRIER.
25399 * cfgexpand.c (construct_exit_block): Append instructions before
25400 return_label to prev_bb.
25401
25402 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25403
25404 * config/rs6000/constraints.md: Document reserved use of "wc".
25405
25406 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25407
25408 PR ipa/60150
25409 * ipa.c (function_and_variable_visibility): When dissolving comdat
25410 group, also set all symbols to local.
25411
25412 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25413
25414 PR ipa/60306
25415
25416 Revert:
25417 2013-12-14 Jan Hubicka <jh@suse.cz>
25418 PR middle-end/58477
25419 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
25420
25421 2014-03-02 Jon Beniston <jon@beniston.com>
25422
25423 PR bootstrap/48230
25424 PR bootstrap/50927
25425 PR bootstrap/52466
25426 PR target/46898
25427 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
25428 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
25429 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
25430 (simple_return, *simple_return): New patterns
25431 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
25432 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
25433
25434 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
25435
25436 * dwarf2out.c (gen_subprogram_die): Tidy.
25437
25438 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
25439
25440 PR target/60071
25441 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
25442 (*mov_t_msb_neg_negc): ... this new insn.
25443
25444 2014-02-28 Jason Merrill <jason@redhat.com>
25445
25446 PR c++/58678
25447 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
25448 function.
25449
25450 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
25451
25452 PR c++/60314
25453 * dwarf2out.c (decltype_auto_die): New static.
25454 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
25455 (gen_type_die_with_usage): Handle 'decltype(auto)'.
25456 (is_cxx_auto): Likewise.
25457
25458 2014-02-28 Ian Bolton <ian.bolton@arm.com>
25459
25460 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
25461 we are not using general regs only.
25462
25463 2014-02-28 Richard Biener <rguenther@suse.de>
25464
25465 PR target/60280
25466 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
25467 previous fix and only allow to remove trivial pre-headers
25468 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
25469 (remove_forwarder_block): Properly update the latch of a loop.
25470
25471 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25472
25473 PR debug/59992
25474 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
25475 (cselib_preserved_hash_table): New.
25476 (preserve_constants_and_equivs): Move preserved vals to it.
25477 (cselib_find_slot): Look it up first.
25478 (cselib_init): Initialize it.
25479 (cselib_finish): Release it.
25480 (dump_cselib_table): Dump it.
25481
25482 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25483
25484 PR debug/59992
25485 * cselib.c (remove_useless_values): Skip to avoid quadratic
25486 behavior if the condition moved from...
25487 (cselib_process_insn): ... here holds.
25488
25489 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25490
25491 PR debug/57232
25492 * var-tracking.c (vt_initialize): Apply the same condition to
25493 preserve the CFA base value.
25494
25495 2014-02-28 Joey Ye <joey.ye@arm.com>
25496
25497 PR target/PR60169
25498 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
25499 if reload in progress or completed.
25500
25501 2014-02-28 Tobias Burnus <burnus@net-b.de>
25502
25503 PR middle-end/60147
25504 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
25505 NAMELIST_DECL.
25506
25507 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
25508
25509 * doc/tm.texi.in (Condition Code Status): Update documention for
25510 relative locations of cc0-setter and cc0-user.
25511
25512 2014-02-27 Jeff Law <law@redhat.com>
25513
25514 PR rtl-optimization/52714
25515 * combine.c (try_combine): When splitting an unrecognized PARALLEL
25516 into two independent simple sets, if I3 is a jump, ensure the
25517 pattern we place into I3 is a (set (pc) ...).
25518
25519 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
25520 Jeff Law <law@redhat.com>
25521
25522 PR rtl-optimization/49847
25523 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
25524 are in different blocks.
25525 * doc/tm.texi (Condition Code Status): Update documention for
25526 relative locations of cc0-setter and cc0-user.
25527
25528 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
25529
25530 PR target/59222
25531 * lra.c (lra_emit_add): Check SUBREG too.
25532
25533 2014-02-27 Andreas Schwab <schwab@suse.de>
25534
25535 * config/m68k/m68k.c (m68k_option_override): Disable
25536 -flive-range-shrinkage for classic m68k.
25537 (m68k_override_options_after_change): Likewise.
25538
25539 2014-02-27 Marek Polacek <polacek@redhat.com>
25540
25541 PR middle-end/59223
25542 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
25543 -Wmaybe-uninitialized.
25544
25545 2014-02-27 Alan Modra <amodra@gmail.com>
25546
25547 PR target/57936
25548 * reload1.c (emit_input_reload_insns): When reload_override_in,
25549 set old to rl->in_reg when rl->in_reg is a subreg.
25550
25551 2014-02-26 Richard Biener <rguenther@suse.de>
25552
25553 PR bootstrap/60343
25554 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
25555
25556 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25557
25558 * common/config/i386/predicates.md (const1256_operand): Remove.
25559 (const2356_operand): New.
25560 (const_1_to_2_operand): Remove.
25561 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25562 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25563 (*avx512pf_gatherpf<mode>sf): Ditto.
25564 (avx512pf_gatherpf<mode>df): Ditto.
25565 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25566 (*avx512pf_gatherpf<mode>df): Ditto.
25567 (avx512pf_scatterpf<mode>sf): Ditto.
25568 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25569 (*avx512pf_scatterpf<mode>sf): Ditto.
25570 (avx512pf_scatterpf<mode>df): Ditto.
25571 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25572 (*avx512pf_scatterpf<mode>df): Ditto.
25573 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
25574
25575 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
25576
25577 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
25578 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
25579 (_mm512_mask_testn_epi64_mask): Move to ...
25580 * config/i386/avx512cdintrin.h: Here.
25581 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
25582 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
25583 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
25584 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
25585 TARGET_AVX512F from TARGET_AVX512CD.
25586
25587 2014-02-26 Richard Biener <rguenther@suse.de>
25588
25589 PR ipa/60327
25590 * ipa.c (walk_polymorphic_call_targets): Properly guard
25591 call to inline_update_overall_summary.
25592
25593 2014-02-26 Bin Cheng <bin.cheng@arm.com>
25594
25595 PR target/60280
25596 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
25597 and latches only if requested. Fix latch if it is removed.
25598 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
25599 LOOPS_HAVE_PREHEADERS.
25600
25601 2014-02-25 Andrew Pinski <apinski@cavium.com>
25602
25603 * builtins.c (expand_builtin_thread_pointer): Create a new target
25604 when the target is NULL.
25605
25606 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
25607
25608 PR rtl-optimization/60317
25609 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25610 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25611 * lra-assigns.c: Include params.h.
25612 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
25613 other reload pseudos considerations.
25614
25615 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25616
25617 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
25618 to use canonical form for nor<mode>3.
25619
25620 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25621
25622 PR target/55426
25623 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
25624 conversions.
25625
25626 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25627
25628 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
25629 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
25630 (ix86_handle_option): Handle OPT_mprefetchwt1.
25631 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
25632 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25633 PREFETCHWT1 CPUID.
25634 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25635 OPTION_MASK_ISA_PREFETCHWT1.
25636 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
25637 (PTA_PREFETCHWT1): New.
25638 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
25639 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
25640 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
25641 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
25642 (*prefetch_avx512pf_<mode>_: Change into ...
25643 (*prefetch_prefetchwt1_<mode>: This.
25644 * config/i386/i386.opt (mprefetchwt1): New.
25645 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25646 (_mm_prefetch): Handle intent to write.
25647 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25648
25649 2014-02-25 Richard Biener <rguenther@suse.de>
25650
25651 PR middle-end/60291
25652 * emit-rtl.c (mem_attrs_htab): Remove.
25653 (mem_attrs_htab_hash): Likewise.
25654 (mem_attrs_htab_eq): Likewise.
25655 (set_mem_attrs): Always allocate new mem-attrs when something changed.
25656 (init_emit_once): Do not allocate mem_attrs_htab.
25657
25658 2014-02-25 Richard Biener <rguenther@suse.de>
25659
25660 PR lto/60319
25661 * lto-opts.c (lto_write_options): Output non-explicit conservative
25662 -fwrapv, -fno-trapv and -fno-strict-overflow.
25663 * lto-wrapper.c (merge_and_complain): Handle merging those options.
25664 (run_gcc): And pass them through.
25665
25666 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25667
25668 * sel-sched.c (calculate_new_fences): New parameter ptime.
25669 Calculate it as a maximum over all fence cycles.
25670 (sel_sched_region_2): Adjust the call to calculate_new_fences.
25671 Print the final schedule timing when sched_verbose.
25672
25673 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25674
25675 PR rtl-optimization/60292
25676 * sel-sched.c (fill_vec_av_set): Do not reset target availability
25677 bit fot the fence instruction.
25678
25679 2014-02-24 Alangi Derick <alangiderick@gmail.com>
25680
25681 * calls.h: Fix typo in comment.
25682
25683 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
25684
25685 * config/pa/pa.c (pa_output_move_double): Don't valididate when
25686 adjusting offsetable addresses.
25687
25688 2014-02-24 Guozhi Wei <carrot@google.com>
25689
25690 * sparseset.h (sparseset_pop): Fix the wrong index.
25691
25692 2014-02-24 Walter Lee <walt@tilera.com>
25693
25694 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25695 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25696 triplet.
25697 * common/config/tilegx/tilegx-common.c
25698 (TARGET_DEFAULT_TARGET_FLAGS): Define.
25699 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25700 (LINK_SPEC): Ditto.
25701 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25702 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25703 (tilegx_gimplify_va_arg_expr): Handle big endian.
25704 (tilegx_expand_unaligned_load): Ditto.
25705 (tilegx_expand_unaligned_store): Ditto.
25706 (TARGET_RETURN_IN_MSB): New.
25707 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25708 (TARGET_ENDIAN_DEFAULT): New.
25709 (TARGET_BIG_ENDIAN): Handle big endian.
25710 (BYTES_BIG_ENDIAN): Ditto.
25711 (WORDS_BIG_ENDIAN): Ditto.
25712 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25713 (ENDIAN_SPEC): New.
25714 (EXTRA_SPECS): New.
25715 * config/tilegx/tilegx.md (extv): Handle big endian.
25716 (extzv): Ditto.
25717 (insn_st<n>): Ditto.
25718 (insn_st<n>_add<bitsuffix>): Ditto.
25719 (insn_stnt<n>): Ditto.
25720 (insn_stnt<n>_add<bitsuffix>):Ditto.
25721 (vec_interleave_highv8qi): Handle big endian.
25722 (vec_interleave_highv8qi_be): New.
25723 (vec_interleave_highv8qi_le): New.
25724 (insn_v1int_h): Handle big endian.
25725 (vec_interleave_lowv8qi): Handle big endian.
25726 (vec_interleave_lowv8qi_be): New.
25727 (vec_interleave_lowv8qi_le): New.
25728 (insn_v1int_l): Handle big endian.
25729 (vec_interleave_highv4hi): Handle big endian.
25730 (vec_interleave_highv4hi_be): New.
25731 (vec_interleave_highv4hi_le): New.
25732 (insn_v2int_h): Handle big endian.
25733 (vec_interleave_lowv4hi): Handle big endian.
25734 (vec_interleave_lowv4hi_be): New.
25735 (vec_interleave_lowv4hi_le): New.
25736 (insn_v2int_l): Handle big endian.
25737 (vec_interleave_highv2si): Handle big endian.
25738 (vec_interleave_highv2si_be): New.
25739 (vec_interleave_highv2si_le): New.
25740 (insn_v4int_h): Handle big endian.
25741 (vec_interleave_lowv2si): Handle big endian.
25742 (vec_interleave_lowv2si_be): New.
25743 (vec_interleave_lowv2si_le): New.
25744 (insn_v4int_l): Handle big endian.
25745 * config/tilegx/tilegx.opt (mbig-endian): New option.
25746 (mlittle-endian): New option.
25747 * doc/install.texi: Document tilegxbe-linux.
25748 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25749
25750 2014-02-24 Martin Jambor <mjambor@suse.cz>
25751
25752 PR ipa/60266
25753 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25754 there are no parameter descriptors.
25755
25756 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
25757
25758 PR rtl-optimization/60268
25759 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25760 initialization to ...
25761 (sched_rgn_init): ... here.
25762 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25763
25764 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25765
25766 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25767 names.
25768
25769 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
25770
25771 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25772 definition.
25773
25774 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25775
25776 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25777 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25778
25779 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25780
25781 * config/microblaze/predicates.md: Add cmp_op predicate.
25782 * config/microblaze/microblaze.md: Add branch_compare instruction
25783 which uses cmp_op predicate and emits cmp insn before branch.
25784 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25785 to microblaze_expand_conditional_branch and consolidate logic.
25786 (microblaze_expand_conditional_branch): emit branch_compare
25787 insn instead of handling cmp op separate from branch insn.
25788
25789 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25790
25791 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25792 to permit subregs.
25793
25794 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25795
25796 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25797 define_insn with define_expand and new define_insn
25798 *altivec_lve<VI_char>x_internal.
25799 (altivec_stve<VI_char>x): Replace define_insn with define_expand
25800 and new define_insn *altivec_stve<VI_char>x_internal.
25801 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25802 prototype.
25803 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25804 lve*x built-ins.
25805 (altivec_expand_stvex_be): New function.
25806
25807 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
25808
25809 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25810 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25811 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25812 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25813
25814 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
25815
25816 PR target/60298
25817 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25818 instead of emit_move_insn.
25819
25820 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25821
25822 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25823 vspltw with vsldoi.
25824 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25825 gen_altivec_vsumsws.
25826
25827 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25828
25829 * config/rs6000/altivec.md (altivec_lvxl): Rename as
25830 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25831 (altivec_lvxl_<mode>): New define_expand incorporating
25832 -maltivec=be semantics where needed.
25833 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25834 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25835 semantics where needed.
25836 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25837 (altivec_stvx_<mode>): New define_expand incorporating
25838 -maltivec=be semantics where needed.
25839 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25840 VM2 iterator instead of V4SI.
25841 (altivec_stvxl_<mode>): New define_expand incorporating
25842 -maltivec=be semantics where needed.
25843 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25844 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25845 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25846 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25847 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25848 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25849 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25850 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25851 ALTIVEC_BUILTIN_STVXL.
25852 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25853 (altivec_expand_stvx_be): Likewise.
25854 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25855 (altivec_expand_lvx_be): Likewise.
25856 (altivec_expand_stvx_be): Likewise.
25857 (altivec_expand_builtin): Add cases for
25858 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25859 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25860 (altivec_init_builtins): Add definitions for
25861 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25862 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25863
25864 2014-02-21 Catherine Moore <clm@codesourcery.com>
25865
25866 * doc/invoke.texi (mvirt, mno-virt): Document.
25867 * config/mips/mips.opt (mvirt): New option.
25868 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25869
25870 2014-02-21 Richard Biener <rguenther@suse.de>
25871
25872 PR tree-optimization/60276
25873 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25874 (STMT_VINFO_MIN_NEG_DIST): New macro.
25875 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25876 STMT_VINFO_MIN_NEG_DIST.
25877 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25878 made for negative dependence distances still hold.
25879
25880 2014-02-21 Richard Biener <rguenther@suse.de>
25881
25882 PR middle-end/60291
25883 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25884 DECL_INITIAL for globals not in the current function context.
25885
25886 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25887
25888 PR tree-optimization/56490
25889 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25890 * tree-ssa-uninit.c: Include params.h.
25891 (compute_control_dep_chain): Add num_calls argument, return false
25892 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25893 num_calls to recursive call.
25894 (find_predicates): Change dep_chain into normal array,
25895 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25896 variable and adjust compute_control_dep_chain caller.
25897 (find_def_preds): Likewise.
25898
25899 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
25900
25901 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25902 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25903
25904 2014-02-21 Nick Clifton <nickc@redhat.com>
25905
25906 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25907 (pushhi1): Likewise.
25908 (popqi1): Add mode to pre_dec.
25909 (pophi1): Likewise.
25910
25911 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25912
25913 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25914 mode for mask of V8SFmode permutation.
25915
25916 2014-02-20 Richard Henderson <rth@redhat.com>
25917
25918 PR c++/60272
25919 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25920 a new pseudo for OLDVAL.
25921
25922 2014-02-20 Jakub Jelinek <jakub@redhat.com>
25923
25924 PR target/57896
25925 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25926 gen_reg_rtx if d->testing_p.
25927 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25928 if d->testing_p and we will certainly return true.
25929 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
25930 if d->testing_p.
25931
25932 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
25933
25934 * emit-rtl.c (gen_reg_rtx): Assert that
25935 crtl->emit.regno_pointer_align_length is non-zero.
25936
25937 2014-02-20 Richard Henderson <rth@redhat.com>
25938
25939 PR c++/60272
25940 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25941 on failure the store back into EXPECT.
25942
25943 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
25944 Sandra Loosemore <sandra@codesourcery.com>
25945
25946 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25947 * config/nios2/nios2.c (nios2_function_profiler): Add
25948 -fPIC (flag_pic == 2) support.
25949 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25950 (nios2_large_offset_p): New function.
25951 (nios2_unspec_reloc_p): Move up position, update to use
25952 nios2_large_offset_p.
25953 (nios2_unspec_address): Remove function.
25954 (nios2_unspec_offset): New function.
25955 (nios2_large_got_address): New function.
25956 (nios2_got_address): Add large offset support.
25957 (nios2_legitimize_tls_address): Update usage of removed and new
25958 functions.
25959 (nios2_symbol_binds_local_p): New function.
25960 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25961 (nios2_legitimize_address): Update to use nios2_large_offset_p.
25962 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25963 (nios2_print_operand): Merge H/L processing, add hiadj/lo
25964 processing for (const (unspec ...)).
25965 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25966
25967 2014-02-20 Richard Biener <rguenther@suse.de>
25968
25969 * tree-cfg.c (replace_uses_by): Mark altered BBs before
25970 doing the substitution.
25971 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25972
25973 2014-02-20 Martin Jambor <mjambor@suse.cz>
25974
25975 PR ipa/55260
25976 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25977 info when checking whether lattices are bottom.
25978
25979 2014-02-20 Richard Biener <rguenther@suse.de>
25980
25981 PR middle-end/60221
25982 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25983 regions at -O0.
25984
25985 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
25986
25987 PR ipa/58555
25988 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25989 parameter specifying the scaling.
25990 (inline_call): Update.
25991 (want_inline_recursively): Guard division by zero.
25992 (recursive_inlining): Update.
25993 * ipa-inline.h (clone_inlined_nodes): Update.
25994
25995 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25996
25997 PR target/60204
25998 * config/i386/i386.c (classify_argument): Pass structures of size
25999 64 bytes or less in register.
26000
26001 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
26002 Kirill Yukhin <kirill.yukhin@intel.com>
26003
26004 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
26005 (_mm_rcp28_round_ss): Ditto.
26006 (_mm_rsqrt28_round_sd): Ditto.
26007 (_mm_rsqrt28_round_ss): Ditto.
26008 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
26009 (_mm_rcp14_round_ss): Ditto.
26010 (_mm_rsqrt14_round_sd): Ditto.
26011 (_mm_rsqrt14_round_ss): Ditto.
26012 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
26013 the first input operand, get rid of match_dup.
26014 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
26015 attribute to sse.
26016 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26017 Ditto.
26018 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
26019 operand as the first input operand, set type attribute.
26020 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26021 Set type attribute.
26022 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
26023 operand as the first input operand, set type attribute.
26024
26025 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26026
26027 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
26028 bit of zero.
26029
26030 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
26031
26032 PR target/60207
26033 * config/i386/i386.c (construct_container): Remove TFmode check
26034 for X86_64_INTEGER_CLASS.
26035
26036 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
26037
26038 PR target/59794
26039 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
26040 only when -Wpsabi is enabled.
26041
26042 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26043
26044 PR target/59799
26045 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26046 passing arrays in registers are the same as for structs, so remove the
26047 special case for them.
26048
26049 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26050
26051 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26052 destination type, extract only the valid bits if the source type is not
26053 integral and has a different mode.
26054
26055 2014-02-19 Richard Biener <rguenther@suse.de>
26056
26057 PR ipa/60243
26058 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26059 for all calls.
26060
26061 2014-02-19 Richard Biener <rguenther@suse.de>
26062
26063 PR ipa/60243
26064 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26065 (ipa_modify_call_arguments): Emit an argument load explicitely and
26066 preserve virtual SSA form there and for the replacement call.
26067 Do not update SSA form nor free dominance info.
26068
26069 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26070
26071 * ipa.c (function_and_variable_visibility): Also clear WEAK
26072 flag when disolving COMDAT_GROUP.
26073
26074 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26075
26076 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26077 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26078 not devirtualizing.
26079 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26080 do more sanity checks.
26081 (detect_type_change): Return true when giving up early.
26082 (compute_complex_assign_jump_func): Fix type parameter of
26083 ipa_set_ancestor_jf.
26084 (compute_complex_ancestor_jump_func): Likewise.
26085 (update_jump_functions_after_inlining): Fix updating of
26086 ancestor function.
26087 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26088
26089 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26090
26091 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26092 inline clones when edge disappears.
26093
26094 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26095
26096 PR target/60203
26097 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26098 Split 64-bit moves into 2 patterns. Do not allow the use of
26099 direct move for TDmode in little endian, since the decimal value
26100 has little endian bytes within a word, but the 64-bit pieces are
26101 ordered in a big endian fashion, and normal subreg's of TDmode are
26102 not allowed.
26103 (mov<mode>_64bit_dm): Likewise.
26104 (movtd_64bit_nodm): Likewise.
26105
26106 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26107
26108 PR tree-optimization/60174
26109 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26110 statement of an SSA_NAME that occurs in an abnormal PHI node.
26111
26112 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26113
26114 PR sanitizer/60142
26115 * final.c (SEEN_BB): Remove.
26116 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26117 (final_scan_insn): Don't force_source_line on second
26118 NOTE_INSN_BASIC_BLOCK.
26119
26120 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26121
26122 PR target/60205
26123 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26124 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26125 (type_natural_mode): Warn ABI change when %zmm register is not
26126 available for AVX512F vector value passing.
26127
26128 2014-02-18 Kai Tietz <ktietz@redhat.com>
26129
26130 PR target/60193
26131 * config/i386/i386.c (ix86_expand_prologue): Use value in
26132 rax register as displacement when restoring %r10 or %rax.
26133 Fix wrong offset when restoring both registers.
26134
26135 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26136
26137 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26138 assertion with conditional return.
26139
26140 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26141 Uros Bizjak <ubizjak@gmail.com>
26142
26143 PR driver/60233
26144 * config/i386/driver-i386.c (host_detect_local_cpu): If
26145 YMM state is not saved by the OS, also clear has_f16c. Move
26146 CPUID 0x80000001 handling before YMM state saving checking.
26147
26148 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26149
26150 PR rtl-optimization/58960
26151 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26152 factored out from ...
26153 (sched_init): ... here.
26154 (free_global_sched_pressure_data): New, factored out from ...
26155 (sched_finish): ... here.
26156 * sched-int.h (free_global_sched_pressure_data): Declare.
26157 * sched-rgn.c (nr_regions_initial): New static global.
26158 (haifa_find_rgns): Initialize it.
26159 (schedule_region): Disable sched-pressure for the newly
26160 generated regions.
26161
26162 2014-02-17 Richard Biener <rguenther@suse.de>
26163
26164 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26165 release SSA defs of pattern stmts.
26166
26167 2014-02-17 Richard Biener <rguenther@suse.de>
26168
26169 * tree-inline.c (expand_call_inline): Release the virtual
26170 operand defined by the call we are about to inline.
26171
26172 2014-02-17 Richard Biener <rguenther@suse.de>
26173
26174 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26175
26176 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26177 Ilya Tocar <ilya.tocar@intel.com>
26178
26179 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26180 arguments order in builtin.
26181 (_mm512_permutexvar_epi64): Ditto.
26182 (_mm512_mask_permutexvar_epi64): Ditto
26183 (_mm512_maskz_permutexvar_epi32): Ditto
26184 (_mm512_permutexvar_epi32): Ditto
26185 (_mm512_mask_permutexvar_epi32): Ditto
26186
26187 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26188
26189 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26190 (p8_vmrgow): Likewise.
26191
26192 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26193
26194 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26195 endian targets.
26196
26197 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26198
26199 PR target/60203
26200 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26201 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26202 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26203 using direct move instructions on ISA 2.07. Also adjust
26204 instruction length for 64-bit.
26205 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26206 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26207
26208 2014-02-15 Alan Modra <amodra@gmail.com>
26209
26210 PR target/58675
26211 PR target/57935
26212 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26213 find_replacement on parts of insn rtl that might be reloaded.
26214
26215 2014-02-15 Richard Biener <rguenther@suse.de>
26216
26217 PR tree-optimization/60183
26218 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26219 (tree_ssa_phiprop): Calculate and free post-dominators.
26220
26221 2014-02-14 Jeff Law <law@redhat.com>
26222
26223 PR rtl-optimization/60131
26224 * ree.c (get_extended_src_reg): New function.
26225 (combine_reaching_defs): Use it rather than assuming location of REG.
26226 (find_and_remove_re): Verify first operand of extension is
26227 a REG before adding the insns to the copy list.
26228
26229 2014-02-14 Roland McGrath <mcgrathr@google.com>
26230
26231 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26232 * configure: Regenerated.
26233 * config.in: Regenerated.
26234 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26235 instead of ASM_SHORT.
26236
26237 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26238 Richard Earnshaw <rearnsha@arm.com>
26239
26240 PR rtl-optimization/59535
26241 * lra-constraints.c (process_alt_operands): Encourage alternative
26242 when unassigned pseudo class is superset of the alternative class.
26243 (inherit_reload_reg): Don't inherit when optimizing for code size.
26244 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26245 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26246 modes not less than 4 for Thumb1.
26247
26248 2014-02-14 Kyle McMartin <kyle@redhat.com>
26249
26250 PR pch/60010
26251 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26252
26253 2014-02-14 Richard Biener <rguenther@suse.de>
26254
26255 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26256 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26257 Do not strip INDIRECT_REFs.
26258
26259 2014-02-14 Richard Biener <rguenther@suse.de>
26260
26261 PR lto/60179
26262 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26263 DECL_FUNCTION_SPECIFIC_TARGET.
26264 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26265 * tree-streamer-out.c (pack_ts_target_option): Remove.
26266 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26267 (write_ts_function_decl_tree_pointers): Do not stream
26268 DECL_FUNCTION_SPECIFIC_TARGET.
26269 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26270 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26271 (lto_input_ts_function_decl_tree_pointers): Do not stream
26272 DECL_FUNCTION_SPECIFIC_TARGET.
26273
26274 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26275
26276 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26277 (get_initial_def_for_induction, vectorizable_induction): Ignore
26278 debug stmts when looking for exit_phi.
26279 (vectorizable_live_operation): Fix up condition.
26280
26281 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26282
26283 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26284 nreverse() because it changes the content of original tree list.
26285
26286 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26287
26288 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26289 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26290
26291 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26292
26293 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26294 GNU coding standards.
26295
26296 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26297
26298 PR debug/60152
26299 * dwarf2out.c (gen_subprogram_die): Don't call
26300 add_calling_convention_attribute if subr_die is old_die.
26301
26302 2014-02-13 Sharad Singhai <singhai@google.com>
26303
26304 * doc/optinfo.texi: Fix order of nodes.
26305
26306 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26307
26308 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26309 operands[2], not operands[3].
26310
26311 2014-02-13 Richard Biener <rguenther@suse.de>
26312
26313 PR bootstrap/59878
26314 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26315 mention the possibility of an in-tree build.
26316 (CLooG): Update recommended version to 0.18.1, mention the
26317 possibility of an in-tree build and clarify that the ISL
26318 bundled with CLooG does not work.
26319
26320 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26321
26322 PR target/43546
26323 * expr.c (compress_float_constant): If x is a hard register,
26324 extend into a pseudo and then move to x.
26325
26326 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26327
26328 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26329 caused by bad second argument to warning_at() with -mhotpatch and
26330 nested functions (e.g. with gfortran).
26331
26332 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26333
26334 * opts.c (option_name): Remove "enabled by default" rider.
26335
26336 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26337
26338 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26339
26340 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26341 Uros Bizjak <ubizjak@gmail.com>
26342
26343 PR target/60151
26344 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26345 * configure: Regenerated.
26346
26347 2014-02-12 Richard Biener <rguenther@suse.de>
26348
26349 * vec.c (vec_prefix::calculate_allocation): Move as
26350 inline variant to vec.h.
26351 (vec_prefix::calculate_allocation_1): New out-of-line version.
26352 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26353 (vec_prefix::m_has_auto_buf): Rename to ...
26354 (vec_prefix::m_using_auto_storage): ... this.
26355 (vec_prefix::calculate_allocation): Inline the easy cases
26356 and dispatch to calculate_allocation_1 which doesn't need the
26357 prefix address.
26358 (va_heap::reserve): Use gcc_checking_assert.
26359 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26360 m_using_auto_storage.
26361 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26362 member and adjust.
26363 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26364 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26365 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26366
26367 2014-02-12 Richard Biener <rguenther@suse.de>
26368
26369 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
26370 when we found a dependence.
26371
26372 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
26373
26374 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
26375 common code...
26376 (maybe_fold_stmt): ... into this new function.
26377 * omp-low.c (lower_omp): Update comment.
26378
26379 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
26380 last use.
26381
26382 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
26383 dereference.
26384
26385 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
26386
26387 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
26388 identifiers in comments.
26389 (cortexa53_extra_costs): Likewise.
26390 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
26391 (cortexa7_extra_costs): Likewise.
26392 (cortexa12_extra_costs): Likewise.
26393 (cortexa15_extra_costs): Likewise.
26394 (v7m_extra_costs): Likewise.
26395
26396 2014-02-12 Richard Biener <rguenther@suse.de>
26397
26398 PR middle-end/60092
26399 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
26400 of posix_memalign being successful.
26401 (lower_stmt): Restrict lowering of posix_memalign to when
26402 -ftree-bit-ccp is enabled.
26403
26404 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26405
26406 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
26407 arg_loc.
26408 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26409
26410 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
26411
26412 PR rtl-optimization/60116
26413 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
26414 other_insn once the combination has been validated.
26415
26416 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
26417
26418 PR lto/59468
26419 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
26420 and wrapper.
26421 * ipa-devirt.c: Include demangle.h
26422 (odr_violation_reported): New static variable.
26423 (add_type_duplicate): Update odr_violations.
26424 (maybe_record_node): Add completep parameter; update it.
26425 (record_target_from_binfo): Add COMPLETEP parameter;
26426 update it as needed.
26427 (possible_polymorphic_call_targets_1): Likewise.
26428 (struct polymorphic_call_target_d): Add nonconstruction_targets;
26429 rename FINAL to COMPLETE.
26430 (record_targets_from_bases): Sanity check we found the binfo;
26431 fix COMPLETEP updating.
26432 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
26433 parameter, fix computing of COMPLETEP.
26434 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
26435 at LTO time do demangling.
26436 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
26437 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
26438 parameter.
26439 (gimple_get_virt_method_for_binfo): Likewise.
26440 * gimple-fold.h (gimple_get_virt_method_for_binfo,
26441 gimple_get_virt_method_for_vtable): Update prototypes.
26442
26443 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
26444
26445 PR target/49008
26446 * genautomata.c (add_presence_absence): Fix typo with
26447 {final_}presence_list.
26448
26449 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26450
26451 PR target/60137
26452 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
26453 for VSX/Altivec vectors that land in GPR registers.
26454
26455 2014-02-11 Richard Henderson <rth@redhat.com>
26456 Jakub Jelinek <jakub@redhat.com>
26457
26458 PR debug/59776
26459 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
26460 around drhs if type conversion to lacc->type is not useless.
26461
26462 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26463
26464 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
26465 tuning struct.
26466 (cortex-a57.cortex-a53): Likewise.
26467 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
26468
26469 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26470
26471 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
26472 arm_restrict_it.
26473
26474 2014-02-11 Renlin Li <Renlin.Li@arm.com>
26475
26476 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
26477 add_options_for_arm_vfp3.
26478
26479 2014-02-11 Jeff Law <law@redhat.com>
26480
26481 PR middle-end/54041
26482 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
26483 object with an undesirable mode.
26484
26485 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26486
26487 PR libgomp/60107
26488 * config/i386/sol2-9.h: New file.
26489 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
26490 *-*-solaris2.9*): Use it.
26491
26492 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26493
26494 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
26495 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
26496
26497 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26498
26499 * config/microblaze/microblaze.c: Extend mcpu version format
26500
26501 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
26502
26503 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
26504
26505 2014-02-10 Richard Henderson <rth@redhat.com>
26506
26507 PR target/59927
26508 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
26509 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
26510 ms-abi vs -mno-accumulate-outgoing-args.
26511 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
26512 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
26513 respect to ms-abi.
26514
26515 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
26516
26517 PR middle-end/60080
26518 * cfgexpand.c (expand_asm_operands): Attach source location to
26519 ASM_INPUT rtx objects.
26520 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
26521
26522 2014-02-10 Nick Clifton <nickc@redhat.com>
26523
26524 * config/mn10300/mn10300.c (popcount): New function.
26525 (mn10300_expand_prologue): Include saved registers in stack usage
26526 count.
26527
26528 2014-02-10 Jeff Law <law@redhat.com>
26529
26530 PR middle-end/52306
26531 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
26532 when changing the SET_DEST of a prior insn to avoid an input reload.
26533
26534 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26535
26536 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
26537 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
26538 -mcall-openbsd, or -mcall-linux.
26539 (CC1_ENDIAN_BIG_SPEC): Remove.
26540 (CC1_ENDIAN_LITTLE_SPEC): Remove.
26541 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26542 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
26543 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
26544 and %cc1_endian_default.
26545 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26546
26547 2014-02-10 Richard Biener <rguenther@suse.de>
26548
26549 PR tree-optimization/60115
26550 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
26551 MEM_REF handling. Properly verify that the accesses are not
26552 out of the objects bound.
26553
26554 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26555
26556 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
26557 coretex to cortex.
26558
26559 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
26560
26561 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
26562 proper constants and fix formatting.
26563 (possible_polymorphic_call_targets): Fix formatting.
26564
26565 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
26566 Ilya Tocar <ilya.tocar@intel.com>
26567
26568 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
26569 (_mm512_loadu_epi32): Renamed into...
26570 (_mm512_loadu_si512): This.
26571 (_mm512_storeu_epi32): Renamed into...
26572 (_mm512_storeu_si512): This.
26573 (_mm512_maskz_ceil_ps): Removed.
26574 (_mm512_maskz_ceil_pd): Ditto.
26575 (_mm512_maskz_floor_ps): Ditto.
26576 (_mm512_maskz_floor_pd): Ditto.
26577 (_mm512_floor_round_ps): Ditto.
26578 (_mm512_floor_round_pd): Ditto.
26579 (_mm512_ceil_round_ps): Ditto.
26580 (_mm512_ceil_round_pd): Ditto.
26581 (_mm512_mask_floor_round_ps): Ditto.
26582 (_mm512_mask_floor_round_pd): Ditto.
26583 (_mm512_mask_ceil_round_ps): Ditto.
26584 (_mm512_mask_ceil_round_pd): Ditto.
26585 (_mm512_maskz_floor_round_ps): Ditto.
26586 (_mm512_maskz_floor_round_pd): Ditto.
26587 (_mm512_maskz_ceil_round_ps): Ditto.
26588 (_mm512_maskz_ceil_round_pd): Ditto.
26589 (_mm512_expand_pd): Ditto.
26590 (_mm512_expand_ps): Ditto.
26591 * config/i386/i386.c (ix86_builtins): Remove
26592 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
26593 (bdesc_args): Ditto.
26594 * config/i386/predicates.md (const1256_operand): New.
26595 (const_1_to_2_operand): Ditto.
26596 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26597 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26598 (*avx512pf_gatherpf<mode>sf): Ditto.
26599 (avx512pf_gatherpf<mode>df): Ditto.
26600 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26601 (*avx512pf_gatherpf<mode>df): Ditto.
26602 (avx512pf_scatterpf<mode>sf): Ditto.
26603 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26604 (*avx512pf_scatterpf<mode>sf): Ditto.
26605 (avx512pf_scatterpf<mode>df): Ditto.
26606 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26607 (*avx512pf_scatterpf<mode>df): Ditto.
26608 (avx512f_expand<mode>): Removed.
26609 (<shift_insn><mode>3<mask_name>): Change predicate type.
26610
26611 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26612
26613 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
26614 not at the end of datarefs vector use ordered_remove to avoid
26615 reordering datarefs vector.
26616
26617 PR c/59984
26618 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
26619 mark local addressable non-static vars as GOVD_PRIVATE
26620 instead of GOVD_LOCAL.
26621 * omp-low.c (lower_omp_for): Move gimple_bind_vars
26622 and BLOCK_VARS of gimple_bind_block to new_stmt rather
26623 than copying them.
26624
26625 PR middle-end/60092
26626 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
26627 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
26628 assume_aligned or alloc_align attributes.
26629 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
26630 arguments. Handle also assume_aligned and alloc_align attributes.
26631 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
26632 calls to functions with assume_aligned or alloc_align attributes.
26633 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
26634
26635 2014-02-08 Terry Guo <terry.guo@arm.com>
26636
26637 * doc/invoke.texi: Document ARM -march=armv7e-m.
26638
26639 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26640
26641 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
26642 flag on __cilkrts_rethrow builtin.
26643
26644 PR ipa/60026
26645 * ipa-cp.c (determine_versionability): Fail at -O0
26646 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26647 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26648
26649 Revert:
26650 2014-02-04 Jakub Jelinek <jakub@redhat.com>
26651
26652 PR ipa/60026
26653 * tree-inline.c (copy_forbidden): Fail for
26654 __attribute__((optimize (0))) functions.
26655
26656 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26657
26658 * varpool.c: Include pointer-set.h.
26659 (varpool_remove_unreferenced_decls): Variables in other partitions
26660 will not be output; be however careful to not lose information
26661 about partitioning.
26662
26663 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26664
26665 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26666 lookup in the vtable constructor.
26667
26668 2014-02-07 Jeff Law <law@redhat.com>
26669
26670 PR target/40977
26671 * config/m68k/m68k.md (ashldi_extsi): Turn into a
26672 define_insn_and_split.
26673
26674 * ipa-inline.c (inline_small_functions): Fix typos.
26675
26676 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26677
26678 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26679 (s390_can_use_return_insn): Declare.
26680 * config/s390/s390.h (EPILOGUE_USES): Define.
26681 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26682 instructions.
26683 (s390_chunkify_start): Handle return JUMP_LABELs.
26684 (s390_early_mach): Emit a main_pool instruction on the entry edge.
26685 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26686 (s390_can_use_return_insn): New functions.
26687 (s390_fix_long_loop_prediction): Handle conditional returns.
26688 (TARGET_SET_UP_BY_PROLOGUE): Define.
26689 * config/s390/s390.md (ANY_RETURN): New code iterator.
26690 (*creturn, *csimple_return, return, simple_return): New patterns.
26691
26692 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26693
26694 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26695 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
26696 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
26697 REG_CFA_RESTORE list when deciding not to restore a register.
26698
26699 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26700
26701 * config/s390/s390.c: Include tree-pass.h and context.h.
26702 (s390_early_mach): New function, split out from...
26703 (s390_emit_prologue): ...here.
26704 (pass_data_s390_early_mach): New pass structure.
26705 (pass_s390_early_mach): New class.
26706 (s390_option_override): Create and register early_mach pass.
26707 Move to end of file.
26708
26709 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26710
26711 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26712 to match for the exit block.
26713
26714 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26715
26716 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26717 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26718 Reject misaligned operands.
26719
26720 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26721
26722 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26723
26724 2014-02-07 Richard Biener <rguenther@suse.de>
26725
26726 PR middle-end/60092
26727 * gimple-low.c (lower_builtin_posix_memalign): New function.
26728 (lower_stmt): Call it to lower posix_memalign in a way
26729 to make alignment info accessible.
26730
26731 2014-02-07 Jakub Jelinek <jakub@redhat.com>
26732
26733 PR c++/60082
26734 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26735 __builtin_setjmp_receiver.
26736
26737 2014-02-07 Richard Biener <rguenther@suse.de>
26738
26739 PR middle-end/60092
26740 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26741 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26742 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26743 Handle BUILT_IN_POSIX_MEMALIGN.
26744 (find_func_clobbers): Likewise.
26745 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26746 (call_may_clobber_ref_p_1): Likewise.
26747
26748 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26749
26750 PR ipa/59918
26751 * ipa-devirt.c (record_target_from_binfo): Remove overactive
26752 sanity check.
26753
26754 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26755
26756 PR ipa/59469
26757 * lto-cgraph.c (lto_output_node): Use
26758 symtab_get_symbol_partitioning_class.
26759 (lto_output_varpool_node): likewise.
26760 (symtab_get_symbol_partitioning_class): Move here from
26761 lto/lto-partition.c
26762 * cgraph.h (symbol_partitioning_class): Likewise.
26763 (symtab_get_symbol_partitioning_class): Declare.
26764
26765 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26766
26767 * ggc.h (ggc_internal_cleared_alloc): New macro.
26768 * vec.h (vec_safe_copy): Handle memory stats.
26769 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26770 * target-globals.c (save_target_globals): Likewise.
26771
26772 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26773
26774 PR target/60077
26775 * expr.c (emit_move_resolve_push): Export; be bit more selective
26776 on when to clear alias set.
26777 * expr.h (emit_move_resolve_push): Declare.
26778 * function.h (struct function): Add tail_call_marked.
26779 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26780 * config/i386/i386-protos.h (ix86_expand_push): Remove.
26781 * config/i386/i386.md (TImode move expander): De not call
26782 ix86_expand_push.
26783 (FP push expanders): Preserve memory attributes.
26784 * config/i386/sse.md (push<mode>1): Remove.
26785 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26786 (ix86_expand_push): Remove.
26787 * config/i386/mmx.md (push<mode>1): Remove.
26788
26789 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26790
26791 PR rtl-optimization/60030
26792 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26793 lopart with paradoxical subreg before shifting it up by hprec.
26794
26795 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26796
26797 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26798 Remove extra newline at end of file.
26799 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26800 (arm_issue_rate): Handle cortexa57.
26801 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26802 (cortex-a57.cortex-a53): Likewise.
26803
26804 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26805
26806 PR target/59575
26807 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26808 don't record in REG_FRAME_RELATED_EXPR registers not set in that
26809 bitmask.
26810 (arm_expand_prologue): Adjust all callers.
26811 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26812 info, registers also at the lowest numbered registers side. Use
26813 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26814 XEXP.
26815
26816 PR debug/59992
26817 * var-tracking.c (adjust_mems): Before adding a SET to
26818 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26819
26820 2014-02-06 Alan Modra <amodra@gmail.com>
26821
26822 PR target/60032
26823 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26824 change SDmode to DDmode when lra_in_progress.
26825
26826 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26827
26828 PR middle-end/59150
26829 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26830 free_data_ref on the dr first, and before goto again also set dr
26831 to the next dr. For simd_lane_access, free old datarefs[i] before
26832 overwriting it. For get_vectype_for_scalar_type failure, don't
26833 free_data_ref if simd_lane_access.
26834
26835 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26836
26837 PR target/60062
26838 * tree.h (opts_for_fn): New inline function.
26839 (opt_for_fn): Define.
26840 * config/i386/i386.c (ix86_function_regparm): Use
26841 opt_for_fn (decl, optimize) instead of optimize.
26842
26843 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
26844
26845 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26846 for SYMBOL_REF in large memory model.
26847
26848 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26849
26850 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26851 and crypto support.
26852 (cortex-a57): Likewise.
26853 (cortex-a57.cortex-a53): Likewise.
26854
26855 2014-02-06 Yury Gribov <y.gribov@samsung.com>
26856 Kugan Vivekanandarajah <kuganv@linaro.org>
26857
26858 * config/arm/arm.c (arm_vector_alignment_reachable): Check
26859 unaligned_access.
26860 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26861
26862 2014-02-06 Richard Biener <rguenther@suse.de>
26863
26864 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26865 set_loop_copy and initialize_original_copy_tables.
26866
26867 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
26868
26869 * config/aarch64/aarch64-simd.md
26870 (aarch64_ashr_simddi): Change QI to SI.
26871
26872 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26873 Jakub Jelinek <jakub@redhat.com>
26874
26875 PR middle-end/60013
26876 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26877 of the dataflow.
26878
26879 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26880
26881 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26882 CODE_FOR_altivec_vpku[hw]um to
26883 CODE_FOR_altivec_vpku[hw]um_direct.
26884 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26885 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26886 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26887 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26888
26889 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26890
26891 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26892 generation for -maltivec=be.
26893 (altivec_vsumsws): Simplify redundant test.
26894
26895 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26896
26897 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26898 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26899 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26900 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26901 gen_altivec_vpkuwum.
26902 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26903 BYTES_BIG_ENDIAN.
26904 (altivec_vpks<VI_char>ss): Likewise.
26905 (altivec_vpks<VI_char>us): Likewise.
26906 (altivec_vpku<VI_char>us): Likewise.
26907 (altivec_vpku<VI_char>um): Likewise.
26908 (altivec_vpku<VI_char>um_direct): New (copy of
26909 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26910 internal use).
26911 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26912 target is little endian and -maltivec=be is not specified.
26913 (*altivec_vupkhs<VU_char>_direct): New (copy of
26914 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26915 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26916 target is little endian and -maltivec=be is not specified.
26917 (*altivec_vupkls<VU_char>_direct): New (copy of
26918 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26919 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26920 little endian and -maltivec=be is not specified.
26921 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26922 little endian and -maltivec=be is not specified.
26923
26924 2014-02-05 Richard Henderson <rth@redhat.com>
26925
26926 PR debug/52727
26927 * combine-stack-adj.c: Revert r206943.
26928 * sched-int.h (struct deps_desc): Add last_args_size.
26929 * sched-deps.c (init_deps): Initialize it.
26930 (sched_analyze_insn): Add OUTPUT dependencies between insns that
26931 contain REG_ARGS_SIZE notes.
26932
26933 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26934
26935 * lto-cgraph.c (asm_nodes_output): Make global.
26936 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26937 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26938 (driver_handle_option): Handle OPT_fwpa.
26939
26940 2014-02-05 Jakub Jelinek <jakub@redhat.com>
26941
26942 PR ipa/59947
26943 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26944 a comment typo and formatting issue. If odr_hash hasn't been
26945 created, return vNULL and set *completep to false.
26946
26947 PR middle-end/57499
26948 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26949 bb with no successors.
26950
26951 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
26952
26953 PR target/59718
26954 * doc/invoke.texi (-march): Clarify documentation for ARM.
26955 (-mtune): Likewise.
26956 (-mcpu): Likewise.
26957
26958 2014-02-05 Richard Biener <rguenther@suse.de>
26959
26960 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26961 when not vectorizing because of too many alias checks.
26962 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26963 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26964
26965 2014-02-05 Nick Clifton <nickc@redhat.com>
26966
26967 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26968 accept extended registers in any mode when compiling for the MN10300.
26969
26970 2014-02-05 Yury Gribov <y.gribov@samsung.com>
26971
26972 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26973 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26974 sanitization attributes.
26975 (can_inline_edge_p): Likewise.
26976 (sanitize_attrs_match_for_inline_p): New function.
26977
26978 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26979
26980 * ipa-prop.c (detect_type_change): Shor circuit testing of
26981 type changes on THIS pointer.
26982
26983 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
26984
26985 PR target/59777
26986 * config/pa/pa.c (legitimize_tls_address): Return original address
26987 if not passed a SYMBOL_REF rtx.
26988 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26989 addresses.
26990 (pa_emit_move_sequence): Simplify TLS source operands.
26991 (pa_legitimate_constant_p): Reject all TLS constants.
26992 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26993 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26994
26995 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26996
26997 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26998 groups when we know they are controlled by LTO.
26999 * varasm.c (default_binds_local_p_1): If object is in other partition,
27000 it will be resolved locally.
27001
27002 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27003
27004 * config/host-linux.c (linux_gt_pch_use_address): Don't
27005 use SSIZE_MAX because it is not always defined.
27006
27007 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
27008
27009 PR bootstrap/59913
27010 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
27011 threshold for pseudo splitting.
27012 (update_ebb_live_info): Process call argument hard registers and
27013 hard registers from insn definition too.
27014 (max_small_class_regs_num): New constant.
27015 (inherit_in_ebb): Update live hard regs through EBBs. Update
27016 reloads_num only for small register classes. Don't split for
27017 outputs of jumps.
27018
27019 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
27020
27021 PR ipa/60058
27022 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
27023 is non-null.
27024
27025 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
27026
27027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
27028 visibility is safe.
27029
27030 2014-02-04 Marek Polacek <polacek@redhat.com>
27031
27032 * gdbinit.in (pel): Define.
27033
27034 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27035
27036 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
27037 behavior.
27038
27039 2014-02-04 Richard Biener <rguenther@suse.de>
27040
27041 PR lto/59723
27042 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27043 in function context local.
27044 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27045 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27046 similar to LTO_imported_decl_ref.
27047
27048 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27049
27050 PR tree-optimization/60002
27051 * cgraphclones.c (build_function_decl_skip_args): Clear
27052 DECL_LANG_SPECIFIC.
27053
27054 PR tree-optimization/60023
27055 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27056 false to gsi_replace.
27057 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27058 has been in some EH region and vec_stmt could throw, add
27059 vec_stmt into the same EH region.
27060 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27061 has no lhs, ignore it.
27062 * internal-fn.c (expand_MASK_LOAD): Likewise.
27063
27064 PR ipa/60026
27065 * tree-inline.c (copy_forbidden): Fail for
27066 __attribute__((optimize (0))) functions.
27067
27068 PR other/58712
27069 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27070 is set, copy one less argument.
27071 (expand_simd_clones): Don't subtract clone_info->inbranch
27072 from simd_clone_struct_alloc argument.
27073
27074 PR rtl-optimization/57915
27075 * recog.c (simplify_while_replacing): If all unary/binary/relational
27076 operation arguments are constant, attempt to simplify those.
27077
27078 PR middle-end/59261
27079 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27080 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27081
27082 2014-02-04 Richard Biener <rguenther@suse.de>
27083
27084 PR tree-optimization/60012
27085 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27086 TBAA disambiguation to all DDRs.
27087
27088 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27089
27090 PR target/59788
27091 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27092 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27093
27094 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27095
27096 PR ipa/59882
27097 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27098
27099 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27100
27101 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27102 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27103
27104 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27105
27106 PR ipa/59831
27107 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27108 to figure out targets of polymorphic calls with known decl.
27109 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27110 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27111 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27112 (get_polymorphic_call_info): ... here.
27113 (get_polymorphic_call_info_from_invariant): New function.
27114
27115 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27116
27117 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27118 lookup via vtable pointer; check for type consistency
27119 and turn inconsitent facts into UNREACHABLE.
27120 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27121 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27122 type inconsistent querries; return UNREACHABLE instead.
27123
27124 2014-02-03 Richard Henderson <rth@twiddle.net>
27125
27126 PR tree-opt/59924
27127 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27128 already processed this node.
27129 (normalize_one_pred_1): Pass along mark_set.
27130 (normalize_one_pred): Create and destroy a pointer_set_t.
27131 (normalize_one_pred_chain): Likewise.
27132
27133 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27134
27135 PR gcov-profile/58602
27136 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27137
27138 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27139
27140 PR ipa/59831
27141 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27142 -fno-devirtualize; try to devirtualize by the knowledge of
27143 virtual table pointer given by aggregate propagation.
27144 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27145 (ipa_print_node_jump_functions): Dump also offset that
27146 is relevant for polymorphic calls.
27147 (determine_known_aggregate_parts): Add arg_type parameter; use it
27148 instead of determining the type from pointer type.
27149 (ipa_compute_jump_functions_for_edge): Update call of
27150 determine_known_aggregate_parts.
27151 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27152 (gimple_get_virt_method_for_binfo): ... here; simplify using
27153 vtable_pointer_value_to_vtable.
27154 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27155 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27156 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27157 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27158 POINTER_PLUS_EXPR.
27159 (vtable_pointer_value_to_binfo): ... here.
27160 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27161
27162 2014-02-03 Teresa Johnson <tejohnson@google.com>
27163
27164 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27165 redef of outer loop index variable.
27166
27167 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27168
27169 PR c++/53017
27170 PR c++/59211
27171 * doc/extend.texi (Function Attributes): Typo.
27172
27173 2014-02-03 Cong Hou <congh@google.com>
27174
27175 PR tree-optimization/60000
27176 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27177 if the vectorized statement is a store. A store statement can only
27178 appear at the end of pattern statements.
27179
27180 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27181
27182 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27183 (ix86_option_override_internal): Default long double to 64-bit for
27184 32-bit Bionic and to 128-bit for 64-bit Bionic.
27185
27186 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27187 TARGET_LONG_DOUBLE_128 is true.
27188 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27189
27190 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27191 (mlong-double-64): Negate -mlong-double-128.
27192 (mlong-double-128): New option.
27193
27194 * config/i386/i386-c.c (ix86_target_macros): Define
27195 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27196
27197 * doc/invoke.texi: Document -mlong-double-128.
27198
27199 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27200
27201 PR rtl-optimization/60024
27202 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27203
27204 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27205
27206 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27207
27208 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27209
27210 PR rtl-optimization/57662
27211 * sel-sched.c (code_motion_path_driver): Do not mark already not
27212 existing blocks in the visiting bitmap.
27213
27214 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27215
27216 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27217 on the insn being emitted.
27218
27219 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27220 Will Deacon <will.deacon@arm.com>
27221
27222 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27223
27224 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27225
27226 * config/arm/arm-tables.opt: Regenerate.
27227
27228 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27229
27230 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27231 for vector types other than V16QImode.
27232 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27233 define_expand, and call altivec_expand_vec_perm_le when producing
27234 code with little endian element order.
27235 (*altivec_vperm_<mode>_internal): New insn having previous
27236 behavior of altivec_vperm_<mode>.
27237 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27238 altivec_expand_vec_perm_le when producing code with little endian
27239 element order.
27240 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27241 behavior of altivec_vperm_<mode>_uns.
27242
27243 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27244
27245 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27246 (altivec_vsumsws): Add handling for -maltivec=be with a little
27247 endian target.
27248 (altivec_vsumsws_direct): New.
27249 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27250 gen_altivec_vsumsws.
27251
27252 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27253
27254 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27255 vtable_pointer_value_to_binfo): New functions.
27256 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27257 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27258
27259 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27260
27261 * config/nios2/nios2.md (load_got_register): Initialize GOT
27262 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27263 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27264
27265 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27266
27267 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27268 preserverd by passthrough, do not propagate the type.
27269
27270 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27271
27272 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27273 (mips_atomic_assign_expand_fenv): New function.
27274 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27275
27276 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27277
27278 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27279 (__builtin_mips_set_fcsr): Likewise.
27280 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27281 MIPS_USI_FTYPE_VOID.
27282 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27283 (mips16_expand_set_fcsr): Likewise.
27284 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27285 (mips16_set_fcsr_stub): Likewise.
27286 (mips16_get_fcsr_one_only_stub): New class.
27287 (mips16_set_fcsr_one_only_stub): Likewise.
27288 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27289 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27290 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27291 (hard_float): New availability predicate.
27292 (mips_builtins): Add get_fcsr and set_fcsr.
27293 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27294 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27295 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27296 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27297 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27298 patterns.
27299
27300 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27301
27302 * config/mips/mips.c (mips_one_only_stub): New class.
27303 (mips_need_mips16_rdhwr_p): Replace with...
27304 (mips16_rdhwr_stub): ...this new variable.
27305 (mips16_stub_call_address): New function.
27306 (mips16_rdhwr_one_only_stub): New class.
27307 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27308 (mips_output_mips16_rdhwr): Delete.
27309 (mips_finish_stub): New function.
27310 (mips_code_end): Use it to handle rdhwr stubs.
27311
27312 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27313
27314 PR target/60017
27315 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27316 when calculating size of integer atomic types.
27317
27318 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27319
27320 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27321
27322 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27323
27324 PR tree-optimization/60003
27325 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27326 * profile.c (branch_prob): Use gimple_call_builtin_p
27327 to check for BUILT_IN_SETJMP_RECEIVER.
27328 * tree-inline.c (copy_bb): Call notice_special_calls.
27329
27330 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27331
27332 PR bootstrap/59985
27333 * lra-constraints.c (process_alt_operands): Update reload_sum only
27334 on the first pass.
27335
27336 2014-01-31 Richard Henderson <rth@redhat.com>
27337
27338 PR middle-end/60004
27339 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27340 until after else_eh is processed.
27341
27342 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27343
27344 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27345 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27346 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27347 in smmintrin.h, remove them.
27348 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27349 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27350 * config/i386/i386.md (ROUND_SAE): Fix value.
27351 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27352 (const48_operand): New.
27353 * config/i386/subst.md (round), (round_expand): Use
27354 const_4_or_8_to_11_operand.
27355 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27356
27357 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27358
27359 * config/i386/constraints.md (Yk): Swap meaning with k.
27360 * config/i386/i386.md (movhi_internal): Change Yk to k.
27361 (movqi_internal): Ditto.
27362 (*k<logic><mode>): Ditto.
27363 (*andhi_1): Ditto.
27364 (*andqi_1): Ditto.
27365 (kandn<mode>): Ditto.
27366 (*<code>hi_1): Ditto.
27367 (*<code>qi_1): Ditto.
27368 (kxnor<mode>): Ditto.
27369 (kortestzhi): Ditto.
27370 (kortestchi): Ditto.
27371 (kunpckhi): Ditto.
27372 (*one_cmplhi2_1): Ditto.
27373 (*one_cmplqi2_1): Ditto.
27374 * config/i386/sse.md (): Change k to Yk.
27375 (avx512f_load<mode>_mask): Ditto.
27376 (avx512f_blendm<mode>): Ditto.
27377 (avx512f_store<mode>_mask): Ditto.
27378 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
27379 (avx512f_storedqu<mode>_mask): Ditto.
27380 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
27381 Ditto.
27382 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
27383 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
27384 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
27385 (avx512f_maskcmp<mode>3): Ditto.
27386 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
27387 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
27388 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
27389 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
27390 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
27391 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
27392 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
27393 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
27394 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
27395 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
27396 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
27397 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
27398 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
27399 (vec_extract_lo_<mode>_maskm): Ditto.
27400 (vec_extract_hi_<mode>_maskm): Ditto.
27401 (avx512f_vternlog<mode>_mask): Ditto.
27402 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
27403 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
27404 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
27405 (avx512f_<code>v8div16qi2_mask): Ditto.
27406 (avx512f_<code>v8div16qi2_mask_store): Ditto.
27407 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
27408 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
27409 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
27410 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
27411 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27412 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27413 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27414 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27415 (avx512cd_maskb_vec_dupv8di): Ditto.
27416 (avx512cd_maskw_vec_dupv16si): Ditto.
27417 (avx512f_vpermi2var<mode>3_maskz): Ditto.
27418 (avx512f_vpermi2var<mode>3_mask): Ditto.
27419 (avx512f_vpermi2var<mode>3_mask): Ditto.
27420 (avx512f_vpermt2var<mode>3_maskz): Ditto.
27421 (*avx512f_gathersi<mode>): Ditto.
27422 (*avx512f_gathersi<mode>_2): Ditto.
27423 (*avx512f_gatherdi<mode>): Ditto.
27424 (*avx512f_gatherdi<mode>_2): Ditto.
27425 (*avx512f_scattersi<mode>): Ditto.
27426 (*avx512f_scatterdi<mode>): Ditto.
27427 (avx512f_compress<mode>_mask): Ditto.
27428 (avx512f_compressstore<mode>_mask): Ditto.
27429 (avx512f_expand<mode>_mask): Ditto.
27430 * config/i386/subst.md (mask): Change k to Yk.
27431 (mask_scalar_merge): Ditto.
27432 (sd): Ditto.
27433
27434 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
27435
27436 * doc/extend.texi (Vector Extensions): Document ?: in C++.
27437
27438 2014-01-31 Richard Biener <rguenther@suse.de>
27439
27440 PR middle-end/59990
27441 * builtins.c (fold_builtin_memory_op): Make sure to not
27442 use a floating-point mode or a boolean or enumeral type for
27443 the copy operation.
27444
27445 2014-01-30 DJ Delorie <dj@redhat.com>
27446
27447 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
27448 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
27449 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
27450 whenever main() has an epilogue.
27451
27452 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27453
27454 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
27455 unused variable "field".
27456 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
27457 (vsx_mergeh_<mode>): Likewise.
27458 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
27459 (altivec_vmrghh): Likewise.
27460 (altivec_vmrghw): Likewise.
27461 (altivec_vmrglb): Likewise.
27462 (altivec_vmrglh): Likewise.
27463 (altivec_vmrglw): Likewise.
27464 (altivec_vspltb): Add missing uses.
27465 (altivec_vsplth): Likewise.
27466 (altivec_vspltw): Likewise.
27467 (altivec_vspltsf): Likewise.
27468
27469 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27470
27471 PR target/59923
27472 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
27473 frame related instructions.
27474
27475 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
27476
27477 PR rtl-optimization/59959
27478 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
27479 any reload of register whose subreg is invalid.
27480
27481 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27482
27483 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
27484 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
27485 Add missing return type - void.
27486
27487 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27488
27489 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
27490 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
27491 remove element index adjustment for endian (now handled in vsx.md
27492 and altivec.md).
27493 (altivec_expand_vec_perm_const): Use
27494 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
27495 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
27496 (vsx_xxspltw_<mode>): Adjust element index for little endian.
27497 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
27498 define_expand and a new define_insn *altivec_vspltb_internal;
27499 adjust for -maltivec=be on a little endian target.
27500 (altivec_vspltb_direct): New.
27501 (altivec_vsplth): Divide into a define_expand and a new
27502 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
27503 little endian target.
27504 (altivec_vsplth_direct): New.
27505 (altivec_vspltw): Divide into a define_expand and a new
27506 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
27507 little endian target.
27508 (altivec_vspltw_direct): New.
27509 (altivec_vspltsf): Divide into a define_expand and a new
27510 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
27511 a little endian target.
27512
27513 2014-01-30 Richard Biener <rguenther@suse.de>
27514
27515 PR tree-optimization/59993
27516 * tree-ssa-forwprop.c (associate_pointerplus): Check we
27517 can propagate form the earlier stmt and avoid the transform
27518 when the intermediate result is needed.
27519
27520 2014-01-30 Alangi Derick <alangiderick@gmail.com>
27521
27522 * README.Portability: Fix typo.
27523
27524 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
27525
27526 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
27527 comparison_operator with ordered_comparison_operator.
27528
27529 2014-01-30 Nick Clifton <nickc@redhat.com>
27530
27531 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
27532 Rename to mn10300_store_multiple_regs.
27533 * config/mn10300/mn10300.c: Likewise.
27534 * config/mn10300/mn10300.md (store_movm): Fix typo: call
27535 store_multiple_regs.
27536 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
27537 Call mn10300_store_multiple_regs.
27538
27539 2014-01-30 Nick Clifton <nickc@redhat.com>
27540 DJ Delorie <dj@redhat.com>
27541
27542 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
27543 %fp 2 to keep registers after it properly word-aligned.
27544 (rl78_alloc_physical_registers_umul): Handle the case where both
27545 input operands are the same.
27546
27547 2014-01-30 Richard Biener <rguenther@suse.de>
27548
27549 PR tree-optimization/59903
27550 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
27551 check properly.
27552
27553 2014-01-30 Jason Merrill <jason@redhat.com>
27554
27555 PR c++/59633
27556 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
27557
27558 PR c++/59645
27559 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
27560
27561 2014-01-30 Richard Biener <rguenther@suse.de>
27562
27563 PR tree-optimization/59951
27564 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
27565
27566 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
27567
27568 PR target/59784
27569 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
27570 SFmode to DFmode case.
27571
27572 2014-01-29 DJ Delorie <dj@redhat.com>
27573
27574 * config/msp430/msp430.opt (-minrt): New.
27575 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
27576 if -minrt given.
27577 (ENDFILE_SPEC): Likewise.
27578
27579 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
27580
27581 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
27582 (estimate_function_body_sizes): Use it.
27583
27584 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
27585
27586 PR c++/58561
27587 * dwarf2out.c (is_cxx_auto): New.
27588 (is_base_type): Use it.
27589 (gen_type_die_with_usage): Likewise.
27590
27591 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27592
27593 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
27594 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
27595 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
27596 -maltivec=be with LE targets.
27597 (vsx_mergeh_<mode>): Likewise.
27598 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
27599 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
27600 (altivec_vmrghb): Replace with define_expand and new
27601 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
27602 (altivec_vmrghb_direct): New define_insn.
27603 (altivec_vmrghh): Replace with define_expand and new
27604 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
27605 (altivec_vmrghh_direct): New define_insn.
27606 (altivec_vmrghw): Replace with define_expand and new
27607 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
27608 (altivec_vmrghw_direct): New define_insn.
27609 (*altivec_vmrghsf): Adjust for endianness.
27610 (altivec_vmrglb): Replace with define_expand and new
27611 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
27612 (altivec_vmrglb_direct): New define_insn.
27613 (altivec_vmrglh): Replace with define_expand and new
27614 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
27615 (altivec_vmrglh_direct): New define_insn.
27616 (altivec_vmrglw): Replace with define_expand and new
27617 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
27618 (altivec_vmrglw_direct): New define_insn.
27619 (*altivec_vmrglsf): Adjust for endianness.
27620 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27621 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27622 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27623 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27624 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27625 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27626 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27627 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27628
27629 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
27630
27631 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
27632 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
27633 whitespace.
27634
27635 2014-01-29 Richard Biener <rguenther@suse.de>
27636
27637 PR tree-optimization/58742
27638 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
27639 associate_pointerplus_align.
27640 (associate_pointerplus_diff): New function.
27641 (associate_pointerplus): Likewise. Call associate_pointerplus_align
27642 and associate_pointerplus_diff.
27643
27644 2014-01-29 Richard Biener <rguenther@suse.de>
27645
27646 * lto-streamer.h (LTO_major_version): Bump to 3.
27647 (LTO_minor_version): Reset to 0.
27648
27649 2014-01-29 Renlin Li <Renlin.Li@arm.com>
27650
27651 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27652 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27653 (arm_file_start): Generate correct asm header for armv7ve.
27654 * config/arm/bpabi.h: Add multilib support for armv7ve.
27655 * config/arm/driver-arm.c: Change the architectures of cortex-a7
27656 and cortex-a15 to armv7ve.
27657 * config/arm/t-aprofile: Add multilib support for armv7ve.
27658 * doc/invoke.texi: Document -march=armv7ve.
27659
27660 2014-01-29 Richard Biener <rguenther@suse.de>
27661
27662 PR tree-optimization/58742
27663 * tree-ssa-forwprop.c (associate_plusminus): Return true
27664 if we changed sth, defer EH cleanup to ...
27665 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
27666 (simplify_mult): New function.
27667
27668 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27669
27670 PR middle-end/59917
27671 PR tree-optimization/59920
27672 * tree.c (build_common_builtin_nodes): Remove
27673 __builtin_setjmp_dispatcher initialization.
27674 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27675 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27676 instead of gsi_after_labels + manually skipping debug stmts.
27677 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27678 ignore bbs with IFN_ABNORMAL_DISPATCHER.
27679 * tree-inline.c (copy_edges_for_bb): Remove
27680 can_make_abnormal_goto argument, instead add abnormal_goto_dest
27681 argument. Ignore computed_goto_p stmts. Don't call
27682 make_abnormal_goto_edges. If a call might need abnormal edges
27683 for non-local gotos, see if it already has an edge to
27684 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27685 with true argument, don't do anything then, otherwise add
27686 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27687 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27688 caller.
27689 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27690 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27691 (lower_stmt): Don't set data->calls_builtin_setjmp.
27692 (lower_builtin_setjmp): Adjust comment.
27693 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27694 * tree-cfg.c (found_computed_goto): Remove.
27695 (factor_computed_gotos): Remove.
27696 (make_goto_expr_edges): Return bool, true for computed gotos.
27697 Don't call make_abnormal_goto_edges.
27698 (build_gimple_cfg): Don't set found_computed_goto, don't call
27699 factor_computed_gotos.
27700 (computed_goto_p): No longer static.
27701 (make_blocks): Don't set found_computed_goto.
27702 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27703 (make_edges): If make_goto_expr_edges returns true, push bb
27704 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27705 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27706 vector. Record mapping between bbs and OpenMP regions if there
27707 are any, adjust make_gimple_omp_edges caller. Call
27708 handle_abnormal_edges.
27709 (make_abnormal_goto_edges): Remove.
27710 * tree-cfg.h (make_abnormal_goto_edges): Remove.
27711 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27712 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27713 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27714 * internal-fn.def (ABNORMAL_DISPATCHER): New.
27715 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27716 filling *region also set *region_idx to (*region)->entry->index.
27717
27718 PR other/58712
27719 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27720 For REGs set ORIGINAL_REGNO.
27721
27722 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
27723
27724 * doc/md.texi: Mention that a target shouldn't implement
27725 vec_widen_(s|u)mul_even/odd pair if it is less efficient
27726 than hi/lo pair.
27727
27728 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27729
27730 PR tree-optimization/59594
27731 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27732 a copy of the datarefs vector rather than the vector itself.
27733
27734 2014-01-28 Jason Merrill <jason@redhat.com>
27735
27736 PR c++/53756
27737 * dwarf2out.c (auto_die): New static.
27738 (gen_type_die_with_usage): Handle C++1y 'auto'.
27739 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27740 on definition.
27741
27742 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
27743
27744 PR target/59672
27745 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27746 (SPEC_X32): Likewise.
27747 (SPEC_64): Likewise.
27748 * config/i386/i386.c (ix86_option_override_internal): Turn off
27749 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27750 for TARGET_16BIT.
27751 (x86_file_start): Output .code16gcc for TARGET_16BIT.
27752 * config/i386/i386.h (TARGET_16BIT): New macro.
27753 (TARGET_16BIT_P): Likewise.
27754 * config/i386/i386.opt: Add m16.
27755 * doc/invoke.texi: Document -m16.
27756
27757 2014-01-28 Jakub Jelinek <jakub@redhat.com>
27758
27759 PR preprocessor/59935
27760 * input.c (location_get_source_line): Bail out on when line number
27761 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27762
27763 2014-01-28 Richard Biener <rguenther@suse.de>
27764
27765 PR tree-optimization/58742
27766 * tree-ssa-forwprop.c (associate_plusminus): Handle
27767 pointer subtraction of the form (T)(P + A) - (T)P.
27768
27769 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27770
27771 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27772 at const_int_cost.
27773
27774 2014-01-28 Richard Biener <rguenther@suse.de>
27775
27776 Revert
27777 2014-01-28 Richard Biener <rguenther@suse.de>
27778
27779 PR rtl-optimization/45364
27780 PR rtl-optimization/59890
27781 * var-tracking.c (local_get_addr_clear_given_value): Handle
27782 already cleared slot.
27783 (val_reset): Handle not allocated local_get_addr_cache.
27784 (vt_find_locations): Use post-order on the inverted CFG.
27785
27786 2014-01-28 Richard Biener <rguenther@suse.de>
27787
27788 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27789
27790 2014-01-28 Richard Biener <rguenther@suse.de>
27791
27792 PR rtl-optimization/45364
27793 PR rtl-optimization/59890
27794 * var-tracking.c (local_get_addr_clear_given_value): Handle
27795 already cleared slot.
27796 (val_reset): Handle not allocated local_get_addr_cache.
27797 (vt_find_locations): Use post-order on the inverted CFG.
27798
27799 2014-01-28 Alan Modra <amodra@gmail.com>
27800
27801 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27802 * configure.ac <recursive call for build != host>: Define
27803 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27804 and LD_FOR_BUILD too.
27805 * configure: Regenerate.
27806
27807 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
27808
27809 * config/i386/i386.c (get_builtin_code_for_version): Separate
27810 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27811 Broadwell from Haswell.
27812
27813 2014-01-27 Steve Ellcey <sellcey@mips.com>
27814
27815 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27816 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27817 * config/mips/mips.c (mips_option_override): Change setting
27818 of TARGET_DSP.
27819 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27820 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27821 Change from Mask to Var.
27822
27823 2014-01-27 Jeff Law <law@redhat.com>
27824
27825 * ipa-inline.c (inline_small_functions): Fix typo.
27826
27827 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
27828
27829 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27830 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27831 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27832 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27833 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27834 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27835 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27836 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27837 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27838 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27839 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27840 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27841 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27842 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27843 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27844 (_mm512_storeu_epi64): Ditto.
27845 (_mm512_cmpge_epi32_mask): Ditto.
27846 (_mm512_cmpge_epu32_mask): Ditto.
27847 (_mm512_cmpge_epi64_mask): Ditto.
27848 (_mm512_cmpge_epu64_mask): Ditto.
27849 (_mm512_cmple_epi32_mask): Ditto.
27850 (_mm512_cmple_epu32_mask): Ditto.
27851 (_mm512_cmple_epi64_mask): Ditto.
27852 (_mm512_cmple_epu64_mask): Ditto.
27853 (_mm512_cmplt_epi32_mask): Ditto.
27854 (_mm512_cmplt_epu32_mask): Ditto.
27855 (_mm512_cmplt_epi64_mask): Ditto.
27856 (_mm512_cmplt_epu64_mask): Ditto.
27857 (_mm512_cmpneq_epi32_mask): Ditto.
27858 (_mm512_cmpneq_epu32_mask): Ditto.
27859 (_mm512_cmpneq_epi64_mask): Ditto.
27860 (_mm512_cmpneq_epu64_mask): Ditto.
27861 (_mm512_expand_pd): Ditto.
27862 (_mm512_expand_ps): Ditto.
27863 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27864 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27865 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27866 * config/i386/i386.c (ix86_builtins): Add
27867 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27868 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27869 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27870 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27871 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27872 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27873 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27874 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27875 IX86_BUILTIN_PMOVUSQW512_MEM.
27876 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27877 __builtin_ia32_pmovsqd512mem_mask,
27878 __builtin_ia32_pmovqd512mem_mask,
27879 __builtin_ia32_pmovusqw512mem_mask,
27880 __builtin_ia32_pmovsqw512mem_mask,
27881 __builtin_ia32_pmovqw512mem_mask,
27882 __builtin_ia32_pmovusdw512mem_mask,
27883 __builtin_ia32_pmovsdw512mem_mask,
27884 __builtin_ia32_pmovdw512mem_mask,
27885 __builtin_ia32_pmovqb512mem_mask,
27886 __builtin_ia32_pmovusqb512mem_mask,
27887 __builtin_ia32_pmovsqb512mem_mask,
27888 __builtin_ia32_pmovusdb512mem_mask,
27889 __builtin_ia32_pmovsdb512mem_mask,
27890 __builtin_ia32_pmovdb512mem_mask.
27891 (bdesc_args): Add __builtin_ia32_expanddf512,
27892 __builtin_ia32_expandsf512.
27893 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27894 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27895 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27896 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27897 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27898 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27899 (avx512f_<code>v8div16qi2_mask_store): This.
27900 (avx512f_expand<mode>): New.
27901
27902 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
27903
27904 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27905 New.
27906 (_mm512_mask_prefetch_i64gather_pd): Ditto.
27907 (_mm512_prefetch_i32scatter_pd): Ditto.
27908 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27909 (_mm512_prefetch_i64scatter_pd): Ditto.
27910 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27911 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27912 (_mm512_mask_prefetch_i64gather_ps): Ditto.
27913 (_mm512_prefetch_i32scatter_ps): Ditto.
27914 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27915 (_mm512_prefetch_i64scatter_ps): Ditto.
27916 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27917 * config/i386/i386-builtin-types.def: Define
27918 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27919 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27920 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27921 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27922 IX86_BUILTIN_SCATTERPFQPD.
27923 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27924 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27925 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27926 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27927 __builtin_ia32_scatterpfqps.
27928 (ix86_expand_builtin): Expand new built-ins.
27929 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27930 fix memory access data type.
27931 (*avx512pf_gatherpf<mode>_mask): Ditto.
27932 (*avx512pf_gatherpf<mode>): Ditto.
27933 (avx512pf_scatterpf<mode>): Ditto.
27934 (*avx512pf_scatterpf<mode>_mask): Ditto.
27935 (*avx512pf_scatterpf<mode>): Ditto.
27936 (GATHER_SCATTER_SF_MEM_MODE): New.
27937 (avx512pf_gatherpf<mode>df): Ditto.
27938 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27939 (*avx512pf_scatterpf<mode>df): Ditto.
27940
27941 2014-01-27 Jakub Jelinek <jakub@redhat.com>
27942
27943 PR bootstrap/59934
27944 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27945 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27946 reached.
27947
27948 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27949
27950 * common/config/arm/arm-common.c
27951 (arm_rewrite_mcpu): Handle multiple names.
27952 * config/arm/arm.h
27953 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27954
27955 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27956
27957 * gimple-builder.h (create_gimple_tmp): Delete.
27958
27959 2014-01-27 Christian Bruel <christian.bruel@st.com>
27960
27961 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27962 words comparisons.
27963
27964 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
27965
27966 * config/pa/pa.md (call): Generate indirect long calls to non-local
27967 functions when outputing 32-bit code.
27968 (call_value): Likewise except for special call to buggy powf function.
27969
27970 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27971 portable runtime and PIC indirect calls.
27972 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27973 and PIC call sequences. Use ldo instead of blr to set return register
27974 in PIC call sequence.
27975
27976 2014-01-25 Walter Lee <walt@tilera.com>
27977
27978 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27979 avoid clobbering a live register.
27980
27981 2014-01-25 Walter Lee <walt@tilera.com>
27982
27983 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27984 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27985 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27986 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27987
27988 2014-01-25 Walter Lee <walt@tilera.com>
27989
27990 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27991 arguments on even registers.
27992 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27993 STACK_BOUNDARY.
27994 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27995 (BIGGEST_ALIGNMENT): Ditto.
27996 (BIGGEST_FIELD_ALIGNMENT): Ditto.
27997
27998 2014-01-25 Walter Lee <walt@tilera.com>
27999
28000 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
28001 insns before bundling.
28002 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
28003
28004 2014-01-25 Walter Lee <walt@tilera.com>
28005
28006 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
28007 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
28008 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
28009
28010 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28011
28012 * config/mips/constraints.md (kl): Delete.
28013 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
28014 define expands, using...
28015 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
28016 instructions for MIPS16.
28017 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
28018 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
28019
28020 2014-01-25 Walter Lee <walt@tilera.com>
28021
28022 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
28023 (clzdi2): Ditto.
28024 (ffsdi2): Ditto.
28025
28026 2014-01-25 Walter Lee <walt@tilera.com>
28027
28028 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
28029 (TARGET_EXPAND_TO_RTL_HOOK): Define.
28030
28031 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
28032
28033 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
28034 Handle XOR.
28035
28036 2014-01-25 Jakub Jelinek <jakub@redhat.com>
28037
28038 * print-rtl.c (in_call_function_usage): New var.
28039 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
28040 EXPR_LIST mode as mode and not as reg note name.
28041
28042 PR middle-end/59561
28043 * cfgloopmanip.c (copy_loop_info): If
28044 loop->warned_aggressive_loop_optimizations, make sure
28045 the flag is set in target loop too.
28046
28047 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28048
28049 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28050 flag_cilkplus.
28051 * builtins.def: Likewise.
28052 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28053 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28054 * ira.c (ira_setup_eliminable_regset): Likewise.
28055 * omp-low.c (gate_expand_omp): Likewise.
28056 (execute_lower_omp): Likewise.
28057 (diagnose_sb_0): Likewise.
28058 (gate_diagnose_omp_blocks): Likewise.
28059 (simd_clone_clauses_extract): Likewise.
28060 (gate): Likewise.
28061
28062 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28063
28064 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28065 correction for little endian...
28066 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28067 here.
28068
28069 2014-01-24 Jeff Law <law@redhat.com>
28070
28071 PR tree-optimization/59919
28072 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28073 for non-returning calls.
28074
28075 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28076
28077 * common/config/aarch64/aarch64-common.c
28078 (aarch64_rewrite_mcpu): Handle multiple names.
28079 * config/aarch64/aarch64.h
28080 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28081
28082 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28083
28084 * input.c (add_file_to_cache_tab): Handle the case where fopen
28085 returns NULL.
28086
28087 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28088
28089 PR target/59929
28090 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28091 from push operand if code of push isn't PRE_DEC.
28092
28093 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28094
28095 PR target/59909
28096 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28097 -mquad-memory-atomic. Update -mquad-memory documentation to say
28098 it is only used for non-atomic loads/stores.
28099
28100 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28101 -mquad-memory or -mquad-memory-atomic switches.
28102
28103 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28104 -mquad-memory-atomic to ISA 2.07 support.
28105
28106 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28107 to separate support of normal quad word memory operations (ldq, stq)
28108 from the atomic quad word memory operations.
28109
28110 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28111 support to separate non-atomic quad word operations from atomic
28112 quad word operations. Disable non-atomic quad word operations in
28113 little endian mode so that we don't have to swap words after the
28114 load and before the store.
28115 (quad_load_store_p): Add comment about atomic quad word support.
28116 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28117 options printed with -mdebug=reg.
28118
28119 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28120 -mquad-memory-atomic as the test for whether we have quad word
28121 atomic instructions.
28122 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28123 or -mp8-vector are used, allow byte/half-word atomic operations.
28124
28125 * config/rs6000/sync.md (load_lockedti): Insure that the address
28126 is a proper indexed or indirect address for the lqarx instruction.
28127 On little endian systems, swap the hi/lo registers after the lqarx
28128 instruction.
28129 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28130 insure the address is valid for the lqarx instruction.
28131 (store_conditionalti): Insure that the address is a proper indexed
28132 or indirect address for the stqcrx. instruction. On little endian
28133 systems, swap the hi/lo registers before doing the stqcrx.
28134 instruction.
28135 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28136 insure the address is valid for the stqcrx. instruction.
28137
28138 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28139 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28140 type of quad memory support is available.
28141
28142 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28143
28144 PR regression/59915
28145 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28146 there is a danger of looping.
28147
28148 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28149
28150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28151 force flag_ira_loop_pressure if set via command line.
28152
28153 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28154
28155 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28156 (ashr_simd): New builtin handling DI mode.
28157 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28158 (aarch64_sshr_simddi): New match pattern.
28159 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28160 (vshrd_n_s64): Likewise.
28161 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28162
28163 2014-01-23 Nick Clifton <nickc@redhat.com>
28164
28165 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28166 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28167 favour of mcu specific scripts.
28168 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28169 430x multilibs.
28170
28171 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28172 Alex Velenko <Alex.Velenko@arm.com>
28173
28174 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28175 (vaddv_s16): Likewise.
28176 (vaddv_s32): Likewise.
28177 (vaddv_u8): Likewise.
28178 (vaddv_u16): Likewise.
28179 (vaddv_u32): Likewise.
28180 (vaddvq_s8): Likewise.
28181 (vaddvq_s16): Likewise.
28182 (vaddvq_s32): Likewise.
28183 (vaddvq_s64): Likewise.
28184 (vaddvq_u8): Likewise.
28185 (vaddvq_u16): Likewise.
28186 (vaddvq_u32): Likewise.
28187 (vaddvq_u64): Likewise.
28188 (vaddv_f32): Likewise.
28189 (vaddvq_f32): Likewise.
28190 (vaddvq_f64): Likewise.
28191 (vmaxv_f32): Likewise.
28192 (vmaxv_s8): Likewise.
28193 (vmaxv_s16): Likewise.
28194 (vmaxv_s32): Likewise.
28195 (vmaxv_u8): Likewise.
28196 (vmaxv_u16): Likewise.
28197 (vmaxv_u32): Likewise.
28198 (vmaxvq_f32): Likewise.
28199 (vmaxvq_f64): Likewise.
28200 (vmaxvq_s8): Likewise.
28201 (vmaxvq_s16): Likewise.
28202 (vmaxvq_s32): Likewise.
28203 (vmaxvq_u8): Likewise.
28204 (vmaxvq_u16): Likewise.
28205 (vmaxvq_u32): Likewise.
28206 (vmaxnmv_f32): Likewise.
28207 (vmaxnmvq_f32): Likewise.
28208 (vmaxnmvq_f64): Likewise.
28209 (vminv_f32): Likewise.
28210 (vminv_s8): Likewise.
28211 (vminv_s16): Likewise.
28212 (vminv_s32): Likewise.
28213 (vminv_u8): Likewise.
28214 (vminv_u16): Likewise.
28215 (vminv_u32): Likewise.
28216 (vminvq_f32): Likewise.
28217 (vminvq_f64): Likewise.
28218 (vminvq_s8): Likewise.
28219 (vminvq_s16): Likewise.
28220 (vminvq_s32): Likewise.
28221 (vminvq_u8): Likewise.
28222 (vminvq_u16): Likewise.
28223 (vminvq_u32): Likewise.
28224 (vminnmv_f32): Likewise.
28225 (vminnmvq_f32): Likewise.
28226 (vminnmvq_f64): Likewise.
28227
28228 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28229
28230 * config/aarch64/aarch64-simd.md
28231 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28232 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28233 (*aarch64_mul3_elt<mode>): Likewise.
28234 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28235 (*aarch64_mul3_elt_to_64v2df): Likewise.
28236 (*aarch64_mla_elt<mode>): Likewise.
28237 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28238 (*aarch64_mls_elt<mode>): Likewise.
28239 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28240 (*aarch64_fma4_elt<mode>): Likewise.
28241 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28242 (*aarch64_fma4_elt_to_64v2df): Likewise.
28243 (*aarch64_fnma4_elt<mode>): Likewise.
28244 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28245 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28246 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28247 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28248 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28249 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28250 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28251 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28252 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28253
28254 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28255
28256 * config/aarch64/aarch64-simd.md
28257 (aarch64_be_checked_get_lane<mode>): New define_expand.
28258 * config/aarch64/aarch64-simd-builtins.def
28259 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28260 New builtin definition.
28261 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28262 Use new safe be builtin.
28263
28264 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28265
28266 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28267 New define_insn.
28268 (aarch64_be_st1<mode>): Likewise.
28269 (aarch_ld1<VALL:mode>): Define_expand modified.
28270 (aarch_st1<VALL:mode>): Likewise.
28271 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28272 (UNSPEC_ST1): Likewise.
28273
28274 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28275
28276 * config/microblaze/microblaze.md: Add trap insn and attribute
28277
28278 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28279
28280 PR preprocessor/58580
28281 * input.h (location_get_source_line): Take an additional line_size
28282 parameter.
28283 (void diagnostics_file_cache_fini): Declare new function.
28284 * input.c (struct fcache): New type.
28285 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28286 New static constants.
28287 (diagnostic_file_cache_init, total_lines_num)
28288 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28289 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28290 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28291 (get_next_line, read_next_line, goto_next_line, read_line_num):
28292 New static function definitions.
28293 (diagnostic_file_cache_fini): New function.
28294 (location_get_source_line): Take an additional output line_len
28295 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28296 read_line_num.
28297 * diagnostic.c (diagnostic_finish): Call
28298 diagnostic_file_cache_fini.
28299 (adjust_line): Take an additional input parameter for the length
28300 of the line, rather than calculating it with strlen.
28301 (diagnostic_show_locus): Adjust the use of
28302 location_get_source_line and adjust_line with respect to their new
28303 signature. While displaying a line now, do not stop at the first
28304 null byte. Rather, display the zero byte as a space and keep
28305 going until we reach the size of the line.
28306 * Makefile.in: Add vec.o to OBJS-libcommon
28307
28308 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28309 Ilya Tocar <ilya.tocar@intel.com>
28310
28311 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28312 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28313 (__builtin_ia32_kmov16): Ditto.
28314 * config/i386/i386.md (UNSPEC_KMOV): New.
28315 (kmovw): Ditto.
28316
28317 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28318
28319 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28320 (_mm512_storeu_si512): Ditto.
28321
28322 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28323
28324 PR target/52125
28325 * rtl.h (get_referenced_operands): Declare.
28326 * recog.c (get_referenced_operands): New function.
28327 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28328 operands have been referenced when recording LO_SUM references.
28329
28330 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28331
28332 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28333
28334 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28335
28336 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28337 Enable for generic and recent AMD targets.
28338
28339 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28340
28341 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28342 ARG_SIZE note when adjustment was eliminated.
28343
28344 2014-01-22 Jeff Law <law@redhat.com>
28345
28346 PR tree-optimization/59597
28347 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28348 in file. Accept new argument REGISTERING and use it to modify
28349 dump output appropriately.
28350 (register_jump_thread): Corresponding changes.
28351 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28352 thread paths involving joiner blocks. Add code to dump cancelled
28353 jump threading paths.
28354
28355 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28356
28357 PR rtl-optimization/59477
28358 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28359 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28360
28361 2014-01-22 Tom Tromey <tromey@redhat.com>
28362
28363 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28364 PARAMS.
28365 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28366
28367 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28368
28369 PR rtl-optimization/59896
28370 * lra-constraints.c (process_alt_operands): Check unused note for
28371 matched operands of insn with no output reloads.
28372
28373 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
28374
28375 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
28376 (mips_move_from_gpr_cost): Likewise.
28377
28378 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28379
28380 PR rtl-optimization/59858
28381 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
28382 ira_class_hard_regs_num.
28383 (process_alt_operands): Increase reject for dying matched operand.
28384
28385 2014-01-21 Jakub Jelinek <jakub@redhat.com>
28386
28387 PR target/59003
28388 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
28389 smaller than size, perform several stores or loads and stores
28390 at dst + count - size to store or copy all of size bytes, rather
28391 than just last modesize bytes.
28392
28393 2014-01-20 DJ Delorie <dj@redhat.com>
28394
28395 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
28396 that CLOBBERs are REGs before propogating their values.
28397
28398 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
28399
28400 PR middle-end/59789
28401 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
28402 (cgraph_inline_failed_type): New function.
28403 * cgraph.h (DEFCIFCODE): Add type.
28404 (cgraph_inline_failed_type_t): New enum.
28405 (cgraph_inline_failed_type): New prototype.
28406 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
28407 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28408 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
28409 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
28410 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
28411 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
28412 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
28413 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
28414 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
28415 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
28416 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
28417 OPTIMIZATION_MISMATCH.
28418 * tree-inline.c (expand_call_inline): Emit errors during
28419 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
28420
28421 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28422
28423 PR target/59685
28424 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
28425 mode attribute in insn output.
28426
28427 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
28428
28429 * output.h (output_constant): Delete.
28430 * varasm.c (output_constant): Make private.
28431
28432 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
28433
28434 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
28435
28436 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28437
28438 PR middle-end/59860
28439 * tree.h (fold_builtin_strcat): New prototype.
28440 * builtins.c (fold_builtin_strcat): No longer static. Add len
28441 argument, if non-NULL, don't call c_strlen. Optimize
28442 directly into __builtin_memcpy instead of __builtin_strcpy.
28443 (fold_builtin_2): Adjust fold_builtin_strcat caller.
28444 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
28445
28446 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28447
28448 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28449 for SImode_address_operand operands, having only a REG argument.
28450
28451 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
28452
28453 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
28454 loader name using mbig-endian.
28455 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
28456
28457 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28458
28459 * doc/invoke.texi (-march): Clarify documentation for AArch64.
28460 (-mtune): Likewise.
28461 (-mcpu): Likewise.
28462
28463 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
28464
28465 * config/aarch64/aarch64-protos.h
28466 (aarch64_cannot_change_mode_class_ptr): Declare.
28467 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
28468 aarch64_cannot_change_mode_class_ptr): New.
28469 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
28470 backend hook aarch64_cannot_change_mode_class.
28471
28472 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28473
28474 * common/config/aarch64/aarch64-common.c
28475 (aarch64_handle_option): Don't handle any option order logic here.
28476 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
28477 selected_cpu, warn on architecture version mismatch.
28478 (aarch64_override_options): Fix parsing order for option strings.
28479
28480 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28481 Iain Sandoe <iain@codesourcery.com>
28482
28483 PR bootstrap/59496
28484 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
28485 warning. Amend comment to reflect current functionality.
28486
28487 2014-01-20 Richard Biener <rguenther@suse.de>
28488
28489 PR middle-end/59860
28490 * builtins.c (fold_builtin_strcat): Remove case better handled
28491 by tree-ssa-strlen.c.
28492
28493 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
28494
28495 * config/aarch64/aarch64.opt
28496 (mcpu, march, mtune): Make case-insensitive.
28497
28498 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28499
28500 PR target/59880
28501 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28502 if operands[1] is a REG or ZERO_EXTEND of a REG.
28503
28504 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
28505
28506 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
28507
28508 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
28509
28510 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
28511 long non-pic millicode calls.
28512
28513 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28514
28515 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
28516
28517 2014-01-19 Kito Cheng <kito@0xlab.org>
28518
28519 * builtins.c (expand_movstr): Check movstr expand done or fail.
28520
28521 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28522 H.J. Lu <hongjiu.lu@intel.com>
28523
28524 PR target/59379
28525 * config/i386/i386.md (*lea<mode>): Zero-extend return register
28526 to DImode for zero-extended addresses.
28527
28528 2014-01-19 Jakub Jelinek <jakub@redhat.com>
28529
28530 PR rtl-optimization/57763
28531 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
28532 on the new indirect jump_insn and increment LABEL_NUSES (label).
28533
28534 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
28535
28536 PR bootstrap/59580
28537 PR bootstrap/59583
28538 * config.gcc (x86_archs): New variable.
28539 (x86_64_archs): Likewise.
28540 (x86_cpus): Likewise.
28541 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
28542 --with-arch/--with-cpu= options.
28543 Support --with-arch=/--with-cpu={nehalem,westmere,
28544 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
28545
28546 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28547
28548 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
28549 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
28550
28551 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28552
28553 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
28554
28555 2014-01-18 Jakub Jelinek <jakub@redhat.com>
28556
28557 PR target/58944
28558 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
28559 clear cpp_get_options (parse_in)->warn_unused_macros for
28560 ix86_target_macros_internal with cpp_define.
28561
28562 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
28563
28564 * jump.c (delete_related_insns): Keep (use (insn))s.
28565 * reorg.c (redundant_insn): Check for barriers too.
28566
28567 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28568
28569 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
28570
28571 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
28572
28573 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
28574 call to $$dyncall when TARGET_LONG_CALLS is true.
28575
28576 2014-01-17 Jeff Law <law@redhat.com>
28577
28578 * ree.c (combine_set_extension): Temporarily disable test for
28579 changing number of hard registers.
28580
28581 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28582
28583 PR middle-end/58125
28584 * ipa-inline-analysis.c (inline_free_summary):
28585 Do not free summary of aliases.
28586
28587 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28588
28589 PR middle-end/59706
28590 * gimplify.c (gimplify_expr): Use create_tmp_var
28591 instead of create_tmp_var_raw. If cond doesn't have
28592 integral type, don't add the IFN_ANNOTATE builtin at all.
28593
28594 2014-01-17 Martin Jambor <mjambor@suse.cz>
28595
28596 PR ipa/59736
28597 * ipa-cp.c (prev_edge_clone): New variable.
28598 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
28599 Also resize prev_edge_clone vector.
28600 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
28601 (ipcp_edge_removal_hook): New function.
28602 (ipcp_driver): Register ipcp_edge_removal_hook.
28603
28604 2014-01-17 Andrew Pinski <apinski@cavium.com>
28605 Steve Ellcey <sellcey@mips.com>
28606
28607 PR target/59462
28608 * config/mips/mips.c (mips_print_operand): Check operand mode instead
28609 of operator mode.
28610
28611 2014-01-17 Jeff Law <law@redhat.com>
28612
28613 PR middle-end/57904
28614 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
28615 so that pass_ccp runs first.
28616
28617 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28618
28619 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
28620 (ix86_adjust_cost): Use !TARGET_XXX.
28621 (do_reorder_for_imul): Likewise.
28622 (swap_top_of_ready_list): Likewise.
28623 (ix86_sched_reorder): Likewise.
28624
28625 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28626
28627 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28628 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
28629 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
28630 (intel_memset): New. Duplicate slm_memset.
28631 (intel_cost): New. Duplicate slm_cost.
28632 (m_INTEL): New macro.
28633 (processor_target_table): Add "intel".
28634 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
28635 with PROCESSOR_INTEL for "intel".
28636 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
28637 PROCESSOR_SILVERMONT.
28638 (ix86_issue_rate): Likewise.
28639 (ix86_adjust_cost): Likewise.
28640 (ia32_multipass_dfa_lookahead): Likewise.
28641 (swap_top_of_ready_list): Likewise.
28642 (ix86_sched_reorder): Likewise.
28643 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
28644 instead of TARGET_OPT_AGU.
28645 * config/i386/i386.h (TARGET_INTEL): New.
28646 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28647 (processor_type): Add PROCESSOR_INTEL.
28648 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28649 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28650
28651 2014-01-17 Marek Polacek <polacek@redhat.com>
28652
28653 PR c/58346
28654 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28655 size is zero.
28656
28657 2014-01-17 Richard Biener <rguenther@suse.de>
28658
28659 PR tree-optimization/46590
28660 * opts.c (default_options_table): Add entries for
28661 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28662 all enabled at -O1 but not for -Og.
28663 * common.opt (fbranch-count-reg): Remove Init(1).
28664 (fmove-loop-invariants): Likewise.
28665 (ftree-pta): Likewise.
28666
28667 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28668
28669 * config/i386/i386.c (ix86_data_alignment): For compatibility with
28670 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28671 decls to at least the GCC 4.8 used alignments.
28672
28673 PR fortran/59440
28674 * tree-nested.c (convert_nonlocal_reference_stmt,
28675 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28676 of GIMPLE_BIND stmts, adjust associated decls.
28677
28678 2014-01-17 Richard Biener <rguenther@suse.de>
28679
28680 PR tree-optimization/46590
28681 * vec.h (vec<>::bseach): New member function implementing
28682 binary search according to C89 bsearch.
28683 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28684 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28685 bitmap pointer again. Make accesses_in_loop a flat array.
28686 (mem_ref_obstack): New global.
28687 (outermost_indep_loop): Adjust for mem_ref->stored changes.
28688 (mark_ref_stored): Likewise.
28689 (ref_indep_loop_p_2): Likewise.
28690 (set_ref_stored_in_loop): New helper function.
28691 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28692 (memref_free): Adjust.
28693 (record_mem_ref_loc): Simplify.
28694 (gather_mem_refs_stmt): Adjust.
28695 (sort_locs_in_loop_postorder_cmp): New function.
28696 (analyze_memory_references): Sort accesses_in_loop after
28697 loop postorder number.
28698 (find_ref_loc_in_loop_cmp): New function.
28699 (for_all_locs_in_loop): Find relevant cluster of locs in
28700 accesses_in_loop and iterate without recursion.
28701 (execute_sm): Avoid uninit warning.
28702 (struct ref_always_accessed): Simplify.
28703 (ref_always_accessed::operator ()): Likewise.
28704 (ref_always_accessed_p): Likewise.
28705 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28706 loop postorder numbers here.
28707 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28708 numbers.
28709
28710 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28711
28712 PR c++/57945
28713 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28714 on decls for which assemble_alias has been called.
28715
28716 2014-01-17 Nick Clifton <nickc@redhat.com>
28717
28718 * config/msp430/msp430.opt: (mcpu): New option.
28719 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28720 (msp430_option_override): Parse target_cpu. If the MCU name
28721 matches a generic string, clear target_mcu.
28722 (msp430_attr): Allow numeric interrupt values up to 63.
28723 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28724 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28725 option.
28726 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28727 Add mcpu matches.
28728 * config/msp430/msp430.md (popm): Use %J rather than %I.
28729 (addsi3): Use msp430_nonimmediate_operand for operand 2.
28730 (addhi_cy_i): Use immediate_operand for operand 2.
28731 * doc/invoke.texi: Document -mcpu option.
28732
28733 2014-01-17 Richard Biener <rguenther@suse.de>
28734
28735 PR rtl-optimization/38518
28736 * df.h (df_analyze_loop): Declare.
28737 * df-core.c: Include cfgloop.h.
28738 (df_analyze_1): Split out main part of df_analyze.
28739 (df_analyze): Adjust.
28740 (loop_inverted_post_order_compute): New function.
28741 (loop_post_order_compute): Likewise.
28742 (df_analyze_loop): New function avoiding whole-function
28743 postorder computes.
28744 * loop-invariant.c (find_defs): Use df_analyze_loop.
28745 (find_invariants): Adjust.
28746 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28747
28748 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
28749
28750 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28751 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28752
28753 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28754
28755 * ipa-ref.c (ipa_remove_stmt_references): Fix references
28756 traversal when removing references.
28757
28758 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
28759
28760 PR ipa/59775
28761 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28762
28763 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
28764
28765 PR middle-end/56791
28766 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28767 pushing a reload for an autoinc when we had previously reloaded an
28768 inner part of the address.
28769
28770 2014-01-16 Jakub Jelinek <jakub@redhat.com>
28771
28772 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28773 field.
28774 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28775 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28776 when not giving up or versioning for alias only because of
28777 loop->safelen.
28778 (vect_analyze_data_ref_dependences): Set to true.
28779 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28780 is a GIMPLE_PHI.
28781 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28782 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28783 to the condition.
28784
28785 PR middle-end/58344
28786 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28787
28788 PR target/59839
28789 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28790 operand 0 predicate for gathers, use a new pseudo as subtarget.
28791
28792 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28793
28794 PR middle-end/59609
28795 * lra-constraints.c (process_alt_operands): Add printing debug info.
28796 Check absence of input/output reloads for matched operands too.
28797
28798 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28799
28800 PR rtl-optimization/59835
28801 * ira.c (ira_init_register_move_cost): Increase cost for
28802 impossible modes.
28803
28804 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
28805
28806 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28807
28808 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
28809
28810 PR target/59780
28811 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28812 non-register objects. Use gen_(high/low)part more consistently.
28813 Fix assertions.
28814
28815 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
28816
28817 PR target/59844
28818 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28819 endian support, remove tests for WORDS_BIG_ENDIAN.
28820 (p8_mfvsrd_3_<mode>): Likewise.
28821 (reload_gpr_from_vsx<mode>): Likewise.
28822 (reload_gpr_from_vsxsf): Likewise.
28823 (p8_mfvsrd_4_disf): Likewise.
28824
28825 2014-01-16 Richard Biener <rguenther@suse.de>
28826
28827 PR rtl-optimization/46590
28828 * lcm.c (compute_antinout_edge): Use postorder iteration.
28829 (compute_laterin): Use inverted postorder iteration.
28830
28831 2014-01-16 Nick Clifton <nickc@redhat.com>
28832
28833 PR middle-end/28865
28834 * varasm.c (output_constant): Return the number of bytes actually
28835 emitted.
28836 (output_constructor_array_range): Update the field size with the
28837 number of bytes emitted by output_constant.
28838 (output_constructor_regular_field): Likewise. Also do not
28839 complain if the total number of bytes emitted is now greater
28840 than the expected fieldpos.
28841 * output.h (output_constant): Update prototype and descriptive comment.
28842
28843 2014-01-16 Marek Polacek <polacek@redhat.com>
28844
28845 PR middle-end/59827
28846 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28847 it is error_mark_node.
28848
28849 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
28850
28851 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28852 VALID_AVX256_REG_OR_OI_MODE.
28853
28854 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
28855
28856 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28857 current procedure should be profiled.
28858
28859 2014-01-15 Andrew Pinski <apinski@cavium.com>
28860
28861 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28862 of moving from/to the STACK_REG register class.
28863
28864 2014-01-15 Richard Henderson <rth@redhat.com>
28865
28866 PR debug/54694
28867 * reginfo.c (global_regs_decl): Globalize.
28868 * rtl.h (global_regs_decl): Declare.
28869 * ira.c (do_reload): Diagnose frame_pointer_needed and it
28870 reserved via global_regs.
28871
28872 2014-01-15 Teresa Johnson <tejohnson@google.com>
28873
28874 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28875
28876 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
28877
28878 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28879 and vmulosh rather than call gen_vec_widen_smult_*.
28880 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28881 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28882 (vec_widen_smult_even_v16qi): Likewise.
28883 (vec_widen_umult_even_v8hi): Likewise.
28884 (vec_widen_smult_even_v8hi): Likewise.
28885 (vec_widen_umult_odd_v16qi): Likewise.
28886 (vec_widen_smult_odd_v16qi): Likewise.
28887 (vec_widen_umult_odd_v8hi): Likewise.
28888 (vec_widen_smult_odd_v8hi): Likewise.
28889 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28890 vmuloub rather than call gen_vec_widen_umult_*.
28891 (vec_widen_umult_lo_v16qi): Likewise.
28892 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28893 vmulosb rather than call gen_vec_widen_smult_*.
28894 (vec_widen_smult_lo_v16qi): Likewise.
28895 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28896 rather than call gen_vec_widen_umult_*.
28897 (vec_widen_umult_lo_v8hi): Likewise.
28898 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28899 rather than call gen_vec_widen_smult_*.
28900 (vec_widen_smult_lo_v8hi): Likewise.
28901
28902 2014-01-15 Jeff Law <law@redhat.com>
28903
28904 PR tree-optimization/59747
28905 * ree.c (find_and_remove_re): Properly handle case where a second
28906 eliminated extension requires widening a copy created for elimination
28907 of a prior extension.
28908 (combine_set_extension): Ensure that the number of hard regs needed
28909 for a destination register does not change when we widen it.
28910
28911 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
28912
28913 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28914 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28915 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28916 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28917 (avr-*-rtems*): Likewise.
28918 (bfin*-rtems*): Likewise.
28919 (moxie-*-rtems*): Likewise.
28920 (h8300-*-rtems*): Likewise.
28921 (i[34567]86-*-rtems*): Likewise.
28922 (lm32-*-rtems*): Likewise.
28923 (m32r-*-rtems*): Likewise.
28924 (m68k-*-rtems*): Likewise.
28925 (microblaze*-*-rtems*): Likewise.
28926 (mips*-*-rtems*): Likewise.
28927 (powerpc-*-rtems*): Likewise.
28928 (sh-*-rtems*): Likewise.
28929 (sparc-*-rtems*): Likewise.
28930 (sparc64-*-rtems*): Likewise.
28931 (v850-*-rtems*): Likewise.
28932 (m32c-*-rtems*): Likewise.
28933
28934 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
28935
28936 PR rtl-optimization/59511
28937 * ira.c (ira_init_register_move_cost): Use memory costs for some
28938 cases of register move cost calculations.
28939 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28940 instead of BB frequency.
28941 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28942 * lra-assigns.c (find_hard_regno_for): Ditto.
28943
28944 2014-01-15 Richard Biener <rguenther@suse.de>
28945
28946 PR tree-optimization/59822
28947 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28948 (vectorizable_load): Use it to hoist defs of uses of invariant
28949 loads out of the loop.
28950
28951 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
28952 Kugan Vivekanandarajah <kuganv@linaro.org>
28953
28954 PR target/59695
28955 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28956 truncation.
28957
28958 2014-01-15 Richard Biener <rguenther@suse.de>
28959
28960 PR rtl-optimization/59802
28961 * lcm.c (compute_available): Use inverted postorder to seed
28962 the initial worklist.
28963
28964 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28965
28966 PR target/59803
28967 * config/s390/s390.c (s390_preferred_reload_class): Don't return
28968 ADDR_REGS for invalid symrefs in non-PIC code.
28969
28970 2014-01-15 Jakub Jelinek <jakub@redhat.com>
28971
28972 PR other/58712
28973 * builtins.c (determine_block_size): Initialize *probable_max_size
28974 even if len_rtx is CONST_INT.
28975
28976 2014-01-14 Andrew Pinski <apinski@cavium.com>
28977
28978 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28979 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28980 (cortexa53_tunings): Likewise.
28981 (aarch64_sched_issue_rate): New function.
28982 (TARGET_SCHED_ISSUE_RATE): Define.
28983
28984 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28985
28986 * ira-costs.c (find_costs_and_classes): Add missed
28987 ira_init_register_move_cost_if_necessary.
28988
28989 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28990
28991 PR target/59787
28992 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28993
28994 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
28995
28996 PR target/59794
28997 * config/i386/i386.c (type_natural_mode): Add a bool parameter
28998 to indicate if type is used for function return value. Warn ABI
28999 change if the vector mode isn't available for function return value.
29000 (ix86_function_arg_advance): Pass false to type_natural_mode.
29001 (ix86_function_arg): Likewise.
29002 (ix86_gimplify_va_arg): Likewise.
29003 (function_arg_32): Don't warn ABI change.
29004 (ix86_function_value): Pass true to type_natural_mode.
29005 (ix86_return_in_memory): Likewise.
29006 (ix86_struct_value_rtx): Removed.
29007 (TARGET_STRUCT_VALUE_RTX): Likewise.
29008
29009 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29010
29011 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
29012 converting a conditional jump into a conditional return.
29013
29014 2014-01-14 Richard Biener <rguenther@suse.de>
29015
29016 PR tree-optimization/58921
29017 PR tree-optimization/59006
29018 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
29019 hoisting invariant stmts.
29020 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
29021 invariant loads on the preheader edge if possible.
29022
29023 2014-01-14 Joey Ye <joey.ye@arm.com>
29024
29025 * doc/plugin.texi (Building GCC plugins): Update to C++.
29026
29027 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
29028
29029 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
29030 (_mm_rcp28_round_ss): Ditto.
29031 (_mm_rsqrt28_round_sd): Ditto.
29032 (_mm_rsqrt28_round_ss): Ditto.
29033 (_mm_rcp28_sd): Ditto.
29034 (_mm_rcp28_ss): Ditto.
29035 (_mm_rsqrt28_sd): Ditto.
29036 (_mm_rsqrt28_ss): Ditto.
29037 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
29038 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
29039 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
29040 (IX86_BUILTIN_RCP28SD): Ditto.
29041 (IX86_BUILTIN_RCP28SS): Ditto.
29042 (IX86_BUILTIN_RSQRT28SD): Ditto.
29043 (IX86_BUILTIN_RSQRT28SS): Ditto.
29044 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29045 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29046 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29047 (ix86_expand_special_args_builtin): Expand new FTYPE.
29048 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29049 (srcp14<mode>): Make insn unary.
29050 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29051 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29052 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29053 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29054 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29055 Fix rounding: make it SAE only.
29056 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29057 Ditto.
29058 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29059 Ditto.
29060 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29061 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29062 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29063 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29064 (round_saeonly_mask_scalar_operand4): Ditto.
29065 (round_saeonly_mask_scalar_op3): Ditto.
29066 (round_saeonly_mask_scalar_op4): Ditto.
29067
29068 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29069
29070 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29071 Implement -maltivec=be for vec_insert and vec_extract.
29072
29073 2014-01-10 DJ Delorie <dj@redhat.com>
29074
29075 * config/msp430/msp430.md (call_internal): Don't allow memory
29076 references with SP as the base register.
29077 (call_value_internal): Likewise.
29078 * config/msp430/constraints.md (Yc): New. For memory references
29079 that don't use SP as a base register.
29080
29081 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29082 "an integer without a # prefix"
29083 * config/msp430/msp430.md (epilogue_helper): Use it.
29084
29085 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29086
29087 PR target/59617
29088 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29089 AVX512F gather builtins.
29090 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29091 on gather decls with INTEGER_TYPE masktype.
29092 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29093 directly into the builtin rather than hoisting it before loop.
29094
29095 PR tree-optimization/59387
29096 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29097 (scev_const_prop): If folded_casts and type has undefined overflow,
29098 use force_gimple_operand instead of force_gimple_operand_gsi and
29099 for each added stmt if it is assign with
29100 arith_code_with_undefined_signed_overflow, call
29101 rewrite_to_defined_overflow.
29102 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29103 gimple-fold.h instead.
29104 (arith_code_with_undefined_signed_overflow,
29105 rewrite_to_defined_overflow): Moved to ...
29106 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29107 rewrite_to_defined_overflow): ... here. No longer static.
29108 Include gimplify-me.h.
29109 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29110 rewrite_to_defined_overflow): New prototypes.
29111
29112 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29113
29114 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29115
29116 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29117
29118 * builtins.c (get_object_alignment_2): Minor tweak.
29119 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29120
29121 2014-01-13 Christian Bruel <christian.bruel@st.com>
29122
29123 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29124 optimized non constant lengths.
29125
29126 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29127
29128 PR libgomp/59194
29129 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29130 load as __atomic_load_N if possible.
29131
29132 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29133
29134 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29135 target parameter.
29136 (rs6000_expand_builtin): Adjust call.
29137
29138 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29139
29140 PR target/58115
29141 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29142 * config/rs6000/rs6000.c: Include target-globals.h.
29143 (rs6000_set_current_function): Instead of doing target_reinit
29144 unconditionally, use save_target_globals_default_opts and
29145 restore_target_globals.
29146
29147 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29148 FPSCR.
29149 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29150 (rs6000_expand_builtin): Handle mffs and mtfsf.
29151 (rs6000_init_builtins): Define mffs and mtfsf.
29152 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29153 (rs6000_mffs): New pattern.
29154 (rs6000_mtfsf): New pattern.
29155
29156 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29157
29158 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29159 Start narrowing with START. Apply candidate-use pair
29160 and check overall cost in narrowing.
29161 (iv_ca_prune): Pass new argument.
29162
29163 2014-01-10 Jeff Law <law@redhat.com>
29164
29165 PR middle-end/59743
29166 * ree.c (combine_reaching_defs): Ensure the defining statement
29167 occurs before the extension when optimizing extensions with
29168 different source and destination hard registers.
29169
29170 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29171
29172 PR ipa/58585
29173 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29174 vtables into the type inheritance graph.
29175
29176 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29177
29178 PR rtl-optimization/59754
29179 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29180 modes in the REGNO != REGNO case.
29181
29182 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29183
29184 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29185
29186 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29187
29188 PR tree-optimization/59745
29189 * tree-predcom.c (tree_predictive_commoning_loop): Call
29190 free_affine_expand_cache if giving up because components is NULL.
29191
29192 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29193 GC in payload of target_globals struct instead of allocating them on
29194 the heap and the larger structs separately using GC.
29195 * target-globals.h (struct target_globals): Make regs, hard_regs,
29196 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29197 of GTY((skip)) and change type to void *.
29198 (reset_target_globals): Cast loads from those fields to corresponding
29199 types.
29200
29201 2014-01-10 Steve Ellcey <sellcey@mips.com>
29202
29203 PR plugins/59335
29204 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29205 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29206 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29207
29208 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29209
29210 PR target/59744
29211 * aarch64-modes.def (CC_Zmode): New flags mode.
29212 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29213 represents an equality.
29214 (aarch64_get_condition_code): Handle CC_Zmode.
29215 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29216
29217 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29218
29219 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29220 extraction in good case.
29221
29222 2014-01-10 Richard Biener <rguenther@suse.de>
29223
29224 PR tree-optimization/59374
29225 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29226 checking after SLP discovery. Mark stmts not participating
29227 in any SLP instance properly.
29228
29229 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29230
29231 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29232 when handling a SET rtx.
29233
29234 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29235
29236 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29237 (cortex-a57): Likewise.
29238 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29239
29240 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29241
29242 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29243 non-iwmmxt builtins.
29244
29245 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29246
29247 PR ipa/58252
29248 PR ipa/59226
29249 * ipa-devirt.c record_target_from_binfo): Take as argument
29250 stack of binfos and lookup matching one for virtual inheritance.
29251 (possible_polymorphic_call_targets_1): Update.
29252
29253 2014-01-10 Huacai Chen <chenhc@lemote.com>
29254
29255 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29256 kernel strings for Loongson-2E/2F/3A.
29257
29258 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29259
29260 PR middle-end/59670
29261 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29262 is_gimple_call before calling gimple_call_internal_p.
29263
29264 2014-01-09 Steve Ellcey <sellcey@mips.com>
29265
29266 * Makefile.in (TREE_FLOW_H): Remove.
29267 (TREE_SSA_H): Add file names from tree-flow.h.
29268 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29269 * tree.h: Remove tree-flow.h reference.
29270 * hash-table.h: Remove tree-flow.h reference.
29271 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29272 reference with tree-ssa-loop.h.
29273
29274 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29275
29276 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29277 default element-order behavior for -maltivec.
29278 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29279 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29280 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29281 when targeting big endian, at least for now.
29282 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29283
29284 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29285
29286 PR middle-end/47735
29287 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29288 var satisfies use_register_for_decl, just take into account type
29289 alignment, rather than decl alignment.
29290
29291 PR tree-optimization/59622
29292 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29293 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29294 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29295 Don't devirtualize for inplace at all. For targets.length () == 1,
29296 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29297
29298 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29299
29300 * config/i386/i386.md (cpu): Remove the unused btver1.
29301
29302 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29303
29304 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29305
29306 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29307
29308 PR target/58115
29309 * tree-core.h (struct target_globals): New forward declaration.
29310 (struct tree_target_option): Add globals field.
29311 * tree.h (TREE_TARGET_GLOBALS): Define.
29312 (prepare_target_option_nodes_for_pch): New prototype.
29313 * target-globals.h (struct target_globals): Define even if
29314 !SWITCHABLE_TARGET.
29315 * tree.c (prepare_target_option_node_for_pch,
29316 prepare_target_option_nodes_for_pch): New functions.
29317 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29318 * config/i386/i386.c: Include target-globals.h.
29319 (ix86_set_current_function): Instead of doing target_reinit
29320 unconditionally, use save_target_globals_default_opts and
29321 restore_target_globals.
29322
29323 2014-01-09 Richard Biener <rguenther@suse.de>
29324
29325 PR tree-optimization/59715
29326 * tree-cfg.h (split_critical_edges): Declare.
29327 * tree-cfg.c (split_critical_edges): Export.
29328 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29329
29330 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29331
29332 * cfgexpand.c (expand_stack_vars): Optionally disable
29333 asan stack protection.
29334 (expand_used_vars): Likewise.
29335 (partition_stack_vars): Likewise.
29336 * asan.c (asan_emit_stack_protection): Optionally disable
29337 after return stack usage.
29338 (instrument_derefs): Optionally disable memory access instrumentation.
29339 (instrument_builtin_call): Likewise.
29340 (instrument_strlen_call): Likewise.
29341 (asan_protect_global): Optionally disable global variables protection.
29342 * doc/invoke.texi: Added doc for new options.
29343 * params.def: Added new options.
29344 * params.h: Likewise.
29345
29346 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29347
29348 PR rtl-optimization/59724
29349 * ifcvt.c (cond_exec_process_if_block): Don't call
29350 flow_find_head_matching_sequence with 0 longest_match.
29351 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29352 non-active insns if !stop_after.
29353 (try_head_merge_bb): Revert 2014-01-07 changes.
29354
29355 2014-01-08 Jeff Law <law@redhat.com>
29356
29357 * ree.c (get_sub_rtx): New function, extracted from...
29358 (merge_def_and_ext): Here.
29359 (combine_reaching_defs): Use get_sub_rtx.
29360
29361 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29362
29363 * cgraph.h (varpool_variable_node): Do not choke on null node.
29364
29365 2014-01-08 Catherine Moore <clm@codesourcery.com>
29366
29367 * config/mips/mips.md (simple_return): Attempt to use JRC
29368 for microMIPS.
29369 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
29370
29371 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29372
29373 PR rtl-optimization/59137
29374 * reorg.c (steal_delay_list_from_target): Call update_block for
29375 elided insns.
29376 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
29377
29378 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29379
29380 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
29381 two duplicate entries.
29382
29383 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29384
29385 Revert:
29386 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
29387
29388 * config/mips/mips.c (mips_truncated_op_cost): New function.
29389 (mips_rtx_costs): Adjust test for BADDU.
29390 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
29391
29392 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
29393
29394 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
29395 (*baddu_si): ...this new pattern.
29396
29397 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29398
29399 PR ipa/59722
29400 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
29401
29402 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
29403
29404 PR middle-end/57748
29405 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
29406 inner_reference_p.
29407 (expand_expr, expand_normal): Adjust.
29408 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
29409 inner_reference_p. Use inner_reference_p to expand inner references.
29410 (store_expr): Adjust.
29411 * cfgexpand.c (expand_call_stmt): Adjust.
29412
29413 2014-01-08 Rong Xu <xur@google.com>
29414
29415 * gcov-io.c (gcov_var): Move from gcov-io.h.
29416 (gcov_position): Ditto.
29417 (gcov_is_error): Ditto.
29418 (gcov_rewrite): Ditto.
29419 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
29420 only part to libgcc/libgcov.h.
29421
29422 2014-01-08 Marek Polacek <polacek@redhat.com>
29423
29424 PR middle-end/59669
29425 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
29426
29427 2014-01-08 Marek Polacek <polacek@redhat.com>
29428
29429 PR sanitizer/59667
29430 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
29431
29432 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29433
29434 PR rtl-optimization/59649
29435 * stor-layout.c (get_mode_bounds): For BImode return
29436 0 and STORE_FLAG_VALUE.
29437
29438 2014-01-08 Richard Biener <rguenther@suse.de>
29439
29440 PR middle-end/59630
29441 * gimple.h (is_gimple_builtin_call): Remove.
29442 (gimple_builtin_call_types_compatible_p): New.
29443 (gimple_call_builtin_p): New overload.
29444 * gimple.c (is_gimple_builtin_call): Remove.
29445 (validate_call): Rename to ...
29446 (gimple_builtin_call_types_compatible_p): ... this and export. Also
29447 check return types.
29448 (validate_type): New static function.
29449 (gimple_call_builtin_p): New overload and adjust.
29450 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
29451 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
29452 (gimple_fold_stmt_to_constant_1): Likewise.
29453 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
29454
29455 2014-01-08 Richard Biener <rguenther@suse.de>
29456
29457 PR middle-end/59471
29458 * gimplify.c (gimplify_expr): Gimplify register-register type
29459 VIEW_CONVERT_EXPRs to separate stmts.
29460
29461 2014-01-07 Jeff Law <law@redhat.com>
29462
29463 PR middle-end/53623
29464 * ree.c (combine_set_extension): Handle case where source
29465 and destination registers in an extension insn are different.
29466 (combine_reaching_defs): Allow source and destination registers
29467 in extension to be different under limited circumstances.
29468 (add_removable_extension): Remove restriction that the
29469 source and destination registers in the extension are the same.
29470 (find_and_remove_re): Emit a copy from the extension's
29471 destination to its source after the defining insn if
29472 the source and destination registers are different.
29473
29474 PR middle-end/59285
29475 * ifcvt.c (merge_if_block): If we are merging a block with more than
29476 one successor with a block with no successors, remove any BARRIER
29477 after the second block.
29478
29479 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
29480
29481 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
29482
29483 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
29484
29485 PR target/59652
29486 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
29487 for 14-bit register offsets when INT14_OK_STRICT is false.
29488
29489 2014-01-07 Roland Stigge <stigge@antcom.de>
29490 Michael Meissner <meissner@linux.vnet.ibm.com>
29491
29492 PR 57386/target
29493 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
29494 Only check TFmode for SPE constants. Don't check TImode or TDmode.
29495
29496 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
29497
29498 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
29499 -mcpu.
29500
29501 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
29502
29503 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
29504 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
29505 rtx is const0_rtx or not.
29506
29507 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
29508
29509 PR target/58115
29510 * target-globals.c (save_target_globals): Remove this_fn_optab
29511 handling.
29512 * toplev.c: Include optabs.h.
29513 (target_reinit): Temporarily restore the global options if another
29514 set of options are in force.
29515
29516 2014-01-07 Jakub Jelinek <jakub@redhat.com>
29517
29518 PR rtl-optimization/58668
29519 * cfgcleanup.c (flow_find_cross_jump): Don't count
29520 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
29521 to determine what is counted.
29522 (flow_find_head_matching_sequence): Use active_insn_p to determine
29523 what is counted.
29524 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
29525 counting change.
29526 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
29527 determine what is counted.
29528
29529 PR tree-optimization/59643
29530 * tree-predcom.c (split_data_refs_to_components): If one dr is
29531 read and one write, determine_offset fails and the write isn't
29532 in the bad component, just put the read into the bad component.
29533
29534 2014-01-07 Mike Stump <mikestump@comcast.net>
29535 Jakub Jelinek <jakub@redhat.com>
29536
29537 PR pch/59436
29538 * tree-core.h (struct tree_optimization_option): Change optabs
29539 type from unsigned char * to void *.
29540 * optabs.c (init_tree_optimization_optabs): Adjust
29541 TREE_OPTIMIZATION_OPTABS initialization.
29542
29543 2014-01-06 Jakub Jelinek <jakub@redhat.com>
29544
29545 PR target/59644
29546 * config/i386/i386.h (struct machine_function): Add
29547 no_drap_save_restore field.
29548 * config/i386/i386.c (ix86_save_reg): Use
29549 !cfun->machine->no_drap_save_restore instead of
29550 crtl->stack_realign_needed.
29551 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
29552 this function clears frame_pointer_needed. Set
29553 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
29554 and DRAP reg is needed.
29555
29556 2014-01-06 Marek Polacek <polacek@redhat.com>
29557
29558 PR c/57773
29559 * doc/implement-c.texi: Mention that other integer types are
29560 permitted as bit-field types in strictly conforming mode.
29561
29562 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
29563
29564 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
29565 is newly allocated.
29566
29567 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
29568
29569 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
29570
29571 2014-01-06 Martin Jambor <mjambor@suse.cz>
29572
29573 PR ipa/59008
29574 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
29575 to int.
29576 * ipa-prop.c (ipa_print_node_params): Fix indentation.
29577
29578 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
29579
29580 PR debug/59350
29581 PR debug/59510
29582 * var-tracking.c (add_stores): Preserve the value of the source even if
29583 we don't record the store.
29584
29585 2014-01-06 Terry Guo <terry.guo@arm.com>
29586
29587 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
29588
29589 2014-01-05 Iain Sandoe <iain@codesourcery.com>
29590
29591 PR bootstrap/59541
29592 * config/darwin.c (darwin_function_section): Adjust return values to
29593 correspond to optimisation changes made in r206070.
29594
29595 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
29596
29597 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
29598 from prefetch_block tune setting.
29599 (nocona_cost): Correct size of prefetch block to 64.
29600
29601 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
29602
29603 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
29604 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
29605 used to save the static chain register in the computation of the offset
29606 from which the FP registers need to be restored.
29607
29608 2014-01-04 Jakub Jelinek <jakub@redhat.com>
29609
29610 PR tree-optimization/59519
29611 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
29612 ICE if get_current_def (current_new_name) is already non-NULL, as long
29613 as it is a phi result of some other phi in *new_exit_bb that has
29614 the same argument.
29615
29616 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
29617 or vmovdqu* for misaligned_operand.
29618 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29619 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
29620 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
29621 aligned_mem for AVX512F masked aligned load and store builtins and for
29622 non-temporal moves.
29623
29624 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
29625
29626 PR tree-optimization/59651
29627 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29628 Address range for negative step should be added by TYPE_SIZE_UNIT.
29629
29630 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
29631
29632 * config/m68k/m68k.c (handle_move_double): Handle pushes with
29633 overlapping registers also for registers other than the stack pointer.
29634
29635 2014-01-03 Marek Polacek <polacek@redhat.com>
29636
29637 PR other/59661
29638 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
29639 __builtin_FILE.
29640
29641 2014-01-03 Jakub Jelinek <jakub@redhat.com>
29642
29643 PR target/59625
29644 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29645 asm goto as jump.
29646
29647 * config/i386/i386.md (MODE_SIZE): New mode attribute.
29648 (push splitter): Use <P:MODE_SIZE> instead of
29649 GET_MODE_SIZE (<P:MODE>mode).
29650 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29651 (mov -1, reg peephole2): Likewise.
29652 * config/i386/sse.md (*mov<mode>_internal,
29653 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29654 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29655 *<code><mode>3, *andnot<mode>3<mask_name>,
29656 <mask_codefor><code><mode>3<mask_name>): Likewise.
29657 * config/i386/subst.md (mask_mode512bit_condition,
29658 sd_mask_mode512bit_condition): Likewise.
29659
29660 2014-01-02 Xinliang David Li <davidxl@google.com>
29661
29662 PR tree-optimization/59303
29663 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29664 (dump_predicates): Better output format.
29665 (pred_equal_p): New function.
29666 (is_neq_relop_p): Ditto.
29667 (is_neq_zero_form_p): Ditto.
29668 (pred_expr_equal_p): Ditto.
29669 (pred_neg_p): Ditto.
29670 (simplify_pred): Ditto.
29671 (simplify_preds_2): Ditto.
29672 (simplify_preds_3): Ditto.
29673 (simplify_preds_4): Ditto.
29674 (simplify_preds): Ditto.
29675 (push_pred): Ditto.
29676 (push_to_worklist): Ditto.
29677 (get_pred_info_from_cmp): Ditto.
29678 (is_degenerated_phi): Ditto.
29679 (normalize_one_pred_1): Ditto.
29680 (normalize_one_pred): Ditto.
29681 (normalize_one_pred_chain): Ditto.
29682 (normalize_preds): Ditto.
29683 (normalize_cond_1): Remove function.
29684 (normalize_cond): Ditto.
29685 (is_gcond_subset_of): Ditto.
29686 (is_subset_of_any): Ditto.
29687 (is_or_set_subset_of): Ditto.
29688 (is_and_set_subset_of): Ditto.
29689 (is_norm_cond_subset_of): Ditto.
29690 (pred_chain_length_cmp): Ditto.
29691 (convert_control_dep_chain_into_preds): Type change.
29692 (find_predicates): Ditto.
29693 (find_def_preds): Ditto.
29694 (destroy_predicates_vecs): Ditto.
29695 (find_matching_predicates_in_rest_chains): Ditto.
29696 (use_pred_not_overlap_with_undef_path_pred): Ditto.
29697 (is_pred_expr_subset): Ditto.
29698 (is_pred_chain_subset_of): Ditto.
29699 (is_included_in): Ditto.
29700 (is_superset_of): Ditto.
29701
29702 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29703
29704 Update copyright years.
29705
29706 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29707
29708 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29709 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29710 config/arc/arc.md, config/arc/arc.opt,
29711 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29712 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29713 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29714 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29715 config/linux-protos.h, config/linux.c, config/winnt-c.c,
29716 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29717 vtable-verify.c, vtable-verify.h: Use the standard form for the
29718 copyright notice.
29719
29720 2014-01-02 Tobias Burnus <burnus@net-b.de>
29721
29722 * gcc.c (process_command): Update copyright notice dates.
29723 * gcov-dump.c: Ditto.
29724 * gcov.c: Ditto.
29725 * doc/cpp.texi: Bump @copying's copyright year.
29726 * doc/cppinternals.texi: Ditto.
29727 * doc/gcc.texi: Ditto.
29728 * doc/gccint.texi: Ditto.
29729 * doc/gcov.texi: Ditto.
29730 * doc/install.texi: Ditto.
29731 * doc/invoke.texi: Ditto.
29732
29733 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29734
29735 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29736
29737 2014-01-01 Jakub Jelinek <jakub@redhat.com>
29738
29739 * config/i386/sse.md (*mov<mode>_internal): Guard
29740 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29741
29742 PR rtl-optimization/59647
29743 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29744 new_rtx into UNSIGNED_FLOAT rtxes.
29745 \f
29746 Copyright (C) 2014 Free Software Foundation, Inc.
29747
29748 Copying and distribution of this file, with or without modification,
29749 are permitted in any medium without royalty provided the copyright
29750 notice and this notice are preserved.