[AArch64] PR 61749: Do not ICE in lane intrinsics when passed non-constant lane number
[gcc.git] / gcc / ChangeLog
1 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 PR target/61749
4 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5 Use qualifier_immediate for last operand. Rename to...
6 (aarch64_types_ternop_lane_qualifiers): ... This.
7 (TYPES_QUADOP): Rename to...
8 (TYPES_TERNOP_LANE): ... This.
9 (aarch64_simd_expand_args): Return const0_rtx when encountering user
10 error. Change return of 0 to return of NULL_RTX.
11 (aarch64_crc32_expand_builtin): Likewise.
12 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
13 ICE when expanding unknown builtin.
14 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
15 TERNOP_LANE qualifiers.
16 (sqdmlsl_lane): Likewise.
17 (sqdmlal_laneq): Likewise.
18 (sqdmlsl_laneq): Likewise.
19 (sqdmlal2_lane): Likewise.
20 (sqdmlsl2_lane): Likewise.
21 (sqdmlal2_laneq): Likewise.
22 (sqdmlsl2_laneq): Likewise.
23
24 2014-09-09 Nick Clifton <nickc@redhat.com>
25
26 * doc/invoke.texi (Optimization Options): Add missing @gol to the
27 end of a line.
28 (S/390 and zSeries Options): Remove superfluous word from the
29 description of the -mhotpatch option.
30
31 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
32
33 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
34 * ira.c: #include "shrink-wrap.h"
35 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
36 * ifcvt.c: #include "shrink-wrap.h"
37 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
38
39 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
40
41 * common/config/picochip/picochip-common.c: Remove.
42 * config.gcc: Remove support for picochip.
43 * config/picochip/constraints.md: Remove.
44 * config/picochip/dfa_space.md: Remove.
45 * config/picochip/dfa_speed.md: Remove.
46 * config/picochip/picochip-protos.h: Remove.
47 * config/picochip/picochip.c: Remove.
48 * config/picochip/picochip.h: Remove.
49 * config/picochip/picochip.md: Remove.
50 * config/picochip/picochip.opt: Remove.
51 * config/picochip/predicates.md: Remove.
52 * config/picochip/t-picochip: Remove.
53 * doc/md.texi: Don't document picochi.
54
55 2014-09-08 David Malcolm <dmalcolm@redhat.com>
56
57 * basic-block.h (control_flow_insn_p): Strengthen param from
58 const_rtx to const rtx_insn *.
59 * cfgbuild.c (control_flow_insn_p): Likewise.
60
61 2014-09-08 David Malcolm <dmalcolm@redhat.com>
62
63 * gcse.c (modify_mem_list): Strengthen this variable from
64 vec<rtx> * to vec<rtx_insn *> *.
65 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
66 vec<rtx_insn *>.
67 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
68 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
69 (record_last_mem_set_info): Strengthen param "insn" from rtx to
70 rtx_insn *.
71 (record_last_set_info): Likewise for local "last_set_insn".
72
73 2014-09-08 DJ Delorie <dj@redhat.com>
74
75 * doc/invoke.texi (MSP430 Options): Add -minrt.
76
77 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
78
79 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
80 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
81 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
82 handling SH_SPLAT.
83 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
84 of extracted lane.
85 (adjust_splat): New function.
86 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
87 (dump_swap_insn_table): Add case for SH_SPLAT.
88
89 2014-09-08 Richard Biener <rguenther@suse.de>
90
91 PR ipa/63196
92 * tree-inline.c (copy_loops): The source loop header should
93 always be non-NULL.
94 (tree_function_versioning): If loops need fixup after removing
95 unreachable blocks fix them.
96 * omp-low.c (simd_clone_adjust): Do not add incr block to
97 loop under construction.
98
99 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
100
101 * config/aarch64/aarch64-builtins.c
102 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
103
104 2014-09-08 Joseph Myers <joseph@codesourcery.com>
105
106 * config/i386/cygming.h (TF_SIZE): Remove.
107 * config/i386/darwin.h (TF_SIZE): Remove.
108 * config/i386/dragonfly.h (TF_SIZE): Remove.
109 * config/i386/freebsd.h (TF_SIZE): Remove.
110 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
111 * config/i386/openbsdelf.h (TF_SIZE): Remove.
112 * config/i386/sol2.h (TF_SIZE): Remove.
113 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
114 * config/ia64/linux.h (TF_SIZE): Remove.
115 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
116 * doc/tm.texi: Regenerate.
117 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
118
119 2014-09-08 Joseph Myers <joseph@codesourcery.com>
120
121 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
122 Remove.
123 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
124 Remove.
125 * doc/tm.texi: Regenerate.
126 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
127 Poison.
128 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
129 * config/cris/cris.h (__make_dp): Remove.
130
131 2014-09-08 Richard Biener <rguenther@suse.de>
132
133 PR bootstrap/63204
134 * cfgloop.c (mark_loop_for_removal): Track former header
135 unconditionally.
136 * cfgloop.h (struct loop): Add former_header member unconditionally.
137 * loop-init.c (fix_loop_structure): Enable bogus loop removal
138 diagnostic unconditionally.
139
140 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
141
142 PR target/63190
143 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
144 constraint for operand0 and remove write only modifier from operand3.
145
146 2014-09-07 Richard Sandiford <rdsandiford@googlemail.com>
147
148 PR rtl-optimization/62208
149 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
150 rather than const0_rtx in eq/ne-xor simplifications.
151
152 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
153
154 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
155 (arc_output_mi_thunk): Likewise.
156
157 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
158 arguments to silence bogus warning.
159
160 2014-09-06 Richard Sandiford <rdsandiford@googlemail.com>
161
162 PR middle-end/63171
163 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
164
165 2014-09-06 Tom de Vries <tom@codesourcery.com>
166
167 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
168 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
169 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
170
171 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
172
173 PR target/63188
174 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
175 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
176
177 2014-09-05 Easwaran Raman <eraman@google.com>
178
179 PR rtl-optimization/62146
180 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
181 hoisted instruction unconditional.
182
183 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
184
185 PR target/63187
186 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
187 Do not allow any_mask_operand for operands[2].
188 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
189
190 2014-09-05 David Malcolm <dmalcolm@redhat.com>
191
192 * config/arc/arc.c (arc_print_operand): Use insn method of
193 final_sequence for type-safety.
194 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
195 "insn" from rtx to rtx_insn *.
196 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
197 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
198 Likewise for locals "branch", "label".
199 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
200 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
201 (same_cmp_following_p): Likewise for locals "i2", "i3".
202 * config/sh/sh_optimize_sett_clrt.cc
203 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
204 param "cbranch_insn".
205 * function.c (convert_jumps_to_returns): Likewis for local "jump".
206 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
207 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
208 const rtx_insn *.
209 (condjump_p): Likewise.
210 (condjump_in_parallel_p): Likewise.
211 (pc_set): Likewise.
212 (any_uncondjump_p): Likewise.
213 (any_condjump_p): Likewise.
214 (condjump_label): Likewise.
215 (returnjump_p): Strengthen param "insn" from rtx to
216 const rtx_insn *.
217 (onlyjump_p): Strengthen param "insn" from const_rtx to
218 const rtx_insn *.
219 (jump_to_label_p): Likewise.
220 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
221 (invert_jump): Likewise.
222 * reorg.c (simplejump_or_return_p): Add checked cast when calling
223 simplejump_p.
224 (get_jump_flags): Strengthen param "insn" from rtx to
225 const rtx_insn *.
226 (get_branch_condition): Likewise.
227 (condition_dominates_p): Likewise.
228 (make_return_insns): Move declaration of local "pat" earlier, to
229 after we've handled NONJUMP_INSN_P and non-sequences, using its
230 methods to simplify the code and for type-safety.
231 * rtl.h (find_constant_src): Strengthen param from const_rtx to
232 const rtx_insn *.
233 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
234 (condjump_p): Strengthen param from const_rtx to
235 const rtx_insn *.
236 (any_condjump_p): Likewise.
237 (any_uncondjump_p): Likewise.
238 (pc_set): Likewise.
239 (condjump_label): Likewise.
240 (simplejump_p): Likewise.
241 (returnjump_p): Likewise.
242 (onlyjump_p): Likewise.
243 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
244 (invert_jump): Likewise.
245 (condjump_in_parallel_p): Strengthen param from const_rtx to
246 const rtx_insn *.
247 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
248 to const rtx_insn *.
249 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
250 to const rtx_insn *.
251 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
252
253 2014-09-05 David Malcolm <dmalcolm@redhat.com>
254
255 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
256 above the conditional, and convert the check on GET_CODE to a
257 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
258 the conditional. Simplify the conditional by using methods of
259 "trial_seq".
260
261 2014-09-05 David Malcolm <dmalcolm@redhat.com>
262
263 * haifa-sched.c (check_clobbered_conditions): Strengthen local
264 "link" from rtx to rtx_insn_list *, and use its methods for
265 clarity and type-safety.
266 (toggle_cancelled_flags): Likewise.
267 (restore_last_backtrack_point): Likewise.
268 (queue_to_ready): Use insn method of "link" in one place.
269 (schedule_block): Strengthen local "link" from rtx to
270 rtx_insn_list *, and use its methods for clarity and type-safety.
271
272 2014-09-05 David Malcolm <dmalcolm@redhat.com>
273
274 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
275 param "insn" from const_rtx to const rtx_insn *.
276 (sched_get_reverse_condition_uncached): Likewise.
277 (sched_get_condition_with_rev): Likewise.
278 (sched_has_condition_p): Likewise.
279 (sched_insns_conditions_mutex_p): Likewise for both params.
280 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
281 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
282 (setup_insn_reg_uses): Move local "list" to be more tightly
283 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
284 its methods for clarity and type-safety.
285 (sched_analyze_1): Strengthen local "pending" from rtx to
286 rtx_insn_list *, and local "pending_mem" from rtx to
287 rtx_expr_list *. Use methods of each for clarity and type-safety.
288 (sched_analyze_2): Likewise.
289 (sched_analyze_insn): Likewise.
290
291 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
292 param from const_rtx to const rtx_insn *.
293 (sched_insns_conditions_mutex_p): Likewise for both params.
294 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
295 param.
296
297 * system.h (CONST_CAST_RTX_INSN): New macro.
298
299 2014-09-05 David Malcolm <dmalcolm@redhat.com>
300
301 * recog.c (peep2_attempt): Strengthen return type from rtx to
302 rtx_insn *.
303 (peep2_update_life): Likewise for params "last", "prev", removing
304 a checked cast made redundant by this.
305 (peephole2_optimize): Likewise for local "last".
306
307 2014-09-05 David Malcolm <dmalcolm@redhat.com>
308
309 * basic-block.h (set_block_for_insn): Eliminate this macro in
310 favor of...
311 * rtl.h (set_block_for_insn): New inline function, imposing the
312 requirement that the "insn" param is an rtx_insn *.
313
314 2014-09-05 David Malcolm <dmalcolm@redhat.com>
315
316 * caller-save.c (setup_save_areas): Strengthen local "insn" from
317 rtx to rtx_insn *.
318 * final.c (get_call_reg_set_usage): Likewise for first param,
319 eliminating a checked cast.
320 * regs.h (get_call_reg_set_usage): Likewise for first param.
321 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
322 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
323 cast, replacing references to "x" with "call_insn" where
324 appropriate.
325 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
326 rtx_insn *, adding a checked cast.
327
328 2014-09-05 David Malcolm <dmalcolm@redhat.com>
329
330 * output.h (final_scan_insn): Strengthen first param from rtx to
331 rtx_insn *.
332
333 * final.c (final_scan_insn): Likewise, renaming it back from
334 "uncast_insn" to "insn", eliminating the checked cast.
335
336 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
337 "vec" with an rtx_sequence * "seq", taking a copy of
338 "final_sequence", and using methods of "seq" for clarity, and for
339 type-safety in the calls to final_scan_insn.
340 * config/mips/mips.c (mips_output_conditional_branch): Use methods
341 of "final_sequence" for clarity, and for type-safety in the call to
342 final_scan_insn.
343 * config/sh/sh.c (print_slot): Strengthen param from rtx to
344 rtx_sequence * and rename from "insn" to "seq".
345
346 2014-09-05 David Malcolm <dmalcolm@redhat.com>
347
348 * jump.c (delete_related_insns): Introduce a new local "table" by
349 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
350 get_labels method of "table" to simplify access to the labels in
351 the jump table.
352
353 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
354
355 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
356 f_minmaxs, f_minmaxd types.
357
358 2014-09-05 Richard Biener <rguenther@suse.de>
359
360 * cfgloop.c (mark_loop_for_removal): Record former header
361 when ENABLE_CHECKING.
362 * cfgloop.h (strut loop): Add former_header member when
363 ENABLE_CHECKING.
364 * loop-init.c (fix_loop_structure): Sanity check loops
365 marked for removal if they re-appeared.
366
367 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
368
369 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
370 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
371
372 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
373 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
374 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
375 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
376 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
377 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
378 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
379 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
380 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
381 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
382 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
383 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
384 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
385 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
386 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
387 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
388 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
389 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
390 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
391 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
392 with int{32,16,8}_t.
393
394 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
395
396 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
397 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
398 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
399 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
400 Remove temporary __asm__ and reimplement.
401
402 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
403
404 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
405 handling cmge, cmgt, cmeq, cmtst.
406
407 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
408 cmlt, cmgeu, cmgtu, cmtst): Remove.
409
410 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
411 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
412 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
413 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
414
415 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
416
417 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
418 TYPES_TST): Define.
419 (aarch64_fold_builtin): Update pattern for cmtst.
420
421 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
422 Declare.
423
424 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
425
426 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
427 Switch operands, separate out more cases, refactor.
428
429 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
430
431 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
432 argument; rename old version to...
433 (aarch64_const_vec_all_same_in_range_p): ...this.
434 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
435
436 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
437
438 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
439
440 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
441 Remove qualifier_const_pointer, update comment.
442
443 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
444
445 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
446
447 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
448
449 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
450 varargs with pointer parameter.
451 (aarch64_simd_expand_builtin): pass pointer into previous.
452
453 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
454
455 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
456 alus_ext.
457
458 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
459
460 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
461 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
462 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
463 Replace temporary asm with call to builtin.
464 (vrbit_p8, vrbitq_p8): New functions.
465
466 2014-09-05 Richard Biener <rguenther@suse.de>
467
468 * cfgloop.c (mark_loop_for_removal): New function.
469 * cfgloop.h (mark_loop_for_removal): Declare.
470 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
471 (merge_blocks): Likewise.
472 (duplicate_block): Likewise.
473 * except.c (sjlj_emit_dispatch_table): Likewise.
474 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
475 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
476 (thread_through_loop_header): Likewise.
477
478 2014-09-05 Richard Biener <rguenther@suse.de>
479
480 PR middle-end/63148
481 * fold-const.c (try_move_mult_to_index): Remove.
482 (fold_binary_loc): Do not call it.
483 * tree-data-ref.c (dr_analyze_indices): Strip conversions
484 from the base object again.
485
486 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
487
488 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
489 DImode.
490
491 2014-09-05 Bin Cheng <bin.cheng@arm.com>
492
493 PR target/55701
494 * config/arm/arm.md (setmem): New pattern.
495 * config/arm/arm-protos.h (struct tune_params): New fields.
496 (arm_gen_setmem): New prototype.
497 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
498 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
499 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
500 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
501 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
502 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
503 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
504 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
505 (arm_const_inline_cost): New function.
506 (arm_block_set_max_insns): New function.
507 (arm_block_set_non_vect_profit_p): New function.
508 (arm_block_set_vect_profit_p): New function.
509 (arm_block_set_unaligned_vect): New function.
510 (arm_block_set_aligned_vect): New function.
511 (arm_block_set_unaligned_non_vect): New function.
512 (arm_block_set_aligned_non_vect): New function.
513 (arm_block_set_vect, arm_gen_setmem): New functions.
514
515 2014-09-05 Bin Cheng <bin.cheng@arm.com>
516
517 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
518
519 2014-09-05 Bin Cheng <bin.cheng@arm.com>
520
521 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
522
523 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
524
525 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
526 an rtx.
527 * valtrack.h: Adjust.
528
529 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
530
531 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
532 an rtx.
533 (emit_jump_insn_before_noloc): Likewise.
534 (emit_call_insn_before_noloc): Likewise.
535 (emit_label_before): Likewise.
536 (emit_label_after): Likewise.
537 (emit_insn_before_setloc): Likewise.
538 (emit_jump_insn_before_setloc): Likewise.
539 (emit_call_insn_before_setloc): Likewise.
540 (emit_call_insn_before): Likewise.
541 * rtl.h: Adjust.
542
543 2014-09-05 David Malcolm <dmalcolm@redhat.com>
544
545 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
546 rtx_insn *, eliminating a checked cast.
547
548 2014-09-05 David Malcolm <dmalcolm@redhat.com>
549
550 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
551 const_rtx to const rtx_insn *.
552 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
553 cast.
554
555 2014-09-05 David Malcolm <dmalcolm@redhat.com>
556
557 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
558 fixup_args_size_notes.
559 * expr.c (fixup_args_size_notes): Strengthen first two params from
560 rtx to rtx_insn *, eliminating a checked cast.
561 * rtl.h (fixup_args_size_notes): Strengthen first two params from
562 rtx to rtx_insn *.
563
564 2014-09-05 David Malcolm <dmalcolm@redhat.com>
565
566 * haifa-sched.c (get_ready_element): Strengthen return type from
567 rtx to rtx_insn *.
568 * sched-int.h (get_ready_element): Likewise.
569
570 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
571
572 PR target/63165
573 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
574 indexed_or_indirect_operand instead of memory_operand.
575 (floatsi<mode>2_lfiwzx_mem): Ditto.
576
577 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
578
579 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
580 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
581 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
582
583 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
584
585 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
586 rtx.
587 (get_last_nonnote_insn): Likewise.
588 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
589 * resource.c (find_basic_block): Likewise.
590 * rtl.h: Adjust.
591 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
592 const_rtx.
593
594 2014-09-04 David Malcolm <dmalcolm@redhat.com>
595
596 * genattr.c (main): Within the prototype of insn_latency written
597 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
598 * genautomata.c (output_internal_maximal_insn_latency_func):
599 Within the implementation of insn_latency written out to
600 insn-automata.c, strengthen both params from rtx to rtx_insn *,
601 eliminating a pair of checked casts.
602
603 2014-09-04 David Malcolm <dmalcolm@redhat.com>
604
605 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
606 rtx_insn *.
607
608 * rtl.h (eh_returnjump_p): Likewise.
609
610 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
611
612 * Makefile.in (TAGS): Handle constructs in timevar.def.
613
614 2014-09-04 Guozhi Wei <carrot@google.com>
615
616 PR target/62040
617 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
618 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
619 it into two patterns.
620 (move_lo_quad_internal_be_<mode>): Likewise.
621
622 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
623
624 * doc/options.texi: Document that Var and Init are required if CPP
625 is given.
626 * optc-gen.awk: Require Var and Init if CPP is given.
627 * common.opt (Wpedantic): Use Init.
628
629 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
630
631 * config/rs6000/rs6000.c (special_handling_values): Add
632 SH_EXTRACT.
633 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
634 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
635 as swappable with special handling SH_EXTRACT. Remove
636 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
637 optimization.
638 (adjust_extract): New function.
639 (handle_special_swappables): Add default to case statement; add
640 case for SH_EXTRACT that calls adjust_extract.
641 (dump_swap_insn_table): Handle SH_EXTRACT.
642
643 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
644
645 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
646 selection of 0th memory doubleword, regardless of endianness.
647
648 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
649
650 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
651
652 2014-09-04 Alan Modra <amodra@gmail.com>
653
654 PR debug/60655
655 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
656 can't be output.
657
658 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
659
660 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
661 * targhooks.c (default_dwarf_frame_reg_mode): New function.
662 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
663 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
664 * doc/tm.texi: Regenerate.
665 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
666 selection logic to default_dwarf_frame_reg_mode.
667
668 2014-09-03 Marek Polacek <polacek@redhat.com>
669
670 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
671 by -Wall.
672
673 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
674
675 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
676 the automodified register.
677
678 2014-09-03 Richard Sandiford <rdsandiford@googlemail.com>
679
680 * output.h (get_some_local_dynamic_name): Declare.
681 * final.c (some_local_dynamic_name): New variable.
682 (get_some_local_dynamic_name): New function.
683 (final_end_function): Clear some_local_dynamic_name.
684 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
685 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
686 (print_operand): Report an error if '%&' is used inappropriately.
687 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
688 (get_some_local_dynamic_name_1): Delete.
689 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
690 (rs6000_get_some_local_dynamic_name): Delete.
691 (rs6000_get_some_local_dynamic_name_1): Delete.
692 (print_operand): Report an error if '%&' is used inappropriately.
693 * config/s390/s390.c (machine_function): Remove some_ld_name.
694 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
695 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
696 * config/sparc/sparc.c: Include rtl-iter.h.
697 (machine_function): Remove some_ld_name.
698 (sparc_print_operand): Report an error if '%&' is used inappropriately.
699 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
700
701 2014-09-03 Richard Henderson <rth@redhat.com>
702
703 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
704 (aarch64_popwb_pair_reg): Remove.
705 (aarch64_set_frame_expr): Remove.
706 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
707 the restore ops performed by the insns generated.
708 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
709 insn. Perform the calls_eh_return addition later; do not attempt to
710 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
711 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
712 special markup at all. Load cfun->machine->frame.hard_fp_offset
713 into a local variable.
714 (aarch64_frame_pointer_required): Don't check calls_alloca.
715
716 2014-09-03 Richard Biener <rguenther@suse.de>
717
718 * opts.c (default_options_optimization): Adjust
719 max-combine-insns to 2 for -Og.
720
721 2014-09-03 Martin Jambor <mjambor@suse.cz>
722
723 PR ipa/62015
724 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
725 pass-trough jump functions correctly.
726
727 2014-09-03 Martin Jambor <mjambor@suse.cz>
728
729 PR ipa/61986
730 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
731 created replacements in ascending order of offsets.
732 (known_aggs_to_agg_replacement_list): Likewise.
733
734 2014-09-03 Martin Liska <mliska@suse.cz>
735
736 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
737 is set to set uninitialized value for vnresult.
738
739 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
740
741 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
742 for TARGET_MUST_PASS_IN_STACK.
743
744 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
745
746 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
747 for TARGET_ARG_PARTIAL_BYTES.
748
749 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
750
751 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
752 instructions for varargs implementation.
753 (nds32_expand_epilogue): Emit stack adjustment instructions for
754 varargs implementation.
755
756 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
757
758 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
759 optimization detection.
760
761 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
762
763 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
764 arguments.
765 (nds32_function_arg_advance): Deal with nameless arguments.
766 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
767 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
768 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
769
770 2014-09-03 Richard Biener <rguenther@suse.de>
771
772 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
773 (struct bb_bitmap_sets): Remove deferred member.
774 (BB_DEFERRED): Remove.
775 (defer_or_phi_translate_block): Remove.
776 (compute_antic_aux): Remove deferring of blocks, assert
777 proper iteration order.
778 (compute_antic): Do not set BB_DEFERRED.
779 (eliminate): Allocate el_avail of proper size initially.
780
781 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
782
783 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
784 according to the value of crtl->args.pretend_args_size.
785
786 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
787
788 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
789 varargs information.
790
791 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
792
793 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
794 implementation for TARGET_SETUP_INCOMING_VARARGS.
795 (nds32_strict_argument_naming): Refine comment.
796 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
797 Define for future implementation.
798
799 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
800
801 * config/i386/adxintrin.h (_subborrow_u32): New.
802 (_addcarry_u32): Ditto.
803 (_subborrow_u64): Ditto.
804 (_addcarry_u64): Ditto.
805 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
806 IX86_BUILTIN_SBB64.
807 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
808 __builtin_ia32_sbb_u64
809
810 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
811
812 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
813 GPR-specific stuff.
814 (nds32_function_arg_advance): Likewise.
815 (nds32_init_cumulative_args): Likewise.
816 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
817 (NDS32_FIRST_GPR_REGNUM): Define.
818 (NDS32_LAST_GPR_REGNUM): Define.
819 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
820 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
821 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
822 (machine_function): Use GRP-specific stuff.
823
824 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
825
826 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
827 (nds32_expand_epilogue): Likewise.
828 (nds32_expand_prologue_v3push): Likewise.
829 (nds32_expand_epilogue_v3pop): Likewise.
830
831 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
832
833 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
834 v3push/v3pop for variadic function.
835 * config/nds32/nds32.md (prologue, epilogue): Likewise.
836
837 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
838
839 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
840 Check rtx for varargs implementation.
841 (nds32_output_stack_pop): Likewise.
842 * config/nds32/nds32-protos.h: Have a rtx argument for
843 nds32_output_stack_push and nds32_output_stack_pop.
844 * config/nds32/nds32.md: Likewise.
845
846 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
847
848 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
849 to check if FUNC is an interrupt service routine.
850 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
851
852 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
853
854 * config/nds32/nds32.h (machine_function): Add some fields for variadic
855 arguments implementation.
856
857 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
858
859 * config/nds32/nds32-predicates.c
860 (nds32_valid_stack_push_pop): Rename to ...
861 (nds32_valid_stack_push_pop_p): ... this.
862 * config/nds32/nds32-protos.h: Likewise.
863 * config/nds32/predicates.md: Likewise.
864
865 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
866
867 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
868 (nds32_emit_stack_v3push): ... this.
869 (nds32_gen_stack_v3pop): Rename to ...
870 (nds32_emit_stack_v3pop): ... this and consider CFA restore
871 information.
872
873 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
874
875 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
876 (nds32_emit_stack_push_multiple): ... this.
877 (nds32_gen_stack_pop_multiple): Rename to ...
878 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
879 information.
880
881 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
882
883 PR target/61078
884 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
885 and add a second splitter to handle the remaining cases.
886
887 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
888
889 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
890
891 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
892
893 * cfgexpand.c (label_rtx_for_bb): Change type to
894 hash_map<basic_block, rtx_code_label *> *.
895 (expand_gimple_basic_block): Adjust.
896 (pass_expand::execute): Likewise.
897
898 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
899
900 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
901 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
902 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
903 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
904 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
905 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
906 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
907 of rtx.
908
909 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
910
911 * alloc-pool.c: Include coretypes.h.
912 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
913 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
914 hash_set instead of htab.
915 * ggc-page.c (in_gc): New variable.
916 (ggc_free): Do nothing if a collection is taking place.
917 (ggc_collect): Set in_gc appropriately.
918 * ggc.h (gt_ggc_mx(const char *)): New function.
919 (gt_pch_nx(const char *)): Likewise.
920 (gt_ggc_mx(int)): Likewise.
921 (gt_pch_nx(int)): Likewise.
922 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
923 (hash_map::hash_entry::pch_nx): Likewise.
924 (hash_map::hash_entry::pch_nx_helper): Likewise.
925 (hash_map::hash_map): Adjust.
926 (hash_map::create_ggc): New function.
927 (gt_ggc_mx): Likewise.
928 (gt_pch_nx): Likewise.
929 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
930 (default_hashset_traits::pch_nx): Likewise.
931 (hash_set::hash_entry::ggc_mx): Likewise.
932 (hash_set::hash_entry::pch_nx): Likewise.
933 (hash_set::hash_entry::pch_nx_helper): Likewise.
934 (hash_set::hash_set): Adjust.
935 (hash_set::create_ggc): New function.
936 (hash_set::elements): Likewise.
937 (gt_ggc_mx): Likewise.
938 (gt_pch_nx): Likewise.
939 * hash-table.h (hash_table::hash_table): Adjust.
940 (hash_table::m_ggc): New member.
941 (hash_table::~hash_table): Adjust.
942 (hash_table::expand): Likewise.
943 (hash_table::empty): Likewise.
944 (gt_ggc_mx): New function.
945 (hashtab_entry_note_pointers): Likewise.
946 (gt_pch_nx): Likewise.
947
948 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
949
950 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
951 built-in definition.
952 (XVCVUXDDP_SCALE): Likewise.
953 (XVCVDPSXDS_SCALE): Likewise.
954 (XVCVDPUXDS_SCALE): Likewise.
955 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
956 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
957 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
958 VSX_BUILTIN_XVCVDPUXDS_SCALE.
959 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
960 prototype.
961 * config/rs6000/rs6000.c (real.h): New include.
962 (rs6000_scale_v2df): New function.
963 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
964 (UNSPEC_VSX_XVCVUXDDP): Likewise.
965 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
966 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
967 (vsx_xvcvsxddp_scale): New define_expand.
968 (vsx_xvcvsxddp): New define_insn.
969 (vsx_xvcvuxddp_scale): New define_expand.
970 (vsx_xvcvuxddp): New define_insn.
971 (vsx_xvcvdpsxds_scale): New define_expand.
972 (vsx_xvcvdpsxds): New define_insn.
973 (vsx_xvcvdpuxds_scale): New define_expand.
974 (vsx_xvcvdpuxds): New define_insn.
975 * doc/extend.texi (vec_ctf): Add new prototypes.
976 (vec_cts): Likewise.
977 (vec_ctu): Likewise.
978 (vec_splat): Likewise.
979 (vec_div): Likewise.
980 (vec_mul): Likewise.
981
982 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
983
984 PR target/62275
985 * config/arm/neon.md
986 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
987 <v_cmp_result>): New pattern.
988 * config/arm/iterators.md (NEON_VCVT): New int iterator.
989 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
990 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
991 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
992 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
993 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
994
995 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
996
997 PR target/62275
998 * config/arm/iterators.md (FIXUORS): New code iterator.
999 (VCVT): New int iterator.
1000 (su_optab): New code attribute.
1001 (su): Likewise.
1002 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
1003
1004 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1005
1006 * config/aarch64/predicates.md (aarch64_comparison_operation):
1007 New special predicate.
1008 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
1009 aarch64_comparison_operation instead of matching an operator.
1010 Update operand numbers.
1011 (csinc3<mode>_insn): Likewise.
1012 (*csinv3<mode>_insn): Likewise.
1013 (*csneg3<mode>_insn): Likewise.
1014 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
1015 * config/aarch64/aarch64.c (aarch64_get_condition_code):
1016 Return -1 instead of aborting on invalid condition codes.
1017 (aarch64_print_operand): Update aarch64_get_condition_code callsites
1018 to assert that the returned condition code is valid.
1019 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
1020
1021 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
1022
1023 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
1024 tree.def, and gimple.def
1025
1026 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1027 Balaji V. Iyer <balaji.v.iyer@intel.com>
1028 Igor Zamyatin <igor.zamyatin@intel.com>
1029
1030 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
1031 (__cilkrts_cilk_for_64): Likewise.
1032 * cilk-common.c (declare_cilk_for_builtin): New function.
1033 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
1034 __cilkrts_cilk_for_64 bultins.
1035 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
1036 CILK_TI_F_LOOP_64.
1037 (cilk_for_32_fndecl): New define.
1038 (cilk_for_64_fndecl): Likewise.
1039 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
1040 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
1041 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
1042 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
1043 GF_OMP_FOR_COMBINED_INTO.
1044 * gimplify.c (gimplify_scan_omp_clauses): Added
1045 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1046 (gimplify_adjust_omp_clauses): Ditto.
1047 (gimplify_omp_for): Added CILK_FOR case.
1048 (gimplify_expr): Ditto.
1049 * omp-low.c: Include cilk.h.
1050 (extract_omp_for_data): Set appropriate kind for
1051 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
1052 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
1053 (create_omp_child_function_name): Added second argument to handle
1054 cilk_for case.
1055 (cilk_for_check_loop_diff_type): New function.
1056 (expand_cilk_for_call): Likewise.
1057 (expand_cilk_for): Likewise.
1058 (create_omp_child_function): Set cilk_for_count; handle the cases when
1059 it is true; call create_omp_child_function_name with second argument.
1060 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
1061 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
1062 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
1063 * tree-nested.c (convert_nonlocal_omp_clauses): Added
1064 OMP_CLAUSE__CILK_FOR_COUNT_ case.
1065 (convert_local_omp_clauses): Ditto.
1066 * tree-pretty-print.c (dump_omp_clause): Added
1067 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
1068 (dump_generic_node): Added CILK_FOR case.
1069 * tree.c (omp_clause_num_ops): New element
1070 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
1071 (omp_clause_code_name): New element _Cilk_for_count_.
1072 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
1073 * tree.def: Add tree code for CILK_FOR.
1074
1075 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1076
1077 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
1078 (ppc403-compare): Add "exts with dot" case.
1079 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
1080 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
1081 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
1082 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
1083 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
1084 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
1085 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
1086 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
1087 cell-cmp-microcoded): Similarly.
1088 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
1089 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
1090 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
1091 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
1092 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
1093 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
1094 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
1095 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
1096 (power6-compare): Add "exts with dot" case.
1097 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
1098 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
1099 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
1100
1101 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
1102 if avoiding Cell microcode.
1103 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
1104 (is_cracked_insn): Ditto.
1105 (insn_must_be_first_in_group): Ditto.
1106 * config/rs6000/rs6000.md (dot): Adjust comment.
1107 (cell_micro): Handle exts+dot.
1108 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
1109 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
1110 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
1111 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
1112 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
1113 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
1114 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
1115
1116 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1117
1118 * config/rs6000/rs6000.md (QHSI): Delete.
1119 (EXTQI, EXTHI, EXTSI): New mode iterators.
1120 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
1121 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
1122 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
1123 9 anonymous instructions, and 8 splitters): Delete.
1124 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
1125 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
1126 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
1127 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
1128 *zero_extendsi<mode>2_dot2): New.
1129
1130 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1131
1132 * config/rs6000/rs6000.md (any_extend): New code iterator.
1133 (u, su): New code attributes.
1134 (dmode, DMODE): New mode attributes.
1135 (<su>mul<mode>3_highpart): New.
1136 (*<su>mul<mode>3_highpart): New.
1137 (<su>mulsi3_highpart_le): New.
1138 (<su>muldi3_highpart_le): New.
1139 (<su>mulsi3_highpart_64): New.
1140 (<u>mul<mode><dmode>3): New.
1141 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
1142 splitters): Delete.
1143 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
1144 splitters): Delete.
1145
1146 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
1147
1148 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
1149 *mulsi3_internal2, and two splitters): Delete.
1150 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
1151 Delete.
1152 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
1153
1154 2014-09-02 Richard Biener <rguenther@suse.de>
1155
1156 PR tree-optimization/62695
1157 * tree-ssa-structalias.c (find_func_clobbers): Add missing
1158 vector truncate.
1159
1160 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
1161
1162 PR target/62312
1163 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
1164
1165 2014-09-01 Andi Kleen <ak@linux.intel.com>
1166
1167 * file-find.c (add_prefix_begin): Add.
1168 (do_add_prefix): Rename from add_prefix with first argument.
1169 (add_prefix): Add new wrapper.
1170 * file-find.h (add_prefix_begin): Add.
1171 * gcc-ar.c (main): Support -B option.
1172
1173 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
1174
1175 * genemit.c: Include dumpfile.h.
1176 (gen_split): Print name of splitter function to dump file.
1177
1178 2014-09-01 Richard Biener <rguenther@suse.de>
1179
1180 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
1181 Use stack auto_vecs for constraint expressions.
1182 (find_func_aliases_for_call): Likewise.
1183 (find_func_aliases): Likewise.
1184 (find_func_clobbers): Likewise.
1185
1186 2014-09-01 Richard Biener <rguenther@suse.de>
1187
1188 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
1189 operands vector in most cases. Remove redundant code.
1190
1191 2014-09-01 Olivier Hainque <hainque@adacore.com>
1192
1193 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
1194 $WIND_BASE instead of designating a harcoded arbitrary home dir.
1195 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
1196
1197 2014-09-01 Richard Biener <rguenther@suse.de>
1198
1199 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
1200 copy_reference_ops_from_call, vn_nary_op_compute_hash,
1201 vn_reference_compute_hash, vn_reference_insert): Remove.
1202 (vn_reference_lookup_call): New function.
1203 * tree-ssa-sccvn.c (vn_reference_compute_hash,
1204 copy_reference_ops_from_ref, copy_reference_ops_from_call,
1205 vn_reference_insert, vn_nary_op_compute_hash): Make static.
1206 (create_reference_ops_from_call): Remove.
1207 (vn_reference_lookup_3): Properly update shared_lookup_references.
1208 (vn_reference_lookup_pieces): Assert that we updated
1209 shared_lookup_references properly.
1210 (vn_reference_lookup): Likewise.
1211 (vn_reference_lookup_call): New function.
1212 (visit_reference_op_call): Use it. Avoid re-building the
1213 reference ops.
1214 (visit_reference_op_load): Remove redundant lookup.
1215 (visit_reference_op_store): Perform special tail-merging work
1216 only when possibly doing tail-merging.
1217 (visit_use): Likewise.
1218 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
1219
1220 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1221
1222 PR target/62025
1223 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
1224 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
1225 (find_inc): Revert 2014-08-13 change.
1226
1227 2014-09-01 Marek Polacek <polacek@redhat.com>
1228
1229 PR middle-end/61903
1230 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
1231 Change the type of V to unsigned HOST_WIDE_INT.
1232
1233 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1234
1235 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
1236 the size of byte markers.
1237 (do_shift_rotate): Fix confusion between host, target and marker byte
1238 size.
1239 (verify_symbolic_number_p): Likewise.
1240 (find_bswap_or_nop_1): Likewise.
1241 (find_bswap_or_nop): Likewise.
1242
1243 2014-09-01 Olivier Hainque <hainque@adacore.com>
1244
1245 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
1246 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
1247
1248 2014-09-01 Jakub Jelinek <jakub@redhat.com>
1249
1250 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
1251 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
1252 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
1253
1254 2014-09-01 Yury Gribov <y.gribov@samsung.com>
1255
1256 PR sanitizer/61897
1257 PR sanitizer/62140
1258 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
1259 (build_check_stmt): Likewise.
1260 (instrument_strlen_call): Likewise.
1261 (asan_expand_check_ifn): Likewise and fix types.
1262 (maybe_cast_to_ptrmode): New function.
1263
1264 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1265
1266 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
1267
1268 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
1269
1270 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
1271
1272 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
1273
1274 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
1275 prefix to function labels when generating fast indirect calls.
1276
1277 2014-08-30 David Malcolm <dmalcolm@redhat.com>
1278
1279 PR bootstrap/62304
1280
1281 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
1282 param back from rtx_insn * to rtx. Rename param from "label" to
1283 "label_or_return", reintroducing "label" as an rtx_insn * after
1284 we've ensured it's not a RETURN.
1285 (first_active_target_insn): Likewise for return type and param;
1286 add a checked cast to rtx_insn * once we've ensured "insn" is not
1287 a RETURN.
1288 (steal_delay_list_from_target): Convert param "pnew_thread" back
1289 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
1290 with JUMP_LABEL.
1291 (own_thread_p): Convert param "thread" back from an rtx_insn * to
1292 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
1293 cast once we've established we're not dealing with a RETURN,
1294 renaming subsequent uses of "thread" to "thread_insn".
1295 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
1296 to JUMP_LABEL.
1297 (follow_jumps): Convert return type and param "label" from
1298 rtx_insn * back to rtx. Move initialization of "value" to after
1299 the handling for ANY_RETURN_P, adding a checked cast there to
1300 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
1301 rename to "this_label_or_return", reintroducing "this_label" as
1302 an rtx_insn * once we've handled the case where it could be an
1303 ANY_RETURN_P.
1304 (fill_slots_from_thread): Rename param "thread" to
1305 "thread_or_return", converting from an rtx_insn * back to an rtx.
1306 Reintroduce name "thread" as an rtx_insn * local with a checked
1307 cast once we've handled the case of it being an ANY_RETURN_P.
1308 Convert local "new_thread" from an rtx_insn * back to an rtx.
1309 Add a checked cast when assigning to "trial" from "new_thread".
1310 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
1311 checked cast to rtx_insn * from "new_thread" when invoking
1312 get_label_before.
1313 (fill_eager_delay_slots): Convert locals "target_label",
1314 "insn_at_target" from rtx_insn * back to rtx.
1315 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
1316 (relax_delay_slots): Convert locals "trial", "target_label" from
1317 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
1318 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
1319 invoking update_block.
1320 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
1321 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
1322
1323 * resource.h (mark_target_live_regs): Undo erroneous conversion
1324 of second param of r214693, converting it back from rtx_insn * to
1325 rtx, since it could be a RETURN.
1326
1327 * resource.c (find_dead_or_set_registers): Similarly, convert
1328 param "jump_target" back from an rtx_insn ** to an rtx *, as we
1329 could be writing back a RETURN. Rename local rtx_insn * "next" to
1330 "next_insn", and introduce "lab_or_return" as a local rtx,
1331 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
1332 (mark_target_live_regs): Undo erroneous conversion
1333 of second param of r214693, converting it back from rtx_insn * to
1334 rtx, since it could be a RETURN. Rename it from "target" to
1335 "target_maybe_return", reintroducing the name "target" as a local
1336 rtx_insn * with a checked cast, after we've handled the case of
1337 ANY_RETURN_P.
1338
1339 2014-08-29 DJ Delorie <dj@redhat.com>
1340
1341 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
1342 pointer size up to a power of two.
1343 * defaults.h (DWARF2_ADDR_SIZE): Round up.
1344 (POINTER_SIZE_UNITS): New, rounded up value.
1345 * dwarf2asm.c (size_of_encoded_value): Use it.
1346 (dw2_output_indirect_constant_1): Likewise.
1347 * expmed.c (init_expmed_one_conv): We now know the sizes of
1348 partial int modes.
1349 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
1350 * optabs.c (expand_float): Use precision, not size.
1351 (expand_fix): Likewise.
1352 * simplify-rtx (simplify_unary_operation_1): Likewise.
1353 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1354 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
1355 (default_assemble_integer) Likewise.
1356 (dump_tm_clone_pairs): Likewise.
1357 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
1358 * var-tracking.c (adjust_mems): Allow partial-int modes also.
1359 (prepare_call_arguments): Likewise.
1360 * stor-layout.c (finalize_type_size): Preserve precision.
1361 (layout_type): Use precision, not size.
1362
1363 * expr.c (convert_move): If the target has an explicit converter,
1364 use it.
1365
1366 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1367
1368 * gdbinit.in: Skip various inline functions in rtl.h when
1369 stepping.
1370
1371 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
1372
1373 PR bootstrap/62301
1374 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
1375
1376 2014-08-29 Richard Biener <rguenther@suse.de>
1377
1378 PR tree-optimization/62291
1379 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
1380 exactly the vector size needed and use quick_push.
1381 (phi_translate_1): Adjust comment.
1382 (valid_in_sets): Remove block argument and remove pointless
1383 checking of NAMEs.
1384 (dependent_clean): Adjust for removal of block argument.
1385 (clean): Likewise.
1386 (compute_antic_aux): Likewise.
1387 (compute_partial_antic_aux): Likewise.
1388
1389 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1391 Anna Tikhonova <anna.tikhonova@intel.com>
1392 Ilya Tocar <ilya.tocar@intel.com>
1393 Andrey Turetskiy <andrey.turetskiy@intel.com>
1394 Ilya Verbin <ilya.verbin@intel.com>
1395 Kirill Yukhin <kirill.yukhin@intel.com>
1396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1397
1398 * config/i386/sse.md
1399 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
1400 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
1401 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
1402 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
1403
1404 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1406 Anna Tikhonova <anna.tikhonova@intel.com>
1407 Ilya Tocar <ilya.tocar@intel.com>
1408 Andrey Turetskiy <andrey.turetskiy@intel.com>
1409 Ilya Verbin <ilya.verbin@intel.com>
1410 Kirill Yukhin <kirill.yukhin@intel.com>
1411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1412
1413 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
1414 * config/i386/sse.md
1415 (define_mode_iterator VI4_128_8_256): New.
1416 (define_mode_iterator VI2_128_4_256): Ditto.
1417 (define_mode_iterator PMOV_DST_MODE): Rename into
1418 (define_mode_iterator PMOV_DST_MODE_1): this.
1419 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
1420 Use PMOV_DST_MODE_1 mode iterator.
1421 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1422 Ditto.
1423 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
1424 Ditto.
1425 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
1426 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
1427 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
1428 (define_mode_iterator PMOV_DST_MODE_2): New.
1429 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
1430 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
1431 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
1432 Ditto.
1433 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
1434 (define_mode_attr pmov_dst_3): Ditto.
1435 (define_mode_attr pmov_dst_zeroed_3): Ditto.
1436 (define_mode_attr pmov_suff_3): Ditto.
1437 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
1438 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
1439 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
1440 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
1441 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
1442 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
1443 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
1444 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
1445 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
1446 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
1447 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
1448 (define_mode_attr pmov_dst_4): Ditto.
1449 (define_mode_attr pmov_dst_zeroed_4): Ditto.
1450 (define_mode_attr pmov_suff_4): Ditto.
1451 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
1452 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
1453 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
1454 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
1455 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
1456 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
1457 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
1458 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
1459 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
1460 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
1461 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
1462
1463 2014-08-29 Richard Biener <rguenther@suse.de>
1464
1465 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
1466 NON_LVALUE_EXPR in gimple.
1467
1468 2014-08-29 Richard Biener <rguenther@suse.de>
1469
1470 PR middle-end/62292
1471 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
1472 from previous refactoring.
1473 (gimple_fold_builtin_strncpy): Likewise.
1474
1475 2014-08-29 David Malcolm <dmalcolm@redhat.com>
1476
1477 PR bootstrap/62300
1478 * function.c (assign_parm_setup_reg): Remove erroneous checked
1479 cast to rtx_insn * on result of gen_extend_insn in favor of
1480 introducing a new local rtx "pat".
1481
1482 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1483
1484 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
1485 to silence warning.
1486 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
1487
1488 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1489
1490 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
1491 (next_insn): Likewise.
1492 * emit-rtl.c (next_insn): Likewise.
1493 (previous_insn): Likewise.
1494 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
1495 "insn" and "next" from rtx to rtx_insn *.
1496 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
1497 "insn", "insn1", "vliw_start", "prologue_end_note",
1498 "last_insn_in_packet".
1499
1500 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1501
1502 * shrink-wrap.h (active_insn_between): Strengthen both params from
1503 rtx to rtx_insn *.
1504 * function.c (active_insn_between): Likewise.
1505
1506 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1507
1508 * genattr.c (main): When writing out insn-attr.h, strengthen param
1509 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
1510 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
1511 writing out the definition of dfa_clear_single_insn_cache to the
1512 generated insn-automata.c
1513
1514 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1515
1516 * resource.h (clear_hashed_info_for_insn): Strengthen param from
1517 rtx to rtx_insn *.
1518 (incr_ticks_for_insn): Likewise.
1519 (init_resource_info): Likewise.
1520
1521 * resource.c (init_resource_info): Likewise.
1522 (clear_hashed_info_for_insn): Likewise.
1523 (incr_ticks_for_insn): Likewise.
1524
1525 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
1526 rtx to rtx_insn *.
1527 (steal_delay_list_from_target): Use methods of "seq".
1528 (try_merge_delay_insns): Use methods of "merged_insns".
1529 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
1530 (reorg_redirect_jump): Likewise for param "jump".
1531
1532 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1533
1534 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
1535 rtx to rtx_insn *.
1536 * config/s390/s390.c (s390_split_branches): Eliminate top-level
1537 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
1538 "set_insn".
1539 (s390_mainpool_finish): In three places, split out a local rtx
1540 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
1541 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
1542 and split another local rtx "insn" out into rtx "pat" and
1543 rtx_insn * "insn".
1544 * config/sh/sh.c (output_branchy_insn): Rather than working
1545 directly on operands[9], introduce local rtx_code_label *
1546 variables named "lab" in two places, working on them, and then
1547 assigning them to operands[9], so that the intervening operations
1548 are known by the type system to be on insns.
1549
1550 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1551
1552 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
1553 const rtx_insn *.
1554
1555 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
1556 in invocation of INSN_HAS_LOCATION.
1557
1558 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1559
1560 * config/rs6000/altivec.h (vec_xl): New #define.
1561 (vec_xst): Likewise.
1562 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
1563 (XXSPLTD_V2DI): Likewise.
1564 (DIV_V2DI): Likewise.
1565 (UDIV_V2DI): Likewise.
1566 (MUL_V2DI): Likewise.
1567 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1568 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
1569 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
1570 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
1571 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
1572 (UNSPEC_VSX_DIVSD): Likewise.
1573 (UNSPEC_VSX_DIVUD): Likewise.
1574 (UNSPEC_VSX_MULSD): Likewise.
1575 (vsx_mul_v2di): New insn-and-split.
1576 (vsx_div_v2di): Likewise.
1577 (vsx_udiv_v2di): Likewise.
1578 (vsx_xxspltd_<mode>): New insn.
1579
1580 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1581
1582 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
1583 NEXT_INSN.
1584 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
1585 (NEXT_INSN): Likewise.
1586 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
1587 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
1588 const rtx_insn *.
1589 (no_labels_between_p): Likewise for both params.
1590
1591 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
1592 cast when using NEXT_INSN on operands[2].
1593 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
1594 "insn" from rtx to rtx_insn *, adding a checked cast.
1595 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
1596 rtx_insn *.
1597 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
1598 for third param.
1599 (arc_text_label): Likewise for param "insn".
1600 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
1601 "insn".
1602 (arc_ccfsm_record_condition): Likewise for param "jump".
1603 (arc_text_label): Likewise for local "label".
1604 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1605 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1606 a method for typesafety. Add a checked cast.
1607 * config/arc/constraints.md (Clb): Add a checked cast when getting
1608 the CODE_LABEL from a LABEL_REF.
1609 * config/arm/arm.c (require_pic_register): Strengthen locals
1610 "seq", "insn" from rtx to rtx_insn *.
1611 (create_fix_barrier): Likewise for locals "selected", "next".
1612 (thumb1_reorg): Likewise for locals "prev", "insn".
1613 (arm_expand_prologue): Likewise for local "last".
1614 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1615 operands[0].
1616 (thumb2_output_casesi): Likewise for operands[2].
1617 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1618 strengthen local "insn" from rtx to rtx_insn *.
1619 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1620 type and param "insn".
1621 (find_prev_insn_start): Likewise.
1622 (hwloop_optimize): Likewise for locals "insn", "last_insn",
1623 "prev".
1624 (gen_one_bundle): Likewise for loal "t".
1625 (find_load): Likewise for param "insn".
1626 (workaround_speculation): Likewise for locals "insn", "next",
1627 "target", "next_tgt".
1628 * config/c6x/c6x.c (assign_reservations): Likewise for both params
1629 and for locals "insn", "within", "last".
1630 (count_unit_reqs): Likewise for params "head", "tail" and local
1631 "insn".
1632 (try_rename_operands): Likewise for params "head", "tail".
1633 (reshuffle_units): Likewise for locals "head", "tail", "insn".
1634 (struct c6x_sched_context): Likewise for fields
1635 "last_scheduled_insn", "last_scheduled_iter0".
1636 (init_sched_state): Replace NULL_RTX with NULL.
1637 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1638 to rtx_insn *.
1639 (undo_split_delayed_nonbranch): Likewise for param and for local
1640 "prev".
1641 (conditionalize_after_sched): Likewise for local "insn".
1642 (bb_earliest_end_cycle): Likewise.
1643 (filter_insns_above): Likewise for locals "insn", "next".
1644 (hwloop_optimize): Remove redundant checked cast.
1645 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1646 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1647 NULL_RTX with NULL.
1648 (cris_simple_epilogue): Likewise.
1649 (cris_expand_prologue): Likewise.
1650 (cris_expand_epilogue): Likewise.
1651 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1652 local "insn" from rtx to rtx_insn *.
1653 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1654 (struct frv_packet_group): Likewise for the elements within array
1655 fields "insns", "sorted", and for field "nop".
1656 (frv_packet): Likewise for the elements within array field
1657 "insns".
1658 (frv_add_insn_to_packet): Likewise for param "insn".
1659 (frv_insert_nop_in_packet): Likewise for param "insn" and local
1660 "last".
1661 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1662 (frv_sort_insn_group_1): Likewise for local "insn".
1663 (frv_optimize_membar_local): Likewise.
1664 (frv_align_label): Likewise for locals "x", "last", "barrier",
1665 "label".
1666 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1667 local.
1668 (ia64_sched_init): Likewise for local "insn".
1669 (scheduled_good_insn): Likewise for param "last".
1670 (struct _ia64_sched_context): Likewise for field
1671 "last_scheduled_insn".
1672 (ia64_init_sched_context): Replace NULL_RTX with NULL.
1673 (struct bundle_state): Likewise for field "insn".
1674 (issue_nops_and_insn): Likewise for param "insn".
1675 (get_next_important_insn): Likewise for return type and both
1676 params.
1677 (ia64_add_bundle_selector_before): Likewise for param "insn".
1678 (bundling): Likewise for params "prev_head_insn", "tail" and
1679 locals "insn", "next_insn", "b". Eliminate top-level local rtx
1680 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1681 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1682 Strengthen final param from rtx to rtx_insn *.
1683 (iq2000_move_1word): Likewise for second param.
1684 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1685 param "cur_insn" and local "next_insn".
1686 (iq2000_move_1word): Likewise for param "insn".
1687 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1688 casts when using NEXT_INSN on operands[1].
1689 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1690 "insn" from rtx to rtx_insn *.
1691 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1692 "x", introducing local rtx_insn * "insn" for when working with the
1693 CODE_LABEL of the LABEL_REF.
1694 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1695 rtx_insn *.
1696 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1697 param.
1698 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1699 type.
1700 (conditionalize_block): Likewise for return type and param.
1701 (mcore_is_dead): Likewise for param "first" and local "insn".
1702 (emit_new_cond_insn): Likewise for return type.
1703 (conditionalize_block): Likewise for return type, param, and
1704 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1705 "newinsn".
1706 (conditionalize_optimization): Likewise for local "insn".
1707 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1708 using NEXT_INSN.
1709 * config/microblaze/microblaze.md: Add checked casts when using
1710 NEXT_INSN.
1711 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1712 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1713 and rtx_insn * "insn".
1714 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1715 checked cast when using NEXT_INSN on operands[2].
1716 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1717 local "insn" from rtx to rtx_insn *.
1718 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1719 Likewise.
1720 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1721 Add a checked cast when using NEXT_INSN on operands[1].
1722 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1723 rtx to rtx_insn *.
1724 (pa_output_cbranch): Likewise for final param.
1725 (pa_output_lbranch): Likewise for second param.
1726 (pa_output_bb): Likewise for third param.
1727 (pa_output_bvb): Likewise.
1728 (pa_output_dbra): Likewise for second param.
1729 (pa_output_movb): Likewise.
1730 (pa_output_parallel_movb): Likewise.
1731 (pa_output_parallel_addb): Likewise.
1732 (pa_output_millicode_call): Likewise for first param.
1733 (pa_output_mul_insn): Likewise for second param.
1734 (pa_output_div_insn): Likewise for third param.
1735 (pa_output_mod_insn): Likewise for second param.
1736 (pa_jump_in_call_delay): Likewise for param.
1737 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1738 (pa_output_div_insn): Likewise.
1739 (pa_output_mod_insn): Likewise.
1740 (pa_output_cbranch): Likewise.
1741 (pa_output_lbranch): Likewise.
1742 (pa_output_bb): Likewise.
1743 (pa_output_bvb): Likewise.
1744 (pa_output_dbra): Likewise.
1745 (pa_output_movb): Likewise.
1746 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1747 to simplify and for typesafety.
1748 (pa_output_call): Use method of rtx_sequence *.
1749 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1750 (pa_jump_in_call_delay): Likewise.
1751 (pa_output_parallel_movb): Likewise.
1752 (pa_output_parallel_addb): Likewise.
1753 (pa_following_call): Likewise.
1754 (pa_combine_instructions): Likewise for locals "anchor",
1755 "floater".
1756 (pa_can_combine_p): Likewise for params "anchor", "floater" and
1757 locals "start", "end".
1758 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1759 param "insn" and local "local_insn".
1760 (picochip_final_prescan_insn): Likewise for local "local_insn".
1761 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1762 local "insn".
1763 (uses_TOC): Likewise.
1764 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1765 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1766 splitting out to more tightly-scoped locals, 3 as rtx and one as
1767 rtx_insn *.
1768 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1769 to rtx_insn *.
1770 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1771 where needed.
1772 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1773 to rtx_insn *.
1774 (fixup_addr_diff_vecs): Likewise.
1775 (reg_unused_after): Likewise for param 2.
1776 (sh_can_redirect_branch): Likewise for both params.
1777 (check_use_sfunc_addr): Likewise for param 1.
1778 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1779 (find_barrier): Likewise for local "last_got".
1780 (gen_block_redirect): Likewise for return type, param "jump" and
1781 locals "prev", "scan", "next", "insn".
1782 (struct far_branch): Likewise for fields "near_label",
1783 "insert_place", "far_label".
1784 (gen_far_branch): Likewise for local "jump".
1785 (fixup_addr_diff_vecs): Likewise for param "first" and locals
1786 "insn", "prev".
1787 (barrier_align): Likewise for param and for locals "prev", "x".
1788 Introduce local rtx_sequence * "prev_seq" and use insn method for
1789 typesafety and clarity.
1790 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1791 (get_dest_uid): Likewise for local "dest".
1792 (split_branches): Likewise for locals "next", "beyond", "label",
1793 "block", "far_label". Add checked casts when assigning to
1794 bp->far_label and "far_label".
1795 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1796 (sequence_insn_p): Likewise.
1797 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
1798 more loop-scoped rtx "insn" when walking LABEL_REFS.
1799 (sh_can_redirect_branch): Strengthen both params from rtx to
1800 rtx_insn *.
1801 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
1802 new local rtx_sequence * "seq" via a dyn_cast, and use a method
1803 for clarity and typesafety.
1804 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1805 "insn" from rtx to rtx_insn *.
1806 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1807 when using NEXT_INSN on the CODE_LABEL in operands[2].
1808 (define_insn "casesi_worker_2"): Likewise.
1809 (define_insn "casesi_shift_media"): Likewise.
1810 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1811 operands[3].
1812 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1813 Strengthen field "insn" from rtx to rtx_insn *.
1814 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1815 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1816 param "start_insn" and local "start_insn".
1817 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1818 field "insn".
1819 (find_set_of_reg_bb): Likewise for param "insn".
1820 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1821 (trace_reg_uses): Likewise for param "start_insn".
1822 (sh_treg_combine::cbranch_trace): Likewise for field
1823 "cbranch_insn".
1824 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1825 param "insn".
1826 (sh_treg_combine::record_set_of_reg): Likewise for param
1827 "start_insn" and local "i".
1828 (sh_treg_combine::can_remove_cstore): Likewise for local
1829 "prev_insn".
1830 (sh_treg_combine::try_optimize_cbranch): Likewise for param
1831 "insn".
1832 (sh_treg_combine::execute): Likewise for local "i".
1833 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1834 param.
1835 (sparc_check_64): Likewise for second param.
1836 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1837 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
1838 dyn_cast, using its insn method for typesafety and clarity.
1839 (empty_delay_slot): Strengthen param "insn" from rtx to
1840 rtx_insn *.
1841 (set_extends): Likewise.
1842 (sparc_check_64): Likewise.
1843 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1844 for locals "seq", "last_insn".
1845 (combine_bnp): Likewise for param "insn".
1846 (xstormy16_reorg): Likewise for local "insn".
1847 * config/v850/v850.c (substitute_ep_register): Likewise for params
1848 "first_insn", "last_insn" and local "insn".
1849 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1850 elements of "regs" array, and local "insn".
1851 * except.c (emit_note_eh_region_end): Likewise for param "insn".
1852 * final.c (final_sequence): Strengthen this global from rtx to
1853 rtx_sequence *.
1854 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1855 rtx_insn *.
1856 (final_scan_insn): Update assignment to "final_sequence" to be
1857 from "seq", the cast version of "body", for type-safety.
1858 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1859 "insns" from rtx to rtx_insn *.
1860 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1861 * genattr.c (main): When writing out generated insn-attr.h,
1862 strengthen params 1 and 3 of eligible_for_delay,
1863 eligible_for_annul_true, eligible_for_annul_false from rtx to
1864 rtx_insn *.
1865 * genattrtab.c (write_eligible_delay): Likewise when writing out
1866 generated insn-attrtab.c; also local "insn" the generated
1867 functions.
1868 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1869 to rtx_insn *.
1870 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1871 "start_label" from rtx to rtx_insn *.
1872 * ira.c (decrease_live_ranges_number): Likewise for local "p".
1873 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1874 "insns" and local "insn".
1875 (validate_equiv_mem): Likewise for param "start" and local "insn".
1876 (memref_used_between_p): Likewise for params "start", "end" and
1877 local "insn".
1878 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1879 final param.
1880 * loop-doloop.c (doloop_optimize): Within region guarded by
1881 INSN_P (doloop_pat), introduce a new local rtx_insn *
1882 "doloop_insn" via a checked cast, and use it for typesafety,
1883 eventually writing the value back into doloop_pat.
1884 * output.h (final_sequence): Strengthen this global from rtx to
1885 rtx_sequence *.
1886 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1887 reintroducing "insn" as an rtx_insn * via a checked cast.
1888 Strengthen param "attempt" and local "new_insn"from rtx to
1889 rtx_insn *.
1890 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1891 to rtx_insn *.
1892 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1893 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1894 "p" in favor of more tightly-scoped replacements, sometimes rtx
1895 and sometimes rtx_insn *, as appropriate.
1896 (delete_output_reload): Eliminate top-level rtx "i1", splitting
1897 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1898 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
1899 local "trial" from rtx to rtx_insn *.
1900 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1901 rtx to rtx_insn *. Strenghten local "pat" from rtx to
1902 rtx_sequence * and use methods for clarity and typesafety.
1903 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1904 rtx to rtx_insn *. Strenghten local "li" from rtx to
1905 rtx_insn_list * and use its methods for clarity and typesafety.
1906 (steal_delay_list_from_target): Strengthen param "insn" from rtx
1907 to rtx_insn *.
1908 (steal_delay_list_from_fallthrough): Likewise.
1909 (try_merge_delay_insns): Likewise for param "thread" and locals
1910 "trial", "next_trial", "delay_insn".
1911 (redundant_insn): Likewise for param "target" and local "trial".
1912 (own_thread_p): Likewise for param "thread" and locals
1913 "active_insn", "insn".
1914 (get_label_before): Likewise for param "insn".
1915 (fill_simple_delay_slots): Likewise for local "new_label"; use
1916 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1917 (label_before_next_insn): Strengthen return type and local "insn"
1918 from rtx to rtx_insn *.
1919 (relax_delay_slots): Likewise for locals "other", "tmp".
1920 (make_return_insns): Likewise for param "first" and locals "insn",
1921 "jump_insn", "prev". Move declaration of "pat" to its assignment
1922 and strengthen from rtx to rtx_sequence *. Use its methods for
1923 clarity and typesafety.
1924 * rtlanal.c (no_labels_between_p): Strengthen params from
1925 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
1926 rtx_insn *.
1927 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1928 from const_rtx to const rtx_insn *.
1929 (reg_set_between_p): Rename param "from_insn" to
1930 "uncast_from_insn", and reintroduce "from_insn" as a
1931 const rtx_insn * via a checked cast.
1932 (modified_between_p): Likewise for param "start" as "uncast_start".
1933 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1934 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1935 "tmp", head" from rtx to rtx_insn *.
1936 (recompute_rev_top_order): Likewise for local "insn".
1937 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1938 * store-motion.c (build_store_vectors): Likewise for local "insn".
1939 Strengthen local "st" from rtx to rtx_insn_list * and use methods
1940 for clarity and typesafety.
1941 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1942 rtx to rtx_insn *.
1943 (computation_cost): Likewise for local "seq".
1944 (get_address_cost): Likewise.
1945
1946 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1947
1948 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1949 const rtx_insn *.
1950 (label_is_jump_target_p): Likewise for second param.
1951
1952 * rtlanal.c (tablejump_p): Likewise for param "insn".
1953 (label_is_jump_target_p): Likewise for param "jump_insn".
1954
1955 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1956
1957 * rtl.h (find_first_parameter_load): Strengthen return type and
1958 both params from rtx to rtx_insn *.
1959 * rtlanal.c (find_first_parameter_load): Strengthen return type,
1960 both params and locals "before", "first_set" from rtx to
1961 rtx_insn *. Remove now-redundant cast.
1962 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
1963
1964 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1965
1966 * rtl.h (find_last_value): Delete.
1967 * rtlanal.c (find_last_value): Delete.
1968
1969 2014-08-28 David Malcolm <dmalcolm@redhat.com>
1970
1971 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
1972 from rtx to rtx_insn *.
1973 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
1974 rtx "note" with new local rtx_insn * "new_head" when calculating
1975 head insn of new basic block.
1976 * combine.c (combine_split_insns): Strengthen return type and local
1977 "ret" from rtx to rtx_insn *.
1978 (likely_spilled_retval_p): Likewise for locals "use" and "p".
1979 (try_combine): Eliminate local "m_split", splitting into new
1980 locals "m_split_insn" and "m_split_pat".
1981 (find_split_point): Strengthen local "seq" from rtx into
1982 rtx_insn *.
1983 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
1984 locals "label", "branch".
1985 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
1986 for local "insn".
1987 (define_expand "umulsi3_highpart"): Likewise for local "insn".
1988 * dse.c (note_add_store_info): Likewise for fields "first",
1989 "current".
1990 (note_add_store): Likewise for local "insn".
1991 (emit_inc_dec_insn_before): Likewise for locals "insn",
1992 "new_insn", "cur".
1993 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
1994 (replace_read): Likewise for locals "insns", "this_insn".
1995 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
1996 (notice_eh_throw): Likewise for param "insn".
1997 (before_next_cfi_note): Likewise for return type, param, and local
1998 "prev".
1999 (connect_traces): Likewise for local "note".
2000 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
2001 (verify_rtl_sharing): Likewise.
2002 (unshare_all_rtl_in_chain): Likewise for param "insn".
2003 (get_first_nonnote_insn): Likewise for local "insn".
2004 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
2005 "seq" and use its methods to clarify things.
2006 (next_insn): Strengthen return type from rtx to rtx_insn *.
2007 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
2008 local rtx_insn * using a checked cast, dropping a checked cast
2009 made redundant by this change. Use a cast to and method of
2010 rtx_sequence to clarify the code.
2011 (previous_insn): Rename param "insn" to "uncast_insn" and
2012 reintroduce "insn" as a local rtx_insn * using a checked cast,
2013 dropping a checked cast made redundant by this change. Use a cast
2014 to and method of rtx_sequence to clarify the code.
2015 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
2016 reintroduce "insn" as a local rtx_insn * using a checked cast,
2017 dropping a checked cast made redundant by this change.
2018 (next_nonnote_insn_bb): Likewise.
2019 (prev_nonnote_insn): Likewise.
2020 (prev_nonnote_insn_bb): Likewise.
2021 (next_nondebug_insn): Likewise.
2022 (prev_nondebug_insn): Likewise.
2023 (next_nonnote_nondebug_insn): Likewise.
2024 (prev_nonnote_nondebug_insn): Likewise.
2025 (next_real_insn): Likewise.
2026 (prev_real_insn): Likewise.
2027 (next_active_insn): Likewise.
2028 (prev_active_insn): Likewise.
2029 (next_cc0_user): Likewise. Use rtx_sequence and a method for
2030 clarity.
2031 (prev_cc0_setter): Likewise.
2032 (try_split): Rename param "trial" to "uncast_trial" and
2033 reintroduce "insn" as a local rtx_insn * using a checked cast,
2034 dropping checked casts made redundant by this change.
2035 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
2036 rtx to rtx_insn *.
2037 (remove_insn): Rename param "insn" to "uncast_insn" and
2038 reintroduce "insn" as a local rtx_insn * using a checked cast.
2039 (emit_pattern_after_setloc): Likewise for param "after", as
2040 "uncast_after".
2041 (emit_pattern_after): Likewise. Strengthen local "prev" from
2042 rtx to rtx_insn *.
2043 (emit_pattern_before_setloc): Rename param "before" to
2044 "uncast_before" and reintroduce "before" as a local rtx_insn *
2045 using a checked cast. Strengthen locals "first", "last" from
2046 rtx to rtx_insn *.
2047 (emit_pattern_before): Likewise rename/cast param "before" to
2048 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
2049 * except.c (copy_reg_eh_region_note_forward): Strengthen param
2050 "first" and local "insn" from rtx to rtx_insn *.
2051 (copy_reg_eh_region_note_backward): Likewise for param "last"
2052 and local "insn".
2053 * expr.c (fixup_args_size_notes): Rename param "last" to
2054 "uncast_last" and reintroduce "last" as a local rtx_insn *
2055 using a checked cast. Strengthen local "insn" from rtx to
2056 rtx_insn *.
2057 * function.c (set_insn_locations): Strengthen param "insn" from
2058 rtx to rtx_insn *.
2059 (record_insns): Likewise for param "insns" and local "tmp".
2060 (active_insn_between): Rename param "tail" to
2061 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
2062 using a checked cast.
2063 (thread_prologue_and_epilogue_insns): Split out top-level local
2064 rtx "seq" into three different rtx_insn * locals. Strengthen
2065 local "prologue_seq" from rtx to rtx_insn *.
2066 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
2067 from rtx to rtx_insn *.
2068 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
2069 (priority): Likewise for locals "prev_first", "twin".
2070 (setup_insn_max_reg_pressure): Likewise for param "after".
2071 (sched_setup_bb_reg_pressure_info): Likewise.
2072 (no_real_insns_p): Strengthen params from const_rtx to
2073 const rtx_insn *.
2074 (schedule_block): Strengthen local "next_tail" from rtx to
2075 rtx_insn *.
2076 * ifcvt.c (find_active_insn_before): Strengthen return type and
2077 param "insn" from rtx to rtx_insn *.
2078 (find_active_insn_after): Likewise.
2079 (cond_exec_process_insns): Likewise for param "start" and local "insn".
2080 (cond_exec_process_if_block): Likewise for locals "then_start",
2081 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
2082 (noce_process_if_block): Likewise for local "jump".
2083 (merge_if_block): Likewise for two locals named "end".
2084 (cond_exec_find_if_block): Likewise for local "last_insn".
2085 * jump.c (delete_related_insns): Rename param "insn" to
2086 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
2087 checked cast. Strengthen local "p" from rtx to rtx_insn *.
2088 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
2089 NULL.
2090 (split_reg): Likewise.
2091 * lra.c (lra_process_new_insns): Likewise.
2092 * modulo-sched.c (permute_partial_schedule): Strengthen param
2093 "last" from rtx to rtx_insn *.
2094 * optabs.c (add_equal_note): Likewise for param "insns" and local
2095 "last_insn".
2096 (expand_binop_directly): Add checked casts to rtx_insn * within
2097 NEXT_INSN (pat) uses.
2098 (expand_unop_direct): Likewise.
2099 (maybe_emit_unop_insn): Likewise.
2100 * recog.c (peep2_attempt): Strengthen locals "last",
2101 "before_try", "x" from rtx to rtx_insn *.
2102 * reorg.c (optimize_skip): Strengthen return type and local
2103 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
2104 and locals "trial", "next_trial" from rtx to rtx_insn *.
2105 * resource.c (next_insn_no_annul): Strengthen return type and
2106 param "insn" from rtx to rtx_insn *. Use a cast to and method of
2107 rtx_sequence to clarify the code.
2108 (mark_referenced_resources): Add a checked cast to rtx_insn *
2109 within PREV_INSN (x).
2110 (find_dead_or_set_registers): Strengthen return type, param
2111 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
2112 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
2113 to rtx_insn **.
2114 (mark_target_live_regs): Strengthen params "insns" and "target",
2115 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
2116 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
2117 the code.
2118 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
2119 from rtx to rtx_insn *.
2120 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
2121 from rtx to rtx_insn *.
2122 (copy_reg_eh_region_note_backward): Likewise.
2123 (unshare_all_rtl_in_chain): Likewise for sole param.
2124 (dump_rtl_slim): Strengthen second and third params from const_rtx
2125 to const rtx_insn *.
2126 * sched-deps.c (sched_free_deps): Strengthen params "head" and
2127 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
2128 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
2129 "next_tail" from rtx to rtx_insn *.
2130 (begin_move_insn): Likewise for local "next".
2131 * sched-int.h (sched_free_deps): Likewise for first and second
2132 params.
2133 (no_real_insns_p): Strengthen both params from const_rtx to
2134 const rtx_insn *.
2135 (sched_setup_bb_reg_pressure_info): Strengthen second params from
2136 rtx to rtx_insn *.
2137 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
2138 "next_tail".
2139 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
2140 and locals "insn", "tail" from const_rtx to const rtx_insn *.
2141 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
2142 rtx_insn *.
2143 (debug_rtl_slim): Strengthen params "first" and "last" from
2144 const_rtx to const rtx_insn *.
2145 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
2146 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
2147 (convert_to_simple_return): Likewise for param "returnjump".
2148 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
2149 "prologue_seq".
2150 (convert_to_simple_return): Likewise for param "returnjump".
2151 * valtrack.c (propagate_for_debug): Likewise for params
2152 "insn", "last".
2153 * valtrack.h (propagate_for_debug): Likewise for second param.
2154
2155 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2156
2157 * output.h (insn_current_reference_address): Strengthen param
2158 from rtx to rtx_insn *.
2159 * final.c (insn_current_reference_address): Likewise.
2160
2161 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2162
2163 * basic-block.h (inside_basic_block_p): Strengthen param from
2164 const_rtx to const rtx_insn *.
2165 * cfgbuild.c (inside_basic_block_p): Likewise.
2166
2167 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2168
2169 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
2170 rtx_insn *.
2171 (get_trace_info): Likewise for param "insn".
2172 (save_point_p): Likewise.
2173 (maybe_record_trace_start): Likewise for both params.
2174 (maybe_record_trace_start_abnormal): Likewise.
2175 (create_trace_edges): Likewise for sole param and for three of the
2176 locals named "lab".
2177 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
2178 to rtx_insn *, and update a call to pat->element to pat->insn.
2179
2180 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2181
2182 * function.h (struct expr_status): Convert field "x_forced_labels"
2183 from rtx_expr_list * to rtx_insn_list *.
2184
2185 * cfgbuild.c (make_edges): Convert local "x" from an
2186 rtx_expr_list * to an rtx_insn_list *, replacing use of
2187 "element" method with "insn" method.
2188 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2189 * except.c (sjlj_emit_dispatch_table): Replace use of
2190 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
2191 forced_labels.
2192 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
2193 rtx_expr_list * to an rtx_insn_list *, replacing use of
2194 "element" method with "insn" method.
2195 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2196 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
2197 rtx_insn *, adding a checked cast. Replace use of
2198 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
2199 forced_labels.
2200 (expand_label): Likewise for local "label_r".
2201
2202 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2203
2204 * function.h (struct rtl_data): Convert field
2205 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
2206 rtx_insn_list *.
2207 * rtl.h (remove_node_from_insn_list): New prototype.
2208
2209 * builtins.c (expand_builtin): When prepending to
2210 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2211 gen_rtx_EXPR_LIST.
2212 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
2213 to rtx_insn_list *, and use its "insn" method rather than
2214 "element" method.
2215 * cfgrtl.c (delete_insn): Use new function
2216 remove_node_from_insn_list rather than
2217 remove_node_from_expr_list.
2218 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
2219 to rtx_insn_list *, and use its "insn" method rather than
2220 "element" method.
2221 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2222 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2223 * rtlanal.c (remove_node_from_insn_list): New function, adapted
2224 from remove_node_from_expr_list.
2225 * stmt.c (expand_label): When prepending to
2226 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
2227 gen_rtx_EXPR_LIST.
2228
2229 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2230
2231 * function.h (struct rtl_data): Strengthen fields "x_return_label"
2232 and "x_naked_return_label" from rtx to rtx_code_label *.
2233
2234 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2235
2236 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
2237 (SET_NEXT_INSN): Likewise.
2238 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
2239
2240 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
2241 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
2242 to split out the SEQUENCE from local "bundle", strengthening the
2243 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
2244 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
2245 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
2246 and the type of the elements of the "slot" array from rtx to
2247 rtx_insn *.
2248 (reorg_split_calls): Likewise for locals "insn" and "next", and
2249 the type of the elements of the "slot" array.
2250
2251 * config/frv/frv.c (frv_nops): Likewise for the elements of this
2252 array.
2253 (frv_function_prologue): Likewise for locals "insn", "next",
2254 "last_call".
2255 (frv_register_nop): Introduce a local "nop_insn" to be the
2256 rtx_insn * containing rtx "nop".
2257
2258 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
2259 used as an insn and sometimes as a pattern, so rename it to
2260 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
2261 using it where dealing with the core insn.
2262
2263 * config/picochip/picochip.c (reorder_var_tracking_notes):
2264 Strengthen locals "insn", "next", "last_insn", "queue",
2265 "next_queue", "prev" from rtx to rtx_insn *.
2266
2267 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
2268 the second param is an rtx_insn ** rather than an rtx **.
2269 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
2270 from rtx to rtx_sequence *, and introduce local named "sequence",
2271 using methods of rtx_sequence to clarify the code.
2272 (remove_insn): Introduce local rtx_sequence * named "sequence" and
2273 use its methods.
2274 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
2275 Rename param "after" to "uncast_after", reintroducing "after" as a
2276 local rtx_insn * with a checked cast.
2277 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
2278 reintroducing "after" as a local rtx_insn * with a checked cast.
2279 Strengthen local "last" from rtx to rtx_insn * and remove the
2280 now-redundant checked casts.
2281 (copy_delay_slot_insn): Strengthen return type and param from rtx
2282 to rtx_insn *.
2283
2284 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
2285 "last" from rtx to rtx_insn *.
2286
2287 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2288
2289 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
2290 param from rtx to rtx_insn *.
2291
2292 * emit-rtl.c (copy_delay_slot_insn): Likewise.
2293
2294 * reorg.c (skip_consecutive_labels): Strengthen return type, param
2295 and local "insn" from rtx to rtx_insn *.
2296 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
2297 (unfilled_slots_next): Likewise.
2298 (function_return_label): Strengthen from rtx to rtx_code_label *.
2299 (function_simple_return_label): Likewise.
2300 (first_active_target_insn): Strengthen return type and param from
2301 rtx to rtx_insn *.
2302 (find_end_label): Strengthen return type from rtx to
2303 rtx_code_label *; strengthen locals as appropriate.
2304 (emit_delay_sequence): Strengthen return type, param "insn" and
2305 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
2306 and local "li" from rtx to rtx_insn_list *, using methods of
2307 rtx_insn_list for clarity and typesafety.
2308 (add_to_delay_list): Strengthen return type and param "insn" from
2309 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
2310 rtx_insn_list * and use methods of rtx_insn_list.
2311 (delete_from_delay_slot): Strengthen return type, param "insn",
2312 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
2313 Strengthen local "seq" from rtx to rtx_sequence *, and local
2314 "delay_list" from rtx to rtx_insn_list *, using methods of
2315 rtx_sequence for clarity and type-safety.
2316 (delete_scheduled_jump): Add checked cast when invoking
2317 delete_from_delay_slot. Strengthen local "trial" from rtx to
2318 rtx_insn *.
2319 (optimize_skip): Strengthen return type and local "delay_list"
2320 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
2321 rtx_insn *.
2322 (steal_delay_list_from_target): Strengthen return type, param
2323 "delay_list" and local "new_delay_list" from rtx to
2324 rtx_insn_list *. Strengthen param "seq" from rtx to
2325 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
2326 rtx_insn **.
2327 Split out local "temp" into multiple more-tightly scoped locals:
2328 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
2329 of rtx_insn_list and rtx_sequence for clarity and typesafety.
2330 Strengthen locals named "trial" from rtx to rtx_insn *.
2331 (steal_delay_list_from_fallthrough): Strengthen return type and
2332 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
2333 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
2334 Strengthen local "trial" from rtx to rtx_insn *.
2335 (try_merge_delay_insns): Strength local "merged_insns" from rtx
2336 to rtx_insn_list * and use its methods. Strengthen local "pat"
2337 from rtx to rtx_sequence * and use its methods. Strengthen locals
2338 "dtrial" and "new_rtx" from rtx to rtx_insn *.
2339 (get_label_before): Strengthen return type and local "label" from
2340 rtx to rtx_insn *.
2341 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
2342 "next_trial", "next", prev". Strengthen local "delay_list" from
2343 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
2344 rtx_insn **.
2345 (follow_jumps): Strengthen return type, param "label" and locals
2346 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
2347 (fill_slots_from_thread): Strengthen return type, param
2348 "delay_list" from rtx to rtx_insn_list *. Strengthen params
2349 "insn", "thread", "opposite_thread" and locals "new_thread",
2350 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
2351 "sequence" from a checked cast to rtx_sequence so that we can call
2352 steal_delay_list_from_target and steal_delay_list_from_fallthrough
2353 with an rtx_sequence *.
2354 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
2355 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
2356 Strengthen local "delay_list" from rtx to rtx_insn_list *.
2357 (relax_delay_slots): Strengthen param "first" and locals "insn",
2358 "next", "trial", "delay_insn", "target_label" from rtx to
2359 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
2360 Introduce a local "trial_seq" for PATTERN (trial) of type
2361 rtx_sequence *, in both cases using methods of rtx_sequence.
2362 (dbr_schedule): Strengthen param "first" and locals "insn",
2363 "next", "epilogue_insn" from rtx to rtx_insn *.
2364
2365 2014-08-28 Richard Biener <rguenther@suse.de>
2366
2367 PR tree-optimization/62283
2368 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2369 Do not peel loops for alignment where the vector loop likely
2370 doesn't run at least VF times.
2371
2372 2014-08-28 Bin Cheng <bin.cheng@arm.com>
2373
2374 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
2375 important_candidates. Consider all important candidates if
2376 IVS doesn't give any result. Remove check on ivs->upto.
2377 (try_add_cand_for): Call iv_ca_add_use only once.
2378
2379 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2381 Anna Tikhonova <anna.tikhonova@intel.com>
2382 Ilya Tocar <ilya.tocar@intel.com>
2383 Andrey Turetskiy <andrey.turetskiy@intel.com>
2384 Ilya Verbin <ilya.verbin@intel.com>
2385 Kirill Yukhin <kirill.yukhin@intel.com>
2386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2387
2388 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
2389 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
2390 masking.
2391 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
2392 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2393 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
2394 (define_insn "*mul<mode>3"): Add EVEX version.
2395
2396 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2398 Anna Tikhonova <anna.tikhonova@intel.com>
2399 Ilya Tocar <ilya.tocar@intel.com>
2400 Andrey Turetskiy <andrey.turetskiy@intel.com>
2401 Ilya Verbin <ilya.verbin@intel.com>
2402 Kirill Yukhin <kirill.yukhin@intel.com>
2403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2404
2405 * config/i386/sse.md
2406 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
2407 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
2408 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
2409 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
2410 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
2411 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
2412 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
2413 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
2414 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
2415 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
2416 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
2417 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
2418 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
2419 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
2420 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
2421 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
2422
2423 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2425 Anna Tikhonova <anna.tikhonova@intel.com>
2426 Ilya Tocar <ilya.tocar@intel.com>
2427 Andrey Turetskiy <andrey.turetskiy@intel.com>
2428 Ilya Verbin <ilya.verbin@intel.com>
2429 Kirill Yukhin <kirill.yukhin@intel.com>
2430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2431
2432 * config/i386/sse.md
2433 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
2434 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
2435 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
2436
2437 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2438 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2439 Anna Tikhonova <anna.tikhonova@intel.com>
2440 Ilya Tocar <ilya.tocar@intel.com>
2441 Andrey Turetskiy <andrey.turetskiy@intel.com>
2442 Ilya Verbin <ilya.verbin@intel.com>
2443 Kirill Yukhin <kirill.yukhin@intel.com>
2444 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2445
2446 * config/i386/sse.md
2447 (define_mode_iterator VI128_256): New.
2448 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2449
2450 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2452 Anna Tikhonova <anna.tikhonova@intel.com>
2453 Ilya Tocar <ilya.tocar@intel.com>
2454 Andrey Turetskiy <andrey.turetskiy@intel.com>
2455 Ilya Verbin <ilya.verbin@intel.com>
2456 Kirill Yukhin <kirill.yukhin@intel.com>
2457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2458
2459 * config/i386/sse.md
2460 (define_mode_iterator VI8_256_512): New.
2461 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
2462 Ditto.
2463 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2464 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
2465 Ditto.
2466 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
2467
2468 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2469
2470 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
2471 pointer to the cumulative reloc value and return the value for
2472 this reloc instead.
2473 (compute_reloc_for_rtx): Take a const_rtx. Call
2474 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
2475 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
2476 for_each_rtx for the CONST case.
2477
2478 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2479
2480 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
2481 (mark_constants_in_pattern): ...this new function to iterate over
2482 all the subrtxes.
2483 (mark_constants): Update accordingly.
2484
2485 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2486
2487 * varasm.c: Include rtl-iter.h.
2488 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
2489 Remove the pointer to the cumulative hashval_t and just return
2490 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
2491 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2492 Accumulate the hashval_ts here instead of const_rtx_hash_1.
2493
2494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2495
2496 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
2497 Give real type of data parameter. Remove return value.
2498 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
2499 to iterate over subrtxes.
2500
2501 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2502
2503 * var-tracking.c (use_narrower_mode_test): Turn from being a
2504 for_each_rtx callback to being a function that examines each
2505 subrtx itself.
2506 (adjust_mems): Update accordingly.
2507
2508 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2509
2510 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
2511 callback to being a function that examines each subrtx itself.
2512 Remove handling of null rtxes.
2513 (add_uses): Update accordingly.
2514
2515 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2516
2517 * var-tracking.c: Include rtl-iter.h.
2518 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
2519 to being a function that examines each subrtx itself.
2520 (use_type): Update accordingly.
2521
2522 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2523
2524 * store-motion.c: Include rtl-iter.h.
2525 (extract_mentioned_regs_1): Delete.
2526 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
2527 for_each_rtx to iterate over subrtxes.
2528
2529 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2530
2531 * sel-sched.c: Include rtl-iter.h
2532 (count_occurrences_1): Delete.
2533 (count_occurrences_equiv): Turn rtxes into const_rtxes.
2534 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2535
2536 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2537
2538 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
2539 * rtlanal.c (tls_referenced_p_1): Delete.
2540 (tls_referenced_p): Take a const_rtx rather than an rtx.
2541 Use FOR_EACH_SUBRTX rather than for_each_rtx.
2542
2543 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2544
2545 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
2546 (for_each_inc_dec): Take an rtx rather than an rtx *.
2547 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
2548 (cselib_record_sets): Likewise.
2549 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
2550 (check_for_inc_dec): Likewise.
2551 * rtlanal.c (for_each_inc_dec_ops): Delete.
2552 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
2553 rather than a pointer to the memory address. Replace
2554 for_each_inc_dec_ops argument with separate function and data
2555 arguments. Abort on non-autoinc addresses.
2556 (for_each_inc_dec_find_mem): Delete.
2557 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
2558 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
2559
2560 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2561
2562 * rtl.h (find_all_hard_regs): Declare.
2563 * rtlanal.c (find_all_hard_regs): New function.
2564 (record_hard_reg_uses_1): Delete.
2565 (record_hard_reg_uses): Use find_all_hard_regs.
2566
2567 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2568
2569 * rtl.h (replace_label_data): Delete.
2570 (replace_label): Take the old label, new label and update-nuses flag
2571 as direct arguments. Return void.
2572 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
2573 * rtlanal.c (replace_label): Update interface as above. Handle
2574 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
2575 iterator. Use FOR_EACH_SUBRTX_PTR.
2576
2577 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2578
2579 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
2580 with const_rtx parameters.
2581 * varasm.c (get_pool_constant): Likewise.
2582 * rtlanal.c (rtx_referenced_p_1): Delete.
2583 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2584 Assert that the rtx we're looking for is nonnull. Allow searches
2585 for constant pool SYMBOL_REFs.
2586
2587 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2588
2589 * reload1.c: Include rtl-iter.h.
2590 (note_reg_elim_costly): Turn from being a for_each_rtx callback
2591 to being a function that examines each subrtx itself.
2592 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
2593
2594 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2595
2596 * regcprop.c (cprop_find_used_regs_1): Delete.
2597 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2598
2599 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2600
2601 * regcprop.c: Include rtl-iter.h.
2602 (kill_value): Take a const_rtx.
2603 (kill_autoinc_value): Turn from being a for_each_rtx callback
2604 to being a function that examines each subrtx itself.
2605 (copyprop_hardreg_forward_1): Update accordingly.
2606
2607 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2608
2609 * reg-stack.c: Include rtl-iter.h.
2610 (subst_stack_regs_in_debug_insn): Delete.
2611 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2612 instead of for_each_rtx.
2613
2614 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2615
2616 * lower-subreg.c (find_decomposable_subregs): Turn from being
2617 a for_each_rtx callback to being a function that examines each
2618 subrtx itself. Remove handling of null rtxes.
2619 (decompose_multiword_subregs): Update accordingly.
2620
2621 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2622
2623 * lower-subreg.c (adjust_decomposed_uses): Delete.
2624 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2625 Remove handling of null rtxes.
2626
2627 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2628
2629 * lower-subreg.c: Include rtl-iter.h.
2630 (resolve_subreg_use): Turn from being a for_each_rtx callback
2631 to being a function that examines each subrtx itself. Remove
2632 handling of null rtxes.
2633 (resolve_reg_notes, resolve_simple_move): Update accordingly.
2634 (decompose_multiword_subregs): Likewise.
2635
2636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2637
2638 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2639 to being a function that examines each subrtx itself.
2640 (simplify_using_condition, simplify_using_initial_values): Update
2641 accordingly.
2642
2643 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2644
2645 * loop-iv.c: Include rtl-iter.h.
2646 (find_single_def_src): New function.
2647 (replace_single_def_regs): Turn from being a for_each_rtx callback
2648 to being a function that examines each subrtx itself.
2649 (replace_in_expr, simplify_using_initial_values): Update accordingly.
2650
2651 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2652
2653 * jump.c (eh_returnjump_p_1): Delete.
2654 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2655 Remove handling of null rtxes.
2656
2657 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2658
2659 * jump.c: Include rtl-iter.h.
2660 (returnjump_p_1): Delete.
2661 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2662 Remove handling of null rtxes.
2663
2664 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2665
2666 * ira.c: Include rtl-iter.h.
2667 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2668 to being a function that examines each subrtx itself. Remove
2669 handling of null rtxes.
2670 (update_equiv_regs): Update call accordingly.
2671
2672 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2673
2674 * fwprop.c: Include rtl-iter.h.
2675 (varying_mem_p): Turn from being a for_each_rtx callback to being
2676 a function that examines each subrtx itself.
2677 (propagate_rtx): Update accordingly.
2678
2679 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2680
2681 * function.c: Include rtl-iter.h
2682 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2683 callback to being a function that examines each subrtx itself.
2684 Return the changed flag.
2685 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2686 (instantiate_virtual_regs): Update calls accordingly.
2687
2688 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2689
2690 * final.c: Include rtl-iter.h.
2691 (mark_symbol_ref_as_used): Delete.
2692 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2693 for_each_rtx.
2694
2695 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2696
2697 * emit-rtl.c: Include rtl-iter.h.
2698 (find_auto_inc): Turn from being a for_each_rtx callback to being
2699 a function that examines each subrtx itself. Assume the first operand
2700 to an RTX_AUTOINC is the automodified register.
2701 (try_split): Update call accordingly.
2702
2703 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2704
2705 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2706 Return a bool, inverting the result so that 0/false means "not ok".
2707 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2708 subrtxes of a CONST.
2709 (mem_loc_descriptor, add_const_value_attribute)
2710 (resolve_addr_in_expr): Update calls accordingly.
2711
2712 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2713
2714 * dwarf2out.c: Include rtl-iter.h.
2715 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2716 Remove unused data parameter. Return a bool, inverting the result
2717 so that 0/false means "not ok".
2718 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
2719 instead of for_each_rtx.
2720
2721 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2722
2723 * dse.c: Include rtl-iter.h.
2724 (check_mem_read_rtx): Change void * parameter to real type.
2725 Remove return value.
2726 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
2727 for_each_rtx. Don't handle null rtxes.
2728
2729 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2730
2731 * df-problems.c: Include rtl-iter.h.
2732 (find_memory): Turn from being a for_each_rtx callback to being
2733 a function that examines each subrtx itself. Continue to look for
2734 volatile references even after a nonvolatile one has been found.
2735 (can_move_insns_across): Update calls accordingly.
2736
2737 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2738
2739 * ddg.c (walk_mems_2, walk_mems_1): Delete.
2740 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2741 to iterate over subrtxes. Return a bool rather than an int.
2742
2743 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2744
2745 * ddg.c: Include rtl-iter.h.
2746 (mark_mem_use_1): Rename to...
2747 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
2748 instead of for_each_rtx.
2749 (mem_read_insn_p): Update accordingly.
2750
2751 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2752
2753 * cse.c (change_cc_mode_args): Delete.
2754 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2755 a function that examines each subrtx itself. Take the fields of
2756 change_cc_mode_args as argument and return void.
2757 (cse_change_cc_mode_insn): Update calls accordingly.
2758
2759 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2760
2761 * cse.c (is_dead_reg): Change argument to const_rtx.
2762 (dead_debug_insn_data): Delete.
2763 (is_dead_debug_insn): Expand commentary. Turn from being a
2764 for_each_rtx callback to being a function that examines
2765 each subrtx itself. Take the fields of dead_debug_insn_data
2766 as argument.
2767 (delete_trivially_dead_insns): Update call accordingly.
2768
2769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2770
2771 * cse.c (check_for_label_ref): Move earlier in file. Turn from
2772 being a for_each_rtx callback to being a function that examines
2773 each subrtx itself.
2774 (cse_extended_basic_block): Update call accordingly.
2775
2776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2777
2778 * cse.c (check_dependence_data): Delete.
2779 (check_dependence): Change from being a for_each_rtx callback to being
2780 a function that examines all subrtxes itself. Don't handle null rtxes.
2781 (invalidate): Update call accordingly.
2782
2783 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2784
2785 * cse.c: Include rtl-iter.h.
2786 (approx_reg_cost_1): Delete.
2787 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2788 Don't handle null rtxes.
2789
2790 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2791
2792 * cfgcleanup.c: Include rtl-iter.h.
2793 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2794 to being a function that examines each subrtx itself.
2795 (thread_jump): Update accordingly.
2796
2797 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2798
2799 * combine-stack-adj.c: Include rtl-iter.h.
2800 (record_stack_refs_data): Delete.
2801 (record_stack_refs): Turn from being a for_each_rtx callback
2802 to being a function that examines each subrtx itself.
2803 Take a pointer to the reflist. Invert sense of return value
2804 so that true means success and false means failure. Don't
2805 handle null rtxes.
2806 (combine_stack_adjustments_for_block): Update accordingly.
2807
2808 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2809
2810 * combine.c (record_truncated_value): Turn from being a for_each_rtx
2811 callback to a function that takes an rtx and returns a bool
2812 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2813 for_each_rtx.
2814
2815 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2816
2817 * combine.c: Include rtl-iter.h.
2818 (unmentioned_reg_p_1): Delete.
2819 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2820 Don't handle null rtxes.
2821
2822 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2823
2824 * calls.c: Include rtl-iter.h.
2825 (internal_arg_pointer_based_exp_1): Delete.
2826 (internal_arg_pointer_based_exp): Take a const_rtx.
2827 Use FOR_EACH_SUBRTX to iterate over subrtxes.
2828
2829 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2830
2831 * caller-save.c: Include rtl-iter.h.
2832 (add_used_regs_1): Delete.
2833 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2834 to iterate over subrtxes. Assert that any remaining pseudos
2835 have been spilled.
2836
2837 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2838
2839 * bt-load.c: Include rtl-iter.h.
2840 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2841 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
2842 to iterate over subrtxes.
2843 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2844 find_btr_use rather than btr_referenced_p.
2845
2846 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2847
2848 * alias.c: Include rtl-iter.h.
2849 (refs_newer_value_cb): Delete.
2850 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2851
2852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2853
2854 * rtl-iter.h: New file.
2855 * rtlanal.c: Include it.
2856 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2857 (generic_subrtx_iterator <T>::add_single_to_queue)
2858 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2859 (generic_subrtx_iterator <T>::free_array): New functions.
2860 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2861 (generic_subrtx_iterator <const_rtx_accessor>)
2862 (generic_subrtx_iterator <rtx_var_accessor>
2863 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2864 (setup_reg_subrtx_bounds): New function.
2865 (init_rtlanal): Call it.
2866
2867 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
2868
2869 PR target/62261
2870 * config/sh/sh.md (ashlsi3): Handle negative shift count for
2871 TARGET_SHMEDIA.
2872 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2873
2874 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
2875
2876 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2877
2878 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2879
2880 * rtl.h (JUMP_LABEL_AS_INSN): New.
2881
2882 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2883
2884 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2885 rtx_expr_list **.
2886 (alloc_EXPR_LIST): Strengthen return type from rtx to
2887 rtx_expr_list *.
2888 (remove_free_EXPR_LIST_node): Likewise for param.
2889 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2890 from rtx to rtx_expr_list *.
2891 * sched-int.h (struct deps_desc): Strengthen fields
2892 "pending_read_mems" and "pending_write_mems" from rtx to
2893 rtx_expr_list *.
2894
2895 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2896 rtx to rtx_expr_list *.
2897 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2898 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2899 rtx_expr_list **.
2900 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
2901 from rtx to rtx_expr_list *.
2902 * loop-iv.c (simplify_using_initial_values): Strengthen local
2903 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2904 "pnote_next" from rtx * to rtx_expr_list **.
2905 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
2906 param "exprp" from rtx * to rtx_expr_list **.
2907 (add_insn_mem_dependence): Strengthen local "mem_list" from
2908 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
2909 to rtx_expr_list *.
2910 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2911 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
2912 param "old_mems_p" from rtx * to rtx_expr_list **.
2913 * var-tracking.c (struct adjust_mem_data): Strengthen field
2914 "side_effects" from rtx to rtx_expr_list *.
2915 (adjust_insn): Replace NULL_RTX with NULL when assigning to
2916 rtx_expr_list *.
2917 (prepare_call_arguments): Likewise.
2918
2919 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2920
2921 * function.h (struct rtl_data): Strengthen field
2922 "x_stack_slot_list" from rtx to rtx_expr_list *.
2923
2924 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2925 when assigning to stack_slot_list.
2926
2927 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2928
2929 * function.h (struct rtl_data): Strengthen field
2930 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2931 * rtl.h (remove_node_from_expr_list): Strengthen second param from
2932 rtx * to rtx_expr_list **.
2933
2934 * cfgbuild.c (make_edges): In loop over
2935 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2936 rtx_expr_list *, and use methods of the latter class to clarify
2937 the code.
2938 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2939 rtx_expr_list *, and use methods of the latter class to clarify
2940 the code.
2941 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2942 * reload1.c (set_initial_label_offsets): Likewise for local "x".
2943 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2944 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
2945 to rtx_expr_list *. Use methods of the latter class to clarify
2946 the code.
2947
2948 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2949
2950 * function.h (struct expr_status): Strengthen field
2951 "x_forced_labels" from rtx to rtx_expr_list *.
2952
2953 * cfgbuild.c (make_edges): Split local "x" into two locals,
2954 strengthening one from rtx to rtx_expr_list *, and using methods
2955 of said class.
2956 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
2957 loop over forced_labels, introduce strengthen it from rtx to
2958 rtx_expr_list *, using methods to clarify the code.
2959 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
2960 to rtx_expr_list *, using methods of said class to clarify the
2961 code.
2962 * reload1.c (set_initial_label_offsets): Split local "x" into two
2963 per-loop variables, strengthening the first from rtx to
2964 rtx_expr_list * and using methods.
2965
2966 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2967
2968 * coretypes.h (class rtx_expr_list): Add forward declaration.
2969 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
2970 * gengenrtl.c (special_rtx): Add EXPR_LIST.
2971 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
2972 invariant: GET_CODE (X) == EXPR_LIST.
2973 (is_a_helper <rtx_expr_list *>::test): New.
2974 (rtx_expr_list::next): New.
2975 (rtx_expr_list::element): New.
2976 (gen_rtx_EXPR_LIST): New.
2977
2978 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2979
2980 * varasm.c (mark_constants): Convert a GET_CODE check into a
2981 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2982 Use methods of rtx_sequence to clarify the code.
2983
2984 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2985
2986 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
2987 local "seq" via a checked cast, and use methods of rtx_sequence
2988 to simplify the code.
2989
2990 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2991
2992 * resource.c (mark_referenced_resources): Strengthen local
2993 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
2994 using methods of rtx_sequence to clarify the code.
2995 (find_dead_or_set_registers): Within the switch statement, convert
2996 a GET_CODE check to a dyn_cast, introducing local "seq". Within
2997 the JUMP_P handling, introduce another local "seq", adding a
2998 checked cast to rtx_sequence *. In both cases, use methods of
2999 rtx_sequence to clarify the code.
3000 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
3001 via a checked cast, and use methods of rtx_sequence to simplify
3002 the code.
3003
3004 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3005
3006 * reorg.c (redundant_insn): In two places in the function, replace
3007 a check of GET_CODE with a dyn_cast, introducing local "seq", and
3008 usings methods of rtx_sequence to clarify the code.
3009
3010 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3011
3012 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
3013 local "seq" with a checked cast, and use methods of rtx_sequence
3014 to clarify the code.
3015
3016 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3017
3018 * function.c (contains): Introduce local "seq" for PATTERN (insn),
3019 with a checked cast, in the region for where we know it's a
3020 SEQUENCE. Use methods of rtx_sequence.
3021
3022 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3023
3024 * final.c (get_attr_length_1): Replace GET_CODE check with a
3025 dyn_cast, introducing local "seq" and the use of methods of
3026 rtx_sequence.
3027 (shorten_branches): Likewise, introducing local "body_seq".
3028 Strengthen local "inner_insn" from rtx to rtx_insn *.
3029 (reemit_insn_block_notes): Replace GET_CODE check with a
3030 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
3031 Use methods of rtx_sequence.
3032 (final_scan_insn): Likewise, introducing local "seq" for when
3033 "body" is known to be a SEQUENCE, using its methods.
3034
3035 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3036
3037 * except.c (can_throw_external): Strengthen local "seq" from rtx
3038 to rtx_sequence *. Use methods of rtx_sequence.
3039 (insn_nothrow_p): Likewise.
3040
3041 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3042
3043 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
3044 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
3045 Use methods of rtx_sequence.
3046 (scan_trace): Likewise for local "pat".
3047
3048 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3049
3050 * coretypes.h (class rtx_sequence): Add forward declaration.
3051 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
3052 invariant: GET_CODE (X) == SEQUENCE.
3053 (is_a_helper <rtx_sequence *>::test): New.
3054 (is_a_helper <const rtx_sequence *>::test): New.
3055 (rtx_sequence::len): New.
3056 (rtx_sequence::element): New.
3057 (rtx_sequence::insn): New.
3058
3059 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3060
3061 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
3062 rtx_insn_list **.
3063 (alloc_INSN_LIST): Strengthen return type from rtx to
3064 rtx_insn_list *.
3065 (copy_INSN_LIST): Likewise for return type and param.
3066 (concat_INSN_LIST): Likewise for both params and return type.
3067 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
3068 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
3069 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
3070 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
3071
3072 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
3073 "implicit_sets", "control_uses", "clobbers" from rtx to
3074 rtx_insn_list *.
3075 (struct deps_desc): Likewise for fields "pending_read_insns",
3076 "pending_write_insns", "pending_jump_insns",
3077 "last_pending_memory_flush", "last_function_call",
3078 "last_function_call_may_noreturn", "sched_before_next_call",
3079 "sched_before_next_jump".
3080 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
3081 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
3082
3083 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
3084 from rtx to rtx_insn_list *.
3085 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
3086 rtx_insn_list *.
3087
3088 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
3089 to rtx_insn_list **.
3090 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
3091 rtx_insn_list *.
3092 (queue_insn): Likewise for local "link".
3093 (struct haifa_saved_data): Strengthen field "insn_queue" from
3094 rtx * to rtx_insn_list **.
3095 (save_backtrack_point): Update allocation of save->insn_queue to
3096 reflect the strengthening of elements from rtx to rtx_insn_list *.
3097 (queue_to_ready): Strengthen local "link" from rtx to
3098 rtx_insn_list *; use methods "next" and "insn" when traversing the
3099 list.
3100 (early_queue_to_ready): Likewise for locals "link", "next_link",
3101 "prev_link".
3102 (schedule_block): Update allocation of insn_queue to reflect the
3103 strengthening of elements from rtx to rtx_insn_list *. Strengthen
3104 local "link" from rtx to rtx_insn_list *, and use methods when
3105 working it.
3106 (add_to_speculative_block): Strengthen locals "twins" and
3107 "next_node" from rtx to rtx_insn_list *, and use methods when
3108 working with them. Strengthen local "twin" from rtx to
3109 rtx_insn *, eliminating a checked cast.
3110 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
3111 from rtx to rtx_insn_list *, and use methods when working with
3112 them.
3113
3114 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
3115 from rtx to rtx_insn_list *, adding a checked cast.
3116 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
3117 rtx_insn_list **.
3118 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
3119 "newlink" from rtx to rtx_insn_list *. Strengthen local
3120 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
3121 from rtx to rtx_insn *.
3122 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
3123 from rtx to rtx_insn_list *. Use methods of the latter class.
3124 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
3125 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
3126 (remove_free_INSN_LIST_node): Strengthen return type and local
3127 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
3128 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
3129 rtx_insn_list *, using "insn" method.
3130
3131 * sched-deps.c (add_dependence_list): Strengthen param "list"
3132 from rtx to rtx_insn_list *, and use methods when working with it.
3133 (add_dependence_list_and_free): Strengthen param "listp" from
3134 rtx * to rtx_insn_list **.
3135 (remove_from_dependence_list): Strenghten param "listp" from rtx *
3136 to rtx_insn_list **, and use methods when working with *listp.
3137 (remove_from_both_dependence_lists): Strengthen param "listp" from
3138 rtx * to rtx_insn_list **
3139 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
3140 to rtx_insn_list **. Eliminate local "link", in favor of two new
3141 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
3142 respectively.
3143 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
3144 by introducing local "cond_deps".
3145 (remove_from_deps): Strengthen param "insn" from rtx to
3146 rtx_insn *.
3147
3148 * sched-rgn.c (concat_insn_mem_list): Strengthen param
3149 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
3150 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
3151 Use methods of rtx_insn_list.
3152
3153 * store-motion.c (struct st_expr): Strengthen fields
3154 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
3155 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
3156 rtx_insn_list *.
3157 (find_moveable_store): Split out "tmp" into multiple more-tightly
3158 scoped locals. Use methods of rtx_insn_list *.
3159 (compute_store_table): Strengthen local "tmp" from rtx to
3160 rtx_insn *. Use methods of rtx_insn_list *.
3161
3162 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3163
3164 * coretypes.h (class rtx_insn_list): Add forward declaration.
3165 * rtl.h (class rtx_insn_list): New subclass of rtx_def
3166 (is_a_helper <rtx_insn_list *>::test): New.
3167 (rtx_insn_list::next): New.
3168 (rtx_insn_list::insn): New.
3169 (gen_rtx_INSN_LIST): Add prototype.
3170 * emit-rtl.c (gen_rtx_INSN_LIST): New.
3171 * gengenrtl.c (special_rtx): Add INSN_LIST.
3172
3173 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3174
3175 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
3176 "prev" from rtx to rtx_insn *.
3177
3178 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3179
3180 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
3181 functions. Require merely an rtx for now, not an rtx_insn *.
3182 (BLOCK_FOR_INSN): Likewise.
3183 (INSN_LOCATION): Likewise.
3184 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
3185
3186 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3187
3188 * rtl.h (PATTERN): Convert this macro into a pair of inline
3189 functions, for now, requiring const_rtx and rtx.
3190
3191 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3192
3193 * target.def (unwind_emit): Strengthen param "insn" from rtx to
3194 rtx_insn *.
3195 (final_postscan_insn): Likewise.
3196 (adjust_cost): Likewise.
3197 (adjust_priority): Likewise.
3198 (variable_issue): Likewise.
3199 (macro_fusion_pair_p): Likewise.
3200 (dfa_post_cycle_insn): Likewise.
3201 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
3202 (first_cycle_multipass_issue): Likewise.
3203 (dfa_new_cycle): Likewise.
3204 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
3205 (speculate_insn): Likewise for param "insn".
3206 (gen_spec_check): Likewise for params "insn" and "label".
3207 (get_insn_spec_ds): Likewise for param "insn".
3208 (get_insn_checked_ds): Likewise.
3209 (dispatch_do): Likewise.
3210 (dispatch): Likewise.
3211 (cannot_copy_insn_p): Likewise.
3212 (invalid_within_doloop): Likewise.
3213 (legitimate_combined_insn): Likewise.
3214 (needed): Likewise.
3215 (after): Likewise.
3216
3217 * doc/tm.texi: Automatically updated to reflect changes to
3218 target.def.
3219
3220 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
3221 working with insn.
3222 (schedule_block): Likewise.
3223 (sched_init): Likewise.
3224 (sched_speculate_insn): Strengthen param "insn" from rtx to
3225 rtx_insn *.
3226 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
3227 working with insn.
3228 * hooks.c (hook_bool_rtx_true): Rename to...
3229 hook_bool_rtx_insn_true): ...this, and strengthen first param from
3230 rtx to rtx_insn *.
3231 (hook_constcharptr_const_rtx_null): Rename to...
3232 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3233 first param from const_rtx to const rtx_insn *.
3234 (hook_bool_rtx_int_false): Rename to...
3235 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3236 param from rtx to rtx_insn *.
3237 (hook_void_rtx_int): Rename to...
3238 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3239 rtx to rtx_insn *.
3240
3241 * hooks.h (hook_bool_rtx_true): Rename to...
3242 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
3243 rtx to rtx_insn *.
3244 (hook_bool_rtx_int_false): Rename to...
3245 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
3246 param from rtx to rtx_insn *.
3247 (hook_void_rtx_int): Rename to...
3248 (hook_void_rtx_insn_int): ...this, and strengthen first param from
3249 rtx to rtx_insn *.
3250 (hook_constcharptr_const_rtx_null): Rename to...
3251 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
3252 first param from const_rtx to const rtx_insn *.
3253
3254 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
3255 and local "prev" from rtx to rtx_insn *.
3256
3257 * sched-int.h (sched_speculate_insn): Strengthen first param from
3258 rtx to rtx_insn *.
3259
3260 * sel-sched.c (create_speculation_check): Likewise for local "label".
3261 * targhooks.c (default_invalid_within_doloop): Strengthen param
3262 "insn" from const_rtx to const rtx_insn *.
3263 * targhooks.h (default_invalid_within_doloop): Strengthen param
3264 from const_rtx to const rtx_insn *.
3265
3266 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
3267 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
3268
3269 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
3270 "insn".
3271 (arc_invalid_within_doloop): Likewise, with const.
3272
3273 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
3274 (arm_cannot_copy_insn_p): Likewise for param "insn".
3275 (arm_unwind_emit): Likewise.
3276
3277 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
3278 "dep_insn".
3279
3280 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
3281 (c6x_variable_issue): Likewise. Removed now-redundant checked
3282 cast.
3283 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
3284
3285 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
3286 Likewise for param "insn".
3287 (epiphany_mode_after): Likewise.
3288 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
3289 params "insn", "dep_insn".
3290 (epiphany_mode_needed): Likewise for param "insn".
3291 (epiphany_mode_after): Likewise.
3292
3293 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
3294 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3295 (ix86_avx_u128_mode_needed): Likewise.
3296 (ix86_i387_mode_needed): Likewise.
3297 (ix86_mode_needed): Likewise.
3298 (ix86_avx_u128_mode_after): Likewise.
3299 (ix86_mode_after): Likewise.
3300 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
3301 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
3302 (ix86_adjust_priority): Likewise for param "insn".
3303 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
3304 (do_dispatch): Likewise.
3305 (has_dispatch): Likewise.
3306 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
3307
3308 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
3309 reflect renaming of default hook implementation from
3310 hook_constcharptr_const_rtx_null to
3311 hook_constcharptr_const_rtx_insn_null.
3312 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
3313 rtx to rtx_insn *.
3314 (ia64_variable_issue): Likewise for param "insn".
3315 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
3316 (ia64_dfa_new_cycle): Likewise.
3317 (ia64_get_insn_spec_ds): Likewise.
3318 (ia64_get_insn_checked_ds): Likewise.
3319 (ia64_speculate_insn): Likewise.
3320 (ia64_gen_spec_check): Likewise for params "insn", "label".
3321 (ia64_asm_unwind_emit): Likewise for param "insn".
3322
3323 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
3324
3325 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
3326 "insn", "def_insn".
3327 (m68k_sched_variable_issue): Likewise for param "insn".
3328
3329 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
3330 "def_insn".
3331
3332 * config/microblaze/microblaze.c (microblaze_adjust_cost):
3333 Likewise for params "insn", "dep".
3334
3335 * config/mips/mips.c (mips_adjust_cost): Likewise.
3336 (mips_variable_issue): Likewise for param "insn".
3337 (mips_final_postscan_insn): Likewise.
3338
3339 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
3340 for params "insn", "dep".
3341
3342 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
3343 "dep_insn".
3344 (pa_adjust_priority): Likewise for param "insn".
3345
3346 * config/picochip/picochip.c (picochip_sched_adjust_cost):
3347 Likewise for params "insn", "dep_insn".
3348
3349 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
3350 param "insn".
3351 (rs6000_variable_issue): Likewise.
3352 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
3353 (rs6000_debug_adjust_cost): Likewise.
3354 (rs6000_adjust_priority): Likewise for param "insn".
3355 (rs6000_use_sched_lookahead_guard): Likewise.
3356 (get_next_active_insn): Likewise for return type and both params.
3357 (redefine_groups): Likewise for params "prev_head_insn", "tail"
3358 and locals "insn", "next_insn".
3359 (pad_groups): Likewise.
3360
3361 * config/s390/s390.c (s390_adjust_priority): Likewise for param
3362 "insn".
3363 (s390_cannot_copy_insn_p): Likewise.
3364 (s390_sched_variable_issue): Likewise for third param, eliminating
3365 checked cast.
3366 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
3367 default hook implementation from hook_constcharptr_const_rtx_null
3368 to hook_constcharptr_const_rtx_insn_null.
3369
3370 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
3371 from rtx to rtx_insn *.
3372 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
3373 (sh_variable_issue): Likewise for param "insn".
3374 (sh_dfa_new_cycle): Likewise.
3375 (sh_mode_needed): Likewise.
3376 (sh_mode_after): Likewise.
3377
3378 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
3379 params "insn", "dep_insn".
3380 (hypersparc_adjust_cost): Likewise.
3381 (sparc_adjust_cost): Likewise.
3382
3383 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
3384 param, eliminated checked cast.
3385 (spu_sched_adjust_cost): Likewise for first and third params.
3386
3387 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
3388 params "insn" and "dep_insn" from rtx to rtx_insn *.
3389
3390 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
3391
3392 2014-08-27 David Malcolm <dmalcolm@redhat.com>
3393
3394 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
3395 (set_is_load_p): ...this, updating to work on a SET pattern rather
3396 than an insn.
3397 (is_store_insn): Rename to...
3398 (set_is_store_p): ...this, updating to work on a SET pattern
3399 rather than an insn.
3400 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
3401 top of function to where it is needed. Rewrite the bogus
3402 condition that checks for "insn" and "dep" being PARALLEL to
3403 instead use single_set, introducing locals "insn_set" and
3404 "dep_set". Given that we only ever returned "cost" for a non-pair
3405 of SETs, bail out early if we don't have a pair of SET.
3406 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
3407 use the new locals "insn_set" and "dep_set", and update calls to
3408 is_load_insn and is_store_insn to be calls to set_is_load_p and
3409 set_is_store_p.
3410
3411 2014-08-27 Guozhi Wei <carrot@google.com>
3412
3413 PR target/62262
3414 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
3415 amount before using it.
3416
3417 2014-08-27 Richard Biener <rguenther@suse.de>
3418
3419 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
3420 get_maxval_strlen inside a more useful API.
3421 (gimple_fold_builtin_with_strlen): Remove and fold into ...
3422 (gimple_fold_builtin): ... caller.
3423 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
3424 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
3425 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
3426 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
3427 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
3428 gimple_fold_builtin_sprintf): Adjust to compute maxval
3429 themselves.
3430
3431 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
3432
3433 PR other/62248
3434 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
3435
3436 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3438 Anna Tikhonova <anna.tikhonova@intel.com>
3439 Ilya Tocar <ilya.tocar@intel.com>
3440 Andrey Turetskiy <andrey.turetskiy@intel.com>
3441 Ilya Verbin <ilya.verbin@intel.com>
3442 Kirill Yukhin <kirill.yukhin@intel.com>
3443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3444
3445 * config/i386/sse.md
3446 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
3447 Use `concat_tg_mode' attribute to determine asm register size.
3448
3449 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3451 Anna Tikhonova <anna.tikhonova@intel.com>
3452 Ilya Tocar <ilya.tocar@intel.com>
3453 Andrey Turetskiy <andrey.turetskiy@intel.com>
3454 Ilya Verbin <ilya.verbin@intel.com>
3455 Kirill Yukhin <kirill.yukhin@intel.com>
3456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3457
3458 * config/i386/sse.md
3459 (define_mode_iterator VI48_AVX512VL): New.
3460 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
3461 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
3462 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
3463 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3464 with VI1): Change mode iterator.
3465 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3466 with VI_ULOADSTORE_BW_AVX512VL): New.
3467 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3468 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3469 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3470 with VI1): Change mode iterator.
3471 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3472 with VI_ULOADSTORE_BW_AVX512VL): New.
3473 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3474 with VI_ULOADSTORE_F_AVX512VL): Ditto.
3475 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3476 with VI1): Change mode iterator.
3477 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3478 with VI_ULOADSTORE_BW_AVX512VL): New.
3479 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3480 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
3481 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
3482 (define_insn "<avx512>_storedqu<mode>_mask" with
3483 VI48_AVX512VL): New.
3484 (define_insn "<avx512>_storedqu<mode>_mask" with
3485 VI12_AVX512VL): Ditto.
3486
3487 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3488 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3489 Anna Tikhonova <anna.tikhonova@intel.com>
3490 Ilya Tocar <ilya.tocar@intel.com>
3491 Andrey Turetskiy <andrey.turetskiy@intel.com>
3492 Ilya Verbin <ilya.verbin@intel.com>
3493 Kirill Yukhin <kirill.yukhin@intel.com>
3494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3495
3496 * config/i386/sse.md
3497 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
3498 (define_mode_iterator VI48_AVX512BW): New.
3499 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
3500 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3501 with VI48_AVX2_48_AVX512F): New.
3502 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3503 with VI2_AVX512VL): Ditto.
3504
3505 2014-08-27 Richard Biener <rguenther@suse.de>
3506
3507 PR middle-end/62239
3508 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
3509 (fold_builtin_3): Do not fold strcat_chk here.
3510 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
3511 from builtins.c.
3512 (gimple_fold_builtin): Fold strcat_chk here.
3513
3514 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
3515
3516 * dwarf2out.h (dwarf2out_decl): Remove prototype.
3517 * dwarf2out.c (dwarf2out_decl): Make static.
3518
3519 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
3520
3521 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
3522
3523 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3524
3525 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
3526 from rtx to rtx_insn *.
3527 (cselib_lookup_from_insn): Likewise for final param.
3528 (cselib_subst_to_values_from_insn): Likewise.
3529 (cselib_add_permanent_equiv): Likewise.
3530
3531 * cselib.c (cselib_current_insn): Likewise for this variable.
3532 (cselib_subst_to_values_from_insn): Likewise for param "insn".
3533 (cselib_lookup_from_insn): Likewise.
3534 (cselib_add_permanent_equiv): Likewise for param "insn" and local
3535 "save_cselib_current_insn".
3536 (cselib_process_insn): Replace use of NULL_RTX with NULL.
3537
3538 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
3539 from rtx to rtx_insn *.
3540
3541 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3542
3543 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
3544 rtx_insn *.
3545
3546 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3547
3548 * df.h (df_dump_insn_problem_function): Strengthen first param of
3549 this callback from const_rtx to const rtx_insn *.
3550 (struct df_insn_info): Strengthen field "insn" from rtx to
3551 rtx_insn *.
3552 (DF_REF_INSN): Eliminate this function, reinstating the older
3553 macro definition.
3554 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
3555 (df_reg_defined): Likewise.
3556 (df_find_use): Likewise.
3557 (df_reg_used): Likewise.
3558 (df_dump_insn_top): Strengthen param 1 from const_rtx to
3559 const rtx_insn *.
3560 (df_dump_insn_bottom): Likewise.
3561 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
3562 (df_insn_debug_regno): Likewise.
3563 (debug_df_insn): Likewise.
3564 (df_rd_simulate_one_insn): Likewise for param 2.
3565 (df_word_lr_simulate_defs): Likewise for param 1.
3566 (df_word_lr_simulate_uses): Likewise.
3567 (df_md_simulate_one_insn): Likewise for param 2.
3568 (df_simulate_find_noclobber_defs): Likewise for param 1.
3569 (df_simulate_find_defs): Likewise.
3570 (df_simulate_defs): Likewise.
3571 (df_simulate_uses): Likewise.
3572 (df_simulate_one_insn_backwards): Likewise for param 2.
3573 (df_simulate_one_insn_forwards): Likewise.
3574 (df_uses_create): Likewise for param 2.
3575 (df_insn_create_insn_record): Likewise for param 1.
3576 (df_insn_delete): Likewise.
3577 (df_insn_rescan): Likewise.
3578 (df_insn_rescan_debug_internal): Likewise.
3579 (df_insn_change_bb): Likewise.
3580 (df_notes_rescan): Likewise.
3581 * rtl.h (remove_death): Likewise for param 2.
3582 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
3583 const rtx_insn *.
3584 * sched-int.h (reemit_notes): Strengthen param from rtx to
3585 rtx_insn *.
3586 * valtrack.h (propagate_for_debug): Likewise for param 1.
3587
3588 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
3589 local "tmp_rtx" from const_rtx to const rtx_insn *.
3590 * combine.c (remove_death): Strengthen param "insn" from rtx to
3591 rtx_insn *.
3592 (move_deaths): Likewise for local "where_dead".
3593 * cse.c (delete_trivially_dead_insns): Introduce local
3594 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
3595 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
3596 rtx_insn *.
3597 (df_reg_defined): Likewise.
3598 (df_find_use): Likewise.
3599 (df_reg_used): Likewise.
3600 (df_dump_insn_problem_data): Strengthen param "insn" from
3601 const_rtx to const rtx_insn *.
3602 (df_dump_insn_top): Likewise.
3603 (df_dump_insn_bottom): Likewise.
3604 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3605 (df_insn_debug_regno): Likewise.
3606 (debug_df_insn): Likewise.
3607 (DF_REF_INSN): Delete.
3608 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3609 from rtx to rtx_insn *.
3610 (df_chain_insn_top_dump): Strengthen param "insn" from
3611 const_rtx to const rtx_insn *.
3612 (df_chain_insn_bottom_dump): Likewise.
3613 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3614 rtx_insn *.
3615 (df_word_lr_simulate_uses): Likewise.
3616 (df_print_note): Likewise.
3617 (df_remove_dead_and_unused_notes): Likewise.
3618 (df_set_unused_notes_for_mw): Likewise.
3619 (df_set_dead_notes_for_mw): Likewise.
3620 (df_create_unused_note): Likewise.
3621 (df_simulate_find_defs): Likewise.
3622 (df_simulate_find_uses): Likewise.
3623 (df_simulate_find_noclobber_defs): Likewise.
3624 (df_simulate_defs): Likewise.
3625 (df_simulate_uses): Likewise.
3626 (df_simulate_one_insn_backwards): Likewise.
3627 (df_simulate_one_insn_forwards): Likewise.
3628 (df_md_simulate_one_insn): Likewise.
3629 * df-scan.c (df_uses_create): Likewise.
3630 (df_insn_create_insn_record): Likewise.
3631 (df_insn_delete): Likewise.
3632 (df_insn_rescan): Likewise.
3633 (df_insn_rescan_debug_internal): Likewise.
3634 (df_insn_change_bb): Likewise.
3635 (df_notes_rescan): Likewise.
3636 (df_refs_add_to_chains): Likewise.
3637 (df_insn_refs_verify): Likewise.
3638 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3639 when invoking df_insn_delete.
3640 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3641 (set_unique_reg_note): Add checked cast.
3642 * final.c (cleanup_subreg_operands): Likewise.
3643 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3644 "insn" from rtx to rtx_insn *.
3645 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3646 "last" from rtx to rtx_insn *.
3647 * ira-emit.c (change_regs_in_insn): New function.
3648 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3649 Invoke change_regs_in_insn rather than change_regs.
3650 * ira.c (update_equiv_regs): Strengthen locals "insn",
3651 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
3652 for_each_rtx_in_insn rather than for_each_rtx.
3653 * recog.c (confirm_change_group): Add checked casts.
3654 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3655 Add checked cast.
3656 (peep2_fill_buffer): Add checked cast.
3657 * rtlanal.c (remove_note): Likewise.
3658 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3659 locals "next" "end" from rtx to rtx_insn *.
3660
3661 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3662
3663 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3664 to rtx_insn *.
3665 (struct reg_use_data): Likewise for field "insn".
3666 (insn_cost): Likewise for param.
3667 (real_insn_for_shadow): Likewise for return type and param.
3668 (increase_insn_priority): Likewise for param 1.
3669 (debug_dependencies): Likewise for both params.
3670
3671 * haifa-sched.c (insn_delay): Likewise for param "insn".
3672 (real_insn_for_shadow): Likewise for return type and param "insn".
3673 (update_insn_after_change): Likewise for param "insn".
3674 (recompute_todo_spec): Likewise for param "next" and locals "pro",
3675 "other".
3676 (insn_cost): Likewise for param "insn".
3677 (increase_insn_priority): Likewise.
3678 (calculate_reg_deaths): Likewise.
3679 (setup_insn_reg_pressure_info): Likewise.
3680 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3681 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3682 (model_recompute): Likewise.
3683 (must_restore_pattern_p): Likewise for param "next".
3684 (model_excess_cost): Likewise for param "insn".
3685 (queue_remove): Likewise.
3686 (adjust_priority): Likewise for param "prev".
3687 (update_register_pressure): Likewise for param "insn".
3688 (setup_insn_max_reg_pressure): Likewise for local "insn".
3689 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3690 (model_add_to_schedule): Likewise.
3691 (model_reset_queue_indices): Likewise for local "insn".
3692 (unschedule_insns_until): Strengthen local "recompute_vec" from
3693 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
3694 "con" from rtx to rtx_insn *.
3695 (restore_last_backtrack_point): Likewise for both locals "x". Add
3696 checked casts.
3697 (estimate_insn_tick): Likewise for param "insn".
3698 (commit_schedule): Likewise for params "prev_head", "tail" and
3699 local "x".
3700 (verify_shadows): Likewise for locals "i1", "i2".
3701 (dump_insn_stream): Likewise for params "head", "tail" and locals
3702 "next_tail", "insn".
3703 (schedule_block): Likewise for locals "insn", "x". Add a checked
3704 cast.
3705 (fix_inter_tick): Likewise for params "head", "tail".
3706 (create_check_block_twin): Likewise for local "jump".
3707 (haifa_change_pattern): Likewise for param "insn".
3708 (haifa_speculate_insn): Likewise.
3709 (dump_new_block_header): Likewise for params "head", "tail".
3710 (fix_jump_move): Likewise for param "jump".
3711 (move_block_after_check): Likewise.
3712 (sched_init_insn_luid): Likewise for param "insn".
3713 (sched_init_luids): Likewise for local "insn".
3714 (insn_luid): Likewise for param "insn".
3715 (init_h_i_d): Likewise.
3716 (haifa_init_h_i_d): Likewise for local "insn".
3717 (haifa_init_insn): Likewise for param "insn".
3718 * sched-deps.c (add_dependence): Likewise for local "real_pro",
3719 "other".
3720 (create_insn_reg_use): Likewise for param "insn".
3721 (setup_insn_reg_uses): Likewise. Add a checked cast.
3722 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3723 "tail" from rtx to rtx_insn *.
3724 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3725 "insn", "next_tail".
3726
3727 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3728
3729 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3730 from rtx to rtx_insn *.
3731 (model_add_to_schedule): Likewise for locals "start", "end",
3732 "iter".
3733
3734 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3735
3736 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3737 rtx_insn *.
3738 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
3739 "to" and locals "insn", "next", "copy". Remove now-redundant
3740 checked cast.
3741
3742 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3743
3744 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3745 rtx_insn * and param 4 from rtx * to rtx_insn **.
3746 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3747 param 2 from rtx * to rtx_insn **.
3748
3749 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3750 rtx_insn * and final param from rtx * to rtx_insn **.
3751
3752 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3753 from rtx to rtx_insn *.
3754 (try_head_merge_bb): Likewise for both locals named "move_upto".
3755 * df-problems.c (can_move_insns_across): Likewise for params
3756 "from", "to", "across_from", "across_to" and locals "insn",
3757 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
3758 rtx_insn **.
3759 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3760 from rtx to rtx_insn *.
3761 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3762 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
3763 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3764 rtx_insn *.
3765 (noce_try_abs): Likewise.
3766 (noce_get_condition): Likewise for param "jump". Strengthen param
3767 "earliest" from rtx * to rtx_insn **.
3768 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3769 rtx_insn *.
3770 (find_cond_trap): Likewise.
3771 (dead_or_predicable): Likewise for local "earliest".
3772 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
3773 checked cast.
3774 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3775 and local "prev". Strengthen param "earliest" from rtx * to
3776 rtx_insn **.
3777 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3778 Strengthen param "earliest" from rtx * to rtx_insn **.
3779
3780 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3781
3782 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3783 "to" and local "insn" from rtx to rtx_insn *.
3784
3785 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3786
3787 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3788 from rtx to rtx_insn *.
3789 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3790 (code_motion_path_driver): Likewise for local "last_insn".
3791 (simplify_changed_insns): Likewise for local "insn".
3792
3793 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3794
3795 * rtl.h (push_to_sequence): Strengthen param from rtx to
3796 rtx_insn *.
3797 (push_to_sequence2): Likewise for both params.
3798 (delete_insns_since): Likewise for param.
3799 (reorder_insns_nobb): Likewise for all three params.
3800 (set_new_first_and_last_insn): Likewise for both params.
3801
3802 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3803 rtx_insn *. Remove now-redundant cast.
3804 (set_last_insn): Likewise.
3805
3806 * builtins.c (expand_builtin_return): Strengthen local
3807 "call_fusage" from rtx to rtx_insn *.
3808 * cfgrtl.c (create_basic_block_structure): Likewise for local
3809 "after".
3810 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3811 "first", "last" and local "insn".
3812 (delete_insns_since): Likewise for param "from".
3813 (reorder_insns_nobb): Likewise for params "from", "to", "after"
3814 and local "x".
3815 (push_to_sequence): Likewise for param "first" and local "last".
3816 (push_to_sequence2): Likewise for params "first" and "last".
3817 * lra.c (emit_add3_insn): Likewise for local "last".
3818 (lra_emit_add): Likewise.
3819 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3820 "last_insn".
3821 (process_address_1): Likewise for locals "insn", last".
3822 * modulo-sched.c (ps_first_note): Likewise for return type.
3823 * optabs.c (expand_binop_directly): Likewise for param "last".
3824
3825 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3826
3827 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3828 to rtx_insn*.
3829 * emit-rtl.c (get_last_insn_anywhere): Likewise.
3830
3831 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3832
3833 * function.h (struct sequence_stack): Strengthen fields "first"
3834 and "last" from rtx to rtx_insn *.
3835 (struct emit_status): Likewise for fields "x_first_insn" and
3836 "x_last_insn".
3837
3838 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3839 (set_first_insn): Add checked cast.
3840 (get_last_insn): Remove now-redundant checked cast.
3841 (set_last_insn): Add checked cast.
3842
3843 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3844 "saved_first" and "saved_last" from rtx to rtx_insn *.
3845
3846 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3847
3848 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3849 (unlink_insn_chain): Strengthen both params from rtx to
3850 rtx_insn *.
3851
3852 * cfgrtl.c (cfg_layout_function_header): Likewise for this
3853 variable.
3854 (unlink_insn_chain): Likewise for params "first" and "last".
3855 Remove now-redundant checked cast.
3856 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3857 (fixup_reorder_chain): Strengthen local "insn" from rtx to
3858 rtx_insn *.
3859 * emit-rtl.c (link_insn_into_chain): Likewise for all three
3860 params.
3861 (add_insn): Likewise for param "insn" and local "prev".
3862 (add_insn_after_nobb): Likewise for both params and local "next".
3863 (add_insn_before_nobb): Likewise for both params and local "prev".
3864 (add_insn_after): Rename param "after" to "uncast_after",
3865 introducing local "after" with another checked cast.
3866 (add_insn_before): Rename params "insn" and "before", giving them
3867 "uncast_" prefixes, adding the old names back using checked casts.
3868 (emit_note_after): Likewise for param "after".
3869 (emit_note_before): Likewise for param "before".
3870 (emit_label): Add a checked cast.
3871
3872 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3873
3874 * cselib.h (cselib_record_sets_hook): Strengthen initial param
3875 "insn" from rtx to rtx_insn *.
3876
3877 * cselib.c (cselib_record_sets_hook): Likewise.
3878
3879 * var-tracking.c (add_with_sets): Likewise, renaming back from
3880 "uncast_insn" to "insn" and eliminating the checked cast from rtx
3881 to rtx_insn *.
3882
3883 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3884
3885 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3886 and "header_" from rtx to rtx_insn *.
3887 (struct basic_block_d): Likewise for field "head_" within "x"
3888 field of union basic_block_il_dependent.
3889 (BB_HEAD): Drop function...
3890 (SET_BB_HEAD): ...and this function in favor of...
3891 (BB_HEAD): ...reinstate macro.
3892 (BB_END): Drop function...
3893 (SET_BB_END): ...and this function in favor of...
3894 (BB_END): ...reinstate macro.
3895 (BB_HEADER): Drop function...
3896 (SET_BB_HEADER): ...and this function in favor of...
3897 (BB_HEADER): ...reinstate macro.
3898
3899 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3900 (fix_crossing_unconditional_branches): Likewise.
3901 * caller-save.c (save_call_clobbered_regs): Likewise.
3902 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3903 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3904 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3905 (merge_blocks_move_successor_nojumps): Likewise.
3906 (outgoing_edges_match): Update use of for_each_rtx to
3907 for_each_rtx_in_insn.
3908 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3909 (expand_gimple_cond): Likewise.
3910 (expand_gimple_tailcall): Likewise.
3911 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3912 SET_BB_END.
3913 (construct_exit_block): Drop use of SET_BB_END.
3914 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3915 rtx_insn *.
3916 (delete_insn): Rename param "insn" to "uncast_insn", introducing
3917 a new local "insn" with a checked cast to rtx_insn *. Drop use of
3918 SET_BB_HEAD and SET_BB_END.
3919 (create_basic_block_structure): Drop use of SET_BB_HEAD and
3920 SET_BB_END.
3921 (rtl_delete_block): Drop use of SET_BB_HEAD.
3922 (rtl_split_block): Drop use of SET_BB_END.
3923 (emit_nop_for_unique_locus_between): Likewise.
3924 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3925 (block_label): Drop use of SET_BB_HEAD.
3926 (fixup_abnormal_edges): Drop use of SET_BB_END.
3927 (record_effective_endpoints): Drop use of SET_BB_HEADER.
3928 (relink_block_chain): Likewise.
3929 (fixup_reorder_chain): Drop use of SET_BB_END.
3930 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3931 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3932 rtx_insn **. Drop use of SET_BB_HEADER.
3933 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3934 SET_BB_HEAD.
3935 (BB_HEAD): Delete this function.
3936 (SET_BB_HEAD): Likewise.
3937 (BB_END): Likewise.
3938 (SET_BB_END): Likewise.
3939 (BB_HEADER): Likewise.
3940 (SET_BB_HEADER): Likewise.
3941 * emit-rtl.c (add_insn_after): Rename param "insn" to
3942 "uncast_insn", adding a new local "insn" and a checked cast to
3943 rtx_insn *. Drop use of SET_BB_END.
3944 (remove_insn): Strengthen locals "next" and "prev" from rtx to
3945 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
3946 (reorder_insns): Drop use of SET_BB_END.
3947 (emit_insn_after_1): Strengthen param "first" and locals "last",
3948 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
3949 (emit_pattern_after_noloc): Add checked cast.
3950 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3951 (restore_other_notes): Likewise.
3952 (move_insn): Likewise.
3953 (sched_extend_bb): Likewise.
3954 (fix_jump_move): Likewise.
3955 * ifcvt.c (noce_process_if_block): Likewise.
3956 (dead_or_predicable): Likewise.
3957 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
3958 * reg-stack.c (change_stack): Drop use of SET_BB_END.
3959 * sel-sched-ir.c (sel_move_insn): Likewise.
3960 * sel-sched.c (move_nop_to_previous_block): Likewise.
3961
3962 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
3963 SET_BB_END.
3964 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3965
3966 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3967
3968 * basic-block.h (create_basic_block_structure): Strengthen params
3969 1 "head" and 2 "end" from rtx to rtx_insn *.
3970 * cfgrtl.c (create_basic_block_structure): Likewise.
3971 (rtl_create_basic_block): Update casts from void * to rtx to
3972 rtx_insn *, so that we can pass them as rtx_insn * to
3973 create_basic_block_structure.
3974 * sel-sched-ir.c (sel_create_basic_block): Likewise.
3975
3976 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3977
3978 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
3979 rtx_insn **.
3980 (check_for_inc_dec): Strengthen param "insn" from rtx to
3981 rtx_insn *.
3982
3983 * cselib.h (cselib_process_insn): Likewise.
3984
3985 * cselib.c (cselib_record_sets): Likewise.
3986 (cselib_process_insn): Likewise.
3987
3988 * dse.c (struct insn_info): Likewise for field "insn".
3989 (check_for_inc_dec_1): Likewise for local "insn".
3990 (check_for_inc_dec): Likewise for param "insn".
3991 (scan_insn): Likewise.
3992 (dse_step1): Likewise for local "insn".
3993
3994 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
3995 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
3996
3997 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3998
3999 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
4000 from rtx to rtx_insn *.
4001 (DEP_PRO): Delete this function and...
4002 (SET_DEP_PRO): ...this function in favor of...
4003 (DEP_PRO): ...reinstate this macro.
4004 (DEP_CON): Delete this function and...
4005 (SET_DEP_CON): ...this function in favor of...
4006 (DEP_CON): ...reinstate this old macro.
4007 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
4008 (init_dep): Likewise.
4009 (set_priorities): Likewise for both params.
4010 (sd_copy_back_deps): Likewise for params 1 and 2.
4011
4012 * haifa-sched.c (priority): Likewise for param "insn" and local
4013 "next".
4014 (set_priorities): Likewise for params "head" and "tail" and local
4015 "insn".
4016 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
4017 local "consumer".
4018 (add_to_speculative_block): Add a checked cast.
4019 (create_check_block_twin): Drop use of SET_DEP_CON.
4020 (add_jump_dependencies): Strengthen params "insn" and "jump" from
4021 rtx to rtx_insn *.
4022
4023 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
4024 Drop use of SET_DEP_PRO
4025 (init_dep): Strengthen params "pro" and "con" from rtx to
4026 rtx_insn *.
4027 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
4028 use of SET_DEP_CON.
4029 (DEP_PRO): Delete.
4030 (DEP_CON): Delete.
4031 (SET_DEP_PRO): Delete.
4032 (SET_DEP_CON): Delete.
4033
4034 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4035
4036 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4037 from rtx to rtx_insn *.
4038 (VINSN_INSN_RTX): Eliminate rvalue function and...
4039 (SET_VINSN_INSN): ...lvalue function in favor of...
4040 (VINSN_INSN_RTX): reinstate this old macro.
4041
4042 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
4043 in favor of VINSN_INSN_RTX.
4044 (VINSN_INSN_RTX): Delete this function.
4045 (SET_VINSN_INSN_RTX): Likewise.
4046
4047 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4048
4049 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
4050 (BND_TO): Delete this function and...
4051 (SET_BND_TO): ...this functions in favor of...
4052 (BND_TO): ...reinstating this macro.
4053 (struct _fence): Strengthen field "executing_insns" from
4054 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
4055 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
4056 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
4057 and param "insn" from rtx to insn_t.
4058 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
4059 rtx_insn *.
4060
4061 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
4062 vec<rtx_insn *> .
4063 (rtx_vec_t): Likewise.
4064 (struct sched_deps_info_def): Strengthen param of "start_insn"
4065 callback from rtx to rtx_insn *. Likewise for param "insn2" of
4066 "note_mem_dep" callback and first param of "note_dep" callback.
4067
4068 * haifa-sched.c (add_to_speculative_block): Strengthen param
4069 "insn" from rtx to rtx_insn *.
4070 (clear_priorities): Likewise.
4071 (calc_priorities): Likewise for local "insn".
4072
4073 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
4074 Remove redundant checked cast.
4075 (haifa_note_mem_dep): Likewise for param "pending_insn".
4076 (haifa_note_dep): Likewise for param "elem".
4077 (note_mem_dep): Likewise for param "e".
4078 (sched_analyze_1): Add checked casts.
4079 (sched_analyze_2): Likewise.
4080
4081 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
4082 from rtx to rtx_insn *.
4083 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
4084 from vec<rtx> * to vec<rtx_insn *> *.
4085
4086 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
4087 scaffolding.
4088 (flist_add): Strengthen param "executing_insns" from
4089 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4090 (advance_deps_context): Remove now-redundant checked cast.
4091 (init_fences): Replace uses of NULL_RTX with NULL.
4092 (merge_fences): Strengthen params "last_scheduled_insn" and
4093 "sched_next" from rtx to rtx_insn * and "executing_insns" from
4094 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
4095 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
4096 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
4097 an instruction, rather than doing double-duty as a pattern.
4098 (return_nop_to_pool): Update for change of insn_t.
4099 (deps_init_id): Remove now-redundant checked cast.
4100 (struct sched_scan_info_def): Strengthen param of "init_insn"
4101 callback from rtx to insn_t.
4102 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
4103 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
4104 NULL.
4105 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
4106 "end" from rtx to rtx_insn *.
4107 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
4108 (rtx insn_rtx, bool force_unique_p)
4109 (BND_TO): Delete function.
4110 (SET_BND_TO): Delete function.
4111
4112 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
4113 rtx to rtx_insn *.
4114 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
4115 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
4116 rtx to rtx_insn *.
4117 (undo_transformations): Likewise for param "insn".
4118 (update_liveness_on_insn): Likewise.
4119 (compute_live_below_insn): Likewise for param "insn" and local
4120 "succ".
4121 (update_data_sets): Likewise for param "insn".
4122 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
4123 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
4124 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
4125 rtx_insn *.
4126 (move_cond_jump): Likewise for param "insn".
4127 (move_cond_jump): Drop use of SET_BND_TO.
4128 (compute_av_set_on_boundaries): Likewise.
4129 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
4130 (update_and_record_unavailable_insns): Strengthen local "bb_end"
4131 from rtx to rtx_insn *.
4132 (maybe_emit_renaming_copy): Likewise for param "insn".
4133 (maybe_emit_speculative_check): Likewise.
4134 (handle_emitting_transformations): Likewise.
4135 (remove_insn_from_stream): Likewise.
4136 (code_motion_process_successors): Strengthen local "succ" from rtx
4137 to insn_t.
4138
4139 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4140
4141 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
4142 ilist_t, not _xlist_t;
4143 (ILIST_INSN): Define in terms of new union field "insn".
4144 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
4145 _XLIST_NEXT.
4146 (struct _list_node): Add new field "insn" to the union, of type
4147 insn_t.
4148 (ilist_add): Replace macro with an inline function, requiring an
4149 insn_t.
4150 (ilist_remove): Define this macro directly in terms of
4151 _list_remove, rather than indirectly via _xlist_remove.
4152 (ilist_clear): Likewise, in terms of _list_clear rather than
4153 _xlist_clear.
4154 (ilist_is_in_p): Replace macro with an inline function, requiring
4155 an insn_t.
4156 (_list_iter_cond_insn): New function.
4157 (ilist_iter_remove): Define this macro directly in terms of
4158 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
4159 (ilist_iterator): Define directly in terms of _list_iterator
4160 rather than indirectly through _xlist_iterator.
4161 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
4162 than in terms of _FOR_EACH_X.
4163 (FOR_EACH_INSN_1): Likewise.
4164
4165 2014-08-26 Joseph Myers <joseph@codesourcery.com>
4166
4167 PR target/60606
4168 PR target/61330
4169 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
4170 DECL_HARD_REGISTER and return for invalid register specifications.
4171 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
4172 DECL_HARD_REGISTER, call expand_one_error_var.
4173 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
4174 CC_REGNUM with non-MODE_CC modes.
4175 (arm_regno_class): Return NO_REGS for PC_REGNUM.
4176
4177 2014-08-26 Marek Polacek <polacek@redhat.com>
4178
4179 PR c/61271
4180 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
4181
4182 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
4183
4184 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
4185 qi cost; add di cost.
4186 (cortexa57_addrcost_table): Likewise.
4187
4188 2014-08-26 Marek Polacek <polacek@redhat.com>
4189
4190 PR c/61271
4191 * expr.c (is_aligning_offset): Remove logical not.
4192
4193 2014-08-26 Marek Polacek <polacek@redhat.com>
4194
4195 PR c/61271
4196 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
4197 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
4198
4199 2014-08-26 Richard Biener <rguenther@suse.de>
4200
4201 PR tree-optimization/62175
4202 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
4203 expand possibly trapping operations.
4204
4205 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4206
4207 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
4208 "insn" from rtx to rtx_insn *.
4209 (permute_load): Likewise for param "insn".
4210 (permute_store): Likewise.
4211 (handle_special_swappables): Likewise for local "insn".
4212 (replace_swap_with_copy): Likewise for locals "insn" and
4213 "new_insn".
4214 (rs6000_analyze_swaps): Likewise for local "insn".
4215
4216 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4217
4218 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
4219 to rtx_insn *.
4220
4221 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4222
4223 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
4224 "note_list" from rtx to rtx_insn *.
4225 (BB_NOTE_LIST): Replace this function and...
4226 (SET_BB_NOTE_LIST): ...this function with...
4227 (BB_NOTE_LIST): ...the former macro implementation.
4228
4229 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
4230 local "from_start" from rtx to rtx_insn *. Strengthen param
4231 "to_endp" from rtx * to rtx_insn **.
4232
4233 * haifa-sched.c (concat_note_lists): Likewise.
4234 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
4235 BB_NOTE_LIST.
4236 (sel_restore_notes): Likewise.
4237 (move_bb_info): Likewise.
4238 (BB_NOTE_LIST): Delete this function.
4239 (SET_BB_NOTE_LIST): Delete this function.
4240 * sel-sched.c (create_block_for_bookkeeping): Eliminate
4241 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
4242
4243 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4244
4245 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
4246 from rtx * to rtx_insn **.
4247 (reorder2): Likewise.
4248 (dependencies_evaluation_hook): Strengthen params "head", "tail"
4249 from rtx to rtx_insn *.
4250
4251 * doc/tm.texi: Update mechanically for above change to target.def.
4252
4253 * sched-int.h (note_list): Strengthen this variable from rtx to
4254 rtx_insn *.
4255 (remove_notes): Likewise for both params.
4256 (restore_other_notes): Likewise for return type and first param.
4257 (struct ready_list): Strengthen field "vec" from rtx * to
4258 rtx_insn **.
4259 (struct dep_replacement): Strenghten field "insn" from rtx to
4260 rtx_insn *.
4261 (struct deps_desc): Likewise for fields "last_debug_insn",
4262 "last_args_size".
4263 (struct haifa_sched_info): Likewise for callback field
4264 "can_schedule_ready_p"'s param, for first param of "new_ready"
4265 callback field, for both params of "rank" callback field, for
4266 first field of "print_insn" callback field (with a const), for
4267 both params of "contributes_to_priority" callback, for param
4268 of "insn_finishes_block_p" callback, for fields "prev_head",
4269 "next_tail", "head", "tail", for first param of "add_remove_insn"
4270 callback, for first param of "begin_schedule_ready" callback, for
4271 both params of "begin_move_insn" callback, and for second param
4272 of "advance_target_bb" callback.
4273 (add_dependence): Likewise for params 1 and 2.
4274 (sched_analyze): Likewise for params 2 and 3.
4275 (deps_analyze_insn): Likewise for param 2.
4276 (ready_element): Likewise for return type.
4277 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4278 (try_ready): Strenghten param from rtx to rtx_insn *.
4279 (sched_emit_insn): Likewise for return type.
4280 (record_delay_slot_pair): Likewise for params 1 and 2.
4281 (add_delay_dependencies): Likewise for param.
4282 (contributes_to_priority): Likewise for both params.
4283 (find_modifiable_mems): Likewise.
4284
4285 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
4286 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
4287 "first_older_only_insn" from rtx to rtx_insn *.
4288 (arm_sched_reorder): Strengthen param "ready" from rtx * to
4289 rtx_insn **.
4290
4291 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
4292 "last_scheduled_iter0" from rtx to rtx_insn *.
4293 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
4294 (c6x_sched_reorder_1): Strengthen param "ready" and locals
4295 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4296 "insn" from rtx to rtx_insn *.
4297 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
4298 rtx_insn **.
4299 (c6x_sched_reorder2): Strengthen param "ready" and locals
4300 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
4301 "insn" from rtx to rtx_insn *.
4302 (c6x_variable_issue): Add a checked cast when assigning from insn
4303 to ss.last_scheduled_iter0.
4304 (split_delayed_branch): Strengthen param "insn" and local "i1"
4305 from rtx to rtx_insn *.
4306 (split_delayed_nonbranch): Likewise.
4307 (undo_split_delayed_nonbranch): Likewise for local "insn".
4308 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
4309 "entry_after", "end_packet", "head_insn", "tail_insn",
4310 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
4311 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
4312 to rtx_insn **. Remove now-redundant checked cast on last_insn,
4313 but add a checked cast on loop->start_label. Consolidate calls to
4314 avoid assigning result of gen_spkernel to "insn", now an
4315 rtx_insn *.
4316
4317 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
4318 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
4319 rtx to rtx_insn *.
4320 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
4321 rtx_insn **. Strengthen locals "top", "next" from rtx to
4322 rtx_insn *.
4323 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
4324 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
4325 (add_parameter_dependencies): Strengthen params "call", "head" and
4326 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
4327 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
4328 (add_dependee_for_func_arg): Likewise for param "arg" and local
4329 "insn".
4330 (ix86_dependencies_evaluation_hook): Likewise for params "head",
4331 "tail" and locals "insn", "first_arg".
4332
4333 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
4334 for params "head", "tail" and locals "insn", "next", "next_tail".
4335 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
4336 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
4337 "insn", "lowest", "highest" from rtx to rtx_insn *.
4338 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
4339 rtx_insn **.
4340 (ia64_sched_reorder2): Likewise.
4341
4342 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
4343 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
4344 from rtx * to rtx_insn **.
4345 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
4346 rtx_insn **.
4347 (mep_print_sched_insn): Strengthen param "insn" from rtx to
4348 rtx_insn *.
4349 (mep_sched_reorder): Strengthen param "ready" from rtx * to
4350 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
4351 to rtx_insn *.
4352
4353 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
4354 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
4355 to rtx_insn *.
4356 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
4357 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
4358 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
4359 rtx_insn **.
4360 (vr4130_reorder): Likewise.
4361 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
4362 rtx to rtx_insn *.
4363 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
4364 rtx_insn **.
4365 (mips_sched_reorder): Likewise.
4366 (mips_sched_reorder2): Likewise.
4367
4368 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
4369
4370 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
4371 Strengthen local "tmp" from rtx to rtx_insn *.
4372 (rs6000_sched_reorder2): Likewise.
4373
4374 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
4375 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
4376 (s390_sched_reorder): Strengthen param "ready" from rtx * to
4377 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
4378
4379 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
4380 "tmp2" from rtx to rtx_insn *.
4381 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
4382 Strengthen local "insn" from rtx to rtx_insn *.
4383 (ready_reorder): Strengthen param "ready" from rtx * to
4384 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
4385 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
4386 (sh_reorder2): Likewise.
4387
4388 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
4389 local "insn" from rtx to rtx_insn *.
4390
4391 * haifa-sched.c (note_list): Strengthen this variable from rtx to
4392 rtx_insn *.
4393 (scheduled_insns): Strengthen this variable from vec<rtx> to
4394 vec<rtx_insn *>.
4395 (set_modulo_params): Likewise for locals "i1", "i2".
4396 (record_delay_slot_pair): Likewise for params "i1", "i2".
4397 (add_delay_dependencies): Likewise for param "insn".
4398 (cond_clobbered_p): Likewise.
4399 (recompute_todo_spec): Likewise for local "prev".
4400 (last_scheduled_insn): Likewise for this variable.
4401 (nonscheduled_insns_begin): Likewise.
4402 (model_set_excess_costs): Strengthen param "insns" from rtx * to
4403 rtx_insn **.
4404 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
4405 rtx_insn *.
4406 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
4407 Strengthen local "insn" from rtx to rtx_insn *.
4408 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
4409 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
4410 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
4411 (ready_remove_first): Likewise for return type and local "t".
4412 (ready_element): Likewise for return type.
4413 (ready_remove): Likewise for return type and local "t".
4414 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
4415 (check_clobbered_conditions): Strengthen local "x" from rtx to
4416 rtx_insn *, adding a checked cast.
4417 (schedule_insn): Likewise for param "insn".
4418 (remove_notes): Likewise for params "head", "tail" and locals
4419 "next_tail", "insn", "next".
4420 (struct haifa_saved_data): Likewise for fields
4421 "last_scheduled_insn", "nonscheduled_insns_begin".
4422 (save_backtrack_point): Update for change to field "vec" of
4423 struct ready_list.
4424 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
4425 rtx_insn **.
4426 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
4427 from rtx to rtx_insn *
4428 (resolve_dependencies): Strengthen param "insn" from rtx to
4429 rtx_insn *
4430 (restore_other_notes): Likewise for return type, for param "head"
4431 and local "note_head".
4432 (undo_all_replacements): Likewise for local "insn".
4433 (first_nonscheduled_insn): Likewise for return type and local "insn".
4434 (queue_to_ready): Likewise for local "insn", adding checked casts.
4435 (early_queue_to_ready): Likewise for local "insn".
4436 (debug_ready_list_1): Strengthen local "p" from rtx * to
4437 rtx_insn **.
4438 (move_insn): Strengthen param "insn" and local "note" from rtx to
4439 rtx_insn *
4440 (insn_finishes_cycle_p): Likewise for param "insn".
4441 (max_issue): Likewise for local "insn".
4442 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
4443 to rtx_insn **.
4444 (commit_schedule): Strengthen param "prev_head" and local "insn"
4445 from rtx to rtx_insn *
4446 (prune_ready_list): Likewise for local "insn".
4447 (schedule_block): Likewise for locals "prev_head", "head", "tail",
4448 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
4449 (set_priorities): Likewise for local "prev_head".
4450 (try_ready): Likewise for param "next".
4451 (fix_tick_ready): Likewise.
4452 (change_queue_index): Likewise.
4453 (sched_extend_ready_list): Update for change to field "vec" of
4454 struct ready_list.
4455 (generate_recovery_code): Strengthen param "insn" from rtx to
4456 rtx_insn *.
4457 (begin_speculative_block): Likewise.
4458 (create_check_block_twin): Likewise for param "insn" and locals
4459 "label", "check", "twin". Introduce local "check_pat" to avoid
4460 "check" being used as a plain rtx before being used as an insn.
4461 (fix_recovery_deps): Add a checked cast to rtx_insn * when
4462 extracting elements from ready_list.
4463 (sched_remove_insn): Strengthen param "insn" from rtx to
4464 rtx_insn *.
4465 (sched_emit_insn): Likewise for return type.
4466 (ready_remove_first_dispatch): Likewise for return type and local
4467 "insn".
4468
4469 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
4470
4471 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
4472 const rtx_insn *.
4473
4474 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
4475 from rtx to rtx_insn *.
4476 (add_dependence_list): Likewise for param "insn". Add a checked
4477 cast.
4478 (add_dependence_list_and_free): Strengthen param "insn" from rtx
4479 to rtx_insn *. Strengthen param "list_p" from rtx * to
4480 rtx_insn **.
4481 (chain_to_prev_insn): Strengthen param "insn" and locals
4482 "prec_nonnote", "i" from rtx to rtx_insn *.
4483 (flush_pending_lists): Likewise for param "insn".
4484 (cur_insn): Likewise for this variable.
4485 (haifa_start_insn): Add a checked cast.
4486 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
4487 (sched_analyze_reg): Likewise for param "insn".
4488 (sched_analyze_1): Likewise.
4489 (sched_analyze_2): Likewise. Add checked casts.
4490 (sched_analyze_insn): Likewise. Also for local "prev".
4491 (deps_analyze_insn): Likewise for param "insn".
4492 (sched_analyze): Likewise for params "head", "tail" and local "insn".
4493 (add_dependence_1): Likewise for params "insn", "elem".
4494 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
4495 (parse_add_or_inc): Likewise for param "insn".
4496 (find_inc): Likewise for local "inc_cand".
4497 (find_modifiable_mems): Likewise for params "head", "tail" and
4498 locals "insn", "next_tail".
4499
4500 * sched-ebb.c (init_ready_list): Likewise for local "insn".
4501 (begin_schedule_ready): Likewise for param "insn".
4502 (begin_move_insn): Likewise for params "insn" and "last".
4503 (ebb_print_insn): Strengthen param "insn" from const_rtx to
4504 const rtx_insn *.
4505 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
4506 (ebb_contributes_to_priority): Likewise for params "next", "insn".
4507 (ebb_add_remove_insn): Likewise for param "insn".
4508 (advance_target_bb): Likewise.
4509
4510 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
4511 "insn".
4512 (check_live): Likewise for param "insn".
4513 (init_ready_list): Likewise for local "insn".
4514 (can_schedule_ready_p): Likewise for param "insn".
4515 (begin_schedule_ready): Likewise.
4516 (new_ready): Likewise for param "next".
4517 (rgn_print_insn): Likewise for param "insn".
4518 (rgn_rank): Likewise for params "insn1", "insn2".
4519 (contributes_to_priority): Likewise for params "next", "insn".
4520 (rgn_insn_finishes_block_p): Likewise for param "insn".
4521 (add_branch_dependences): Likewise for params "head", "tail" and
4522 locals "insn", "last".
4523 (rgn_add_remove_insn): Likewise for param "insn".
4524 (advance_target_bb): Likewise.
4525
4526 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
4527 const_rtx to const rtx_insn *.
4528
4529 * sel-sched-dump.h (sel_print_insn): Likewise.
4530
4531 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
4532 (deps_init_id): Likewise.
4533
4534 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
4535 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
4536 rtx_insn **.
4537
4538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4539
4540 * output.h (final_start_function): Strengthen param 1 from rtx to
4541 rtx_insn *.
4542
4543 * final.c (final_start_function): Likewise, renaming back from
4544 "uncast_first" to "first", and dropping the checked cast from rtx
4545 to rtx_insn *.
4546
4547 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4548
4549 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
4550 * final.c (final): Likewise. Rename param back from
4551 "uncast_first" to "first" and eliminate the checked cast from rtx
4552 to rtx_insn *.
4553
4554 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4555
4556 * output.h (shorten_branches): Strengthen param from rtx to
4557 rtx_insn *.
4558
4559 * final.c (shorten_branches): Likewise, renaming param back from
4560 "uncast_first" to "first", and dropping the checked cast from rtx
4561 to rtx_insn *.
4562
4563 * genattr.c (gen_attr): Likewise when writing out the prototype of
4564 shorten_branches.
4565
4566 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4567
4568 * sched-int.h (struct haifa_sched_info): Strengthen fields
4569 "prev_head" and "next_tail" from rtx to rtx_insn *.
4570
4571 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4572
4573 * rtl.h (rtx_jump_table_data::get_labels): New method.
4574 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
4575 with use of the new rtx_jump_table_data::get_labels method.
4576 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
4577 to rtx_jump_table_data *. Simplify by using get_labels method.
4578 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
4579 a dyn_cast, introducing local "table", using it to replace
4580 label-lookup logic with a get_labels method call.
4581 (patch_jump_insn): Simplify using get_labels method.
4582 * dwarf2cfi.c (create_trace_edges): Likewise.
4583 * rtlanal.c (label_is_jump_target_p): Likewise.
4584
4585 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4586
4587 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
4588 to rtx_insn *.
4589
4590 * emit-rtl.c (unshare_all_rtl_1): Likewise.
4591 (unshare_all_rtl_again): Likewise, also for local "p".
4592
4593 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4594
4595 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
4596 to rtx_insn *.
4597 * cfgrtl.c (delete_insn_and_edges): Likewise.
4598
4599 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4600
4601 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4602 from rtx to rtx_insn *.
4603
4604 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4605
4606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4607
4608 * function.c (thread_prologue_and_epilogue_insns): Likewise for
4609 locals "returnjump", "epilogue_end", "insn", "next".
4610
4611 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4612 "returnjump" from rtx * to rtx_insn **.
4613 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4614
4615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4616
4617 * basic-block.h (struct edge_def). Strengthen "r" within
4618 union edge_def_insns from rtx to rtx_insn *.
4619
4620 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4621 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
4622 rtx_insn *.
4623 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4624 from rtx to rtx_insn *.
4625 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4626 rtx_insn *.
4627 * postreload-gcse.c (reg_killed_on_edge): Likewise.
4628 (reg_used_on_edge): Likewise.
4629 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4630 (gt_pch_nx): New overload for rtx_insn *&.
4631 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4632 from rtx to rtx_insn *.
4633
4634 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4635
4636 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4637 from rtx to rtx_insn *.
4638 (BB_FOOTER): Replace function with access macro.
4639 (SET_BB_FOOTER): Delete.
4640
4641 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4642 with BB_FOOTER.
4643 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4644 (emit_barrier_after_bb): Likewise.
4645 (record_effective_endpoints): Likewise.
4646 (relink_block_chain): Likewise.
4647 (fixup_fallthru_exit_predecessor): Likewise.
4648 (cfg_layout_duplicate_bb): Likewise.
4649 (cfg_layout_split_block): Likewise.
4650 (cfg_layout_delete_block): Likewise.
4651 (cfg_layout_merge_blocks): Likewise.
4652 (BB_FOOTER): Delete function.
4653 (SET_BB_FOOTER): Delete function.
4654 * combine.c (update_cfg_for_uncondjump): Replace uses of
4655 SET_BB_FOOTER with BB_FOOTER.
4656
4657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4658
4659 * except.h (struct eh_landing_pad_d): Strengthen field
4660 "landing_pad" from rtx to rtx_code_label *.
4661
4662 * except.c (sjlj_emit_dispatch_table): Likewise for param
4663 "dispatch_label"
4664 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4665
4666 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4667
4668 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4669 first param from rtx to rtx_insn *.
4670 * config/xtensa/xtensa.c (struct machine_function): Likewise for
4671 field "set_frame_ptr_insn".
4672 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4673 "csend" from rtx to rtx_code_label *.
4674 (xtensa_expand_atomic): Likewise for local "csloop".
4675 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4676 rtx_insn *.
4677 (xtensa_call_tls_desc): Likewise for return type and locals
4678 "call_insn", "insns".
4679 (xtensa_legitimize_tls_address): Likewise for local "insns".
4680 (xtensa_expand_prologue): Likewise for locals "insn", "first".
4681
4682 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4683
4684 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4685 first param from rtx to rtx_insn *.
4686 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4687 "insn".
4688
4689 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4690
4691 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4692 Strengthen param 1 from rtx to rtx_insn *.
4693 (tilepro_output_cbranch): Likewise.
4694 (tilepro_adjust_insn_length): Likewise.
4695 (tilepro_final_prescan_insn): Likewise for sole param.
4696
4697 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4698 Likewise for local "last".
4699 (cbranch_predicted_p): Likewise for param "insn".
4700 (tilepro_output_simple_cbranch_with_opcode): Likewise.
4701 (tilepro_output_cbranch_with_opcode): Likewise.
4702 (tilepro_output_cbranch): Likewise.
4703 (frame_emit_load): Likewise for return type and locals "seq",
4704 "insn".
4705 (emit_sp_adjust): Likewise for return type and local "insn".
4706 (tilepro_expand_epilogue): Likewise for locals "last_insn",
4707 "insn".
4708 (tilepro_adjust_insn_length): Likewise for param "insn".
4709 (next_insn_to_bundle): Likewise for return type and params
4710 "r", "end".
4711 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4712 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4713 local "new_insns".
4714 (match_addli_pcrel): Likewise for param "insn".
4715 (replace_addli_pcrel): Likewise.
4716 (match_auli_pcrel): Likewise.
4717 (replace_auli_pcrel): Likewise.
4718 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4719 "next_insn".
4720 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4721 "queue", "next_queue", "prev".
4722 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4723 (tilepro_final_prescan_insn): Likewise for param "insn".
4724
4725 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4726
4727 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4728 Strengthen param 1 from rtx to rtx_insn *.
4729 (tilegx_output_cbranch): Likewise.
4730 (tilegx_adjust_insn_length): Likewise.
4731 (tilegx_final_prescan_insn): Likewise for sole param.
4732
4733 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4734 or local "last".
4735 (cbranch_predicted_p): Likewise for param "insn".
4736 (tilegx_output_simple_cbranch_with_opcode): Likewise.
4737 (tilegx_output_cbranch_with_opcode): Likewise.
4738 (tilegx_output_cbranch): Likewise.
4739 (frame_emit_load): Likewise for return type.
4740 (set_frame_related_p): Likewise for locals "seq", "insn".
4741 (emit_sp_adjust): Likewise for return type, and for local "insn".
4742 Introduce local "pat" for use in place of "insn" where the latter
4743 isn't an instruction.
4744 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4745 from rtx to rtx_insn *.
4746 (tilegx_adjust_insn_length): Likewise for param "insn".
4747 (next_insn_to_bundle): Likewise for return type and params "r" and
4748 "end".
4749 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4750 "end".
4751 (replace_insns): Likewise for params "old_insn", "new_insns".
4752 (replace_mov_pcrel_step1): Likewise for param "insn" and local
4753 "new_insns".
4754 (replace_mov_pcrel_step2): Likewise.
4755 (replace_mov_pcrel_step3): Likewise.
4756 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4757 "next_insn".
4758 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4759 "queue", "next_queue", "prev".
4760 (tilegx_output_mi_thunk): Likewise for local "insn".
4761 (tilegx_final_prescan_insn): Likewise for param "insn".
4762
4763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4764
4765 * config/spu/spu.c (frame_emit_store): Strengthen return type from
4766 rtx to rtx_insn *.
4767 (frame_emit_load): Likewise.
4768 (frame_emit_add_imm): Likewise, also for local "insn".
4769 (spu_expand_prologue): Likewise for local "insn".
4770 (struct spu_bb_info): Likewise for field "prop_jump".
4771 (emit_nop_for_insn): Likewise for param "insn" and local
4772 "new_insn".
4773 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4774 "hbr_insn".
4775 (spu_emit_branch_hint): Likewise for params "before", "branch" and
4776 locals "hint", "insn".
4777 (get_branch_target): Likewise for param "branch".
4778 (insn_clobbers_hbr): Likewise for param "insn".
4779 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4780 locals "insn", "before_4", "before_16".
4781 (insert_hbrp): Likewise for local "insn".
4782 (spu_machine_dependent_reorg): Likewise for locals "branch",
4783 "insn", "next", "bbend".
4784 (uses_ls_unit): Likewise for param "insn".
4785 (get_pipe): Likewise.
4786 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4787 introducing a checked cast.
4788 (spu_sched_adjust_cost): Likewise for params "insn" and
4789 "dep_insn".
4790 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4791 (spu_sms_res_mii): Likewise.
4792
4793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4794
4795 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4796 from rtx to rtx_insn *.
4797 (output_cbranch): Likewise for param 6.
4798 (output_return): Likewise for param 1.
4799 (output_sibcall): Likewise.
4800 (output_v8plus_shift): Likewise.
4801 (output_v8plus_mult): Likewise.
4802 (output_v9branch): Likewise for param 7.
4803 (output_cbcond): Likewise for param 3.
4804
4805 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4806 for local "insn".
4807 (sparc_legitimize_pic_address): Likewise.
4808 (sparc_emit_call_insn): Likewise.
4809 (emit_save_or_restore_regs): Likewise.
4810 (emit_window_save): Likewise for return type and local "insn".
4811 (sparc_expand_prologue): Likewise for local "insn".
4812 (sparc_flat_expand_prologue): Likewise.
4813 (output_return): Likewise for param "insn".
4814 (output_sibcall): Likewise for param "insn" and local "delay".
4815 (output_ubranch): Likewise for param "insn".
4816 (output_cbranch): Likewise.
4817 (output_cbcond): Likewise.
4818 (output_v9branch): Likewise.
4819 (output_v8plus_shift): Likewise.
4820 (sparc_output_mi_thunk): Likewise for local "insn".
4821 (get_some_local_dynamic_name): Likewise.
4822 (output_v8plus_mult): Likewise for param "insn".
4823
4824 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4825
4826 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4827 from rtx to rtx_insn *.
4828 (output_branchy_insn): Likewise for param 3.
4829 (output_far_jump): Likewise for param 1.
4830 (final_prescan_insn): Likewise.
4831 (sh_insn_length_adjustment): Likewise for sole param.
4832
4833 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4834 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4835 rtx_code_label *.
4836 (sh_emit_compare_and_set): Likewise for local "lab".
4837 (output_far_jump): Strengthen param "insn" and local "prev" from
4838 rtx to rtx_insn *.
4839 (output_branchy_insn): Likewise for param "insn" and local
4840 "next_insn".
4841 (output_ieee_ccmpeq): Likewise for param "insn".
4842 (struct label_ref_list_d): Strengthen field "label" from rtx to
4843 rtx_code_label *.
4844 (pool_node): Likewise.
4845 (pool_window_label): Likewise for this global.
4846 (add_constant): Likewise for return type and locals "lab", "new_rtx".
4847 (dump_table): Strengthen params "start", "barrier" and local
4848 "scan" from rtx to rtx_insn *.
4849 (broken_move): Likewise for param "insn".
4850 (untangle_mova): Likewise for params "first_mova" and "new_mova".
4851 Strengthen param "first_mova" from rtx * to rtx_insn **.
4852 (mova_p): Likewise for param "insn".
4853 (fixup_mova): Likewise for param "mova".
4854 (find_barrier): Likewise for return type, params "mova" and
4855 "from", and locals "barrier_before_mova", "found_barrier",
4856 "good_barrier", "orig", "last_symoff", "next". Strengthen local
4857 "label" from rtx to rtx_code_label *.
4858 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4859 rtx to rtx_insn *.
4860 (sh_reorg): Likewise for locals "link", "scan", "barrier".
4861 (split_branches): Likewise for param "first" and local "insn".
4862 (final_prescan_insn): Likewise for param "insn".
4863 (sequence_insn_p): Likewise for locals "prev", "next".
4864 (sh_insn_length_adjustment): Likewise for param "insn".
4865 (sh_can_redirect_branch): Likewise for local "insn".
4866 (find_r0_life_regions): Likewise for locals "end", "insn".
4867 (sh_output_mi_thunk): Likewise for local "insns".
4868
4869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4870
4871 * config/score/score.c (score_output_mi_thunk): Strengthen local
4872 "insn" from rtx to rtx_insn *.
4873 (score_prologue): Likewise.
4874
4875 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4876
4877 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4878 1 from rtx to rtx_insn *.
4879 (s390_emit_jump): Likewise for return type.
4880 (s390_emit_call): Likewise.
4881 (s390_load_got): Likewise.
4882
4883 * config/s390/s390.c (last_scheduled_insn): Likewise for this
4884 variable.
4885 (s390_match_ccmode): Likewise for param "insn".
4886 (s390_emit_jump): Likewise for return type.
4887 (s390_split_branches): Likewise for local "label".
4888 (struct constant): Strengthen field "label" from rtx to
4889 rtx_code_label *.
4890 (struct constant_pool): Likewise for field "label". Strengthen
4891 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4892 rtx_insn *.
4893 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4894 insns.
4895 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4896 (s390_end_pool): Likewise.
4897 (s390_dump_pool): Likewise for local "insn".
4898 (s390_mainpool_start): Likewise.
4899 (s390_chunkify_start): Likewise.
4900 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4901 with insns. Strengthen locals "label", "jump", "barrier", "next",
4902 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4903 (s390_chunkify_finish): Strengthen local "insn" from rtx to
4904 rtx_insn *.
4905 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4906 "jump", "label", "next_insn".
4907 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4908 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4909 "tbegin_insn".
4910 (s390_load_got): Likewise for return type and local "insns".
4911 (s390_save_gprs_to_fprs): Likewise for local "insn".
4912 (s390_restore_gprs_from_fprs): Likewise.
4913 (pass_s390_early_mach::execute): Likewise.
4914 (s390_emit_prologue): Likewise for local "insns".
4915 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4916 rtx_code_label *.
4917 (s390_emit_call): Strengthen return type and local "insn" from
4918 rtx to rtx_insn *.
4919 (s390_emit_tpf_eh_return): Likewise for local "insn".
4920 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4921 "next_insn", introducing locals "s_pat", "rpat" to allow this.
4922 (s390_fix_long_loop_prediction): Likewise for param "insn" and
4923 local "cur_insn".
4924 (s390_non_addr_reg_read_p): Likewise for param "insn".
4925 (find_cond_jump): Likewise for return type and param "insn".
4926 (s390_swap_cmp): Likewise for param "insn".
4927 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4928 "prev_insn", "next_insn".
4929 (s390_reorg): Likewise for locals "insn", "target".
4930 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4931 (s390_sched_variable_issue): For now, rename param "insn" to
4932 "uncast_insn", introducing a checked cast.
4933 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4934 insn.
4935 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4936 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
4937
4938 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4939
4940 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4941 param from rtx to rtx_insn *.
4942 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4943
4944 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4945
4946 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4947 4 from rtx to rtx_insn *.
4948 (rs6000_final_prescan_insn): Likewise for first param.
4949 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4950 local "insn".
4951 (rs6000_get_some_local_dynamic_name): Likewise.
4952 (output_cbranch): Likewise for param "insn".
4953 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4954 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4955 (rs6000_emit_allocate_stack): Likewise for local "insn".
4956 (load_cr_save): Likewise.
4957 (restore_saved_cr): Likewise.
4958 (restore_saved_lr): Likewise.
4959 (emit_cfa_restores): Likewise.
4960 (rs6000_output_function_epilogue): Likewise for locals "insn" and
4961 "deleted_debug_label".
4962 (rs6000_output_mi_thunk): Likewise for local "insn".
4963 (rs6000_final_prescan_insn): Likewise for param "insn".
4964
4965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4966
4967 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
4968 Strengthen param "insn" from rtx to rtx_insn *.
4969 * config/picochip/picochip.c (picochip_current_prescan_insn):
4970 Likewise for this variable.
4971 (picochip_final_prescan_insn): Likewise for param "insn".
4972
4973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4974
4975 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
4976 from rtx to rtx_insn *.
4977 (pa_output_indirect_call): Likewise.
4978 (pa_adjust_insn_length): Likewise.
4979 (pa_attr_length_millicode_call): Likewise.
4980 (pa_attr_length_call): Likewise.
4981 (pa_attr_length_indirect_call): Likewise.
4982
4983 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
4984 "insn".
4985 (pa_attr_length_millicode_call): Likewise.
4986 (pa_attr_length_call): Likewise.
4987 (pa_output_call): Likewise.
4988 (pa_attr_length_indirect_call): Likewise.
4989 (pa_output_indirect_call): Likewise.
4990
4991 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4992
4993 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
4994 Strengthen first param from rtx to rtx_insn *.
4995 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
4996 param "insn".
4997
4998 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4999
5000 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
5001 type from rtx to rtx_insn *.
5002 (mips_expand_call): Likewise.
5003 (mips_adjust_insn_length): Likewise for first param.
5004 (mips_output_conditional_branch): Likewise.
5005 (mips_output_order_conditional_branch): Likewise.
5006 (mips_final_prescan_insn): Likewise.
5007
5008 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
5009 rtx_insn * for the SEQUENCE case.
5010 (SEQ_END): Likewise.
5011 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
5012 (mips_emit_call_insn): Likewise, also for local "insn".
5013 (mips16_gp_pseudo_reg): Likewise for local "scan".
5014 (mips16_build_call_stub): Likewise for return type and for local
5015 "insn". Introduce a new local "pattern" so that "insn" can indeed
5016 be an insn.
5017 (mips_expand_call): Strengthen return type and local "insn" from
5018 rtx to rtx_insn *.
5019 (mips_block_move_loop): Strengthen local "label" from rtx to
5020 rtx_code_label *.
5021 (mips_expand_synci_loop): Likewise for locals "label",
5022 "end_label".
5023 (mips_set_frame_expr): Strengthen local "insn" from rtx to
5024 rtx_insn *.
5025 (mips16e_collect_argument_saves): Likewise for locals "insn",
5026 "next".
5027 (mips_find_gp_ref): Likewise for param of callback for "pred"
5028 param, and for local "insn".
5029 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
5030 (mips_insn_has_flexible_gp_ref_p): Likewise.
5031 (mips_epilogue_emit_cfa_restores): Likewise for return type and
5032 local "insn".
5033 (mips_epilogue_set_cfa): Likewise for local "insn".
5034 (mips_expand_epilogue): Likewise.
5035 (mips_adjust_insn_length): Likewise for param "insn".
5036 (mips_output_conditional_branch): Likewise.
5037 (mips_output_order_conditional_branch): Likewise.
5038 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
5039 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
5040 "falu2_turn_enabled_insn".
5041 (mips_builtin_branch_and_move): Strengthen locals "true_label",
5042 "done_label" from rtx to rtx_code_label *.
5043 (struct mips16_constant): Likewise for field "label".
5044 (mips16_add_constant): Likewise for return type.
5045 (mips16_emit_constants_1): Strengthen return type and param "insn"
5046 from rtx to rtx_insn *.
5047 (mips16_emit_constants): Likewise for param "insn".
5048 (mips16_insn_length): Likewise.
5049 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
5050 to rtx_code_label *.
5051 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
5052 from rtx to rtx_insn *.
5053 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
5054 "jump". Strengthen local "label" from rtx to rtx_code_label *.
5055 (r10k_simplify_address): Strengthen param "insn" and local
5056 "def_insn" from rtx to rtx_insn *.
5057 (r10k_safe_address_p): Strengthen param "insn" from rtx to
5058 rtx_insn *.
5059 (r10k_needs_protection_p_1): Update target type of cast of data
5060 from to rtx to rtx_insn *.
5061 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
5062 rtx * to rtx_insn **.
5063 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
5064 rtx_insn *.
5065 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
5066 (mips_call_expr_from_insn): Likewise for param "insn".
5067 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
5068 (mips_find_pic_call_symbol): Likewise for param "insn".
5069 (mips_annotate_pic_calls): Likewise for local "insn".
5070 (mips_sim_insn): Likewise for this variable.
5071 (struct mips_sim): Likewise for field "insn" within elements of
5072 last_set array.
5073 (mips_sim_wait_reg): Likewise for param "insn".
5074 (mips_sim_wait_regs): Likewise.
5075 (mips_sim_wait_units): Likewise.
5076 (mips_sim_wait_insn): Likewise.
5077 (mips_sim_issue_insn): Likewise.
5078 (mips_sim_finish_insn): Likewise.
5079 (mips_seq_time): Likewise for param "seq" and local "insn".
5080 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
5081 locals "first", "second".
5082 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
5083 "last", "last2", "next".
5084 (mips_avoid_hazard): Likewise for params "after", "insn".
5085 (mips_reorg_process_insns): Likewise for locals "insn",
5086 "last_insn", "subinsn", "next_insn".
5087 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
5088 (mips16_split_long_branches): Likewise for locals "insn" "jump",
5089 "jump_sequence".
5090 (mips_output_mi_thunk): Likewise for local "insn".
5091 (mips_final_prescan_insn): Likewise for param "insn".
5092
5093 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5094
5095 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
5096 Strengthen return type and local "insns" from rtx to rtx_insn *.
5097 (microblaze_legitimize_tls_address): Likewise for local "insns".
5098 (microblaze_block_move_loop): Strengthen local "label" from rtx
5099 to rtx_code_label *.
5100 (microblaze_expand_prologue): Strengthen two locals named "insn"
5101 from rtx to rtx_insn *.
5102 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
5103 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
5104 "insn". Strengthen locals "div_label", "div_end_label" from rtx
5105 to rtx_code_label *.
5106
5107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5108
5109 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
5110 param from rtx to rtx_insn *.
5111 (mep_reuse_lo): Likewise for third param.
5112 (mep_use_post_modify_p): Likewise for first param.
5113 (mep_core_address_length): Likewise.
5114 (mep_cop_address_length): Likewise.
5115 (mep_final_prescan_insn): Likewise.
5116 (mep_store_data_bypass_p): Likewise for both params.
5117 (mep_mul_hilo_bypass_p): Likewise.
5118 (mep_ipipe_ldc_p): Likewise for param.
5119
5120 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
5121 (mep_rewrite_mult): Likewise.
5122 (mep_rewrite_mulsi3): Likewise.
5123 (mep_rewrite_maddsi3): Likewise.
5124 (mep_reuse_lo_p_1): Likewise.
5125 (mep_reuse_lo_p): Likewise.
5126 (mep_frame_expr): Likewise.
5127 (mep_make_parallel): Likewise for both params.
5128 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
5129 local "insn".
5130 (mep_use_post_modify_p): Likewise for param "insn".
5131 (mep_core_address_length): Likewise.
5132 (mep_cop_address_length): Likewise.
5133 (mep_reg_set_in_function): Likewise for local "insn".
5134 (mep_asm_without_operands_p): Likewise.
5135 (F): Likewise for return type and param "x".
5136 (add_constant): Likewise for local "insn".
5137 (maybe_dead_move): Likewise for return type and local "insn".
5138 (mep_expand_prologue): Likewise for local "insn".
5139 (mep_final_prescan_insn): Likewise for param "insn".
5140 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
5141 "next", "follow", "x".
5142 (mep_insert_repeat_label_last): Likewise for return type, param
5143 "last_insn", and locals "next", "prev". Strengthen param "label"
5144 from rtx to rtx_code_label *.
5145 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
5146 rtx_insn *.
5147 (struct mep_doloop_end): Likewise for fields "insn" and
5148 "fallthrough".
5149 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
5150 Strengthen local "repeat_label" from rtx to rtx_code_label *.
5151 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
5152 rtx_insn *.
5153 (mep_invert_branch): Likewise for params "insn" and "after".
5154 (mep_reorg_erepeat): Likewise for param "insns" and locals
5155 "insn", "prev", "new_last", "barrier", "user". Strengthen local
5156 "l" from rtx to rtx_code_label *.
5157 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
5158 from rtx to rtx_insn *.
5159 (mep_reorg_addcombine): Likewise for param "insns" and locals
5160 "i", "n".
5161 (add_sp_insn_p): Likewise for param "insn".
5162 (mep_reorg_noframe): Likewise for param "insns" and locals
5163 "start_frame_insn", "end_frame_insn", "next".
5164 (mep_reorg): Likewise for local "insns".
5165 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
5166 cast.
5167 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
5168 (mep_mul_hilo_bypass_p): Likewise.
5169 (mep_ipipe_ldc_p): Likewise for param "insn".
5170 (mep_make_bundle): Likewise for return type, param "cop" and local
5171 "insn", splitting out the latter into a new local "seq" for when it
5172 is a SEQUENCE rather than an insn.
5173 (core_insn_p): Likewise for param "insn".
5174 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
5175 "last", "first", "note", "prev", "core_insn".
5176
5177 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5178
5179 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
5180 rtx to rtx_insn *.
5181 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
5182 (m68k_final_prescan_insn): Likewise for first param.
5183
5184 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
5185 (m68k_set_frame_related): Likewise for param "insn".
5186 (output_btst): Likewise for param "insn".
5187 (m68k_final_prescan_insn): Likewise.
5188 (m68k_move_to_reg): Likewise for local "insn".
5189 (m68k_call_tls_get_addr): Likewise for local "insns".
5190 (m68k_call_m68k_read_tp): Likewise.
5191 (strict_low_part_peephole_ok): Likewise for param "first_insn".
5192 (m68k_output_mi_thunk): Likewise for local "insn".
5193
5194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5195
5196 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
5197 first param from rtx to rtx_insn *.
5198 (iq2000_adjust_insn_length): Likewise.
5199 (iq2000_output_conditional_branch): Likewise.
5200 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
5201 "insn" and local "nop_insn".
5202 (iq2000_annotate_frame_insn): Likewise for param "insn".
5203 (iq2000_expand_prologue): Likewise for both locals "insn".
5204 (iq2000_adjust_insn_length): Likewise for param "insn".
5205 (iq2000_output_conditional_branch): Likewise.
5206
5207 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5208
5209 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
5210 "insns" from rtx to rtx_insn *.
5211 (ia64_emit_cond_move): Likewise for locals "insn", "first".
5212 (struct spill_fill_data): Likewise for field "init_after" and for
5213 elements of array field "prev_insn".
5214 (spill_restore_mem): Likewise for locals "insn", "first".
5215 (do_spill): Likewise for local "insn".
5216 (do_restore): Likewise.
5217 (ia64_expand_prologue): Likewise.
5218 (ia64_expand_epilogue): Likewise.
5219 (emit_insn_group_barriers): Likewise for locals "insn",
5220 "last_label".
5221 (emit_all_insn_group_barriers): Likewise for locals "insn",
5222 "last".
5223 (dfa_stop_insn): Likewise for this global.
5224 (dfa_pre_cycle_insn): Likewise.
5225 (ia64_nop): Likewise.
5226 (final_emit_insn_group_barriers): Likewise for locals "insn",
5227 "last".
5228 (emit_predicate_relation_info): Likewise for locals "head", "n",
5229 "insn", "b", "a".
5230 (ia64_reorg): Likewise for local "insn".
5231 (ia64_output_mi_thunk): Likewise.
5232 (expand_vec_perm_interleave_2): Likewise for local "seq".
5233
5234 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5235
5236 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
5237 param 1 "insn" from rtx to rtx_insn *.
5238 (ix86_use_lea_for_mov): Likewise.
5239 (ix86_avoid_lea_for_addr): Likewise.
5240 (ix86_split_lea_for_addr): Likewise.
5241 (ix86_lea_for_add_ok): Likewise.
5242 (ix86_output_call_insn): Likewise.
5243
5244 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
5245 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
5246 (ix86_output_function_epilogue): Likewise for locals "insn",
5247 "deleted_debug_label".
5248 (legitimize_tls_address): Likewise for local "insn".
5249 (get_some_local_dynamic_name): Likewise.
5250 (increase_distance): Likewise for params "prev", "next".
5251 (distance_non_agu_define_in_bb): Likewise for params "insn",
5252 "start" and locals "prev", "next".
5253 (distance_non_agu_define): Likewise for param "insn".
5254 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
5255 locals "next", "prev".
5256 (distance_agu_use): Likewise for param "insn".
5257 (ix86_lea_outperforms): Likewise.
5258 (ix86_ok_to_clobber_flags): Likewise.
5259 (ix86_avoid_lea_for_add): Likewise.
5260 (ix86_use_lea_for_mov): Likewise.
5261 (ix86_avoid_lea_for_addr): Likewise.
5262 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
5263 (ix86_split_lea_for_addr): Likewise for param "insn".
5264 (ix86_lea_for_add_ok): Likewise for param "insn".
5265 (ix86_expand_carry_flag_compare): Likewise for local
5266 "compare_seq".
5267 (ix86_expand_int_movcc): Likewise.
5268 (ix86_output_call_insn): Likewise for param "insn".
5269 (ix86_output_call_insn): Likewise for local "i".
5270 (x86_output_mi_thunk): Introduce local "insn", using it in place
5271 of "tmp" when dealing with insns.
5272 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
5273 "start".
5274 (ix86_pad_returns): Likewise for locals "ret", "prev".
5275 (ix86_count_insn_bb): Likewise for local "insn".
5276 (ix86_pad_short_function): Likewise for locals "ret", "insn".
5277 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
5278 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
5279 (expand_vec_perm_interleave2): Likewise for local "seq".
5280 (expand_vec_perm_vperm2f128_vblend): Likewise.
5281 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
5282 call to for_each_rtx with for_each_rtx_in_insn.
5283
5284 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5285
5286 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
5287 "label" from rtx to rtx_code_label *.
5288 (ix86_expand_prologue): Likewise.
5289 (ix86_expand_split_stack_prologue): Likewise for locals "label",
5290 "varargs_label".
5291 (ix86_split_idivmod): Likewise for locals "end_label" and
5292 "qimode_label".
5293 (ix86_expand_branch): Likewise for local "label2".
5294 (ix86_expand_aligntest): Likewise for return type and local "label".
5295 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
5296 "top_label".
5297 (expand_movmem_epilogue): Likewise for the various locals named
5298 "label".
5299 (expand_setmem_epilogue): Likewise.
5300 (expand_small_movmem_or_setmem): Likewise for local "label".
5301 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5302 Strengthen param "done_label" from rtx * to rtx_code_label **.
5303 Strengthen locals "loop_label" and "label" from rtx to
5304 rtx_code_label *.
5305 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
5306 Likewise for locals "loop_label", "label".
5307 (ix86_expand_set_or_movmem): Likewise for locals "label",
5308 "jump_around_label", "hot_label".
5309 (ix86_expand_strlensi_unroll_1): Likewise for locals
5310 "align_2_label", align_3_label", "align_4_label", "end_0_label",
5311 "end_2_label".
5312 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
5313 (void ix86_emit_i387_log1p): Likewise for locals "label1",
5314 "label2", "jump_label".
5315 (ix86_expand_sse_compare_and_jump): Likewise for return type and
5316 local "label".
5317 (ix86_expand_lfloorceil): Likewise for local "label".
5318 (ix86_expand_rint): Likewise.
5319 (ix86_expand_floorceildf_32): Likewise.
5320 (ix86_expand_floorceil): Likewise.
5321 (ix86_expand_rounddf_32): Likewise.
5322 (ix86_expand_trunc): Likewise.
5323 (ix86_expand_truncdf_32): Likewise.
5324 (ix86_expand_round): Likewise.
5325
5326 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5327
5328 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
5329 first param from rtx to rtx_insn *.
5330 (h8300_insn_length_from_table): Likewise.
5331 * config/h8300/h8300.c (F): Likewise for return type and param
5332 "x".
5333 (Fpa): Add a checked cast to rtx_insn *.
5334 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
5335 rtx_insn *.
5336 (final_prescan_insn): Likewise for param "insn".
5337 (h8300_binary_length): Likewise.
5338 (h8300_insn_length_from_table): Likewise.
5339
5340 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5341
5342 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
5343 Strengthen first param "insn" from rtx to rtx_insn *.
5344
5345 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
5346 Likewise.
5347 (frame_insn): Likewise for return type. Introduce local "insn"
5348 for use in place of local "x" for use as an rtx_insn *.
5349 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
5350 (epiphany_expand_prologue): Likewise for local "insn".
5351 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
5352 * config/epiphany/resolve-sw-modes.c
5353 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
5354 "seq".
5355
5356 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5357
5358 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
5359 param from rtx to rtx_insn *.
5360 (c6x_final_prescan_insn): Likewise for first param.
5361
5362 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
5363 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
5364 (c6x_expand_compare): Strengthen local "insns" from rtx to
5365 rtx_insn *.
5366 (c6x_get_unit_specifier): Likewise for param "insn".
5367 (c6x_print_unit_specifier_field): Likewise.
5368 (c6x_final_prescan_insn): Likewise.
5369 (emit_add_sp_const): Likewise for local "insn".
5370 (c6x_expand_prologue): Likewise.
5371
5372 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5373
5374 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
5375 param 1 from rtx to rtx_insn *.
5376 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
5377 the various locals named "insn".
5378 (expand_epilogue_reg_restore): Likewise.
5379 (frame_related_constant_load): Likewise.
5380 (add_to_reg): Likewise.
5381 (emit_link_insn): Likewise.
5382 (do_link): Likewise.
5383 (expand_interrupt_handler_prologue): Likewise.
5384 (branch_dest): Likewise for param "branch".
5385 (asm_conditional_branch): Likewise for param "insn".
5386 (gen_one_bundle): Likewise for elements of param "slot" and local
5387 "t".
5388 (bfin_gen_bundles): Likewise for locals "insn", "next" and
5389 elements of local "slot".
5390 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
5391 "queue", "next_queue", "prev".
5392 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
5393 (add_sched_insns_for_speculation): Likewise for local "insn".
5394
5395 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5396
5397 * config/avr/avr-protos.h (output_movqi): Strengthen first param
5398 from rtx to rtx_insn *.
5399 (output_movhi): Likewise.
5400 (output_movsisf): Likewise.
5401 (avr_out_tstsi): Likewise.
5402 (avr_out_tsthi): Likewise.
5403 (avr_out_tstpsi): Likewise.
5404 (avr_out_compare): Likewise.
5405 (avr_out_compare64): Likewise.
5406 (avr_out_movpsi): Likewise.
5407 (ashlqi3_out): Likewise.
5408 (ashlhi3_out): Likewise.
5409 (ashlsi3_out): Likewise.
5410 (ashrqi3_out): Likewise.
5411 (ashrhi3_out): Likewise.
5412 (ashrsi3_out): Likewise.
5413 (lshrqi3_out): Likewise.
5414 (lshrhi3_out): Likewise.
5415 (lshrsi3_out): Likewise.
5416 (avr_out_ashlpsi3): Likewise.
5417 (avr_out_ashrpsi3): Likewise.
5418 (avr_out_lshrpsi3): Likewise.
5419 (avr_out_fract): Likewise.
5420 (avr_out_sbxx_branch): Likewise.
5421 (avr_out_round): Likewise.
5422 (avr_out_xload): Likewise.
5423 (avr_out_movmem): Likewise.
5424 (adjust_insn_length): Likewise.
5425 (avr_out_lpm): Likewise.
5426 (reg_unused_after): Likewise.
5427 (_reg_unused_after): Likewise.
5428 (avr_jump_mode): Likewise for second param.
5429 (jump_over_one_insn): Likewise for first param.
5430 (avr_final_prescan_insn): Likewise.
5431 (out_shift_with_cnt): Likewise for second param.
5432
5433 * config/avr/avr.c (get_sequence_length): Likewise for param
5434 "insns" and local "insn".
5435 (emit_push_byte): Likewise for local "insn".
5436 (emit_push_sfr): Likewise.
5437 (avr_prologue_setup_frame): Likewise for locals "insn",
5438 "fp_plus_insns", "sp_plus_insns".
5439 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
5440 "sp_plus_insns".
5441 (avr_jump_mode): Likewise for param "insn".
5442 (avr_final_prescan_insn): Likewise.
5443 (avr_find_unused_d_reg): Likewise.
5444 (avr_out_lpm_no_lpmx): Likewise.
5445 (avr_out_lpm): Likewise.
5446 (avr_out_xload): Likewise.
5447 (output_movqi): Likewise.
5448 (output_movhi): Likewise.
5449 (out_movqi_r_mr): Likewise.
5450 (out_movhi_r_mr): Likewise.
5451 (out_movsi_r_mr): Likewise.
5452 (out_movsi_mr_r): Likewise.
5453 (output_movsisf): Likewise.
5454 (avr_out_load_psi): Likewise.
5455 (avr_out_store_psi): Likewise.
5456 (avr_out_movpsi): Likewise.
5457 (out_movqi_mr_r): Likewise.
5458 (avr_out_movhi_mr_r_xmega): Likewise.
5459 (out_movhi_mr_r): Likewise.
5460 (compare_condition): Likewise for param "insn" and local "next".
5461 (compare_sign_p): Likewise for param "insn".
5462 (compare_diff_p): Likewise.
5463 (compare_eq_p): Likewise.
5464 (avr_out_compare): Likewise.
5465 (avr_out_compare64): Likewise.
5466 (avr_out_tsthi): Likewise.
5467 (avr_out_tstpsi): Likewise.
5468 (avr_out_tstsi): Likewise.
5469 (out_shift_with_cnt): Likewise.
5470 (ashlqi3_out): Likewise.
5471 (ashlhi3_out): Likewise.
5472 (avr_out_ashlpsi3): Likewise.
5473 (ashlsi3_out): Likewise.
5474 (ashrqi3_out): Likewise.
5475 (ashrhi3_out): Likewise.
5476 (avr_out_ashrpsi3): Likewise.
5477 (ashrsi3_out): Likewise.
5478 (lshrqi3_out): Likewise.
5479 (lshrhi3_out): Likewise.
5480 (avr_out_lshrpsi3): Likewise.
5481 (lshrsi3_out): Likewise.
5482 (avr_out_fract): Likewise.
5483 (avr_out_round): Likewise.
5484 (avr_adjust_insn_length): Likewise.
5485 (reg_unused_after): Likewise.
5486 (_reg_unused_after): Likewise.
5487 (avr_compare_pattern): Likewise.
5488 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
5489 and locals "branch1", "branch2", "insn2", "jump".
5490 (avr_reorg): Likewise for local "insn".
5491 (avr_2word_insn_p): Likewise for param "insn".
5492 (jump_over_one_insn_p): Likewise.
5493 (avr_out_sbxx_branch): Likewise.
5494 (avr_out_movmem): Likewise.
5495
5496 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5497
5498 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
5499 param from rtx to rtx_insn *.
5500 (thumb1_final_prescan_insn): Likewise.
5501 (thumb2_final_prescan_insn): Likewise.
5502
5503 * config/arm/arm.c (emit_set_insn): Strengthen return type from
5504 rtx to rtx_insn *.
5505 (struct minipool_node): Likewise for field "insn".
5506 (dump_minipool): Likewise for param "scan".
5507 (create_fix_barrier): Likewise for local "from". Strengthen local
5508 "label" from rtx to rtx_code_label *.
5509 (push_minipool_barrier): Strengthen param "insn" from rtx to
5510 rtx_insn *.
5511 (push_minipool_fix): Likewise.
5512 (note_invalid_constants): Likewise.
5513 (thumb2_reorg): Likewise for local "insn".
5514 (arm_reorg): Likewise.
5515 (thumb2_final_prescan_insn): Likewise for param
5516 "insn" and local "first_insn".
5517 (arm_final_prescan_insn): Likewise for param "insn" and locals
5518 "start_insn", "this_insn".
5519 (arm_debugger_arg_offset): Likewise for param "insn".
5520 (thumb1_emit_multi_reg_push): Likewise for return type and local
5521 "insn".
5522 (thumb1_final_prescan_insn): Likewise for param "insn".
5523 (thumb_far_jump_used_p): Likewise for local "insn".
5524 (thumb1_expand_prologue): Likewise.
5525 (arm_expand_epilogue_apcs_frame): Likewise.
5526 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
5527 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
5528 from rtx to rtx_code_label *.
5529 (arm_split_atomic_op): Likewise for local "label".
5530 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
5531
5532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5533
5534 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
5535 first param from rtx to rtx_insn *.
5536 (arc_verify_short): Likewise.
5537 (arc_short_long): Likewise.
5538 (arc_need_delay): Likewise.
5539
5540 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
5541 "target_insn".
5542 (arc_ccfsm_advance): Likewise for param "insn" and locals
5543 "start_insn", "this_insn".
5544 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
5545 (arc_ccfsm_post_advance): Likewise for param "insn".
5546 (arc_next_active_insn): Likewise for return type and param "insn".
5547 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
5548 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
5549 (output_short_suffix): Likewise for local "insn".
5550 (arc_final_prescan_insn): Likewise for param "insn". Remove
5551 now-redundant checked cast.
5552 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
5553 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
5554 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
5555 for use where lc_set became an insn.
5556 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
5557 rtx to rtx_insn *.
5558 (arc_get_insn_variants): Likewise for local "prev".
5559 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
5560 "next".
5561 (arc_predicate_delay_insns): Likewise for local "insn".
5562 (arc_pad_return): Likewise for local "prev". For now, add a
5563 checked cast when extracting the insn from "final_sequence".
5564 (arc_short_long): Likewise for param "insn".
5565 (arc_need_delay): Likewise for param "insn" and local "next".
5566 (arc_label_align): Likewise for locals "prev", "next".
5567
5568 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5569
5570 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
5571 "insn" from rtx to rtx_insn *.
5572 (alpha_gp_save_rtx): Likewise for local "seq".
5573 (alpha_instantiate_decls): Likewise for local "top".
5574 (get_some_local_dynamic_name): Likewise for local "insn".
5575 (alpha_does_function_need_gp): Likewise.
5576 (set_frame_related_p): Likewise for return type and for locals
5577 "seq" and "insn".
5578 (emit_frame_store_1): Likewise for local "insn".
5579 (alpha_expand_prologue): Likewise for locals "insn", "seq".
5580 (alpha_end_function): Likewise for local "insn".
5581 (alpha_output_mi_thunk_osf): Likewise.
5582 (alphaev4_insn_pipe): Likewise for param "insn".
5583 (alphaev5_insn_pipe): Likewise.
5584 (alphaev4_next_group): Likewise for return type and param 1
5585 "insn".
5586 (alphaev5_next_group): Likewise.
5587 (alpha_align_insns_1): Likewise for return type and param 1 of
5588 callback param "next_group", and for locals "i", "next", "prev",
5589 "where", "where2", "insn".
5590
5591 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
5592
5593 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
5594 rather than modifying the stmt.
5595
5596 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5597
5598 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
5599 cgraph_state conversion.
5600
5601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5602
5603 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5604 Strengthen local "insns" from rtx to rtx_insn *.
5605 (aarch64_set_frame_expr): Likewise for local "insn".
5606 (aarch64_save_or_restore_fprs): Likewise.
5607 (aarch64_save_or_restore_callee_save_registers): Likewise.
5608 (aarch64_expand_prologue): Likewise.
5609 (aarch64_expand_epilogue): Likewise.
5610 (aarch64_output_mi_thunk): Likewise.
5611 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5612 "label2" from rtx to rtx_code_label *.
5613 (aarch64_split_atomic_op): Likewise for local "label".
5614
5615 2014-08-25 Martin Liska <mliska@suse.cz>
5616
5617 * cgraph.h (symtab_node):
5618 (bool needed_p (void)): created from decide_is_symbol_needed
5619 (bool referred_to_p (void)): created from referred_to_p
5620 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5621 * cgraph.h (cgraph_node):
5622 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5623 (void expand (void)): created from expand_function
5624 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5625 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5626 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5627 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5628 * cgraph.h (varpool_node):
5629 (static void add (tree decl): created from varpool_add_new_variable
5630 * cgraph.h (cgraph_edge):
5631 void remove (void);
5632 (void remove_caller (void)): created from cgraph_edge_remove_caller
5633 (void remove_callee (void)): created from cgraph_edge_remove_callee
5634 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5635 created from cgraph_set_call_stmt
5636 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5637 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5638 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5639 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5640 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5641 created from cgraph_speculative_call_info
5642 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5643 int freq_scale, bool update_original)): created from cgraph_clone_edge
5644 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5645 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5646 (bool recursive_p (void)): created from cgraph_edge_recursive_p
5647 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5648 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5649 (static void rebuild_references (void)): created from cgraph_rebuild_references
5650 * cgraph.h (symbol_table):
5651 (create_reference): renamed from add_reference
5652 (maybe_create_reference): renamed from maybe_add_reference
5653 (void register_symbol (symtab_node *node)): new function
5654 (void clear_asm_symbols (void)): new function
5655 (void unregister (symtab_node *node)): new function
5656 (void release_symbol (cgraph_node *node, int uid)): new function
5657 (cgraph_node * allocate_cgraph_symbol (void)): new function
5658 (void initialize (void)): created from cgraph_init
5659 (symtab_node *first_symbol (void)):new function
5660 (asm_node *first_asm_symbol (void)):new function
5661 (symtab_node *first_defined_symbol (void)):new function
5662 (varpool_node *first_variable (void)):new function
5663 (varpool_node *next_variable (varpool_node *node)):new function
5664 (varpool_node *first_static_initializer (void)):new function
5665 (varpool_node *next_static_initializer (varpool_node *node)):new function
5666 (varpool_node *first_defined_variable (void)):new function
5667 (varpool_node *next_defined_variable (varpool_node *node)):new function
5668 (cgraph_node *first_defined_function (void)):new function
5669 (cgraph_node *next_defined_function (cgraph_node *node)):new function
5670 (cgraph_node *first_function (void)):new function
5671 (cgraph_node *next_function (cgraph_node *node)):new function
5672 (cgraph_node *first_function_with_gimple_body (void)):new function
5673 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5674 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5675 created from symtab_remove_unreachable_nodes
5676 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5677 (void process_new_functions (void)): created from cgraph_process_new_functions
5678 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5679 (bool output_variables (void)): created from varpool_node::output_variables
5680 (void output_asm_statements (void)): created from output_asm_statements
5681 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5682 (void compile (void)): created from compile
5683 (void output_weakrefs (void)): created from output_weakrefs
5684 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5685 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5686 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5687 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5688 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5689 created from cgraph_next_function_with_gimple_body
5690 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5691 created from cgraph_remove_edge_removal_hook
5692 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5693 created from cgraph_add_node_removal_hook
5694 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5695 created from cgraph_remove_node_removal_hook
5696 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5697 created from varpool_add_node_removal_hook
5698 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5699 created from varpool_remove_node_removal_hook
5700 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5701 created from cgraph_add_function_insertion_hook
5702 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5703 created from cgraph_remove_function_insertion_hook
5704 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5705 created from varpool_add_variable_insertion_hook
5706 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5707 created from varpool_remove_variable_insertion_hook
5708 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5709 created from cgraph_add_edge_duplication_hook
5710 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5711 created from cgraph_remove_edge_duplication_hook
5712 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5713 created from cgraph_add_node_duplication_hook
5714 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5715 created from cgraph_remove_node_duplication_hook
5716 (void call_edge_removal_hooks (cgraph_edge *e)):
5717 created from cgraph_call_edge_removal_hooks
5718 (void call_cgraph_insertion_hooks (cgraph_node *node)):
5719 created from call_function_insertion_hooks
5720 (void call_cgraph_removal_hooks (cgraph_node *node)):
5721 created from cgraph_call_node_removal_hooks
5722 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5723 created from cgraph_node::call_duplication_hooks
5724 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5725 created from cgraph_call_edge_duplication_hooks
5726 (void call_varpool_removal_hooks (varpool_node *node)):
5727 created from varpool_call_node_removal_hooks
5728 (void call_varpool_insertion_hooks (varpool_node *node)):
5729 created from varpool_call_variable_insertion_hooks
5730 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5731 created from insert_to_assembler_name_hash
5732 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5733 created from unlink_from_assembler_name_hash
5734 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5735 created from symtab_prevail_in_asm_name_hash
5736 (void symtab_initialize_asm_name_hash (void)):
5737 created from symtab_initialize_asm_name_hash
5738 (void change_decl_assembler_name (tree decl, tree name)):
5739 created from change_decl_assembler_name
5740 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5741 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5742 created from decl_assembler_name_hash
5743 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5744 created from decl_assembler_name_equal
5745 (static hashval_t hash_node_by_assembler_name (const void *p)):
5746 created from hash_node_by_assembler_name
5747 (static int eq_assembler_name (const void *p1, const void *p2)):
5748 created from eq_assembler_name
5749
5750 2014-08-25 Marek Polacek <polacek@redhat.com>
5751
5752 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5753
5754 2014-08-25 Petr Murzin <petr.murzin@intel.com>
5755
5756 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5757 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5758 SWI1248_AVX512BW mode iterator.
5759
5760 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
5761
5762 PR target/62111
5763 * config/sh/predicates.md (general_extend_operand): Disable
5764 TRUNCATE before reload completes.
5765
5766 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
5767
5768 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5769
5770 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
5771
5772 PR target/61996
5773 * config/sh/sh.opt (musermode): Allow negative form.
5774 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5775 targets that don't support it.
5776 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5777 Document -mno-usermode option.
5778
5779 2014-08-24 Kito Cheng <kito@0xlab.org>
5780
5781 * system.h (CALLER_SAVE_PROFITABLE): Poison.
5782 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5783 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5784 * doc/tm.texi: Regenerate.
5785
5786 2014-08-24 Kito Cheng <kito@0xlab.org>
5787
5788 * ira.c: Fix typo in comment.
5789
5790 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5791
5792 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5793 Deprecate c++1y. Change language to reflect greater confidence in C++14.
5794
5795 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
5796
5797 PR target/62038
5798 * config/pa/pa.c (pa_output_function_epilogue): Don't set
5799 last_address when the current function is a thunk.
5800 (pa_asm_output_mi_thunk): When we don't have named sections or they
5801 are not being used, check that thunk can reach the stub table with a
5802 short branch.
5803
5804 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5805
5806 * web.c (union_match_dups): Strengthen param "insn" from rtx to
5807 rtx_insn *.
5808 (pass_web::execute): Likewise for local "insn".
5809
5810 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5811
5812 * var-tracking.c (struct micro_operation_def): Strengthen field
5813 "insn" from rtx to rtx_insn *.
5814 (struct emit_note_data_def): Likewise.
5815 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5816 (vt_stack_adjustments): Likewise for local "insn".
5817 (adjust_insn): Likewise for param "insn".
5818 (val_store): Likewise.
5819 (val_resolve): Likewise.
5820 (struct count_use_info): Likewise for field "insn".
5821 (log_op_type): Likewise for param "insn".
5822 (reverse_op): Likewise.
5823 (prepare_call_arguments): Likewise.
5824 (add_with_sets): The initial param takes an insn, but we can't
5825 yet strengthen it from rtx to rtx_insn * since it's used as a
5826 cselib_record_sets_hook callback. For now rename initial param
5827 from "insn" to "uncast_insn", and introduce a local "insn" of
5828 the stronger rtx_insn * type, with a checked cast.
5829 (compute_bb_dataflow): Strengthen local "insn" from rtx to
5830 rtx_insn *.
5831 (emit_note_insn_var_location): Likewise.
5832 (emit_notes_for_changes): Likewise.
5833 (emit_notes_for_differences): Likewise.
5834 (next_non_note_insn_var_location): Likewise for return type and
5835 for param "insn".
5836 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5837 (vt_initialize): Likewise for local "insn".
5838 (delete_debug_insns): Likewise for locals "insn" and "next".
5839
5840 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5841
5842 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5843 rtx_insn *.
5844 (mark_constant_pool): Likewise for local "insn".
5845
5846 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5847
5848 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5849 rtx to rtx_insn *.
5850 (dead_debug_promote_uses): Likewise.
5851 (dead_debug_insert_temp): Likewise.
5852
5853 2014-08-23 David Malcolm <dmalcolm@redhat.com>
5854
5855 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5856 from const_rtx to const rtx_insn *.
5857 (store_killed_after): Likewise. Strengthen locals "last", "act"
5858 from rtx to rtx_insn *.
5859 (store_killed_before): Strengthen param "insn" from const_rtx to
5860 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
5861 (find_moveable_store): Strengthen param "insn" from rtx to
5862 rtx_insn *.
5863 (compute_store_table): Likewise for local "insn".
5864 (insert_insn_start_basic_block): Likewise for param "insn" and
5865 locals "prev", "before", "insn".
5866 (insert_store): For now, add a checked cast to rtx_insn * on the
5867 result of gen_move_insn.
5868 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5869 to rtx_insn *.
5870 (replace_store_insn): Likewise. For now, add a checked cast to
5871 rtx_insn * on the result of gen_move_insn.
5872
5873 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5874
5875 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5876 rtx_insn *.
5877 (expand_sjlj_dispatch_table): Likewise.
5878
5879 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5880
5881 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5882 "insn" from rtx to rtx_insn *.
5883
5884 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5885
5886 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5887 "insn" from rtx to rtx_insn *.
5888 (dup_block_and_redirect): Likewise for param 3 "before".
5889
5890 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5891 from rtx to rtx_insn *.
5892 (move_insn_for_shrink_wrap): Likewise.
5893 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5894 (dup_block_and_redirect): Likewise for param "before" and local
5895 "insn".
5896 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5897 "end".
5898 (convert_to_simple_return): Likewise for local "start".
5899
5900 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5901 Strengthen local "insn" from rtx to rtx_insn *, for use when
5902 invoking requires_stack_frame_p.
5903
5904 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5905
5906 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5907 rtx_insn *.
5908 (speculate_expr): Likewise for locals "orig_insn_rtx",
5909 "spec_insn_rtx".
5910 (eq_transformed_insns): Likewise for locals "i1", "i2".
5911 (check_for_new_jump): Likewise for return type and local "end".
5912 (find_new_jump): Likewise for return type and local "jump".
5913 (sel_split_edge): Likewise for local "jump".
5914 (sel_create_recovery_block): Likewise.
5915 (sel_redirect_edge_and_branch_force): Likewise.
5916 (sel_redirect_edge_and_branch): Likewise.
5917
5918 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5919
5920 * sel-sched.c (substitute_reg_in_expr): Strengthen local
5921 "new_insn" from rtx to rtx_insn *.
5922 (create_insn_rtx_with_rhs): Likewise for return type and for local
5923 "insn_rtx".
5924 (create_insn_rtx_with_lhs): Likewise.
5925 (create_speculation_check): Likewise for local "insn_rtx".
5926 (implicit_clobber_conflict_p): Likewise for local "insn".
5927 (get_expr_cost): Likewise.
5928 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5929 (move_cond_jump): Likewise for locals "next", "prev", "link",
5930 "head", "from", "to".
5931
5932 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5933
5934 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5935 "next" from rtx to rtx_insn *.
5936 (find_conditional_protection): Likewise for local "next".
5937 (is_conditionally_protected): Likewise for local "insn1".
5938 (is_pfree): Likewise for locals "insn1", "insn2".
5939
5940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5941
5942 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5943 from rtx to rtx_insn *.
5944
5945 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5946 locals "insn1", "insn2" from rtx to rtx_insn *.
5947 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5948 locals "insn", "prev", "last_jump", "next_tail".
5949 (schedule_ebb): Likewise for params "head", "tail".
5950 (schedule_ebbs): Likewise for locals "tail", "head".
5951
5952 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5953 to rtx_insn on "last_insn" in one of the invocations of
5954 schedule_ebb.
5955
5956 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5957
5958 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
5959 "elem", "insn" from rtx to rtx_insn *.
5960 (change_spec_dep_to_hard): Likewise.
5961 (get_back_and_forw_lists): Likewise for local "con".
5962 (sd_add_dep): Likewise for locals "elem", "insn".
5963 (sd_resolve_dep): Likewise for locals "pro", "con".
5964 (sd_unresolve_dep): Likewise.
5965 (sd_delete_dep): Likewise.
5966 (chain_to_prev_insn): Likewise for local "pro".
5967 (find_inc): Likewise for locals "pro", "con".
5968
5969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5970
5971 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
5972 to rtx_insn *.
5973 (reg_set_between_p): Strengthen local "insn" from const_rtx to
5974 const rtx_insn *.
5975 (modified_between_p): Strengthen local "insn" from rtx to
5976 rtx_insn *.
5977 (remove_reg_equal_equiv_notes_for_regno): Likewise.
5978 (keep_with_call_p): Strengthen local "i2" from const_rtx to
5979 const rtx_insn *.
5980
5981 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5982
5983 * resource.c (next_insn_no_annul): Strengthen local "next" from
5984 rtx to rtx_insn *.
5985 (mark_referenced_resources): Likewise for local "insn".
5986
5987 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5988
5989 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
5990 to rtx_insn *.
5991 (find_reloads): Likewise for param 1.
5992 (subst_reloads): Likewise for sole param.
5993 (find_equiv_reg): Likwise for param 2.
5994 (regno_clobbered_p): Likwise for param 2.
5995 (reload): Likewise for param 1.
5996
5997 * caller-save.c (save_call_clobbered_regs): Strengthen local
5998 "insn" from rtx to rtx_insn *.
5999 (insert_one_insn): Likewise for local "insn".
6000
6001 * reload.c (this_insn): Likewise for this global.
6002 (find_reloads): Likewise for param "insn".
6003 (find_reloads_toplev): Likewise.
6004 (find_reloads_address): Likewise.
6005 (subst_reg_equivs): Likewise.
6006 (update_auto_inc_notes): Likewise.
6007 (find_reloads_address_1): Likewise.
6008 (find_reloads_subreg_address): Likewise.
6009 (subst_reloads): Likewise.
6010 (find_equiv_reg): Likewise, also for local "p".
6011 (regno_clobbered_p): Likewise for param "insn".
6012
6013 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
6014 array.
6015 (spill_reg_store): Likewise for the elements of this array.
6016 (remove_init_insns): Likewise for local "equiv_insn".
6017 (will_delete_init_insn_p): Likewise for param "insn".
6018 (reload): Likewise for param ""first" and local "insn".
6019 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
6020 rtx_insn *.
6021 (calculate_elim_costs_all_insns): Likewise.
6022 (delete_caller_save_insns): Likewise.
6023 (spill_failure): Likewise for param "insn".
6024 (delete_dead_insn): Likewise.
6025 (set_label_offsets): Likewise.
6026 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
6027 "prev_insn".
6028 (elimination_costs_in_insn): Likewise for param "insn".
6029 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
6030 when referring to an insn.
6031 (set_initial_label_offsets): Likewise.
6032 (set_offsets_for_label): Strengthen param "insn" from rtx to
6033 rtx_insn *.
6034 (init_eliminable_invariants): Likewise for param "first" and local
6035 "insn".
6036 (fixup_eh_region_note): Likewise for param "insn".
6037 (reload_as_needed): Likewise for locals "prev", "insn",
6038 "old_next", "old_prev", "next".
6039 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
6040 "last".
6041 (reload_inheritance_insn): Strengthen elements of this array from
6042 rtx to rtx_insn *.
6043 (failed_reload): Likewise for param "insn".
6044 (choose_reload_regs): Likewise for local "insn". Replace use of
6045 NULL_RTX with NULL when referring to an insn.
6046 (input_reload_insns): Strengthen elements of this array from rtx
6047 to rtx_insn *.
6048 (other_input_address_reload_insns): Likewise for this global.
6049 (other_input_reload_insns): Likewise for this global.
6050 (input_address_reload_insns): Likwise for the elements of this
6051 array.
6052 (inpaddr_address_reload_insns): Likwise for the elements of this
6053 array.
6054 (output_reload_insns): Likewise for the elements of this array.
6055 (output_address_reload_insns): Likewise for the elements of this
6056 array.
6057 (outaddr_address_reload_insns): Likewise for the elements of this
6058 array.
6059 (operand_reload_insns): Likewise for this global.
6060 (other_operand_reload_insns): Likewise for this global.
6061 (other_output_reload_insns): Likewise for the elements of this
6062 array.
6063 (new_spill_reg_store): Likewise for the elements of this
6064 array.
6065 (emit_input_reload_insns): Likewise for locals "insn", "temp".
6066 Strengthen local "where" from rtx * to rtx_insn **.
6067 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
6068 from rtx to rtx_insn *.
6069 (do_input_reload): Likewise for local "insn".
6070 (do_output_reload): Likewise for local "insn".
6071 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
6072 (emit_insn_if_valid_for_reload): Likewise for return type and local
6073 "last". Add checked cast to rtx_insn when returning "insn" since
6074 this has been through emit_insn.
6075 (gen_reload): Strengthen return type and locals "last", "insn", "set"
6076 from rtx to rtx_insn *. Add checked cast to rtx_insn when
6077 returning "insn" since it's been through
6078 emit_insn_if_valid_for_reload at this point.
6079 (delete_output_reload): Strengthen param "insn" and locals
6080 "output_reload_insn", "i2" from rtx to rtx_insn *.
6081 (delete_address_reloads): Likewise for params "dead_insn",
6082 "current_insn" and locals "prev", "next".
6083 (delete_address_reloads_1): Likewise for params "dead_insn",
6084 "current_insn" and locals "prev", "i2".
6085 (inc_for_reload): Likewise for locals "last", "add_insn".
6086 (add_auto_inc_notes): Strengthen param "insn" from rtx to
6087 rtx_insn *.
6088
6089 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
6090 param of this duplicate of the prototype from reload.h
6091
6092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6093
6094 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
6095 rtx to rtx_insn *.
6096 (regstat_bb_compute_calls_crossed): Likewise.
6097
6098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6099
6100 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
6101 to rtx_insn *.
6102 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
6103 with an insn.
6104 (regrename_analyze): Strengthen local "insn" from rtx to
6105 rtx_insn *.
6106 (scan_rtx_reg): Likewise for param "insn".
6107 (scan_rtx_address): Likewise.
6108 (scan_rtx): Likewise.
6109 (restore_operands): Likewise.
6110 (record_out_operands): Likewise.
6111 (build_def_use): Likewise for local "insn". Replace use of
6112 NULL_RTX with NULL when dealing with an insn.
6113
6114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6115
6116 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
6117 * reginfo.c (reg_scan): Likewise, also for local "insn".
6118 (reg_scan_mark_refs): Likewise for param "insn".
6119 (init_subregs_of_mode): Likewise for local "insn".
6120
6121 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6122
6123 * regcprop.c (struct queued_debug_insn_change): Strengthen field
6124 "insn" from rtx to rtx_insn *.
6125 (replace_oldest_value_reg): Likewise for param "insn".
6126 (replace_oldest_value_addr): Likewise.
6127 (replace_oldest_value_mem): Likewise.
6128 (apply_debug_insn_changes): Likewise for local "last_insn".
6129 (copyprop_hardreg_forward_1): Likewise for local "insn".
6130
6131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6132
6133 * reg-stack.c (next_flags_user): Strengthen return type and param
6134 "insn" from rtx to rtx_insn *.
6135 (straighten_stack): Likewise for param "insn".
6136 (check_asm_stack_operands): Likewise.
6137 (remove_regno_note): Likewise.
6138 (emit_pop_insn): Likewise for return type, param "insn", local
6139 "pop_insn".
6140 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
6141 "limit" from rtx to rtx_insn *.
6142 (swap_to_top): Likewise for param "insn".
6143 (move_for_stack_reg): Likewise.
6144 (move_nan_for_stack_reg): Likewise.
6145 (swap_rtx_condition): Likewise.
6146 (compare_for_stack_reg): Likewise.
6147 (subst_all_stack_regs_in_debug_insn): Likewise.
6148 (subst_stack_regs_pat): Likewise, and local "insn2".
6149 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
6150 rtx_insn *.
6151 (subst_stack_regs): Likewise.
6152 (change_stack): Likewise.
6153 (convert_regs_1): Likewise for locals "insn", "next".
6154
6155 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6156
6157 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
6158 rtx_insn *.
6159 (combine_set_extension): Likewise for param "curr_insn".
6160 (transform_ifelse): Likewise for param "def_insn".
6161 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
6162 from vec<rtx> * to vec<rtx_insn *> *.
6163 (is_cond_copy_insn): Likewise for param "insn".
6164 (struct ext_state): Strengthen the four vec fields from vec<rtx>
6165 to vec<rtx_insn *>.
6166 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
6167 local "def_insn" from rtx to rtx_insn *.
6168 (get_sub_rtx): Likewise for param "def_insn".
6169 (merge_def_and_ext): Likewise.
6170 (combine_reaching_defs): Likewise.
6171 (add_removable_extension): Likewise for param "insn".
6172 (find_removable_extensions): Likewise for local "insn".
6173 (find_and_remove_re): Likewise for locals "curr_insn" and
6174 "def_insn". Strengthen locals "reinsn_del_list" and
6175 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
6176
6177 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6178
6179 * recog.c (split_insn): Strengthen param "insn" and locals
6180 "first", "last" from rtx to rtx_insn *.
6181 (split_all_insns): Likewise for locals "insn", "next".
6182 (split_all_insns_noflow): Likewise.
6183
6184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6185
6186 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
6187 const rtx_insn *.
6188 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6189 (debug_rtx_find): Likewise for param 1 "x".
6190
6191 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
6192 const_rtx to const rtx_insn *. Likewise for local "insn".
6193 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
6194 (debug_rtx_find): Likewise for param 1 "x".
6195 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
6196 from const_rtx to const rtx_insn * within the appropriate cases of
6197 the switch statement.
6198
6199 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
6200 Strengthen local "insns" from rtx to rtx_insn * since this is
6201 passed to a call to debug_rtx_list.
6202
6203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6204
6205 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
6206 to rtx_insn *.
6207
6208 * function.c (stack_protect_epilogue): Add checked cast to
6209 rtx_insn for now when invoking predict_insn_def.
6210
6211 * predict.c (predict_insn): Strengthen param "insn" from rtx to
6212 rtx_insn *.
6213 (predict_insn_def): Likewise.
6214 (rtl_predict_edge): Likewise for local "last_insn".
6215 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
6216 const rtx_insn *.
6217 (combine_predictions_for_insn): Strengthen param "insn" from rtx
6218 to rtx_insn *.
6219 (bb_estimate_probability_locally): Likewise for local "last_insn".
6220 (expensive_function_p): Likewise for local "insn".
6221
6222 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
6223 local "jmp", since this is used when invoking predict_insn_def.
6224
6225 2014-08-22 Marek Polacek <polacek@redhat.com>
6226
6227 PR c++/62199
6228 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
6229
6230 2014-08-22 Marek Polacek <polacek@redhat.com>
6231
6232 PR c/61271
6233 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
6234 a comparison in parens.
6235 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
6236 in parens.
6237
6238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6239
6240 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
6241 rtx_insn *.
6242
6243 * cprop.c (fis_get_condition): Likewise.
6244
6245 * postreload.c (reload_cse_regs): Likewise for param "first".
6246 (reload_cse_simplify): Likewise for param "insn".
6247 (reload_cse_regs_1): Likewise for local "insn".
6248 (reload_cse_simplify_set): Likewise for param "insn".
6249 (reload_cse_simplify_operands): Likewise.
6250 (struct reg_use): Likewise for field "insn".
6251 (reload_combine_purge_insn_uses): Likewise for param "insn".
6252 (fixup_debug_insns): Likewise for params "from", "to" and local
6253 "insn".
6254 (try_replace_in_use): Likewise for local "use_insn".
6255 (reload_combine_recognize_const_pattern): Likewise for param
6256 "insn" and locals "add_moved_after_insn", "use_insn".
6257 (reload_combine_recognize_pattern): Likewise for param "insn" and
6258 local "prev".
6259 (reload_combine): Likewise for locals "insn", "prev".
6260 (reload_combine_note_use): Likewise for param "insn".
6261 (move2add_use_add2_insn): Likewise.
6262 (move2add_use_add3_insn): Likewise.
6263 (reload_cse_move2add): Likewise, also for local "next".
6264 (move2add_note_store): Likewise for local "insn".
6265
6266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6267
6268 * postreload-gcse.c (struct occr): Strengthen field "insn" from
6269 rtx to rtx_insn *.
6270 (struct unoccr): Likewise.
6271 (struct modifies_mem): Likewise.
6272 (alloc_mem): Likewise for local "insn".
6273 (insert_expr_in_table): Likewise for param "insn".
6274 (dump_expr_hash_table_entry): Likewise for local "insn".
6275 (oprs_unchanged_p): Likewise for param "insn".
6276 (load_killed_in_block_p): Likewise for local "setter".
6277 (record_last_reg_set_info): Likewise for param "insn".
6278 (record_last_reg_set_info_regno): Likewise.
6279 (record_last_mem_set_info): Likewise.
6280 (record_last_set_info): Likewise for local "last_set_insn".
6281 (record_opr_changes): Likewise for param "insn".
6282 (hash_scan_set): Likewise.
6283 (compute_hash_table): Likewise for local "insn".
6284 (get_avail_load_store_reg): Likewise for param "insn".
6285 (eliminate_partially_redundant_load): Likewise, also for locals
6286 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
6287 RTX for insns.
6288 (eliminate_partially_redundant_loads): Likewise for local "insn".
6289
6290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6291
6292 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
6293 rtx to rtx_insn *.
6294 (expand_binop): Likewise for locals "entry_last", "last", "insns"
6295 (expand_twoval_unop): Likewise for locals entry_last", "last".
6296 (expand_twoval_binop): Likewise.
6297 (expand_twoval_binop_libfunc): Likewise for local "insns".
6298 (widen_leading): Likewise for local "last".
6299 (expand_doubleword_clz): Likewise for local "seq". Strengthen
6300 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
6301 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
6302 (expand_parity): Likewise for locals "last" and "seq".
6303 (expand_ffs): Likewise for local "seq". Strengthen local
6304 "nonzero_label" from rtx to rtx_code_label *.
6305 (expand_absneg_bit): Strengthen local "insns" from rtx to
6306 rtx_insn *.
6307 (expand_unop_direct): Likewise for local "last".
6308 (expand_unop): Likewise for locals "last", "insns".
6309 (expand_abs_nojump): Likewise for local "last".
6310 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
6311 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
6312 rtx_insn *.
6313 (expand_copysign_absneg): Strengthen local "label" from rtx to
6314 rtx_code_label *.
6315 (expand_copysign_bit): Strengthen local "insns" from rtx to
6316 rtx_insn *.
6317 (struct no_conflict_data): Likewise for fields "first", "insn".
6318 (emit_libcall_block_1): Likewise for param "insns" and locals
6319 "next", "last", "insn".
6320 (emit_libcall_block): For now, add a checked cast to rtx_insn *
6321 on "insns" when invoking emit_libcall_block_1. Ultimately we
6322 want to strengthen insns itself.
6323 (prepare_cmp_insn): Strengthen local "last" from rtx to
6324 rtx_insn *.
6325 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
6326 (prepare_float_lib_cmp): Likewise for local "insns".
6327 (emit_conditional_move): Likewise for local "last".
6328 (emit_conditional_add): Likewise.
6329 (have_sub2_insn): Likewise for local "seq".
6330 (expand_float): Likewise for local "insns". Strengthen locals
6331 "label", "neglabel" from rtx to rtx_code_label *.
6332 (expand_fix): Likewise for locals "last", "insn", "insns" (to
6333 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
6334 (expand_fixed_convert): Likewise for local "insns" (to
6335 rtx_insn *).
6336 (expand_sfix_optab): Likewise for local "last".
6337 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
6338 to rtx_code_label *.
6339 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
6340 from rtx to rtx_insn *.
6341 (expand_atomic_fetch_op): Likewise for local "insn".
6342 (maybe_legitimize_operand_same_code): Likewise for local "last".
6343 (maybe_legitimize_operands): Likewise.
6344
6345 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6346
6347 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
6348 "insn" from rtx to rtx_insn *.
6349 (ps_rtl_insn): Likewise for return type.
6350 (doloop_register_get): Likewise for params "head", "tail" and
6351 locals "insn", "first_insn_not_to_check".
6352 (schedule_reg_move): Likewise for local "this_insn".
6353 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
6354 of gen_move_insn for now.
6355 (reset_sched_times): Strengthen local "insn" from rtx to
6356 rtx_insn *.
6357 (permute_partial_schedule): Likewise.
6358 (duplicate_insns_of_cycles): Likewise for local "u_insn".
6359 (dump_insn_location): Likewise for param "insn".
6360 (loop_canon_p): Likewise for local "insn".
6361 (sms_schedule): Likewise.
6362 (print_partial_schedule): Likewise.
6363 (ps_has_conflicts): Likewise.
6364
6365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6366
6367 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
6368 "tailp" from rtx * to rtx_insn **.
6369
6370 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
6371 from rtx to rtx_insn *.
6372 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
6373 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
6374 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
6375 rtx to rtx_insn *.
6376 * modulo-sched.c (const_iteration_count): Strengthen return type
6377 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
6378 use of NULL_RTX with NULL when working with insns.
6379 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
6380 to rtx_insn *.
6381 (sms_schedule): Likewise.
6382 * sched-rgn.c (init_ready_list): Likewise, also for locals
6383 "src_head" and "src_next_tail".
6384 (compute_block_dependences): Likewise.
6385 (free_block_dependencies): Likewise.
6386 (debug_rgn_dependencies): Likewise.
6387 (free_rgn_deps): Likewise.
6388 (compute_priorities): Likewise.
6389 (schedule_region): Likewise.
6390 * sel-sched.c (find_ebb_boundaries): Likewise.
6391
6392 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
6393 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
6394
6395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6396
6397 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
6398 from rtx to rtx_insn *.
6399 (new_seginfo): Likewise for param "insn".
6400 (create_pre_exit): Likewise for locals "last_insn",
6401 "before_return_copy", "return_copy".
6402 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
6403 "mode_set".
6404
6405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6406
6407 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
6408 from rtx to rtx_insn *.
6409 (lra_push_insn): Likewise for 1st param.
6410 (lra_push_insn_and_update_insn_regno_info): Likewise.
6411 (lra_pop_insn): Likewise for return type.
6412 (lra_invalidate_insn_data): Likewise for 1st param.
6413 (lra_set_insn_deleted): Likewise.
6414 (lra_delete_dead_insn): Likewise.
6415 (lra_process_new_insns): Likewise for first 3 params.
6416 (lra_set_insn_recog_data): Likewise for 1st param.
6417 (lra_update_insn_recog_data): Likewise.
6418 (lra_set_used_insn_alternative): Likewise.
6419 (lra_invalidate_insn_regno_info): Likewise.
6420 (lra_update_insn_regno_info): Likewise.
6421 (lra_former_scratch_operand_p): Likewise.
6422 (lra_eliminate_regs_1): Likewise.
6423 (lra_get_insn_recog_data): Likewise.
6424
6425 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
6426 rtx to rtx_insn *.
6427
6428 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
6429 "mv1" and "mv2".
6430 (substitute_within_insn): New.
6431 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
6432 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
6433 Replace call to "substitute" with call to substitute_within_insn.
6434
6435 * lra-constraints.c (curr_insn): Strengthen from rtx to
6436 rtx_insn *.
6437 (get_equiv_with_elimination): Likewise for param "insn".
6438 (match_reload): Strengthen params "before" and "after" from rtx *
6439 to rtx_insn **.
6440 (emit_spill_move): Likewise for return type. Add a checked cast
6441 to rtx_insn * on result of gen_move_insn for now.
6442 (check_and_process_move): Likewise for local "before". Replace
6443 NULL_RTX with NULL when referring to insns.
6444 (process_addr_reg): Strengthen params "before" and "after" from
6445 rtx * to rtx_insn **.
6446 (insert_move_for_subreg): Likewise.
6447 (simplify_operand_subreg): Strengthen locals "before" and "after"
6448 from rtx to rtx_insn *.
6449 (process_address_1): Strengthen params "before" and "after" from
6450 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
6451 rtx to rtx_insn *.
6452 (process_address): Strengthen params "before" and "after" from
6453 rtx * to rtx_insn **.
6454 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
6455 (curr_insn_transform): Strengthen locals "before" and "after"
6456 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
6457 to insns.
6458 (loc_equivalence_callback): Update cast of "data", changing
6459 resulting type from rtx to rtx_insn *.
6460 (substitute_pseudo_within_insn): New.
6461 (inherit_reload_reg): Strengthen param "insn" from rtx to
6462 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
6463 NULL when referring to insns. Add a checked cast to rtx_insn *
6464 when using usage_insn to invoke lra_update_insn_regno_info.
6465 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
6466 likewise for locals "restore", "save". Add checked casts to
6467 rtx_insn * when using usage_insn to invoke
6468 lra_update_insn_regno_info and lra_process_new_insns. Replace
6469 NULL_RTX with NULL when referring to insns.
6470 (split_if_necessary): Strengthen param "insn" from rtx to
6471 rtx_insn *.
6472 (update_ebb_live_info): Likewise for params "head", "tail" and local
6473 "prev_insn".
6474 (get_last_insertion_point): Likewise for return type and local "insn".
6475 (get_live_on_other_edges): Likewise for local "last".
6476 (inherit_in_ebb): Likewise for params "head", "tail" and locals
6477 "prev_insn", "next_insn", "restore".
6478 (remove_inheritance_pseudos): Likewise for local "prev_insn".
6479 (undo_optional_reloads): Likewise for local "insn".
6480
6481 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
6482 "insn".
6483 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
6484 insns.
6485 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
6486 rtx_insn *.
6487 (spill_pseudos): Likewise for local "insn".
6488 (init_elimination): Likewise.
6489 (process_insn_for_elimination): Likewise for param "insn".
6490
6491 * lra-lives.c (curr_insn): Likewise.;
6492
6493 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
6494 (remove_pseudos): Likewise for param "insn".
6495 (spill_pseudos): Likewise for local "insn".
6496 (lra_final_code_change): Likewise for locals "insn", "curr".
6497
6498 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
6499 (lra_set_insn_deleted): Likewise.
6500 (lra_delete_dead_insn): Likewise, and for local "prev".
6501 (new_insn_reg): Likewise for param "insn".
6502 (lra_set_insn_recog_data): Likewise.
6503 (lra_update_insn_recog_data): Likewise.
6504 (lra_set_used_insn_alternative): Likewise.
6505 (get_insn_freq): Likewise.
6506 (invalidate_insn_data_regno_info): Likewise.
6507 (lra_invalidate_insn_regno_info): Likewise.
6508 (lra_update_insn_regno_info): Likewise.
6509 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
6510 vec<rtx_insn *>.
6511 (lra_push_insn_1): Strengthen param "insn" from rtx to
6512 rtx_insn *.
6513 (lra_push_insn): Likewise.
6514 (lra_push_insn_and_update_insn_regno_info): Likewise.
6515 (lra_pop_insn): Likewise for return type and local "insn".
6516 (push_insns): Likewise for params "from", "to", and local "insn".
6517 (setup_sp_offset): Likewise for params "from", "last" and locals
6518 "before", "insn".
6519 (lra_process_new_insns): Likewise for params "insn", "before",
6520 "after" and local "last".
6521 (struct sloc): Likewise for field "insn".
6522 (lra_former_scratch_operand_p): Likewise for param "insn".
6523 (remove_scratches): Likewise for locals "insn", "last".
6524 (check_rtl): Likewise for local "insn".
6525 (add_auto_inc_notes): Likewise for param "insn".
6526 (update_inc_notes): Likewise for local "insn".
6527 (lra): Replace NULL_RTX with NULL when referring to insn.
6528
6529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6530
6531 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
6532 to rtx_insn *.
6533 (resolve_reg_notes): Likewise.
6534 (resolve_simple_move): Likewise for return type, param "insn", and
6535 locals "insns", "minsn".
6536 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
6537 (resolve_use): Likewise.
6538 (resolve_debug): Likewise.
6539 (find_decomposable_shift_zext): Likewise.
6540 (resolve_shift_zext): Likewise for return type, param "insn", and
6541 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
6542 (decompose_multiword_subregs): Likewise for local "insn",
6543 "orig_insn", "decomposed_shift", "end".
6544
6545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6546
6547 * basic-block.h (basic_block split_edge_and_insert): Strengthen
6548 param "insns" from rtx to rtx_insn *.
6549
6550 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
6551 rtx to rtx_insn *.
6552 (struct iv_to_split): Likewise.
6553 (loop_exit_at_end_p): Likewise for local "insn".
6554 (split_edge_and_insert): Likewise for param "insns".
6555 (compare_and_jump_seq): Likewise for return type, param "cinsn",
6556 and locals "seq", "jump".
6557 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
6558 "branch_code"; update invocations of compare_and_jump_seq to
6559 eliminate NULL_RTX in favor of NULL.
6560 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
6561 rtx to rtx_insn *.
6562 (reset_debug_uses_in_loop): Likewise.
6563 (analyze_insn_to_expand_var): Likewise for param "insn".
6564 (analyze_iv_to_split_insn): Likewise.
6565 (analyze_insns_in_loop): Likewise for local "insn".
6566 (insert_base_initialization): Likewise for param
6567 "insn" and local "seq".
6568 (split_iv): Likewise for param "insn" and local "seq".
6569 (expand_var_during_unrolling): Likewise for param "insn".
6570 (insert_var_expansion_initialization): Likewise for local "seq".
6571 (combine_var_copies_in_loop_exit): Likewise.
6572 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
6573 "insn".
6574 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
6575 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
6576 "next".
6577
6578 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6579
6580 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
6581 rtx_insn *.
6582 (iv_analyze_result): Likewise.
6583 (iv_analyze_expr): Likewise.
6584 (biv_p): Likewise.
6585
6586 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
6587 local "def_insn" from rtx to rtx_insn *.
6588 (get_biv_step_1): Likewise for local "insn".
6589 (iv_analyze_expr): Likewise for param "insn".
6590 (iv_analyze_def): Likewise for local "insn".
6591 (iv_analyze_op): Likewise for param "insn".
6592 (iv_analyze): Likewise.
6593 (iv_analyze_result): Likewise.
6594 (biv_p): Likewise.
6595 (suitable_set_for_replacement): Likewise.
6596 (simplify_using_initial_values): Likewise for local "insn".
6597 (iv_number_of_iterations): Likewise for param "insn".
6598 (check_simple_exit): Add checked cast to rtx_insn when invoking
6599 iv_number_of_iterations for now (until get_condition is
6600 strengthened).
6601
6602 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6603 "insn" from rtx to rtx_insn *.
6604 (analyze_insns_in_loop): Likewise for local "insn".
6605
6606 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6607
6608 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6609 to rtx_insn *.
6610 (struct invariant): Likewise.
6611 (hash_invariant_expr_1): Likewise for param "insn".
6612 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6613 (find_exits): Likewise for local "insn".
6614 (create_new_invariant): Likewise for param "insn".
6615 (check_dependencies): Likewise.
6616 (find_invariant_insn): Likewise.
6617 (record_uses): Likewise.
6618 (find_invariants_insn): Likewise.
6619 (find_invariants_bb): Likewise for local "insn".
6620 (get_pressure_class_and_nregs): Likewise for param "insn".
6621 (calculate_loop_reg_pressure): Likewise for local "insn".
6622
6623 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6624
6625 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6626 to rtx_insn *.
6627 (add_test): Likewise for locals "seq", "jump".
6628 (doloop_modify): Likewise for locals "sequence", "jump_insn".
6629
6630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6631
6632 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6633 rtx_insn *.
6634 (rebuild_jump_labels_chain): Likewise for param "chain".
6635
6636 * cfgexpand.c (pass_expand::execute): Add checked cast to
6637 rtx_insn * when calling rebuild_jump_labels_chain in region where
6638 we know e->insns.r is non-NULL.
6639
6640 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6641 rtx_insn *.
6642 (rebuild_jump_labels): Likewise.
6643 (rebuild_jump_labels_chain): Likewise for param "chain".
6644 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6645 (init_label_info): Likewise for param "f".
6646 (maybe_propagate_label_ref): Likewise for params "jump_insn",
6647 "prev_nonjump_insn".
6648 (mark_all_labels): Likewise for param "f" and locals "insn",
6649 "prev_nonjump_insn".
6650
6651 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6652
6653 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6654 from rtx to rtx_insn *insn.
6655 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6656 (ira_add_allocno_copy): Likewise.
6657 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6658 rtx to rtx_insn *.
6659 (ira_create_copy): Likewise.
6660 (ira_add_allocno_copy): Likewise.
6661 (create_bb_allocnos): Likewise for local "insn".
6662 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6663 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6664 process_regs_for_copy for rtx_insn * param.
6665 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6666 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
6667 process_regs_for_copy for rtx_insn * param.
6668 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6669 * ira-costs.c (record_reg_classes): Likewise for param "insn".
6670 (record_operand_costs): Likewise.
6671 (scan_one_insn): Likewise for return type, and for param "insn".
6672 (process_bb_for_costs): Likewise for local "insn".
6673 (process_bb_node_for_hard_reg_moves): Likewise.
6674 * ira-emit.c (struct move): Likewise for field "insn".
6675 (create_move): Eliminate use of NULL_RTX when dealing with an
6676 rtx_insn *.
6677 (emit_move_list): Strengthen return type and locals "result",
6678 "insn" from rtx to rtx_insn *insn.
6679 (emit_moves): Likewise for locals "insns", "tmp".
6680 (ira_emit): Likewise for local "insn".
6681 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6682 "insn".
6683 (find_call_crossed_cheap_reg): Likewise.
6684 (process_bb_node_lives): Likewise for local "insn".
6685 * ira.c (decrease_live_ranges_number): Likewise.
6686 (compute_regs_asm_clobbered): Likewise.
6687 (build_insn_chain): Likewise.
6688 (find_moveable_pseudos): Likewise, also locals "def_insn",
6689 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
6690 to rtx_insn **. Add a checked cast when assigning from
6691 "closest_use" into closest_uses array in a region where we know
6692 it's a non-NULL insn.
6693 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6694 to rtx_insn *.
6695 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6696 "last_interesting_insn", "uin".
6697 (move_unallocated_pseudos): Likewise for locals "def_insn",
6698 "move_insn", "newinsn".
6699
6700 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6701
6702 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6703 Strengthen locals "done_label", "do_error" from rtx to
6704 rtx_code_label *.
6705 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6706 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
6707 rtx_code_label *.
6708 (ubsan_expand_si_overflow_neg_check): Likewise for locals
6709 "done_label", "do_error" to rtx_code_label * and local "last" to
6710 rtx_insn *.
6711 (ubsan_expand_si_overflow_mul_check): Likewise for locals
6712 "done_label", "do_error", "large_op0", "small_op0_large_op1",
6713 "one_small_one_large", "both_ops_large", "after_hipart_neg",
6714 "after_lopart_neg", "do_overflow", "hipart_different" to
6715 rtx_code_label * and local "last" to rtx_insn *.
6716
6717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6718
6719 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6720 "insn" and "move_insn" from rtx to rtx_insn *.
6721
6722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6723
6724 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6725 rtx_insn *.
6726 (cheap_bb_rtx_cost_p): Likewise.
6727 (first_active_insn): Likewise for return type and local "insn".
6728 (last_active_insn): Likewise for return type and locals "insn",
6729 "head".
6730 (struct noce_if_info): Likewise for fields "jump", "insn_a",
6731 "insn_b".
6732 (end_ifcvt_sequence): Likewise for return type and locals "insn",
6733 "seq".
6734 (noce_try_move): Likewise for local "seq".
6735 (noce_try_store_flag): Likewise.
6736 (noce_try_store_flag_constants): Likewise.
6737 (noce_try_addcc): Likewise.
6738 (noce_try_store_flag_mask): Likewise.
6739 (noce_try_cmove): Likewise.
6740 (noce_try_minmax): Likewise.
6741 (noce_try_abs): Likewise.
6742 (noce_try_sign_mask): Likewise.
6743 (noce_try_bitop): Likewise.
6744 (noce_can_store_speculate_p): Likewise for local "insn".
6745 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6746 seq".
6747 (check_cond_move_block): Likewise for local "insn".
6748 (cond_move_convert_if_block): Likewise.
6749 (cond_move_process_if_block): Likewise for locals "seq",
6750 "loc_insn".
6751 (noce_find_if_block): Likewise for local "jump".
6752 (merge_if_block): Likewise for local "last".
6753 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6754 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6755 (block_has_only_trap): Likewise for return type and local "trap".
6756 (find_if_case_1): Likewise for local "jump".
6757 (dead_or_predicable): Likewise for locals "head", "end", "jump",
6758 "insn".
6759
6760 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6761
6762 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6763 "last_insn", "loop_end" from rtx to rtx_insn *.
6764
6765 * hw-doloop.c (scan_loop): Likewise for local "insn".
6766 (discover_loop): Likewise for param "tail_insn".
6767 (discover_loops): Likewise for local "tail".
6768
6769 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6770 cast to rtx_insn * when assigning from an rtx local to a
6771 hwloop_info's "last_insn" field.
6772
6773 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6774
6775 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6776 (add_delay_dependencies): Strengthen local "pro" from rtx to
6777 rtx_insn *.
6778 (recompute_todo_spec): Likewise.
6779 (dep_cost_1): Likewise for locals "insn", "used".
6780 (schedule_insn): Likewise for local "dbg".
6781 (schedule_insn): Likewise for locals "pro", "next".
6782 (unschedule_insns_until): Likewise for local "con".
6783 (restore_pattern): Likewise for local "next".
6784 (estimate_insn_tick): Likewise for local "pro".
6785 (resolve_dependencies): Likewise for local "next".
6786 (fix_inter_tick): Likewise.
6787 (fix_tick_ready): Likewise for local "pro".
6788 (add_to_speculative_block): Likewise for locals "check", "twin",
6789 "pro".
6790 (sched_extend_bb): Likewise for locals "end", "insn".
6791 (init_before_recovery): Likewise for local "x".
6792 (sched_create_recovery_block): Likewise for local "barrier".
6793 (create_check_block_twin): Likewise for local "pro".
6794 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6795 "consumer".
6796 (unlink_bb_notes): Update for change to type of bb_header.
6797 Strengthen locals "prev", "label", "note", "next" from rtx to
6798 rtx_insn *.
6799 (clear_priorities): Likewise for local "pro".
6800
6801 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6802
6803 * gcse.c (struct occr): Strengthen field "insn" from rtx to
6804 rtx_insn *.
6805 (test_insn): Likewise for this global.
6806 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6807 const rtx_insn *.
6808 (oprs_anticipatable_p): Likewise.
6809 (oprs_available_p): Likewise.
6810 (insert_expr_in_table): Strengthen param "insn" from rtx to
6811 rtx_insn *.
6812 (hash_scan_set): Likewise.
6813 (hash_scan_clobber): Likewise.
6814 (hash_scan_call): Likewise.
6815 (hash_scan_insn): Likewise.
6816 (compute_hash_table_work): Likewise for local "insn".
6817 (process_insert_insn): Likewise for return type and local "pat".
6818 (insert_insn_end_basic_block): Likewise for locals "new_insn",
6819 "pat", "pat_end", "maybe_cc0_setter".
6820 (pre_edge_insert): Likewise for local "insn".
6821 (pre_insert_copy_insn): Likewise for param "insn".
6822 (pre_insert_copies): Likewise for local "insn".
6823 (struct set_data): Likewise for field "insn".
6824 (single_set_gcse): Likewise for param "insn".
6825 (gcse_emit_move_after): Likewise.
6826 (pre_delete): Likewise for local "insn".
6827 (update_bb_reg_pressure): Likewise for param "from" and local
6828 "insn".
6829 (should_hoist_expr_to_dom): Likewise for param "from".
6830 (hoist_code): Likewise for local "insn".
6831 (get_pressure_class_and_nregs): Likewise for param "insn".
6832 (calculate_bb_reg_pressure): Likewise for local "insn".
6833 (compute_ld_motion_mems): Likewise.
6834
6835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6836
6837 * genpeep.c (main): Rename param back from "uncast_ins1" to
6838 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
6839 checked cast.
6840
6841 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6842
6843 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6844
6845 PR target/62195
6846 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6847 documentation to state it is only for VSX operations.
6848
6849 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6850 constraint only active if VSX.
6851
6852 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6853 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6854 (lfiwzx): Likewise.
6855
6856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6857
6858 * fwprop.c (single_def_use_dom_walker::before_dom_children):
6859 Strengthen local "insn" from rtx to rtx_insn *.
6860 (use_killed_between): Likewise for param "target_insn".
6861 (all_uses_available_at): Likewise for param "target_insn" and
6862 local "next".
6863 (update_df_init): Likewise for params "def_insn", "insn".
6864 (update_df): Likewise for param "insn".
6865 (try_fwprop_subst): Likewise for param "def_insn" and local
6866 "insn".
6867 (free_load_extend): Likewise for param "insn".
6868 (forward_propagate_subreg): Likewise for param "def_insn" and
6869 local "use_insn".
6870 (forward_propagate_asm): Likewise for param "def_insn" and local
6871 "use_insn".
6872 (forward_propagate_and_simplify): Likewise for param "def_insn"
6873 and local "use_insn".
6874 (forward_propagate_into): Likewise for locals "def_insn" and
6875 "use_insn".
6876
6877 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6878
6879 * function.c (emit_initial_value_sets): Strengthen local "seq"
6880 from rtx to rtx_insn *.
6881 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6882 local "seq".
6883 (instantiate_virtual_regs): Likewise for local "insn".
6884 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6885 (reorder_blocks_1): Likewise for param "insns" and local "insn".
6886 (expand_function_end): Likewise for locals "insn" and "seq".
6887 (epilogue_done): Likewise for local "insn".
6888 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6889 "last", "trial".
6890 (reposition_prologue_and_epilogue_notes): Likewise for locals
6891 "insn", "last", "note", "first".
6892 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6893 (pass_match_asm_constraints::execute): Likewise for local "insn".
6894
6895 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6896
6897 * output.h (final_scan_insn): Strengthen return type from rtx to
6898 rtx_insn *.
6899 (final_forward_branch_p): Likewise for param.
6900 (current_output_insn): Likewise for this global.
6901
6902 * final.c (rtx debug_insn): Likewise for this variable.
6903 (current_output_insn): Likewise.
6904 (get_attr_length_1): Rename param "insn" to "uncast_insn",
6905 adding "insn" back in as an rtx_insn * with a checked cast, so
6906 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6907 first param.
6908 (compute_alignments): Strengthen local "label" from rtx to
6909 rtx_insn *.
6910 (shorten_branches): Rename param from "first" to "uncast_first",
6911 introducing a new local rtx_insn * "first" using a checked cast to
6912 effectively strengthen "first" from rtx to rtx_insn * without
6913 affecting the type signature. Strengthen locals "insn", "seq",
6914 "next", "label" from rtx to rtx_insn *.
6915 (change_scope): Strengthen param "orig_insn" and local "insn" from
6916 rtx to rtx_insn *.
6917 (final_start_function): Rename param from "first" to "uncast_first",
6918 introducing a new local rtx_insn * "first" using a checked cast to
6919 effectively strengthen "first" from rtx to rtx_insn * without
6920 affecting the type signature. Strengthen local "insn" from rtx to
6921 rtx_insn *.
6922 (dump_basic_block_info): Strengthen param "insn" from rtx to
6923 rtx_insn *.
6924 (final): Rename param from "first" to "uncast_first",
6925 introducing a new local rtx_insn * "first" using a checked cast to
6926 effectively strengthen "first" from rtx to rtx_insn * without
6927 affecting the type signature. Strengthen locals "insn", "next"
6928 from rtx to rtx_insn *.
6929 (output_alternate_entry_point): Strengthen param "insn" from rtx to
6930 rtx_insn *.
6931 (call_from_call_insn): Strengthen param "insn" from rtx to
6932 rtx_call_insn *.
6933 (final_scan_insn): Rename param from "insn" to "uncast_insn",
6934 introducing a new local rtx_insn * "insn" using a checked cast to
6935 effectively strengthen "insn" from rtx to rtx_insn * without
6936 affecting the type signature. Strengthen return type and locals
6937 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
6938 now-redundant checked cast to rtx_insn * from both invocations of
6939 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
6940 introducing a local "call_insn" for use when invoking
6941 call_from_call_insn.
6942 (notice_source_line): Strengthen param "insn" from rtx to
6943 rtx_insn *.
6944 (leaf_function_p): Likewise for local "insn".
6945 (final_forward_branch_p): Likewise.
6946 (leaf_renumber_regs): Likewise for param "first".
6947 (rest_of_clean_state): Likewise for locals "insn" and "next".
6948 (self_recursive_call_p): Likewise for param "insn".
6949 (collect_fn_hard_reg_usage): Likewise for local "insn".
6950 (get_call_fndecl): Likewise for param "insn".
6951 (get_call_cgraph_rtl_info): Likewise.
6952 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6953 introducing a new local rtx_insn * "insn" using a checked cast to
6954 effectively strengthen "insn" from rtx to rtx_insn * without
6955 affecting the type signature.
6956
6957 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
6958 cast when assigning from param "insn" to current_output_insn.
6959 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
6960 so that we can assign it back to current_output_insn.
6961
6962 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6963
6964 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
6965 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
6966 atmxt540s and atmxt540sreva devices.
6967 * config/avr/avr-tables.opt: Regenerate.
6968 * config/avr/t-multilib: Regenerate.
6969 * doc/avr-mmcu.texi: Regenerate.
6970
6971 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6972
6973 * expr.c (convert_move): Strengthen local "insns" from rtx to
6974 rtx_insn *.
6975 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
6976 "top_label" from rtx to rtx_code_label *.
6977 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
6978 rtx_insn *.
6979 (emit_single_push_insn): Likewise for locals "prev", "last".
6980 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
6981 to rtx_code_label *.
6982 (store_constructor): Likewise for locals "loop_start", "loop_end".
6983 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
6984 rtx_insn *.
6985 (expand_expr_real_2): Likewise.
6986 (expand_expr_real_1): Strengthen local "label" from rtx to
6987 rtx_code_label *.
6988
6989 2014-08-22 David Malcolm <dmalcolm@redhat.com>
6990
6991 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
6992 from rtx to rtx_insn *.
6993 (store_bit_field_1): Likewise.
6994 (extract_bit_field_1): Likewise.
6995 (expand_mult_const): Likewise for local "insns".
6996 (expmed_mult_highpart): Strengthen local "label" from rtx to
6997 rtx_code_label *.
6998 (expand_smod_pow2): Likewise.
6999 (expand_sdiv_pow2): Likewise.
7000 (expand_divmod): Strengthen locals "last", "insn" from rtx to
7001 rtx_insn *. Strengthen locals "label", "label1", "label2",
7002 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
7003 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
7004 (emit_store_flag): Likewise.
7005 (emit_store_flag_force): Strengthen local "label" from rtx to
7006 rtx_code_label *.
7007 (do_cmp_and_jump): Likewise for param "label".
7008
7009 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7010
7011 * explow.c (force_reg): Strengthen local "insn" from rtx to
7012 rtx_insn *.
7013 (adjust_stack_1): Likewise.
7014 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7015 "final_label", "available_label", "space_available" from rtx to
7016 rtx_code_label *.
7017 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
7018 (anti_adjust_stack_and_probe): Likewise.
7019
7020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7021
7022 * except.h (sjlj_emit_function_exit_after): Strengthen param
7023 "after" from rtx to rtx_insn *. This is only called with
7024 result of get_last_insn (in function.c) so type-change should be
7025 self-contained.
7026
7027 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
7028 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
7029 to rtx_insn *. These fields are only used from except.c so this
7030 type-change should be self-contained to this patch.
7031
7032 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
7033 local "last" from rtx to rtx_insn *.
7034 (dw2_build_landing_pads): Likewise for local "seq".
7035 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
7036 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
7037 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
7038 rtx to rtx_insn *.
7039 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
7040 to rtx_insn *.
7041 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
7042 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
7043 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
7044 referring to an insn. Strengthen local "dispatch_label" from
7045 rtx to rtx_code_label *.
7046 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
7047 rtx_insn *.
7048 (expand_eh_return): Strengthen local "around_label" from
7049 rtx to rtx_code_label *.
7050 (convert_to_eh_region_ranges): Strengthen locals "iter",
7051 "last_action_insn", "first_no_action_insn",
7052 "first_no_action_insn_before_switch",
7053 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
7054
7055 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7056
7057 * dwarf2out.c (last_var_location_insn): Strengthen this variable
7058 from rtx to rtx_insn *.
7059 (cached_next_real_insn): Likewise.
7060 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
7061 working with insns.
7062 (dwarf2out_var_location): Strengthen locals "next_real",
7063 "next_note", "expected_next_loc_note", "last_start", "insn" from
7064 rtx to rtx_insn *.
7065
7066 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7067
7068 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
7069 from rtx to rtx_insn *.
7070 (create_pseudo_cfg): Likewise for local "insn".
7071
7072 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7073
7074 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
7075 from rtx to rtx_insn *.
7076 (df_bb_regno_last_def_find): Likewise.
7077
7078 * df-problems.c (df_rd_bb_local_compute): Likewise.
7079 (df_lr_bb_local_compute): Likewise.
7080 (df_live_bb_local_compute): Likewise.
7081 (df_chain_remove_problem): Likewise.
7082 (df_chain_create_bb): Likewise.
7083 (df_word_lr_bb_local_compute): Likewise.
7084 (df_remove_dead_eq_notes): Likewise for param "insn".
7085 (df_note_bb_compute): Likewise for local "insn".
7086 (simulate_backwards_to_point): Likewise.
7087 (df_md_bb_local_compute): Likewise.
7088
7089 * df-scan.c (df_scan_free_bb_info): Likewise.
7090 (df_scan_start_dump): Likewise.
7091 (df_scan_start_block): Likewise.
7092 (df_install_ref_incremental): Likewise for local "insn".
7093 (df_insn_rescan_all): Likewise.
7094 (df_reorganize_refs_by_reg_by_insn): Likewise.
7095 (df_reorganize_refs_by_insn_bb): Likewise.
7096 (df_recompute_luids): Likewise.
7097 (df_bb_refs_record): Likewise.
7098 (df_update_entry_exit_and_calls): Likewise.
7099 (df_bb_verify): Likewise.
7100
7101 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7102
7103 * ddg.h (struct ddg_node): Strengthen fields "insn" and
7104 "first_note" from rtx to rtx_insn *.
7105 (get_node_of_insn): Likewise for param 2 "insn".
7106 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7107
7108 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
7109 rtx_insn *.
7110 (mem_write_insn_p): Likewise.
7111 (mem_access_insn_p): Likewise.
7112 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
7113 (def_has_ccmode_p): Likewise for param "insn".
7114 (add_cross_iteration_register_deps): Likewise for locals
7115 "def_insn" and "use_insn".
7116 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
7117 (build_intra_loop_deps): Likewise for local "src_insn".
7118 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
7119 to rtx_insn *.
7120 (get_node_of_insn): Likewise for param "insn".
7121
7122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7123
7124 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
7125 (deletable_insn_p): Strengthen param "insn" from rtx to
7126 rtx_insn *. Add checked cast to rtx_call_insn when invoking
7127 find_call_stack_args, since this is guarded by CALL_P (insn).
7128 (marked_insn_p): Strengthen param "insn" from rtx to
7129 rtx_insn *.
7130 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
7131 invoking find_call_stack_args, since this is guarded by
7132 CALL_P (insn).
7133 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
7134 rtx_insn *; we know this is an insn since this was called by
7135 mark_nonreg_stores.
7136 (mark_nonreg_stores_2): Likewise.
7137 (mark_nonreg_stores): Strengthen param "insn" from rtx to
7138 rtx_insn *.
7139 (find_call_stack_args): Strengthen param "call_insn" from rtx to
7140 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
7141 to rtx_insn *.
7142 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
7143 from rtx to rtx_insn *.
7144 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
7145 "next", "ref_insn".
7146 (delete_unmarked_insns): Likewise for locals "insn", "next".
7147 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
7148 (mark_reg_dependencies): Likewise for param "insn".
7149 (rest_of_handle_ud_dce): Likewise for local "insn".
7150 (word_dce_process_block): Likewise.
7151 (dce_process_block): Likewise.
7152
7153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7154
7155 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
7156 from rtx to rtx_insn *.
7157 (struct change_cc_mode_args): Likewise for field "insn".
7158 (this_insn): Strengthen from rtx to rtx_insn *.
7159 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
7160 with insn.
7161 (validate_canon_reg): Strengthen param "insn" from rtx to
7162 rtx_insn *.
7163 (canon_reg): Likewise.
7164 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
7165 dealing with insn.
7166 (record_jump_equiv): Strengthen param "insn" from rtx to
7167 rtx_insn *.
7168 (try_back_substitute_reg): Likewise, also for locals "prev",
7169 "bb_head".
7170 (find_sets_in_insn): Likewise for param "insn".
7171 (canonicalize_insn): Likewise.
7172 (cse_insn): Likewise. Add a checked cast.
7173 (invalidate_from_clobbers): Likewise for param "insn".
7174 (invalidate_from_sets_and_clobbers): Likewise.
7175 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
7176 dealing with insn.
7177 (cse_prescan_path): Strengthen local "insn" from rtx to
7178 rtx_insn *.
7179 (cse_extended_basic_block): Likewise for locals "insn" and
7180 "prev_insn".
7181 (cse_main): Likewise for param "f".
7182 (check_for_label_ref): Likewise for local "insn".
7183 (set_live_p): Likewise for second param ("insn").
7184 (insn_live_p): Likewise for first param ("insn") and for local
7185 "next".
7186 (cse_change_cc_mode_insn): Likewise for first param "insn".
7187 (cse_change_cc_mode_insns): Likewise for first and second params
7188 "start" and "end".
7189 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
7190 and "end".
7191 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
7192 "cc_src_insn".
7193
7194 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7195 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7196 Anna Tikhonova <anna.tikhonova@intel.com>
7197 Ilya Tocar <ilya.tocar@intel.com>
7198 Andrey Turetskiy <andrey.turetskiy@intel.com>
7199 Ilya Verbin <ilya.verbin@intel.com>
7200 Kirill Yukhin <kirill.yukhin@intel.com>
7201 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7202
7203 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
7204 New.
7205 * config/i386/sse.md
7206 (define_mode_iterator VI248_AVX2): Delete.
7207 (define_mode_iterator VI2_AVX2_AVX512BW): New.
7208 (define_mode_iterator VI48_AVX2): Ditto.
7209 (define_insn <shift_insn><mode>3): Delete.
7210 (define_insn "<shift_insn><mode>3<mask_name>" with
7211 VI2_AVX2_AVX512BW): New.
7212 (define_insn "<shift_insn><mode>3<mask_name>" with
7213 VI48_AVX2): Ditto.
7214
7215 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
7216 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7217 Anna Tikhonova <anna.tikhonova@intel.com>
7218 Ilya Tocar <ilya.tocar@intel.com>
7219 Andrey Turetskiy <andrey.turetskiy@intel.com>
7220 Ilya Verbin <ilya.verbin@intel.com>
7221 Kirill Yukhin <kirill.yukhin@intel.com>
7222 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7223
7224 * config/i386/sse.md
7225 (define_mode_iterator VI4F_BRCST32x2): New.
7226 (define_mode_attr 64x2_mode): Ditto.
7227 (define_mode_attr 32x2mode): Ditto.
7228 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
7229 with VI4F_BRCST32x2): Ditto.
7230 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
7231 with V16FI mode iterator): Ditto.
7232 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7233 with V16FI): Ditto.
7234 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
7235 with VI8F_BRCST64x2): Ditto.
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/sse.md
7247 (define_mode_iterator VI8_AVX512VL): New.
7248 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
7249
7250 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7251
7252 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
7253 (define_mode_iterator V48_AVX512VL): New.
7254 (define_mode_iterator V12_AVX512VL): Ditto.
7255 (define_insn <avx512>_load<mode>_mask): Split into two similar
7256 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
7257 Refactor output template.
7258 (define_insn "<avx512>_store<mode>_mask"): Ditto.
7259
7260 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7261
7262 * cprop.c (struct occr): Strengthen field "insn" from rtx to
7263 rtx_insn *.
7264 (reg_available_p): Likewise for param "insn".
7265 (insert_set_in_table): Likewise.
7266 (hash_scan_set): Likewise.
7267 (hash_scan_insn): Likewise.
7268 (make_set_regs_unavailable): Likewise.
7269 (compute_hash_table_work): Likewise for local "insn".
7270 (reg_not_set_p): Strengthen param "insn" from const_rtx to
7271 const rtx_insn *.
7272 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
7273 (try_replace_reg): Likewise.
7274 (find_avail_set): Likewise.
7275 (cprop_jump): Likewise for params "setcc", "jump".
7276 (constprop_register): Likewise for param "insn".
7277 (cprop_insn): Likewise.
7278 (do_local_cprop): Likewise.
7279 (local_cprop_pass): Likewise for local "insn".
7280 (bypass_block): Likewise for params "setcc" and "jump".
7281 (bypass_conditional_jumps): Likewise for locals "setcc" and
7282 "insn".
7283 (one_cprop_pass): Likewise for local "insn".
7284
7285 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7286
7287 * compare-elim.c (struct comparison_use): Strengthen field "insn"
7288 from rtx to rtx_insn *.
7289 (struct comparison): Likewise, also for field "prev_clobber".
7290 (conforming_compare): Likewise for param "insn".
7291 (arithmetic_flags_clobber_p): Likewise.
7292 (find_flags_uses_in_insn): Likewise.
7293 (find_comparison_dom_walker::before_dom_children): Likewise for
7294 locals "insn", "next", "last_clobber".
7295 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
7296
7297 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7298
7299 * combine-stack-adj.c (struct csa_reflist): Strengthen field
7300 "insn" from rtx to rtx_insn *.
7301 (single_set_for_csa): Likewise for param "insn".
7302 (record_one_stack_ref): Likewise.
7303 (try_apply_stack_adjustment): Likewise.
7304 (struct record_stack_refs_data): Likewise for field "insn".
7305 (maybe_move_args_size_note): Likewise for params "last" and "insn".
7306 (prev_active_insn_bb): Likewise for return type and param "insn".
7307 (next_active_insn_bb): Likewise.
7308 (force_move_args_size_note): Likewise for params "prev" and "last"
7309 and locals "test", "next_candidate", "prev_candidate".
7310 (combine_stack_adjustments_for_block): Strengthen locals
7311 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
7312 rtx_insn *.
7313
7314 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7315
7316 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
7317 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
7318 (subst_insn): Likewise for this variable.
7319 (added_links_insn): Likewise.
7320 (struct insn_link): Likewise for field "insn".
7321 (alloc_insn_link): Likewise for param "insn".
7322 (struct undobuf): Likewise for field "other_insn".
7323 (find_single_use): Likewise for param "insn" and local "next".
7324 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
7325 (delete_noop_moves): Likewise for locals "insn", "next".
7326 (create_log_links): Likewise for locals "insn", "use_insn".
7327 Strengthen local "next_use" from rtx * to rtx_insn **.
7328 (insn_a_feeds_b): Likewise for params "a", "b".
7329 (combine_instructions): Likewise for param "f" and locals "insn",
7330 "next", "prev", "first", "last_combined_insn", "link", "link1",
7331 "temp". Replace use of NULL_RTX with NULL when referring to
7332 insns.
7333 (setup_incoming_promotions): Likewise for param "first"
7334 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
7335 (can_combine_p): Likewise for params "insn", "i3", "pred",
7336 "pred2", "succ", "succ2" and for local "p".
7337 (combinable_i3pat): Likewise for param "i3".
7338 (cant_combine_insn_p): Likewise for param "insn".
7339 (likely_spilled_retval_p): Likewise.
7340 (adjust_for_new_dest): Likewise.
7341 (update_cfg_for_uncondjump): Likewise, also for local "insn".
7342 (try_combine): Likewise for return type and for params "i3", "i2",
7343 "i1", "i0", "last_combined_insn", and for locals "insn",
7344 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
7345 "i0_insn". Eliminate local "tem" in favor of new locals
7346 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
7347 checked cast for now to rtx_insn * on the return type of
7348 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
7349 insns.
7350 (find_split_point): Strengthen param "insn" from rtx to
7351 rtx_insn *.
7352 (simplify_set): Likewise for local "other_insn".
7353 (recog_for_combine): Likewise for param "insn".
7354 (record_value_for_reg): Likewise.
7355 (record_dead_and_set_regs_1): Likewise for local
7356 "record_dead_insn".
7357 (record_dead_and_set_regs): Likewise for param "insn".
7358 (record_promoted_value): Likewise.
7359 (check_promoted_subreg): Likewise.
7360 (get_last_value_validate): Likewise.
7361 (reg_dead_at_p): Likewise.
7362 (move_deaths): Likewise for param "to_insn".
7363 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
7364 and locals "place", "place2", "cc0_setter". Eliminate local "tem
7365 in favor of new locals "tem_note" and "tem_insn", the latter being
7366 an rtx_insn *.
7367 (distribute_links): Strengthen locals "place", "insn" from rtx to
7368 rtx_insn *.
7369
7370 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7371
7372 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
7373 than a const_rtx.
7374 (can_delete_label_p): Require a const rtx_code_label * rather than
7375 a const_rtx.
7376 (delete_insn): Add checked cast to rtx_code_label * when we know
7377 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
7378 rtx to rtx_insn *.
7379 (delete_insn_chain): Strengthen locals "prev" and "current" from
7380 rtx to rtx_insn *. Add a checked cast when assigning from
7381 "finish" (strengthening the params will come later). Add a
7382 checked cast to rtx_note * in region where we know
7383 NOTE_P (current).
7384 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
7385 rtx_insn *.
7386 (compute_bb_for_insn): Likewise.
7387 (free_bb_for_insn): Likewise for local "insn".
7388 (compute_bb_for_insn): Likewise.
7389 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
7390 local "insn" from rtx to rtx_insn *
7391 (flow_active_insn_p): Require a const rtx_insn * rather than a
7392 const_rtx.
7393 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
7394 rtx_insn *.
7395 (can_fallthru): Likewise for locals "insn" and "insn2".
7396 (bb_note): Likewise for local "note".
7397 (first_insn_after_basic_block_note): Likewise for local "note" and
7398 for return type.
7399 (rtl_split_block): Likewise for locals "insn" and "next".
7400 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
7401 "end".
7402 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
7403 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
7404 "prev", "tmp".
7405 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
7406 them), "kill_from", "barrier", "new_insn".
7407 (patch_jump_insn): Likewise for params "insn", "old_label".
7408 (redirect_branch_edge): Likewise for locals "old_label", "insn".
7409 (force_nonfallthru_and_redirect): Likewise for locals "insn",
7410 "old_label", "new_label".
7411 (rtl_tidy_fallthru_edge): Likewise for local "q".
7412 (rtl_split_edge): Likewise for locals "before", "last".
7413 (commit_one_edge_insertion): Likewise for locals "before",
7414 "after", "insns", "tmp", "last", adding a checked cast where
7415 currently necessary.
7416 (commit_edge_insertions): Likewise.
7417 (rtl_dump_bb): Likewise for locals "insn", "last".
7418 (print_rtl_with_bb): Likewise for local "x".
7419 (rtl_verify_bb_insns): Likewise for local "x".
7420 (rtl_verify_bb_pointers): Likewise for local "insn".
7421 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
7422 "head", "end".
7423 (rtl_verify_fallthru): Likewise for local "insn".
7424 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
7425 (purge_dead_edges): Likewise for local "insn".
7426 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
7427 (skip_insns_after_block): Likewise for return type and for locals
7428 "insn", "last_insn", "next_head", "prev".
7429 (record_effective_endpoints): Likewise for locals "next_insn",
7430 "insn", "end".
7431 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
7432 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
7433 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
7434 (duplicate_insn_chain): For now, add checked cast from rtx to
7435 rtx_insn * when returning insn.
7436 (cfg_layout_duplicate_bb): Likewise for local "insn".
7437 (cfg_layout_delete_block): Likewise for locals "insn", "next",
7438 "prev", "remaints".
7439 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
7440 (rtl_block_empty_p): Likewise.
7441 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
7442 "split_point", "last".
7443 (rtl_block_ends_with_call_p): Likewise for local "insn".
7444 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
7445 const rtx_insn *.
7446 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
7447 "split_at_insn" from rtx to rtx_insn *.
7448 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
7449 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
7450 to const rtx_insn *.
7451 (rtl_account_profile_record): Likewise.
7452
7453 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7454
7455 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
7456 rtx to rtx_insn *.
7457 (average_num_loop_insns): Likewise.
7458 (init_set_costs): Likewise for local "seq".
7459 (seq_cost): Likewise for param "seq", from const_rtx to const
7460 rtx_insn *.
7461
7462 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7463
7464 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
7465 rtx to rtx_insn *.
7466
7467 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7468
7469 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
7470 "f1" and "f2" from rtx * to rtx_insn **.
7471 (flow_find_head_matching_sequence): Likewise.
7472
7473 * cfgcleanup.c (try_simplify_condjump): Strengthen local
7474 "cbranch_insn" from rtx to rtx_insn *.
7475 (thread_jump): Likewise for local "insn".
7476 (try_forward_edges): Likewise for local "last".
7477 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
7478 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
7479 "real_b_end".
7480 (can_replace_by): Likewise for params "i1", "i2".
7481 (old_insns_match_p): Likewise.
7482 (merge_notes): Likewise.
7483 (walk_to_nondebug_insn): Likewise for param "i1".
7484 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
7485 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
7486 "afterlast1", "afterlast2" from rtx to rtx_insn *.
7487 (flow_find_head_matching_sequence): Strengthen params "f1" and
7488 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
7489 "last1", "last2", "beforelast1", "beforelast2" from rtx to
7490 rtx_insn *.
7491 (outgoing_edges_match): Likewise for locals "last1", "last2".
7492 (try_crossjump_to_edge): Likewise for local "insn".
7493 Replace call to for_each_rtx with for_each_rtx_in_insn.
7494
7495 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
7496 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
7497 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
7498 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
7499 (try_optimize_cfg): Strengthen local "last" from rtx to
7500 rtx_insn *.
7501 (delete_dead_jumptables): Likewise for locals "insn", "next",
7502 "label".
7503
7504 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
7505 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
7506 "rtx else_first_tail", to reflect the basic-block.h changes above.
7507
7508 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7509
7510 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
7511 rtx_insn *.
7512 (purge_dead_tablejump_edges): Likewise.
7513 (find_bb_boundaries): Likewise for locals "insn", "end",
7514 "flow_transfer_insn".
7515
7516 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7517
7518 * caller-save.c (save_call_clobbered_regs): Strengthen locals
7519 "ins" and "prev" from rtx to rtx_insn *.
7520
7521 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7522
7523 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
7524 rtx_insn *.
7525 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
7526 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
7527 "scan_start".
7528 (load_register_parameters): Likewise for local "before_arg".
7529 (check_sibcall_argument_overlap): Likewise for param "insn".
7530 (expand_call): Likewise for locals "normal_call_insns",
7531 "tail_call_insns", "insns", "before_call", "after_args",
7532 "before_arg", "last", "prev". Strengthen one of the "last" from
7533 rtx to rtx_call_insn *.
7534 (fixup_tail_calls): Strengthen local "insn" from rtx to
7535 rtx_insn *.
7536 (emit_library_call_value_1): Likewise for locals "before_call" and
7537 "last".
7538
7539 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7540
7541 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
7542 and "last" from rtx to rtx_insn *.
7543 (expand_builtin_nonlocal_goto): Likewise for local "insn".
7544 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
7545 rtx_call_insn *.
7546 (expand_errno_check): Strengthen local "lab" from rtx to
7547 rtx_code_label *.
7548 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
7549 rtx_insn *.
7550 (expand_builtin_mathfn_2): Likewise.
7551 (expand_builtin_mathfn_ternary): Likewise.
7552 (expand_builtin_mathfn_3): Likewise.
7553 (expand_builtin_interclass_mathfn): Likewise for local "last".
7554 (expand_builtin_int_roundingfn): Likewise for local "insns".
7555 (expand_builtin_int_roundingfn_2): Likewise.
7556 (expand_builtin_strlen): Likewise for local "before_strlen".
7557 (expand_builtin_strncmp): Likewise for local "seq".
7558 (expand_builtin_signbit): Likewise for local "last".
7559 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
7560 from rtx to rtx_code_label *.
7561 (expand_stack_restore): Strengthen local "prev" from rtx to
7562 rtx_insn *.
7563
7564 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7565
7566 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
7567 to rtx_insn *.
7568 (struct btr_def_s): Likewise.
7569 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7570 const rtx_insn *.
7571 (add_btr_def): Likewise.
7572 (new_btr_user): Likewise.
7573 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
7574 rtx to rtx_insn *.
7575 (link_btr_uses): Likewise.
7576 (move_btr_def): Likewise for locals "insp", "old_insn",
7577 "new_insn". Add checked cast to rtx_insn * for now on result of
7578 gen_move_insn.
7579 (can_move_up): Strengthen param "insn" from const_rtx to
7580 const rtx_insn *.
7581
7582 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7583
7584 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
7585 rtx_insn *.
7586 (get_uncond_jump_length): Likewise for locals "label", "jump".
7587 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
7588 "jump", "insn".
7589 (add_labels_and_missing_jumps): Likewise for local "new_jump".
7590 (fix_up_fall_thru_edges): Likewise for local "old_jump".
7591 (find_jump_block): Likewise for local "insn".
7592 (fix_crossing_conditional_branches): Likewise for locals
7593 "old_jump", "new_jump".
7594 (fix_crossing_unconditional_branches): Likewise for locals
7595 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
7596 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
7597
7598 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7599
7600 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
7601 rtx to rtx_insn *.
7602 (struct mem_insn): Likewise for field "insn".
7603 (reg_next_use): Strengthen from rtx * to rtx_insn **.
7604 (reg_next_inc_use): Likewise.
7605 (reg_next_def): Likewise.
7606 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7607 from rtx to rtx_insn *.
7608 (move_insn_before): Likewise for param "next_insn" and local "insns".
7609 (attempt_change): Likewise for local "mov_insn".
7610 (try_merge): Likewise for param "last_insn".
7611 (get_next_ref): Likewise for return type and local "insn".
7612 Strengthen param "next_array" from rtx * to rtx_insn **.
7613 (parse_add_or_inc): Strengthen param "insn" from rtx to
7614 rtx_insn *.
7615 (find_inc): Likewise for locals "insn" and "other_insn" (three of
7616 the latter).
7617 (merge_in_block): Likewise for locals "insn", "curr",
7618 "other_insn".
7619 (pass_inc_dec::execute): Update allocations of the arrays to
7620 reflect the stronger types.
7621
7622 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7623
7624 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7625 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
7626 from rtx to rtx_code_label *.
7627
7628 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7629
7630 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7631 to rtx_insn *.
7632
7633 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7634
7635 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7636 generated a warning and prevented bootstrapping the compiler.
7637
7638 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7639
7640 * rtl.h (delete_related_insns): Strengthen return type from rtx to
7641 rtx_insn *.
7642
7643 * jump.c (delete_related_insns): Likewise, also for locals "next"
7644 and "prev".
7645
7646 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7647
7648 * genautomata.c (output_internal_insn_latency_func): When writing
7649 the function "internal_insn_latency" to insn-automata.c,
7650 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7651 allowing the optional guard function of (define_bypass) clauses to
7652 expect a pair of rtx_insn *, rather than a pair of rtx.
7653 (output_insn_latency_func): When writing the function
7654 "insn_latency", add an "uncast_" prefix to params "insn" and
7655 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7656 using checked casts from the params, thus enabling the above
7657 change to the generated "internal_insn_latency" function.
7658
7659 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
7660
7661 PR tree-optimization/62091
7662 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7663 handle correctly arrays.
7664 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7665 inheritance binfos.
7666 (record_known_type): Walk into inner type.
7667 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7668 condition on no type changes.
7669
7670 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7671
7672 * genattrtab.c (write_attr_get): Within the generated get_attr_
7673 functions, rename param "insn" to "uncast_insn" and reintroduce
7674 "insn" as an local rtx_insn * using a checked cast, so that "insn"
7675 is an rtx_insn * within insn-attrtab.c
7676
7677 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7678
7679 * output.h (peephole): Strengthen return type from rtx to
7680 rtx_insn *.
7681 * rtl.h (delete_for_peephole): Likewise for both params.
7682 * genpeep.c (main): In generated "peephole" function, strengthen
7683 return type and local "insn" from rtx to rtx_insn *. For now,
7684 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7685 rtx_insn *, with a checked cast.
7686 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7687 locals "insn", "next", "prev" from rtx to rtx_insn *.
7688
7689 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
7690
7691 PR tree-optimization/62112
7692 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7693 * gimple-iterator.h (gsi_replace): Return bool.
7694 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7695 moved from ref_may_alias_global_p.
7696 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7697 New overloads.
7698 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7699 (stmt_kills_ref_p_1): Rename...
7700 (stmt_kills_ref_p): ... to this.
7701 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7702 stmt_kills_ref_p): Declare.
7703 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7704 Move the self-assignment case...
7705 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7706
7707 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7708
7709 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7710
7711 * emit-rtl.c (try_split): Likewise, also for locals "before" and
7712 "after". For now, don't strengthen param "trial", which requires
7713 adding checked casts when returning it.
7714
7715 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7716
7717 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7718 "label" from rtx to rtx_code_label *. Strengthen param 1 of
7719 "var_location" hook from rtx to rtx_insn *.
7720 (debug_nothing_rtx): Delete in favor of...
7721 (debug_nothing_rtx_code_label): New prototype.
7722 (debug_nothing_rtx_rtx): Delete unused prototype.
7723 (debug_nothing_rtx_insn): New prototype.
7724
7725 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7726 invoking debug_hooks->var_location (in two places, one in a NOTE
7727 case of a switch statement, the other guarded by a CALL_P
7728 conditional. Add checked cast to rtx_code_label * when invoking
7729 debug_hooks->label (within CODE_LABEL case of switch statement).
7730
7731 * dbxout.c (dbx_debug_hooks): Update "label" hook from
7732 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7733 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7734 (xcoff_debug_hooks): Likewise.
7735 * debug.c (do_nothing_debug_hooks): Likewise.
7736 (debug_nothing_rtx): Delete in favor of...
7737 (debug_nothing_rtx_insn): New function.
7738 (debug_nothing_rtx_rtx): Delete unused function.
7739 (debug_nothing_rtx_code_label): New function.
7740 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7741 debug_nothing_rtx to debug_nothing_rtx_code_label.
7742 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7743 to rtx_insn *.
7744 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7745 debug_nothing_rtx to debug_nothing_rtx_insn.
7746 (sdbout_label): Strengthen param "insn" from rtx to
7747 rtx_code_label *.
7748 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7749 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
7750 "var_location" hook from debug_nothing_rtx to
7751 debug_nothing_rtx_insn.
7752
7753 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7754
7755 * recog.h (insn_output_fn): Update this function typedef to match
7756 the changes below to the generated output functions, strengthening
7757 the 2nd param from rtx to rtx_insn *.
7758
7759 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7760 insn when invoking an output function, to match the new signature
7761 of insn_output_fn with a stronger second param.
7762
7763 * genconditions.c (write_header): In the generated code for
7764 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7765 to match the other changes in this patch.
7766
7767 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7768 the generated "gen_" functions from rtx to rtx_insn * within their
7769 implementations.
7770
7771 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7772 the subfunctions within the generated "recog_", "split", "peephole2"
7773 function trees from rtx to rtx_insn *. For now, the top-level
7774 generated functions ("recog", "split", "peephole2") continue to
7775 take a plain rtx for "insn", to avoid introducing dependencies on
7776 other patches. Rename this 2nd param from "insn" to
7777 "uncast_insn", and reintroduce "insn" as a local variable of type
7778 rtx_insn *, initialized at the top of the generated function with
7779 a checked cast on "uncast_insn".
7780 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7781 the generated "gen_" functions from rtx to rtx_insn * within their
7782 prototypes.
7783
7784 * genoutput.c (process_template): Strengthen the 2nd param within
7785 the generated "output_" functions "insn" from rtx to rtx_insn *.
7786
7787 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7788
7789 * tree-profile.c (tree_profiling): Skip external functions
7790 when doing coverage instrumentation.
7791 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7792
7793 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7794
7795 * config/rs6000/altivec.h (vec_cpsgn): New #define.
7796 (vec_mergee): Likewise.
7797 (vec_mergeo): Likewise.
7798 (vec_cntlz): Likewise.
7799 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7800 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7801 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7802 VMRGEW, and VMRGOW.
7803 * doc/extend.texi: Document various forms of vec_cpsgn,
7804 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7805 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7806 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7807 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7808 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7809
7810 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7811
7812 * config/rs6000/rs6000.c (context.h): New include.
7813 (tree-pass.h): Likewise.
7814 (make_pass_analyze_swaps): New decl.
7815 (rs6000_option_override): Register pass_analyze_swaps.
7816 (swap_web_entry): New subsclass of web_entry_base (df.h).
7817 (special_handling_values): New enum.
7818 (union_defs): New function.
7819 (union_uses): Likewise.
7820 (insn_is_load_p): Likewise.
7821 (insn_is_store_p): Likewise.
7822 (insn_is_swap_p): Likewise.
7823 (rtx_is_swappable_p): Likewise.
7824 (insn_is_swappable_p): Likewise.
7825 (chain_purpose): New enum.
7826 (chain_contains_only_swaps): New function.
7827 (mark_swaps_for_removal): Likewise.
7828 (swap_const_vector_halves): Likewise.
7829 (adjust_subreg_index): Likewise.
7830 (permute_load): Likewise.
7831 (permute_store): Likewise.
7832 (handle_special_swappables): Likewise.
7833 (replace_swap_with_copy): Likewise.
7834 (dump_swap_insn_table): Likewise.
7835 (rs6000_analyze_swaps): Likewise.
7836 (pass_data_analyze_swaps): New pass_data.
7837 (pass_analyze_swaps): New rtl_opt_pass.
7838 (make_pass_analyze_swaps): New function.
7839 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7840
7841 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7842
7843 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7844 type from rtx to rtx_insn *.
7845 (create_copy_of_insn_rtx): Likewise.
7846 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7847 (create_copy_of_insn_rtx): Likewise, also for local "res".
7848
7849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7850
7851 * rtl.h (find_first_parameter_load): Strengthen return type from
7852 rtx to rtx_insn *.
7853 * rtlanal.c (find_first_parameter_load): Strengthen return type
7854 from rtx to rtx_insn *. Add checked cast for now, to postpone
7855 strengthening the params.
7856
7857 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7858
7859 PR fortran/44054
7860 * diagnostic.c: Set default caret.
7861 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7862 line is needed.
7863 * diagnostic.h (struct diagnostic_context):
7864
7865 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7866
7867 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7868 (sel_bb_head): Strengthen return type insn_t (currently just an
7869 rtx) to rtx_insn *.
7870 (sel_bb_end): Likewise.
7871
7872 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7873 (sel_bb_head): Strengthen return type and local "head" from
7874 insn_t (currently just an rtx) to rtx_insn *.
7875 (sel_bb_end): Likewise for return type.
7876 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7877 working with insn.
7878
7879 2014-08-21 David Malcolm <dmalcolm@redhat.com>
7880
7881 * basic-block.h (get_last_bb_insn): Strengthen return type from
7882 rtx to rtx_insn *.
7883 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7884 end".
7885
7886 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7887
7888 PR fortran/44054
7889 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7890 to here ...
7891 (diagnostic_report_diagnostic): ... from here.
7892 * toplev.c (general_init): Move code to c-family.
7893
7894 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7895
7896 * df.h (web_entry_base): Replace existing struct web_entry with a
7897 new class web_entry_base with only the predecessor member.
7898 (unionfind_root): Remove declaration and move to class member.
7899 (unionfind_union): Remove declaration and move to friend
7900 function.
7901 (union_defs): Remove declaration.
7902 * web.c (web_entry_base::unionfind_root): Modify to be member
7903 function and adjust accessors.
7904 (unionfind_union): Modify to be friend function and adjust
7905 accessors.
7906 (web_entry): New subclass of web_entry_base containing the reg
7907 member.
7908 (union_match_dups): Modify for struct -> class changes.
7909 (union_defs): Likewise.
7910 (entry_register): Likewise.
7911 (pass_web::execute): Likewise.
7912
7913 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
7914
7915 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7916 builtin define __VEC_ELEMENT_REG_ORDER__.
7917
7918 2014-08-20 Martin Jambor <mjambor@suse.cz>
7919 Wei Mi <wmi@google.com>
7920
7921 PR ipa/60449
7922 PR middle-end/61776
7923 * tree-ssa-operands.c (update_stmt_operands): Remove
7924 MODIFIED_NORETURN_CALLS.
7925 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7926 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7927 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7928 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7929 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7930 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7931 (gimple_call_set_ctrl_altering): New func.
7932 (gimple_call_ctrl_altering_p): Ditto.
7933 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7934 (make_blocks): Use gimple_call_initialize_ctrl_altering.
7935 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7936 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7937 remove MODIFIED_NORETURN_CALLS.
7938
7939 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7940
7941 * coverage.c (coverage_compute_profile_id): Return non-0;
7942 also handle symbols with unique name.
7943 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7944
7945 2014-08-20 Steve Ellcey <sellcey@mips.com>
7946
7947 PR middle-end/49191
7948 * doc/sourcebuild.texi (non_strict_align): New.
7949
7950 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
7951
7952 * cgraphunit.c (ipa_passes, compile): Reshedule
7953 symtab_remove_unreachable_nodes passes; update comments.
7954 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7955 TODO_remove_functions before the pass; the functions ought to be
7956 already removed.
7957 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
7958 TODO_remove_functions.
7959 * passes.c (pass_data_early_local_passes): Do not schedule function
7960 removal.
7961 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
7962
7963 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7964
7965 PR c/59304
7966 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
7967 before setting the option.
7968 * diagnostic.c (diagnostic_classify_diagnostic): Record
7969 command-line status.
7970
7971 2014-08-20 Richard Biener <rguenther@suse.de>
7972
7973 PR lto/62190
7974 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
7975 to build uint{16,32,64}_type_node.
7976
7977 2014-08-20 Terry Guo <terry.guo@arm.com>
7978
7979 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
7980 with immediate_operand.
7981
7982 2014-08-20 David Malcolm <dmalcolm@redhat.com>
7983
7984 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
7985 "insn" from an as_a to a safe_as_a, for the case when "insn" is
7986 NULL.
7987
7988 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7989
7990 PR preprocessor/51303
7991 * incpath.c (remove_duplicates): Use cpp_warning.
7992
7993 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7994
7995 PR c/60975
7996 PR c/53063
7997 * doc/options.texi (CPP): Document it.
7998 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
7999 * optc-gen.awk: Handle CPP.
8000 * opth-gen.awk: Likewise.
8001
8002 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8003
8004 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
8005 rtx_insn *.
8006 (duplicate_insn_chain): Likewise.
8007 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
8008 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
8009 checked cast for now (until we can strengthen the params in the
8010 same way).
8011 (duplicate_insn_chain): Likewise.
8012
8013 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8014
8015 * rtl.h (next_cc0_user): Strengthen return type from rtx to
8016 rtx_insn *.
8017 (prev_cc0_setter): Likewise.
8018
8019 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
8020 rtx_insn *, adding checked casts for now as necessary.
8021 (prev_cc0_setter): Likewise.
8022
8023 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8024
8025 * expr.h (emit_move_insn): Strengthen return type from rtx to
8026 rtx_insn *.
8027 (emit_move_insn_1): Likewise.
8028 (emit_move_complex_push): Likewise.
8029 (emit_move_complex_parts): Likewise.
8030
8031 * expr.c (emit_move_via_integer): Strengthen return type from rtx
8032 to rtx_insn *. Replace use of NULL_RTX with NULL when working
8033 with insns.
8034 (emit_move_complex_push): Strengthen return type from rtx to
8035 rtx_insn *.
8036 (emit_move_complex): Likewise, also for local "ret".
8037 (emit_move_ccmode): Likewise.
8038 (emit_move_multi_word): Likewise for return type and locals
8039 "last_insn", "seq".
8040 (emit_move_insn_1): Likewise for return type and locals "result",
8041 "ret".
8042 (emit_move_insn): Likewise for return type and local "last_insn".
8043 (compress_float_constant): Likewise.
8044
8045 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8046
8047 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
8048 from rtx to rtx_insn *.
8049
8050 * rtl.h (emit_insn_before): Likewise.
8051 (emit_insn_before_noloc): Likewise.
8052 (emit_insn_before_setloc): Likewise.
8053 (emit_jump_insn_before): Likewise.
8054 (emit_jump_insn_before_noloc): Likewise.
8055 (emit_jump_insn_before_setloc): Likewise.
8056 (emit_call_insn_before): Likewise.
8057 (emit_call_insn_before_noloc): Likewise.
8058 (emit_call_insn_before_setloc): Likewise.
8059 (emit_debug_insn_before): Likewise.
8060 (emit_debug_insn_before_noloc): Likewise.
8061 (emit_debug_insn_before_setloc): Likewise.
8062 (emit_label_before): Likewise.
8063 (emit_insn_after): Likewise.
8064 (emit_insn_after_noloc): Likewise.
8065 (emit_insn_after_setloc): Likewise.
8066 (emit_jump_insn_after): Likewise.
8067 (emit_jump_insn_after_noloc): Likewise.
8068 (emit_jump_insn_after_setloc): Likewise.
8069 (emit_call_insn_after): Likewise.
8070 (emit_call_insn_after_noloc): Likewise.
8071 (emit_call_insn_after_setloc): Likewise.
8072 (emit_debug_insn_after): Likewise.
8073 (emit_debug_insn_after_noloc): Likewise.
8074 (emit_debug_insn_after_setloc): Likewise.
8075 (emit_label_after): Likewise.
8076 (emit_insn): Likewise.
8077 (emit_debug_insn): Likewise.
8078 (emit_jump_insn): Likewise.
8079 (emit_call_insn): Likewise.
8080 (emit_label): Likewise.
8081 (gen_clobber): Likewise.
8082 (emit_clobber): Likewise.
8083 (gen_use): Likewise.
8084 (emit_use): Likewise.
8085 (emit): Likewise.
8086
8087 (emit_barrier_before): Strengthen return type from rtx to
8088 rtx_barrier *.
8089 (emit_barrier_after): Likewise.
8090 (emit_barrier): Likewise.
8091
8092 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
8093 from rtx to rtx_insn *. Add checked casts for now when converting
8094 "last" from rtx to rtx_insn *.
8095 (emit_insn_before_noloc): Likewise for return type.
8096 (emit_jump_insn_before_noloc): Likewise.
8097 (emit_call_insn_before_noloc): Likewise.
8098 (emit_debug_insn_before_noloc): Likewise.
8099 (emit_barrier_before): Strengthen return type and local "insn"
8100 from rtx to rtx_barrier *.
8101 (emit_label_before): Strengthen return type from rtx to
8102 rtx_insn *. Add checked cast for now when returning param
8103 (emit_pattern_after_noloc): Strengthen return type from rtx to
8104 rtx_insn *. Add checked casts for now when converting "last" from
8105 rtx to rtx_insn *.
8106 (emit_insn_after_noloc): Strengthen return type from rtx to
8107 rtx_insn *.
8108 (emit_jump_insn_after_noloc): Likewise.
8109 (emit_call_insn_after_noloc): Likewise.
8110 (emit_debug_insn_after_noloc): Likewise.
8111 (emit_barrier_after): Strengthen return type from rtx to
8112 rtx_barrier *.
8113 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
8114 Add checked cast for now when converting "label" from rtx to
8115 rtx_insn *.
8116 (emit_pattern_after_setloc): Strengthen return type from rtx to
8117 rtx_insn *. Add checked casts for now when converting "last" from
8118 rtx to rtx_insn *.
8119 (emit_pattern_after): Strengthen return type from rtx to
8120 rtx_insn *.
8121 (emit_insn_after_setloc): Likewise.
8122 (emit_insn_after): Likewise.
8123 (emit_jump_insn_after_setloc): Likewise.
8124 (emit_jump_insn_after): Likewise.
8125 (emit_call_insn_after_setloc): Likewise.
8126 (emit_call_insn_after): Likewise.
8127 (emit_debug_insn_after_setloc): Likewise.
8128 (emit_debug_insn_after): Likewise.
8129 (emit_pattern_before_setloc): Likewise. Add checked casts for now
8130 when converting "last" from rtx to rtx_insn *.
8131 (emit_pattern_before): Strengthen return type from rtx to
8132 rtx_insn *.
8133 (emit_insn_before_setloc): Likewise.
8134 (emit_insn_before): Likewise.
8135 (emit_jump_insn_before_setloc): Likewise.
8136 (emit_jump_insn_before): Likewise.
8137 (emit_call_insn_before_setloc): Likewise.
8138 (emit_call_insn_before): Likewise.
8139 (emit_debug_insn_before_setloc): Likewise.
8140 (emit_debug_insn_before): Likewise.
8141 (emit_insn): Strengthen return type and locals "last", "insn",
8142 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
8143 within cases where we know we have an insn.
8144 (emit_debug_insn): Likewise.
8145 (emit_jump_insn): Likewise.
8146 (emit_call_insn): Strengthen return type and local "insn" from rtx
8147 to rtx_insn *.
8148 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
8149 a checked cast to rtx_insn * for now on "label".
8150 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
8151 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
8152 (emit_use): Likewise.
8153 (gen_use): Likewise, also for local "seq".
8154 (emit): Likewise for return type and local "insn".
8155 (rtx_insn): Likewise for return type and local "new_rtx".
8156
8157 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
8158 from rtx to rtx_barrier *.
8159
8160 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
8161 changed return type from rtx to rtx_insn *, we must update
8162 "emit_fn" type, and this in turn means updating...
8163 (frame_insn): ...this. Strengthen return type from rtx to
8164 rtx_insn *. Introduce a new local "insn" of the appropriate type.
8165
8166 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8167
8168 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
8169 rtx to rtx_jump_table_data *. Also for local.
8170 * rtl.h (emit_jump_table_data): Likewise.
8171
8172 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8173
8174 * basic-block.h (create_basic_block_structure): Strengthen third
8175 param "bb_note" from rtx to rtx_note *.
8176 * rtl.h (emit_note_before): Strengthen return type from rtx to
8177 rtx_note *.
8178 (emit_note_after): Likewise.
8179 (emit_note): Likewise.
8180 (emit_note_copy): Likewise. Also, strengthen param similarly.
8181 * function.h (struct rtl_data): Strengthen field
8182 "x_stack_check_probe_note" from rtx to rtx_note *.
8183
8184 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
8185 from rtx to rtx_note *.
8186 * cfgrtl.c (create_basic_block_structure): Strengthen third param
8187 "bb_note" from rtx to rtx_note *.
8188 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
8189 when calling emit_note_copy.
8190 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
8191 rtx_note *.
8192 (emit_note_after): Likewise.
8193 (emit_note_before): Likewise.
8194 (emit_note_copy): Likewise. Also, strengthen param similarly.
8195 (emit_note): Likewise.
8196 * except.c (emit_note_eh_region_end): Likewise for return type.
8197 Strengthen local "next" from rtx to rtx_insn *.
8198 (convert_to_eh_region_ranges): Strengthen local "note"
8199 from rtx to rtx_note *.
8200 * final.c (change_scope): Likewise.
8201 (reemit_insn_block_notes): Likewise, for both locals named "note".
8202 Also, strengthen local "insn" from rtx to rtx_insn *.
8203 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
8204 rtx to rtx_note *.
8205 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
8206 strengthen local "seq" from rtx to rtx_insn *.
8207 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
8208 to rtx_note *.
8209 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
8210 vec<rtx_note *>.
8211 (get_bb_note_from_pool): Strengthen return type from rtx to
8212 rtx_note *.
8213 (sel_create_basic_block): Strengthen local "new_bb_note" from
8214 insn_t to rtx_note *.
8215 * var-tracking.c (emit_note_insn_var_location): Strengthen local
8216 "note" from rtx to rtx_note *.
8217 (emit_notes_in_bb): Likewise.
8218
8219 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8220
8221 * function.h (struct rtl_data): Strengthen field
8222 "x_parm_birth_insn" from rtx to rtx_insn *.
8223 * function.c (struct assign_parm_data_all): Strengthen fields
8224 "first_conversion_insn" and "last_conversion_insn" from rtx to
8225 rtx_insn *.
8226
8227 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8228
8229 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
8230 to rtx_insn *; also for local "var_end_seq".
8231 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
8232 (maybe_cleanup_end_of_block): Likewise for param "last" and local
8233 "insn".
8234 (expand_gimple_cond): Likewise for locals "last2" and "last".
8235 (mark_transaction_restart_calls): Likewise for local "insn".
8236 (expand_gimple_stmt): Likewise for return type and locals "last"
8237 and "insn".
8238 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
8239 (avoid_complex_debug_insns): Likewise for param "insn".
8240 (expand_debug_locations): Likewise for locals "insn", "last",
8241 "prev_insn" and "insn2".
8242 (expand_gimple_basic_block): Likewise for local "last".
8243 (construct_exit_block): Likewise for locals "head", "end",
8244 "orig_end".
8245 (pass_expand::execute): Likewise for locals "var_seq",
8246 "var_ret_seq", "next".
8247
8248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8249
8250 * asan.h (asan_emit_stack_protection): Strengthen return type from
8251 rtx to rtx_insn *.
8252 * asan.c (asan_emit_stack_protection): Likewise. Add local
8253 "insns" to hold the return value.
8254
8255 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8256
8257 * basic-block.h (bb_note): Strengthen return type from rtx to
8258 rtx_note *.
8259 * sched-int.h (bb_note): Likewise.
8260 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
8261
8262 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8263
8264 * rtl.h (make_insn_raw): Strengthen return type from rtx to
8265 rtx_insn *.
8266
8267 * emit-rtl.c (make_insn_raw): Strengthen return type and local
8268 "insn" from rtx to rtx_insn *.
8269 (make_debug_insn_raw): Strengthen return type from rtx to
8270 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
8271 (make_jump_insn_raw): Strengthen return type from rtx to
8272 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
8273 (make_call_insn_raw): Strengthen return type from rtx to
8274 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
8275 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
8276 callback from rtx to rtx_insn *; likewise for local "insn" and
8277 "next", adding a checked cast to rtx_insn in the relevant cases of
8278 the switch statement.
8279 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
8280 callback from rtx to rtx_insn *.
8281 (emit_pattern_after_setloc): Likewise.
8282 (emit_pattern_after): Likewise.
8283 (emit_pattern_before_setloc): Likewise.
8284 (emit_pattern_before): Likewise.
8285
8286 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8287
8288 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
8289 rtx_call_insn *.
8290 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
8291 accepting an rtx_insn *.
8292 (last_call_insn): Strengthen return type from rtx to
8293 rtx_call_insn *.
8294
8295 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8296
8297 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
8298 "insns" from rtx to rtx_insn *.
8299 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
8300 locals "insn" and "prev".
8301
8302 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8303
8304 * rtl.h (tablejump_p): Strengthen third param from rtx * to
8305 rtx_jump_table_data **.
8306
8307 * cfgbuild.c (make_edges): Introduce local "table", using it in
8308 place of "tmp" for jump table data.
8309 (find_bb_boundaries): Strengthen local "table" from rtx to
8310 rtx_jump_table_data *.
8311 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8312 (outgoing_edges_match): Likewise for locals "table1" and "table2".
8313 (try_crossjump_to_edge): Likewise.
8314 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
8315 "table".
8316 (patch_jump_insn): Introduce local "table", using it in place of
8317 "tmp" for jump table data.
8318 (force_nonfallthru_and_redirect): Introduce local "table", so that
8319 call to tablejump_p can receive an rtx_jump_table_data **. Update
8320 logic around the call to overwrite "note" appropriately if
8321 tablejump_p returns non-zero.
8322 (get_last_bb_insn): Introduce local "table", using it in place of
8323 "tmp" for jump table data.
8324 * dwarf2cfi.c (create_trace_edges): Likewise.
8325
8326 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
8327 from rtx to rtx_jump_table_data *.
8328 (create_fix_barrier): Strengthen local "tmp" from rtx to
8329 rtx_jump_table_data *.
8330 (arm_reorg): Likewise for local "table".
8331
8332 * config/s390/s390.c (s390_chunkify_start): Likewise.
8333
8334 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
8335
8336 * jump.c (delete_related_insns): Strengthen local "lab_next" from
8337 rtx to rtx_jump_table_data *.
8338
8339 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
8340 rtx_jump_table_data **. Add a checked cast when writing through
8341 the pointer: we know there that local "table" is non-NULL and that
8342 JUMP_TABLE_DATA_P (table) holds.
8343 (label_is_jump_target_p): Introduce local "table", using it in
8344 place of "tmp" for jump table data.
8345
8346 2014-08-19 Marek Polacek <polacek@redhat.com>
8347
8348 PR c++/62153
8349 * doc/invoke.texi: Document -Wbool-compare.
8350
8351 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8352
8353 * rtl.h (entry_of_function): Strengthen return type from rtx to
8354 rtx_insn *.
8355 * cfgrtl.c (entry_of_function): Likewise.
8356
8357 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8358
8359 * emit-rtl.h (get_insns): Strengthen return type from rtx to
8360 rtx_insn *, adding a checked cast for now.
8361 (get_last_insn): Likewise.
8362
8363 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8364
8365 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
8366 rtx_code_label *.
8367
8368 * emit-rtl.c (gen_label_rtx): Likewise.
8369
8370 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8371
8372 * rtl.h (previous_insn): Strengthen return type from rtx to
8373 rtx_insn *.
8374 (next_insn): Likewise.
8375 (prev_nonnote_insn): Likewise.
8376 (prev_nonnote_insn_bb): Likewise.
8377 (next_nonnote_insn): Likewise.
8378 (next_nonnote_insn_bb): Likewise.
8379 (prev_nondebug_insn): Likewise.
8380 (next_nondebug_insn): Likewise.
8381 (prev_nonnote_nondebug_insn): Likewise.
8382 (next_nonnote_nondebug_insn): Likewise.
8383 (prev_real_insn): Likewise.
8384 (next_real_insn): Likewise.
8385 (prev_active_insn): Likewise.
8386 (next_active_insn): Likewise.
8387
8388 * emit-rtl.c (next_insn): Strengthen return type from rtx to
8389 rtx_insn *, adding a checked cast.
8390 (previous_insn): Likewise.
8391 (next_nonnote_insn): Likewise.
8392 (next_nonnote_insn_bb): Likewise.
8393 (prev_nonnote_insn): Likewise.
8394 (prev_nonnote_insn_bb): Likewise.
8395 (next_nondebug_insn): Likewise.
8396 (prev_nondebug_insn): Likewise.
8397 (next_nonnote_nondebug_insn): Likewise.
8398 (prev_nonnote_nondebug_insn): Likewise.
8399 (next_real_insn): Likewise.
8400 (prev_real_insn): Likewise.
8401 (next_active_insn): Likewise.
8402 (prev_active_insn): Likewise.
8403
8404 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
8405 param "stepfunc" so that it returns an rtx_insn * rather than an
8406 rtx, to track the change to prev_nonnote_insn_bb, which is the
8407 only function this is called with.
8408 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
8409
8410 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
8411
8412 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
8413 assert.
8414
8415 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8416
8417 * coretypes.h (class rtx_debug_insn): Add forward declaration.
8418 (class rtx_nonjump_insn): Likewise.
8419 (class rtx_jump_insn): Likewise.
8420 (class rtx_call_insn): Likewise.
8421 (class rtx_jump_table_data): Likewise.
8422 (class rtx_barrier): Likewise.
8423 (class rtx_code_label): Likewise.
8424 (class rtx_note): Likewise.
8425
8426 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
8427 adding the invariant DEBUG_INSN_P (X).
8428 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
8429 the invariant NONJUMP_INSN_P (X).
8430 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
8431 the invariant JUMP_P (X).
8432 (class rtx_call_insn): New, a subclass of rtx_insn, adding
8433 the invariant CALL_P (X).
8434 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
8435 invariant JUMP_TABLE_DATA_P (X).
8436 (class rtx_barrier): New, a subclass of rtx_insn, adding the
8437 invariant BARRIER_P (X).
8438 (class rtx_code_label): New, a subclass of rtx_insn, adding
8439 the invariant LABEL_P (X).
8440 (class rtx_note): New, a subclass of rtx_insn, adding
8441 the invariant NOTE_P(X).
8442 (is_a_helper <rtx_debug_insn *>::test): New.
8443 (is_a_helper <rtx_nonjump_insn *>::test): New.
8444 (is_a_helper <rtx_jump_insn *>::test): New.
8445 (is_a_helper <rtx_call_insn *>::test): New.
8446 (is_a_helper <rtx_jump_table_data *>::test): New functions,
8447 overloaded for both rtx and rtx_insn *.
8448 (is_a_helper <rtx_barrier *>::test): New.
8449 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
8450 for both rtx and rtx_insn *.
8451 (is_a_helper <rtx_note *>::test): New.
8452
8453 2014-08-19 Marek Polacek <polacek@redhat.com>
8454
8455 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
8456 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8457 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
8458 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8459
8460 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8461
8462 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
8463 rtx_insn *. To help with transition, for now, convert from an
8464 access macro into a pair of functions: BND_TO, returning an
8465 rtx_insn *, and...
8466 (SET_BND_TO): New function, for use where BND_TO is used as an
8467 lvalue.
8468
8469 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
8470 SET_BND_TO.
8471 (BND_TO): New function, adding a checked cast.
8472 (SET_BND_TO): New function.
8473
8474 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
8475 SET_BND_TO.
8476 (compute_av_set_on_boundaries): Likewise.
8477
8478 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8479
8480 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
8481 destination if it is used in source.
8482 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
8483 (*popcount<mode>2_falsedep_1): Likewise.
8484
8485 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
8486
8487 PR other/62168
8488 * configure.ac: Set install_gold_as_default to no first.
8489 * configure: Regenerated.
8490
8491 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8492
8493 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
8494 "note_list" field will eventually be an rtx_insn *. To help with
8495 transition, for now, convert from an access macro into a pair of
8496 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
8497 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
8498 used as an lvalue.
8499
8500 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
8501 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
8502
8503 * sel-sched-ir.c (init_bb): Likewise.
8504 (sel_restore_notes): Likewise.
8505 (move_bb_info): Likewise.
8506 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
8507 (SET_BB_NOTE_LIST): New function.
8508
8509 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8510
8511 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
8512 field will eventually be an rtx_insn *. To help with transition,
8513 for now, convert from an access macro into a pair of functions:
8514 VINSN_INSN_RTX, returning an rtx_insn *, and...
8515 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
8516 is used as an lvalue.
8517
8518 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
8519 SET_VINSN_INSN_RTX where it's used as an lvalue.
8520 (VINSN_INSN_RTX): New function.
8521 (SET_VINSN_INSN_RTX): New function.
8522
8523 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8524
8525 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
8526 eventually be rtx_insn *, but to help with transition, for now,
8527 convert from an access macro into a pair of functions: DEP_PRO
8528 returning an rtx_insn * and...
8529 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
8530 lvalue, returning an rtx&.
8531 (DEP_CON): Analogous changes to DEP_PRO above.
8532 (SET_DEP_CON): Likewise.
8533
8534 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
8535 an lvalue to SET_DEP_CON.
8536 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
8537 (sd_copy_back_deps): Likewise for DEP_CON.
8538 (DEP_PRO): New function, adding a checked cast for now.
8539 (DEP_CON): Likewise.
8540 (SET_DEP_PRO): New function.
8541 (SET_DEP_CON): Likewise.
8542
8543 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8544
8545 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
8546 (extra_options): Add i386/cygwin.opt.
8547 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
8548 (CPP_SPEC): Accept -pthread.
8549 (LINK_SPEC): Ditto.
8550 (GOMP_SELF_SPECS): Update comment.
8551 * config/i386/cygwin.opt: New file for -pthread flag.
8552
8553 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8554
8555 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
8556 * df.h (DF_REF_INSN): Convert from a macro to a function, so
8557 that we can return an rtx_insn *.
8558
8559 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
8560
8561 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
8562 when building executables, not DLLs. Add --large-address-aware
8563 under the same conditions.
8564 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
8565 when building executables, not DLLs. Add --large-address-aware
8566 under the same conditions when using -m32.
8567
8568 * config/i386/cygwin-stdint.h: Throughout, make type
8569 definitions dependent on target architecture, not host.
8570
8571 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8572
8573 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
8574 the return type from rtx to rtx_insn *, which will enable various
8575 conversions in followup patches. For now this is is done by a
8576 checked cast.
8577 (NEXT_INSN): Likewise.
8578 (SET_PREV_INSN): Convert to an inline function. This is intended
8579 for use as an lvalue, and so returns an rtx& to allow in-place
8580 modification.
8581 (SET_NEXT_INSN): Likewise.
8582
8583 2014-07-08 Mark Wielaard <mjw@redhat.com>
8584
8585 PR debug/59051
8586 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
8587
8588 2014-08-19 Marek Polacek <polacek@redhat.com>
8589
8590 PR c/61271
8591 * cgraphunit.c (handle_alias_pairs): Fix condition.
8592
8593 2014-08-19 Richard Biener <rguenther@suse.de>
8594
8595 * gimple-fold.c (fold_gimple_assign): Properly build a
8596 null-pointer constant when devirtualizing addresses.
8597
8598 2014-07-07 Mark Wielaard <mjw@redhat.com>
8599
8600 * dwarf2out.c (decl_quals): New function.
8601 (modified_type_die): Take one cv_quals argument instead of two,
8602 one for const and one for volatile.
8603 (add_type_attribute): Likewise.
8604 (generic_parameter_die): Call add_type_attribute with one modifier
8605 argument.
8606 (base_type_for_mode): Likewise.
8607 (add_bounds_info): Likewise.
8608 (add_subscript_info): Likewise.
8609 (gen_array_type_die): Likewise.
8610 (gen_descr_array_type_die): Likewise.
8611 (gen_entry_point_die): Likewise.
8612 (gen_enumeration_type_die): Likewise.
8613 (gen_formal_parameter_die): Likewise.
8614 (gen_subprogram_die): Likewise.
8615 (gen_variable_die): Likewise.
8616 (gen_const_die): Likewise.
8617 (gen_field_die): Likewise.
8618 (gen_pointer_type_die): Likewise.
8619 (gen_reference_type_die): Likewise.
8620 (gen_ptr_to_mbr_type_die): Likewise.
8621 (gen_inheritance_die): Likewise.
8622 (gen_subroutine_type_die): Likewise.
8623 (gen_typedef_die): Likewise.
8624 (force_type_die): Likewise.
8625
8626 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8627
8628 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8629 if unset.
8630 * configure: Regenerate.
8631
8632 2014-08-19 Richard Biener <rguenther@suse.de>
8633
8634 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8635 DECL_EXTERNALs in BLOCKs as non-references.
8636 * tree-streamer-out.c (streamer_write_chain): Likewise.
8637
8638 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
8639 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8640 Anna Tikhonova <anna.tikhonova@intel.com>
8641 Ilya Tocar <ilya.tocar@intel.com>
8642 Andrey Turetskiy <andrey.turetskiy@intel.com>
8643 Ilya Verbin <ilya.verbin@intel.com>
8644 Kirill Yukhin <kirill.yukhin@intel.com>
8645 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8646
8647 * config/i386/sse.md
8648 (define_mode_iterator VI48_AVX512F): Delete.
8649 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8650 (define_mode_iterator VI2_AVX512VL): Ditto.
8651 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8652 Delete.
8653 (define_insn
8654 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8655 New.
8656 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8657 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8658 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8659 with VI48_AVX512F_AVX512VL): New.
8660 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8661 with VI2_AVX512VL): Ditto.
8662
8663 2014-08-19 Marek Polacek <polacek@redhat.com>
8664
8665 * doc/invoke.texi: Document -Wc99-c11-compat.
8666
8667 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8668
8669 * rtl.h (PREV_INSN): Split macro in two: the existing one,
8670 for rvalues, and...
8671 (SET_PREV_INSN): New macro, for use as an lvalue.
8672 (NEXT_INSN, SET_NEXT_INSN): Likewise.
8673
8674 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8675 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8676 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8677 (fixup_abnormal_edges): Likewise.
8678 (unlink_insn_chain): Likewise.
8679 (fixup_reorder_chain): Likewise.
8680 (cfg_layout_delete_block): Likewise.
8681 (cfg_layout_merge_blocks): Likewise.
8682 * combine.c (update_cfg_for_uncondjump): Likewise.
8683 * emit-rtl.c (link_insn_into_chain): Likewise.
8684 (remove_insn): Likewise.
8685 (delete_insns_since): Likewise.
8686 (reorder_insns_nobb): Likewise.
8687 (emit_insn_after_1): Likewise.
8688 * final.c (rest_of_clean_state): Likewise.
8689 (final_scan_insn): Likewise.
8690 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8691 * haifa-sched.c (concat_note_lists): Likewise.
8692 (remove_notes): Likewise.
8693 (restore_other_notes): Likewise.
8694 (move_insn): Likewise.
8695 (unlink_bb_notes): Likewise.
8696 (restore_bb_notes): Likewise.
8697 * jump.c (delete_for_peephole): Likewise.
8698 * optabs.c (emit_libcall_block_1): Likewise.
8699 * reorg.c (emit_delay_sequence): Likewise.
8700 (fill_simple_delay_slots): Likewise.
8701 * sel-sched-ir.c (sel_move_insn): Likewise.
8702 (sel_remove_insn): Likewise.
8703 (get_bb_note_from_pool): Likewise.
8704 * sel-sched.c (move_nop_to_previous_block): Likewise.
8705
8706 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8707 * config/c6x/c6x.c (gen_one_bundle): Likewise.
8708 (c6x_gen_bundles): Likewise.
8709 (hwloop_optimize): Likewise.
8710 * config/frv/frv.c (frv_function_prologue): Likewise.
8711 (frv_register_nop): Likewise.
8712 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8713 (ia64_reorg): Likewise.
8714 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8715 (mep_make_bundle): Likewise.
8716 (mep_bundle_insns): Likewise.
8717 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8718 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8719 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8720
8721 2014-08-19 David Malcolm <dmalcolm@redhat.com>
8722
8723 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
8724 return type from rtx to rtx_insn *.
8725 (BB_END): Likewise.
8726 (BB_HEADER): Likewise.
8727 (BB_FOOTER): Likewise.
8728 (SET_BB_HEAD): Convert to a function.
8729 (SET_BB_END): Likewise.
8730 (SET_BB_HEADER): Likewise.
8731 (SET_BB_FOOTER): Likewise.
8732
8733 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8734 Strengthen the return type from rtx to rtx_insn *. For now, this
8735 is done by adding a checked cast, but this will eventually
8736 become a field lookup.
8737 (BB_END): Likewise.
8738 (BB_HEADER): Likewise.
8739 (BB_FOOTER): Likewise.
8740 (SET_BB_HEAD): New function, from macro of same name. This is
8741 intended for use as an lvalue, and so returns an rtx& to allow
8742 in-place modification.
8743 (SET_BB_END): Likewise.
8744 (SET_BB_HEADER): Likewise.
8745 (SET_BB_FOOTER): Likewise.
8746
8747 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8748
8749 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8750 for rvalues, and...
8751 (SET_BB_HEAD): New macro, for use as a lvalue.
8752 (BB_END, SET_BB_END): Likewise.
8753 (BB_HEADER, SET_BB_HEADER): Likewise.
8754 (BB_FOOTER, SET_BB_FOOTER): Likewise.
8755
8756 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8757 of BB_* macros into SET_BB_* macros.
8758 (fix_crossing_unconditional_branches): Likewise.
8759 * caller-save.c (save_call_clobbered_regs): Likewise.
8760 (insert_one_insn): Likewise.
8761 * cfgbuild.c (find_bb_boundaries): Likewise.
8762 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8763 (outgoing_edges_match): Likewise.
8764 (try_optimize_cfg): Likewise.
8765 * cfgexpand.c (expand_gimple_cond): Likewise.
8766 (expand_gimple_tailcall): Likewise.
8767 (expand_gimple_basic_block): Likewise.
8768 (construct_exit_block): Likewise.
8769 * cfgrtl.c (delete_insn): Likewise.
8770 (create_basic_block_structure): Likewise.
8771 (rtl_delete_block): Likewise.
8772 (rtl_split_block): Likewise.
8773 (emit_nop_for_unique_locus_between): Likewise.
8774 (rtl_merge_blocks): Likewise.
8775 (block_label): Likewise.
8776 (try_redirect_by_replacing_jump): Likewise.
8777 (emit_barrier_after_bb): Likewise.
8778 (fixup_abnormal_edges): Likewise.
8779 (record_effective_endpoints): Likewise.
8780 (relink_block_chain): Likewise.
8781 (fixup_reorder_chain): Likewise.
8782 (fixup_fallthru_exit_predecessor): Likewise.
8783 (cfg_layout_duplicate_bb): Likewise.
8784 (cfg_layout_split_block): Likewise.
8785 (cfg_layout_delete_block): Likewise.
8786 (cfg_layout_merge_blocks): Likewise.
8787 * combine.c (update_cfg_for_uncondjump): Likewise.
8788 * emit-rtl.c (add_insn_after): Likewise.
8789 (remove_insn): Likewise.
8790 (reorder_insns): Likewise.
8791 (emit_insn_after_1): Likewise.
8792 * haifa-sched.c (get_ebb_head_tail): Likewise.
8793 (restore_other_notes): Likewise.
8794 (move_insn): Likewise.
8795 (sched_extend_bb): Likewise.
8796 (fix_jump_move): Likewise.
8797 * ifcvt.c (noce_process_if_block): Likewise.
8798 (dead_or_predicable): Likewise.
8799 * ira.c (update_equiv_regs): Likewise.
8800 * reg-stack.c (change_stack): Likewise.
8801 * sel-sched-ir.c (sel_move_insn): Likewise.
8802 * sel-sched.c (move_nop_to_previous_block): Likewise.
8803
8804 * config/c6x/c6x.c (hwloop_optimize): Likewise.
8805 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8806
8807 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8808
8809 * rtl.h (for_each_rtx_in_insn): New function.
8810 * rtlanal.c (for_each_rtx_in_insn): Likewise.
8811
8812 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8813
8814 * coretypes.h (class rtx_insn): Add forward declaration.
8815
8816 * rtl.h: Include is-a.h.
8817 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8818 workaround to ensure gengtype knows inheritance is occurring,
8819 whilst continuing to use the pre-existing special-casing for
8820 rtx_def.
8821 (class rtx_insn): New subclass of rtx_def, adding the
8822 invariant that we're dealing with something we can sanely use
8823 INSN_UID, NEXT_INSN, PREV_INSN on.
8824 (is_a_helper <rtx_insn *>::test): New.
8825 (is_a_helper <const rtx_insn *>::test): New.
8826
8827 2014-08-18 David Malcolm <dmalcolm@redhat.com>
8828
8829 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8830
8831 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8832
8833 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8834 comdats as extern.
8835
8836 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
8837
8838 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8839 to BUILT_IN_UNREACHABLE.
8840
8841 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
8842
8843 PR target/62011
8844 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8845 New tune flag.
8846 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8847 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8848 (ffs<mode>2): Do not expand with tzcnt for
8849 TARGET_AVOID_FALSE_DEP_FOR_BMI.
8850 (ffssi2_no_cmove): Ditto.
8851 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8852 (ctz<mode>2): New expander.
8853 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8854 (*ctz<mode>2_falsedep): New insn.
8855 (*ctz<mode>2): Rename from ctz<mode>2.
8856 (clz<mode>2_lzcnt): New expander.
8857 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8858 (*clz<mode>2_lzcnt_falsedep): New insn.
8859 (*clz<mode>2): Rename from ctz<mode>2.
8860 (popcount<mode>2): New expander.
8861 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8862 (*popcount<mode>2_falsedep): New insn.
8863 (*popcount<mode>2): Rename from ctz<mode>2.
8864 (*popcount<mode>2_cmp): Remove.
8865 (*popcountsi2_cmp_zext): Ditto.
8866
8867 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
8868
8869 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8870 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8871 * config/microblaze/microblaze.h
8872 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8873
8874 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
8875
8876 PR other/62168
8877 * configure.ac: Set install_gold_as_default to no for
8878 --enable-gold=no.
8879 * configure: Regenerated.
8880
8881 2014-08-18 Roman Gareev <gareevroman@gmail.com>
8882
8883 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8884 * config.in: Add undef of HAVE_isl.
8885 * configure: Regenerate.
8886 * configure.ac: Add definition of HAVE_isl.
8887 * graphite-blocking.c: Add checking of HAVE_isl.
8888 * graphite-dependences.c: Likewise.
8889 * graphite-interchange.c: Likewise.
8890 * graphite-isl-ast-to-gimple.c: Likewise.
8891 * graphite-optimize-isl.c: Likewise.
8892 * graphite-poly.c: Likewise.
8893 * graphite-scop-detection.c: Likewise.
8894 * graphite-sese-to-poly.c: Likewise.
8895 * graphite.c: Likewise.
8896 * toplev.c: Replace the checking of HAVE_cloog with the checking
8897 of HAVE_isl.
8898
8899 2014-08-18 Richard Biener <rguenther@suse.de>
8900
8901 PR tree-optimization/62090
8902 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8903 (fold_builtin_3): Do not fold snprintf.
8904 (fold_builtin_4): Likewise.
8905 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8906 moved from builtins.c.
8907 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8908 (gimple_fold_builtin): Do not fold sprintf here.
8909
8910 2014-08-18 Richard Biener <rguenther@suse.de>
8911
8912 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8913 code to ...
8914 (maybe_canonicalize_mem_ref_addr): ... this function.
8915 (fold_stmt_1): Apply it here before all simplification.
8916
8917 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
8918
8919 PR ipa/61800
8920 * cgraph.h (cgraph_node::create_indirect_edge): Add
8921 compute_indirect_info param.
8922 * cgraph.c (cgraph_node::create_indirect_edge): Compute
8923 indirect_info only when it is required.
8924 * cgraphclones.c (cgraph_clone_edge): Do not recompute
8925 indirect_info fore cloned indirect edge.
8926
8927 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8928 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8929 Anna Tikhonova <anna.tikhonova@intel.com>
8930 Ilya Tocar <ilya.tocar@intel.com>
8931 Andrey Turetskiy <andrey.turetskiy@intel.com>
8932 Ilya Verbin <ilya.verbin@intel.com>
8933 Kirill Yukhin <kirill.yukhin@intel.com>
8934 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8935
8936 * config/i386/sse.md
8937 (define_mode_iterator VI8_AVX2_AVX512BW): New.
8938 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8939
8940 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8941 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8942 Anna Tikhonova <anna.tikhonova@intel.com>
8943 Ilya Tocar <ilya.tocar@intel.com>
8944 Andrey Turetskiy <andrey.turetskiy@intel.com>
8945 Ilya Verbin <ilya.verbin@intel.com>
8946 Kirill Yukhin <kirill.yukhin@intel.com>
8947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8948
8949 * config/i386/sse.md
8950 (define_mode_iterator VF1_AVX512VL): New.
8951 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8952 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8953 New.
8954
8955 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8956 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8957 Anna Tikhonova <anna.tikhonova@intel.com>
8958 Ilya Tocar <ilya.tocar@intel.com>
8959 Andrey Turetskiy <andrey.turetskiy@intel.com>
8960 Ilya Verbin <ilya.verbin@intel.com>
8961 Kirill Yukhin <kirill.yukhin@intel.com>
8962 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8963
8964 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
8965 * config/i386/i386.md
8966 (define_code_iterator any_float): New.
8967 (define_code_attr floatsuffix): New.
8968 * config/i386/sse.md
8969 (define_mode_iterator VF1_128_256VL): New.
8970 (define_mode_iterator VF2_512_256VL): New.
8971 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
8972 TARGET check.
8973 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
8974 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
8975 New.
8976 (define_mode_attr qq2pssuff): New.
8977 (define_mode_attr sselongvecmode): New.
8978 (define_mode_attr sselongvecmodelower): New.
8979 (define_mode_attr sseintvecmode3): New.
8980 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
8981 New.
8982 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
8983 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
8984 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
8985 (define_insn "ufloatv2siv2df2<mask_name>"): New.
8986
8987 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
8988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8989 Anna Tikhonova <anna.tikhonova@intel.com>
8990 Ilya Tocar <ilya.tocar@intel.com>
8991 Andrey Turetskiy <andrey.turetskiy@intel.com>
8992 Ilya Verbin <ilya.verbin@intel.com>
8993 Kirill Yukhin <kirill.yukhin@intel.com>
8994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8995
8996 * config/i386/sse.md
8997 (define_mode_iterator VF2_AVX512VL): New.
8998 (define_mode_attr sseintvecmode2): New.
8999 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
9000 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
9001 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
9002 (define_insn
9003 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
9004 Ditto.
9005 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9006 Ditto.
9007 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
9008 Ditto.
9009
9010 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9011 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9012 Anna Tikhonova <anna.tikhonova@intel.com>
9013 Ilya Tocar <ilya.tocar@intel.com>
9014 Andrey Turetskiy <andrey.turetskiy@intel.com>
9015 Ilya Verbin <ilya.verbin@intel.com>
9016 Kirill Yukhin <kirill.yukhin@intel.com>
9017 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9018
9019 * config/i386/i386.md
9020 (define_insn "*movoi_internal_avx"): Add evex version.
9021 (define_insn "*movti_internal"): Ditto.
9022
9023 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9024 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9025 Anna Tikhonova <anna.tikhonova@intel.com>
9026 Ilya Tocar <ilya.tocar@intel.com>
9027 Andrey Turetskiy <andrey.turetskiy@intel.com>
9028 Ilya Verbin <ilya.verbin@intel.com>
9029 Kirill Yukhin <kirill.yukhin@intel.com>
9030 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9031
9032 * config/i386/i386.md
9033 (define_attr "isa"): Add avx512dq, noavx512dq.
9034 (define_attr "enabled"): Ditto.
9035 * config/i386/sse.md
9036 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
9037
9038 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
9039 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9040 Anna Tikhonova <anna.tikhonova@intel.com>
9041 Ilya Tocar <ilya.tocar@intel.com>
9042 Andrey Turetskiy <andrey.turetskiy@intel.com>
9043 Ilya Verbin <ilya.verbin@intel.com>
9044 Kirill Yukhin <kirill.yukhin@intel.com>
9045 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9046
9047 * config/i386/i386.c
9048 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
9049 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
9050 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
9051 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
9052 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
9053 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
9054 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
9055 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
9056 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
9057 * config/i386/sse.md
9058 (define_mode_iterator VMOVE): Allow V4TI mode.
9059 (define_mode_iterator V_AVX512VL): New.
9060 (define_mode_iterator V): New handling for AVX512VL.
9061 (define_insn "avx512f_load<mode>_mask"): Delete.
9062 (define_insn "<avx512>_load<mode>_mask"): New.
9063 (define_insn "avx512f_store<mode>_mask"): Delete.
9064 (define_insn "<avx512>_store<mode>_mask"): New.
9065
9066
9067 2014-08-18 Yury Gribov <y.gribov@samsung.com>
9068
9069 PR sanitizer/62089
9070 * asan.c (instrument_derefs): Fix bitfield check.
9071
9072 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9073
9074 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
9075 * config/rs6000/htm.md (ttest): Remove clobber.
9076 * config/rs6000/predicates.md (any_mask_operand): New predicate.
9077 (and_operand): Reformat.
9078 (and_2rld_operand): New predicate.
9079 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
9080 parameter.
9081 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
9082 parameter. Handle AND directly.
9083 (rs6000_split_logical_di): Remove last parameter.
9084 (rs6000_split_logical): Remove last parameter. Remove obsolete
9085 comment.
9086 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
9087 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
9088 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
9089 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
9090 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
9091 and 5 anonymous splitters): Delete.
9092 (and<mode>3): New expander.
9093 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
9094 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
9095 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
9096 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
9097 (floatdisf2_internal1): Remove clobbers.
9098 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
9099 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
9100 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
9101 (and<mode>3 for BOOL_128): Remove clobber.
9102 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
9103 rs6000_split_logical.
9104 (*bool<mode>3_internal for BOOL_128): Adjust call of
9105 rs6000_split_logical.
9106 (*boolc<mode>3_internal1 for BOOL_128,
9107 *boolc<mode>3_internal2 for BOOL_128,
9108 *boolcc<mode>3_internal1 for BOOL_128,
9109 *boolcc<mode>3_internal2 for BOOL_128,
9110 *eqv<mode>3_internal1 for BOOL_128,
9111 *eqv<mode>3_internal2 for BOOL_128,
9112 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
9113 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
9114 clobber.
9115 (*vec_reload_and_reg_<mptrsize>): Delete.
9116
9117 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9118
9119 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
9120 and split, *boolccsi3_internal3 and split): Delete.
9121 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
9122 *boolccdi3_internal3 and split): Delete.
9123 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
9124 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
9125
9126 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9127
9128 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
9129 and split, *boolcsi3_internal3 and split): Delete.
9130 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
9131 *boolcdi3_internal3 and split): Delete.
9132 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
9133
9134 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
9135
9136 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
9137 <'u'>: Also support printing the low-order 16 bits.
9138 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
9139 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
9140 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
9141 *booldi3_internal3 and split): Delete.
9142 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
9143 *bool<mode>3_dot2): New.
9144 (two anonymous define_splits for non_logical_cint_operand): Merge.
9145
9146 2014-08-17 Marek Polacek <polacek@redhat.com>
9147 Manuel López-Ibáñez <manu@gcc.gnu.org>
9148
9149 PR c/62059
9150 * diagnostic.c (adjust_line): Add gcc_checking_assert.
9151 (diagnostic_show_locus): Don't print caret diagnostic
9152 if a column is larger than the line_width.
9153
9154 2014-08-17 Roman Gareev <gareevroman@gmail.com>
9155
9156 * common.opt: Make the ISL AST generator to be the main code generator
9157 of Graphite.
9158
9159 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
9160
9161 * wide-int.h (generic_wide_int): Declare as class instead of struct.
9162
9163 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
9164
9165 PR target/61641
9166 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
9167 Declare.
9168 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
9169 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
9170 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
9171 Define.
9172 * config/pa/pa.md (begin_brtab): Delete insn.
9173 (end_brtab): Likewise.
9174
9175 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9176
9177 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
9178
9179 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
9180
9181 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9182 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9183 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9184 (get_dynamic_type): Remove.
9185 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9186 (clear_speculation): Bring to ipa-deivrt.h
9187 (get_class_context): Rename to ...
9188 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9189 (contains_type_p): Update.
9190 (get_dynamic_type): Rename to ...
9191 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9192 (possible_polymorphic_call_targets): UPdate.
9193 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9194 * ipa-prop.c (ipa_analyze_call_uses): Update.
9195
9196 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
9197
9198 * doc/invoke.texi (SH options): Document missing processor variant
9199 options. Remove references to Hitachi. Undocument deprecated mspace
9200 option.
9201
9202 2014-08-15 Jason Merrill <jason@redhat.com>
9203
9204 * tree.c (type_hash_canon): Uncomment assert.
9205
9206 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9207
9208 * input.h (in_system_header_at): Add comment.
9209
9210 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9211
9212 PR fortran/44054
9213 * diagnostic.c (build_message_string): Make it extern.
9214 * diagnostic.h (build_message_string): Make it extern.
9215
9216 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
9217
9218 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
9219 load/store from/to non-floating class pseudo.
9220
9221 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9222
9223 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
9224
9225 2014-08-15 Richard Biener <rguenther@suse.de>
9226
9227 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
9228 (get_constraint_for_ssa_var): Remove dead code.
9229 (get_constraint_for_1): Adjust.
9230 (find_what_var_points_to): Likewise.
9231 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
9232
9233 2014-08-15 Ilya Tocar <tocarip@gmail.com>
9234
9235 PR target/61878
9236 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
9237 (_mm512_mask_cmpge_epu32_mask): Ditto.
9238 (_mm512_cmpge_epu32_mask): Ditto.
9239 (_mm512_mask_cmpge_epi64_mask): Ditto.
9240 (_mm512_cmpge_epi64_mask): Ditto.
9241 (_mm512_mask_cmpge_epu64_mask): Ditto.
9242 (_mm512_cmpge_epu64_mask): Ditto.
9243 (_mm512_mask_cmple_epi32_mask): Ditto.
9244 (_mm512_cmple_epi32_mask): Ditto.
9245 (_mm512_mask_cmple_epu32_mask): Ditto.
9246 (_mm512_cmple_epu32_mask): Ditto.
9247 (_mm512_mask_cmple_epi64_mask): Ditto.
9248 (_mm512_cmple_epi64_mask): Ditto.
9249 (_mm512_mask_cmple_epu64_mask): Ditto.
9250 (_mm512_cmple_epu64_mask): Ditto.
9251 (_mm512_mask_cmplt_epi32_mask): Ditto.
9252 (_mm512_cmplt_epi32_mask): Ditto.
9253 (_mm512_mask_cmplt_epu32_mask): Ditto.
9254 (_mm512_cmplt_epu32_mask): Ditto.
9255 (_mm512_mask_cmplt_epi64_mask): Ditto.
9256 (_mm512_cmplt_epi64_mask): Ditto.
9257 (_mm512_mask_cmplt_epu64_mask): Ditto.
9258 (_mm512_cmplt_epu64_mask): Ditto.
9259 (_mm512_mask_cmpneq_epi32_mask): Ditto.
9260 (_mm512_mask_cmpneq_epu32_mask): Ditto.
9261 (_mm512_cmpneq_epu32_mask): Ditto.
9262 (_mm512_mask_cmpneq_epi64_mask): Ditto.
9263 (_mm512_cmpneq_epi64_mask): Ditto.
9264 (_mm512_mask_cmpneq_epu64_mask): Ditto.
9265 (_mm512_cmpneq_epu64_mask): Ditto.
9266 (_mm512_castpd_ps): Ditto.
9267 (_mm512_castpd_si512): Ditto.
9268 (_mm512_castps_pd): Ditto.
9269 (_mm512_castps_si512): Ditto.
9270 (_mm512_castsi512_ps): Ditto.
9271 (_mm512_castsi512_pd): Ditto.
9272 (_mm512_castpd512_pd128): Ditto.
9273 (_mm512_castps512_ps128): Ditto.
9274 (_mm512_castsi512_si128): Ditto.
9275 (_mm512_castpd512_pd256): Ditto.
9276 (_mm512_castps512_ps256): Ditto.
9277 (_mm512_castsi512_si256): Ditto.
9278 (_mm512_castpd128_pd512): Ditto.
9279 (_mm512_castps128_ps512): Ditto.
9280 (_mm512_castsi128_si512): Ditto.
9281 (_mm512_castpd256_pd512): Ditto.
9282 (_mm512_castps256_ps512): Ditto.
9283 (_mm512_castsi256_si512): Ditto.
9284 (_mm512_cmpeq_epu32_mask): Ditto.
9285 (_mm512_mask_cmpeq_epu32_mask): Ditto.
9286 (_mm512_mask_cmpeq_epu64_mask): Ditto.
9287 (_mm512_cmpeq_epu64_mask): Ditto.
9288 (_mm512_cmpgt_epu32_mask): Ditto.
9289 (_mm512_mask_cmpgt_epu32_mask): Ditto.
9290 (_mm512_mask_cmpgt_epu64_mask): Ditto.
9291 (_mm512_cmpgt_epu64_mask): Ditto.
9292 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
9293 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
9294 * config/i386/i386.c (enum ix86_builtins): Add
9295 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
9296 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
9297 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
9298 (bdesc_args): Add __builtin_ia32_si512_256si,
9299 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
9300 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
9301 __builtin_ia32_pd512_pd.
9302 (ix86_expand_args_builtin): Handle new FTYPEs.
9303 * config/i386/sse.md (castmode): Add 512-bit modes.
9304 (AVX512MODE2P): New.
9305 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
9306 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
9307
9308 2014-08-15 Richard Biener <rguenther@suse.de>
9309
9310 * fold-const.c (tree_swap_operands_p): Put all constants
9311 last, also strip sign-changing NOPs when considering further
9312 canonicalization. Canonicalize also when optimizing for size.
9313
9314 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9315
9316 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
9317 one_match > zero_match case to just before simple_sequence.
9318
9319 2014-08-15 Richard Biener <rguenther@suse.de>
9320
9321 * data-streamer.h (streamer_string_index, string_for_index):
9322 Remove.
9323 * data-streamer-out.c (streamer_string_index): Make static.
9324 * data-streamer-in.c (string_for_index): Likewise.
9325 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
9326 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
9327
9328 2014-08-15 Richard Biener <rguenther@suse.de>
9329
9330 PR tree-optimization/62031
9331 * tree-data-ref.c (dr_analyze_indices): Do not set
9332 DR_UNCONSTRAINED_BASE.
9333 (dr_may_alias_p): All indirect accesses have to go the
9334 formerly DR_UNCONSTRAINED_BASE path.
9335 * tree-data-ref.h (struct indices): Remove
9336 unconstrained_base member.
9337 (DR_UNCONSTRAINED_BASE): Remove.
9338
9339 2014-08-15 Jakub Jelinek <jakub@redhat.com>
9340
9341 PR middle-end/62092
9342 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
9343 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
9344 in OMP_CLAUSE_MAP in some outer target region.
9345
9346 2014-08-15 Bin Cheng <bin.cheng@arm.com>
9347
9348 * tree-ssa-loop-ivopts.c (ivopts_data): New field
9349 name_expansion_cache.
9350 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
9351 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
9352 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
9353 (difference_cannot_overflow_p): New parameter. Use affine
9354 expansion for equality check.
9355 (iv_elimination_compare_lt): Pass new argument.
9356
9357 2014-08-14 DJ Delorie <dj@redhat.com>
9358
9359 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
9360 variables to the accumulator.
9361
9362 * config/rl78/predicates.md (rl78_near_mem_operand): New.
9363 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
9364 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
9365 with far-far moves.
9366
9367 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
9368 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
9369 (umulqihi3_virt): Likewise.
9370 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
9371 (umulqihi3_real): Likewise.
9372
9373 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
9374
9375 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9376
9377 PR tree-optimization/62091
9378 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
9379 function_entry_reached.
9380 (walk_aliased_vdefs): Clear it here.
9381 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
9382
9383 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
9384
9385 * ipa-utils.h (compare_virtual_tables): Declare.
9386 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
9387
9388 2014-08-14 Marek Polacek <polacek@redhat.com>
9389
9390 DR 458
9391 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
9392 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
9393
9394 2014-08-14 Tom de Vries <tom@codesourcery.com>
9395
9396 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
9397
9398 2014-08-14 Tom de Vries <tom@codesourcery.com>
9399
9400 PR rtl-optimization/62004
9401 PR rtl-optimization/62030
9402 * ifcvt.c (rtx_interchangeable_p): New function.
9403 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
9404 * emit-rtl.h (mem_attrs_eq_p): Declare.
9405
9406 2014-08-14 Roman Gareev <gareevroman@gmail.com>
9407
9408 * graphite-scop-detection.c:
9409 Add inclusion of cp-tree.h.
9410 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
9411 in case they are pointers to object types
9412
9413 2014-08-14 Richard Biener <rguenther@suse.de>
9414
9415 * BASE-VER: Change to 5.0.0
9416
9417 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9419 Anna Tikhonova <anna.tikhonova@intel.com>
9420 Ilya Tocar <ilya.tocar@intel.com>
9421 Andrey Turetskiy <andrey.turetskiy@intel.com>
9422 Ilya Verbin <ilya.verbin@intel.com>
9423 Kirill Yukhin <kirill.yukhin@intel.com>
9424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9425
9426 * config/i386/sse.md (define_mode_attr avx512): New.
9427 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
9428 V4DI modes.
9429 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
9430 (define_mode_attr ssse3_avx2): Ditto.
9431 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
9432 (define_mode_attr avx2_avx512bw): New.
9433 (define_mode_attr ssedoublemodelower): New.
9434 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
9435 V32HI, V64QI modes.
9436 (define_mode_attr ssebytemode): Allow V8DI modes.
9437 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
9438 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
9439 (define_mode_attr ssePSmode2): New.
9440 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
9441 V16HI, V32HI modes.
9442 (define_mode_attr dbpsadbwmode): New.
9443 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
9444 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
9445 (vi8_sse4_1_avx2_avx512): New.
9446 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
9447 mode attribute.
9448 (define_mode_attr blendbits): Move before its immediate use.
9449
9450 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9452 Anna Tikhonova <anna.tikhonova@intel.com>
9453 Ilya Tocar <ilya.tocar@intel.com>
9454 Andrey Turetskiy <andrey.turetskiy@intel.com>
9455 Ilya Verbin <ilya.verbin@intel.com>
9456 Kirill Yukhin <kirill.yukhin@intel.com>
9457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9458
9459 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
9460 * config/i386/subst.md
9461 (define_mode_iterator SUBST_V): Update.
9462 (define_mode_iterator SUBST_A): Ditto.
9463 (define_subst_attr "mask_operand7"): New.
9464 (define_subst_attr "mask_operand10"): New.
9465 (define_subst_attr "mask_operand_arg34") : New.
9466 (define_subst_attr "mask_expand_op3"): New.
9467 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
9468 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
9469 (define_subst_attr "mask_avx512vl_condition"): New.
9470 (define_subst_attr "round_mask_operand4"): Ditto.
9471 (define_subst_attr "round_mask_scalar_op3"): Delete.
9472 (define_subst_attr "round_mask_op4"): New.
9473 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
9474 V16SImode.
9475 (define_subst_attr "round_modev8sf_condition"): New.
9476 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
9477 <MODE>mode.
9478 (define_subst_attr "round_saeonly_mask_operand4"): New.
9479 (define_subst_attr "round_saeonly_mask_op4"): New.
9480 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
9481 V8DImode, V16SImode.
9482 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
9483 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
9484 (define_subst_attr "mask_expand4_args"): New.
9485 (define_subst "mask_expand4"): New.
9486
9487 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9488 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9489 Anna Tikhonova <anna.tikhonova@intel.com>
9490 Ilya Tocar <ilya.tocar@intel.com>
9491 Andrey Turetskiy <andrey.turetskiy@intel.com>
9492 Ilya Verbin <ilya.verbin@intel.com>
9493 Kirill Yukhin <kirill.yukhin@intel.com>
9494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9495
9496 * config/i386/i386.md
9497 (define_attr "isa"): Add avx512bw,noavx512bw.
9498 (define_attr "enabled"): Ditto.
9499 (define_split): Add 32/64-bit mask logic.
9500 (define_insn "*k<logic>qi"): New.
9501 (define_insn "*k<logic>hi"): New.
9502 (define_insn "*anddi_1"): Add mask version.
9503 (define_insn "*andsi_1"): Ditto.
9504 (define_insn "*<code><mode>_1"): Ditto.
9505 (define_insn "*<code>hi_1"): Ditto.
9506 (define_insn "kxnor<mode>"): New.
9507 (define_insn "kunpcksi"): New.
9508 (define_insn "kunpckdi"): New.
9509 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
9510 (define_insn "*one_cmplhi2_1"): Ditto.
9511
9512 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9513 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9514 Anna Tikhonova <anna.tikhonova@intel.com>
9515 Ilya Tocar <ilya.tocar@intel.com>
9516 Andrey Turetskiy <andrey.turetskiy@intel.com>
9517 Ilya Verbin <ilya.verbin@intel.com>
9518 Kirill Yukhin <kirill.yukhin@intel.com>
9519 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9520
9521 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
9522 V32HImode.
9523
9524 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9526 Anna Tikhonova <anna.tikhonova@intel.com>
9527 Ilya Tocar <ilya.tocar@intel.com>
9528 Andrey Turetskiy <andrey.turetskiy@intel.com>
9529 Ilya Verbin <ilya.verbin@intel.com>
9530 Kirill Yukhin <kirill.yukhin@intel.com>
9531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9532
9533 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
9534 registers.
9535 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
9536 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
9537 xmm/ymm16+ when availble.
9538 * config/i386/i386.h
9539 (HARD_REGNO_NREGS): Add mask regs.
9540 (VALID_AVX512F_REG_MODE): Ditto.
9541 (VALID_AVX512F_REG_MODE) : Define.
9542 (VALID_MASK_AVX512BW_MODE): Ditto.
9543 (reg_class) (MASK_REG_P(X)): Define.
9544 * config/i386/i386.md: Do not split long moves with mask register,
9545 use kmovb if avx512bw is availible.
9546 (movdi_internal): Handle mask registers.
9547
9548 2014-08-14 Richard Biener <rguenther@suse.de>
9549
9550 PR tree-optimization/62081
9551 * tree-ssa-loop.c (pass_fix_loops): New pass.
9552 (pass_tree_loop::gate): Do not fixup loops here.
9553 * tree-pass.h (make_pass_fix_loops): Declare.
9554 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
9555
9556 2014-08-14 Richard Biener <rguenther@suse.de>
9557
9558 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
9559 (type_hash_canon): ... this and avoid 2nd lookup for the add.
9560
9561 2014-08-14 Richard Biener <rguenther@suse.de>
9562
9563 PR tree-optimization/62090
9564 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
9565 (fold_builtin_2): Do not fold sprintf.
9566 (fold_builtin_3): Likewise.
9567 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
9568 moved from builtins.c.
9569 (gimple_fold_builtin): Fold sprintf.
9570
9571 2014-08-14 Richard Biener <rguenther@suse.de>
9572
9573 PR rtl-optimization/62079
9574 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
9575 run cleanup_cfg.
9576
9577 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9578
9579 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
9580 current_function_decl.
9581
9582 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
9583
9584 * cgraph.c (cgraph_node::function_symbol): Fix wrong
9585 cgraph_function_node to cgraph_node::function_symbol
9586 refactoring.
9587
9588 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
9589
9590 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
9591 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
9592
9593 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
9594
9595 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
9596 warning.
9597
9598 2014-08-13 Roman Gareev <gareevroman@gmail.com>
9599
9600 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
9601 generator.
9602
9603 2014-08-12 Jakub Jelinek <jakub@redhat.com>
9604
9605 PR target/62025
9606 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9607 any registers that are used in mem_insn.
9608
9609 2014-08-12 Steve Ellcey <sellcey@mips.com>
9610
9611 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
9612
9613 2014-08-12 Steve Ellcey <sellcey@mips.com>
9614
9615 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9616 (MULTILIB_DIRNAMES): Ditto.
9617 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9618 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9619 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9620 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9621 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9622 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9623
9624 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9625
9626 PR target/61413
9627 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9628 of __ARM_SIZEOF_WCHAR_T.
9629
9630 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9631
9632 PR target/62098
9633 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9634 Remove unnecessary attributes.
9635
9636 2014-08-12 Yury Gribov <y.gribov@samsung.com>
9637
9638 * internal-fn.c (init_internal_fns): Fix off-by-one.
9639
9640 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9642 Anna Tikhonova <anna.tikhonova@intel.com>
9643 Ilya Tocar <ilya.tocar@intel.com>
9644 Andrey Turetskiy <andrey.turetskiy@intel.com>
9645 Ilya Verbin <ilya.verbin@intel.com>
9646 Kirill Yukhin <kirill.yukhin@intel.com>
9647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9648
9649 * config/i386/i386.c (standard_sse_constant_opcode): Use
9650 vpxord/vpternlog if avx512 is availible.
9651
9652 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
9653
9654 PR middle-end/62103
9655 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9656 bitfields, that is when size doesn't match the size of type or the
9657 size of the constructor.
9658
9659 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9660
9661 * config/rs6000/constraints.md (wh constraint): New constraint,
9662 for FP registers if direct move is available.
9663 (wi constraint): New constraint, for VSX/FP registers that can
9664 handle 64-bit integers.
9665 (wj constraint): New constraint for VSX/FP registers that can
9666 handle 64-bit integers for direct moves.
9667 (wk constraint): New constraint for VSX/FP registers that can
9668 handle 64-bit doubles for direct moves.
9669 (wy constraint): Make documentation match implementation.
9670
9671 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9672 scalar_in_vmx_p field to simplify tests of whether SFmode or
9673 DFmode can go in the Altivec registers.
9674 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9675 (rs6000_setup_reg_addr_masks): Likewise.
9676 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9677 field, and wh/wi/wj/wk constraints.
9678 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9679 the wh/wi/wj/wk constraints.
9680 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9681 upper registers, prefer VSX registers unless the operation is a
9682 memory operation with REG+OFFSET addressing.
9683
9684 * config/rs6000/vsx.md (VSr mode attribute): Add support for
9685 DImode. Change SFmode to use ww constraint instead of d to allow
9686 SF registers in the upper registers.
9687 (VSr2): Likewise.
9688 (VSr3): Likewise.
9689 (VSr5): Fix thinko in comment.
9690 (VSa): New mode attribute that is an alternative to wa, that
9691 returns the VSX register class that a mode can go in, but may not
9692 be the preferred register class.
9693 (VS_64dm): New mode attribute for appropriate register classes for
9694 referencing 64-bit elements of vectors for direct moves and normal
9695 moves.
9696 (VS_64reg): Likewise.
9697 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9698 register allocator to only registers the data type can handle.
9699 (vsx_le_perm_load_<mode>): Likewise.
9700 (vsx_le_perm_store_<mode>): Likewise.
9701 (vsx_xxpermdi2_le_<mode>): Likewise.
9702 (vsx_xxpermdi4_le_<mode>): Likewise.
9703 (vsx_lxvd2x2_le_<mode>): Likewise.
9704 (vsx_lxvd2x4_le_<mode>): Likewise.
9705 (vsx_stxvd2x2_le_<mode>): Likewise.
9706 (vsx_add<mode>3): Likewise.
9707 (vsx_sub<mode>3): Likewise.
9708 (vsx_mul<mode>3): Likewise.
9709 (vsx_div<mode>3): Likewise.
9710 (vsx_tdiv<mode>3_internal): Likewise.
9711 (vsx_fre<mode>2): Likewise.
9712 (vsx_neg<mode>2): Likewise.
9713 (vsx_abs<mode>2): Likewise.
9714 (vsx_nabs<mode>2): Likewise.
9715 (vsx_smax<mode>3): Likewise.
9716 (vsx_smin<mode>3): Likewise.
9717 (vsx_sqrt<mode>2): Likewise.
9718 (vsx_rsqrte<mode>2): Likewise.
9719 (vsx_tsqrt<mode>2_internal): Likewise.
9720 (vsx_fms<mode>4): Likewise.
9721 (vsx_nfma<mode>4): Likewise.
9722 (vsx_eq<mode>): Likewise.
9723 (vsx_gt<mode>): Likewise.
9724 (vsx_ge<mode>): Likewise.
9725 (vsx_eq<mode>_p): Likewise.
9726 (vsx_gt<mode>_p): Likewise.
9727 (vsx_ge<mode>_p): Likewise.
9728 (vsx_xxsel<mode>): Likewise.
9729 (vsx_xxsel<mode>_uns): Likewise.
9730 (vsx_copysign<mode>3): Likewise.
9731 (vsx_float<VSi><mode>2): Likewise.
9732 (vsx_floatuns<VSi><mode>2): Likewise.
9733 (vsx_fix_trunc<mode><VSi>2): Likewise.
9734 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9735 (vsx_x<VSv>r<VSs>i): Likewise.
9736 (vsx_x<VSv>r<VSs>ic): Likewise.
9737 (vsx_btrunc<mode>2): Likewise.
9738 (vsx_b2trunc<mode>2): Likewise.
9739 (vsx_floor<mode>2): Likewise.
9740 (vsx_ceil<mode>2): Likewise.
9741 (vsx_<VS_spdp_insn>): Likewise.
9742 (vsx_xscvspdp): Likewise.
9743 (vsx_xvcvspuxds): Likewise.
9744 (vsx_float_fix_<mode>2): Likewise.
9745 (vsx_set_<mode>): Likewise.
9746 (vsx_extract_<mode>_internal1): Likewise.
9747 (vsx_extract_<mode>_internal2): Likewise.
9748 (vsx_extract_<mode>_load): Likewise.
9749 (vsx_extract_<mode>_store): Likewise.
9750 (vsx_splat_<mode>): Likewise.
9751 (vsx_xxspltw_<mode>): Likewise.
9752 (vsx_xxspltw_<mode>_direct): Likewise.
9753 (vsx_xxmrghw_<mode>): Likewise.
9754 (vsx_xxmrglw_<mode>): Likewise.
9755 (vsx_xxsldwi_<mode>): Likewise.
9756 (vsx_xscvdpspn): Tighten constraints to only use register classes
9757 the types use.
9758 (vsx_xscvspdpn): Likewise.
9759 (vsx_xscvdpspn_scalar): Likewise.
9760
9761 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9762 wj, and wk constraints.
9763 (GPR_REG_CLASS_P): New helper macro for register classes targeting
9764 general purpose registers.
9765
9766 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9767 direct moves.
9768 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9769 DImode instead of wm. Use wk constraint for direct move of DFmode
9770 instead of wm.
9771 (extendsidi2_lfiwax): Likewise.
9772 (lfiwax): Likewise.
9773 (lfiwzx): Likewise.
9774 (movdi_internal64): Likewise.
9775
9776 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9777 wk constraints. Make the wy constraint documentation match them
9778 implementation.
9779
9780 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
9781
9782 Replacement of isl_int by isl_val
9783 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9784 (compute_bounds_for_param): use isl_val instead of isl_int
9785 (compute_bounds_for_loop): likewise
9786 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9787 (build_linearized_memory_access): use isl_val instead of isl_int
9788 (pdr_stride_in_loop): likewise
9789 * graphite-optimize-isl.c:
9790 (getPrevectorMap): use isl_val instead of isl_int
9791 * graphite-poly.c:
9792 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9793 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9794 (extern the_isl_ctx): declare
9795 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9796 (extract_affine_gmp): likewise
9797 (wrap): likewise
9798 (build_loop_iteration_domains): likewise
9799 (add_param_constraints): likewise
9800
9801 2014-08-11 Richard Biener <rguenther@suse.de>
9802
9803 PR tree-optimization/62075
9804 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9805 handle uses in patterns.
9806
9807 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9808 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9809 Anna Tikhonova <anna.tikhonova@intel.com>
9810 Ilya Tocar <ilya.tocar@intel.com>
9811 Andrey Turetskiy <andrey.turetskiy@intel.com>
9812 Ilya Verbin <ilya.verbin@intel.com>
9813 Kirill Yukhin <kirill.yukhin@intel.com>
9814 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9815
9816 * common/config/i386/i386-common.c
9817 (OPTION_MASK_ISA_AVX512VL_SET): Define.
9818 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9819 (ix86_handle_option): Handle OPT_mavx512vl.
9820 * config/i386/cpuid.h (bit_AVX512VL): Define.
9821 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9822 set -mavx512vl accordingly.
9823 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9824 OPTION_MASK_ISA_AVX512VL.
9825 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9826 (ix86_option_override_internal): Define PTA_AVX512VL, handle
9827 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9828 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9829 * config/i386/i386.h (TARGET_AVX512VL): Define.
9830 (TARGET_AVX512VL_P(x)): Ditto.
9831 * config/i386/i386.opt: Add mavx512vl.
9832
9833 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
9834
9835 PR tree-optimization/62073
9836 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9837 a basic block.
9838
9839 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9840 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9841 Anna Tikhonova <anna.tikhonova@intel.com>
9842 Ilya Tocar <ilya.tocar@intel.com>
9843 Andrey Turetskiy <andrey.turetskiy@intel.com>
9844 Ilya Verbin <ilya.verbin@intel.com>
9845 Kirill Yukhin <kirill.yukhin@intel.com>
9846 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9847
9848 * common/config/i386/i386-common.c
9849 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9850 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9851 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9852 (ix86_handle_option): Handle OPT_mavx512bw.
9853 * config/i386/cpuid.h (bit_AVX512BW): Define.
9854 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9855 set -mavx512bw accordingly.
9856 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9857 OPTION_MASK_ISA_AVX512BW.
9858 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9859 (ix86_option_override_internal): Define PTA_AVX512BW, handle
9860 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9861 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9862 * config/i386/i386.h (TARGET_AVX512BW): Define.
9863 (TARGET_AVX512BW_P(x)): Ditto.
9864 * config/i386/i386.opt: Add mavx512bw.
9865
9866 2014-08-11 Richard Biener <rguenther@suse.de>
9867
9868 PR tree-optimization/62070
9869 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9870 Remove SSA checking.
9871
9872 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9873
9874 * asan.c (asan_check_flags): New enum.
9875 (build_check_stmt_with_calls): Removed function.
9876 (build_check_stmt): Split inlining logic to
9877 asan_expand_check_ifn.
9878 (instrument_derefs): Rename parameter.
9879 (instrument_mem_region_access): Rename parameter.
9880 (instrument_strlen_call): Likewise.
9881 (asan_expand_check_ifn): New function.
9882 (asan_instrument): Remove old code.
9883 (pass_sanopt::execute): Change handling of
9884 asan-instrumentation-with-call-threshold.
9885 (asan_clear_shadow): Fix formatting.
9886 (asan_function_start): Likewise.
9887 (asan_emit_stack_protection): Likewise.
9888 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9889 Update description.
9890 * internal-fn.c (expand_ASAN_CHECK): New function.
9891 * internal-fn.def (ASAN_CHECK): New internal function.
9892 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9893 Update description.
9894 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9895 * tree.c: Small comment fix.
9896
9897 2014-08-11 Yury Gribov <y.gribov@samsung.com>
9898
9899 * gimple.c (gimple_call_fnspec): Support internal functions.
9900 (gimple_call_return_flags): Use const.
9901 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9902 * internal-fn.def: Add fnspec information.
9903 * internal-fn.h (internal_fn_fnspec): New function.
9904 (init_internal_fns): Declare new function.
9905 * internal-fn.c (internal_fn_fnspec_array): New global variable.
9906 (init_internal_fns): New function.
9907 * tree-core.h: Update macro call.
9908 * tree.c (build_common_builtin_nodes): Initialize internal fns.
9909
9910 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
9911
9912 * lto-streamer.h (struct output_block::symbol): Change from
9913 struct symtab_node to plain symtab_node.
9914 (referenced_from_this_partition_p): Change first parameter
9915 from struct symtab_node to plain symtab_node.
9916
9917 2014-08-10 Marek Polacek <polacek@redhat.com>
9918
9919 PR c/51849
9920 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9921
9922 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
9923
9924 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9925 DECL correctly; do not give up on types in static storage.
9926
9927 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
9928
9929 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9930
9931 2014-08-09 Roman Gareev <gareevroman@gmail.com>
9932
9933 * graphite-isl-ast-to-gimple.c:
9934 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9935
9936 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9937
9938 2014-08-08 Guozhi Wei <carrot@google.com>
9939
9940 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9941
9942 2014-08-08 Cary Coutant <ccoutant@google.com>
9943
9944 * dwarf2out.c (get_skeleton_type_unit): Remove.
9945 (output_skeleton_debug_sections): Remove skeleton type units.
9946 (output_comdat_type_unit): Likewise.
9947 (dwarf2out_finish): Likewise.
9948
9949 2014-08-07 Yi Yang <ahyangyi@google.com>
9950
9951 * predict.c (expr_expected_value_1): Remove the redundant assignment.
9952
9953 2014-08-08 Richard Biener <rguenther@suse.de>
9954
9955 * lto-streamer.h (struct lto_input_block): Make it a class
9956 with a constructor.
9957 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
9958 (struct lto_function_header, struct lto_simple_header,
9959 struct lto_simple_header_with_strings,
9960 struct lto_decl_header, struct lto_function_header): Make
9961 a simple inheritance hieararchy. Remove unused fields.
9962 (struct lto_asm_header): Remove.
9963 * lto-streamer-out.c (produce_asm): Adjust.
9964 (lto_output_toplevel_asms): Likewise.
9965 (produce_asm_for_decls): Likewise.
9966 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9967 * data-streamer-in.c (string_for_index): Likewise.
9968 * ipa-inline-analysis.c (inline_read_section): Likewise.
9969 * ipa-prop.c (ipa_prop_read_section): Likewise.
9970 (read_replacements_section): Likewise.
9971 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
9972 * lto-section-in.c (lto_create_simple_input_block): Likewise.
9973 (lto_destroy_simple_input_block): Likewise.
9974 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
9975 (lto_input_toplevel_asms): Likewise.
9976
9977 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
9978 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9979 Anna Tikhonova <anna.tikhonova@intel.com>
9980 Ilya Tocar <ilya.tocar@intel.com>
9981 Andrey Turetskiy <andrey.turetskiy@intel.com>
9982 Ilya Verbin <ilya.verbin@intel.com>
9983 Kirill Yukhin <kirill.yukhin@intel.com>
9984 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9985
9986 * common/config/i386/i386-common.c
9987 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
9988 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
9989 (ix86_handle_option): Handle OPT_mavx512dq.
9990 * config/i386/cpuid.h (bit_AVX512DQ): Define.
9991 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
9992 set -mavx512dq accordingly.
9993 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9994 OPTION_MASK_ISA_AVX512DQ.
9995 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
9996 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
9997 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
9998 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
9999 * config/i386/i386.h (TARGET_AVX512DQ): Define.
10000 (TARGET_AVX512DQ_P(x)): Ditto.
10001 * config/i386/i386.opt: Add mavx512dq.
10002
10003 2014-08-08 Richard Biener <rguenther@suse.de>
10004
10005 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
10006 target_percent, target_percent_s): Export.
10007 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
10008 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
10009 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
10010 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
10011 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
10012 Move to gimple-fold.c.
10013 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
10014 strcat and strcpy.
10015 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
10016 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
10017 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
10018 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
10019 (rewrite_call_expr_array): Remove.
10020 (fold_builtin_sprintf_chk): Likewise.
10021 (fold_builtin_snprintf_chk): Likewise.
10022 (fold_builtin_varargs): Remove handling of sprintf_chk,
10023 vsprintf_chk, snprintf_chk and vsnprintf_chk.
10024 (gimple_fold_builtin_sprintf_chk): Remove.
10025 (gimple_fold_builtin_snprintf_chk): Likewise.
10026 (gimple_fold_builtin_varargs): Likewise.
10027 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
10028 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
10029 * gimple.c (gimple_seq_add_seq_without_update): New function.
10030 * gimple.h (gimple_seq_add_seq_without_update): Declare.
10031 * gimple-fold.c: Include output.h.
10032 (gsi_replace_with_seq_vops): New function, split out from ...
10033 (gimplify_and_update_call_from_tree): ... here.
10034 (replace_call_with_value): New function.
10035 (replace_call_with_call_and_fold): Likewise.
10036 (var_decl_component_p): Moved from builtins.c.
10037 (gimple_fold_builtin_memory_op): Moved from builtins.c
10038 fold_builtin_memory_op and rewritten to GIMPLE.
10039 (gimple_fold_builtin_memset): Likewise.
10040 (gimple_fold_builtin_strcpy): Likewise.
10041 (gimple_fold_builtin_strncpy): Likewise.
10042 (gimple_fold_builtin_strcat): Likewise.
10043 (gimple_fold_builtin_fputs): Likewise.
10044 (gimple_fold_builtin_memory_chk): Likewise.
10045 (gimple_fold_builtin_stxcpy_chk): Likewise.
10046 (gimple_fold_builtin_stxncpy_chk): Likewise.
10047 (gimple_fold_builtin_snprintf_chk): Likewise.
10048 (gimple_fold_builtin_sprintf_chk): Likewise.
10049 (gimple_fold_builtin_strlen): New function.
10050 (gimple_fold_builtin_with_strlen): New function split out from
10051 gimple_fold_builtin.
10052 (gimple_fold_builtin): Change signature and handle
10053 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
10054 here. Call gimple_fold_builtin_with_strlen.
10055 (gimple_fold_call): Adjust.
10056
10057 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10058
10059 * calls.c (precompute_arguments): Check
10060 promoted_for_signed_and_unsigned_p and set the promoted mode.
10061 (promoted_for_signed_and_unsigned_p): New function.
10062 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
10063 and set the promoted mode.
10064 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
10065 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
10066 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
10067
10068
10069 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
10070
10071 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
10072 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10073 (expand_call): Likewise.
10074 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
10075 to get promoted mode.
10076 * combine.c (record_promoted_value): Skip > 0 comparison with
10077 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
10078 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
10079 of SUBREG_PROMOTED_UNSIGNED_P.
10080 (convert_modes): Likewise.
10081 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
10082 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
10083 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
10084 SUBREG_PROMOTED_UNSIGNED_SET.
10085 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
10086 instead of SUBREG_PROMOTED_UNSIGNED_SET.
10087 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
10088 SUBREG_PROMOTED_SET.
10089 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
10090 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
10091 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
10092 of SUBREG_PROMOTED_UNSIGNED_P.
10093 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
10094 (SUBREG_PROMOTED_SET): New define.
10095 (SUBREG_PROMOTED_GET): Likewise.
10096 (SUBREG_PROMOTED_SIGN): Likewise.
10097 (SUBREG_PROMOTED_SIGNED_P): Likewise.
10098 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
10099 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
10100 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
10101 instead of SUBREG_PROMOTED_UNSIGNED_GET.
10102 (nonzero_bits1): Skip > 0 comparison with the results as
10103 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
10104 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
10105 of !SUBREG_PROMOTED_UNSIGNED_P.
10106 * simplify-rtx.c (simplify_unary_operation_1): Use new
10107 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
10108 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
10109 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
10110 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
10111
10112 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
10113
10114 * ipa-devirt.c: Include gimple-pretty-print.h
10115 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
10116 further tests.
10117 (decl_maybe_in_construction_p): Fix conditional on cdtor check
10118 (get_polymorphic_call_info): Fix return value
10119 (type_change_info): New sturcture based on ipa-prop
10120 variant.
10121 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
10122 based on ipa-prop variant.
10123 (extr_type_from_vtbl_ptr_store): New function
10124 based on ipa-prop variant.
10125 (record_known_type): New function.
10126 (check_stmt_for_type_change): New function.
10127 (get_dynamic_type): New function.
10128 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
10129 * tree-ssa-pre.c: ipa-utils.h
10130 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
10131 machinery; sanity check with ipa-prop devirtualization.
10132 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
10133 polymorphic flag.
10134
10135 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10136
10137 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
10138 * alias.c, cfgexpand.c, cgraphbuild.c,
10139 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
10140 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
10141 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
10142 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
10143 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
10144 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10145 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
10146 dse.c, except.c, gengtype.c, gimple-expr.c,
10147 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
10148 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
10149 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
10150 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
10151 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
10152 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
10153 pointer-set.h.
10154 * pointer-set.c: Remove file.
10155 * pointer-set.h: Remove file.
10156
10157 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10158
10159 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
10160 * config/arm/types.md (f_sels, f_seld): Delete.
10161
10162 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10163
10164 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
10165 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
10166 (aarch64_movdi_<mode>high): Likewise.
10167 (aarch64_mov<mode>high_di): Likewise.
10168 (aarch64_movdi_<mode>low): Likewise.
10169 (aarch64_mov<mode>low_di): Likewise.
10170 (aarch64_movtilow_tilow): Likewise.
10171 Add comment explaining usage of fp,simd attributes and of
10172 TARGET_FLOAT and TARGET_SIMD.
10173
10174 2014-08-07 Ian Bolton <ian.bolton@arm.com>
10175 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10176
10177 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
10178 Use MOVN when one of the half-words is 0xffff.
10179
10180 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10181
10182 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
10183
10184 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10185
10186 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
10187 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
10188 (rfs_str): String corresponding to RFS_* constants.
10189 (rank_for_schedule_stats_t): New typedef.
10190 (rank_for_schedule_stats): New static variable.
10191 (rfs_result): New static function.
10192 (rank_for_schedule): Track statistics for deciding heuristics.
10193 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
10194 static functions.
10195 (ready_sort): Use them for debug printouts.
10196 (schedule_block): Init statistics state. Print statistics on
10197 rank_for_schedule decisions.
10198
10199 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10200
10201 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
10202
10203 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
10204
10205 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
10206 constraint.
10207
10208 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
10209
10210 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
10211 function to not conflict.
10212 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
10213 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
10214 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
10215 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
10216 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
10217 of pointer_map.
10218
10219 2014-08-07 Marek Polacek <polacek@redhat.com>
10220
10221 * fold-const.c (fold_binary_loc): Add folding of
10222 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
10223
10224 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
10225
10226 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
10227 instead of type size.
10228 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10229
10230 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
10231
10232 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
10233 (*thumb1_movqi_insn): Likewise.
10234 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
10235
10236 2014-08-07 Tom de Vries <tom@codesourcery.com>
10237
10238 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10239 (glibc_2_11_or_earlier): Remove effective-target keywords.
10240
10241 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10242
10243 * config/arm/arm.c (bdesc_2arg): Fix typo.
10244 (arm_atomic_assign_expand_fenv): Remove The default implementation.
10245
10246 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
10247
10248 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
10249
10250 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
10251
10252 PR debug/61923
10253 * haifa-sched.c (advance_one_cycle): Fix dump.
10254 (schedule_block): Don't advance cycle if we are already at the
10255 beginning of the cycle.
10256
10257 2014-08-06 Martin Jambor <mjambor@suse.cz>
10258
10259 PR ipa/61393
10260 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
10261
10262 2014-08-06 Richard Biener <rguenther@suse.de>
10263
10264 PR lto/62034
10265 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
10266 SCCs here.
10267 (lto_input_tree): Pop SCCs here.
10268
10269 2014-08-06 Richard Biener <rguenther@suse.de>
10270
10271 PR tree-optimization/61320
10272 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
10273 handle misaligned loads.
10274
10275 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
10276
10277 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
10278 (aarch64_expand_vec_perm_const): Check for dup before zip.
10279
10280 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10281
10282 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
10283 CONST_INT_P instead of GET_CODE and compare.
10284 (aarch64_select_cc_mode): Likewise.
10285 (aarch64_print_operand): Likewise.
10286 (aarch64_rtx_costs): Likewise.
10287 (aarch64_simd_valid_immediate): Likewise.
10288 (aarch64_simd_check_vect_par_cnst_half): Likewise.
10289 (aarch64_simd_emit_pair_result_insn): Likewise.
10290
10291 2014-08-05 David Malcolm <dmalcolm@redhat.com>
10292
10293 * gdbhooks.py (find_gcc_source_dir): New helper function.
10294 (class PassNames): New class, locating and parsing passes.def.
10295 (class BreakOnPass): New command "break-on-pass".
10296
10297 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
10298
10299 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
10300 getting olde.
10301
10302 2014-08-05 Richard Biener <rguenther@suse.de>
10303
10304 PR rtl-optimization/61672
10305 * emit-rtl.h (mem_attrs_eq_p): Declare.
10306 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
10307 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
10308 * cfgcleanup.c (merge_memattrs): Likewise.
10309 Include emit-rtl.h.
10310
10311 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10312
10313 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
10314 rather than singleton vectors.
10315 (vqdmlsls_lane_s32): Likewise.
10316
10317 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10318
10319 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
10320 Use VSDQ_HSI mode iterator.
10321 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10322 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
10323 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
10324 Use BUILTIN_VDQHS macro.
10325 (sqrdmulh_laneq): Likewise.
10326 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
10327 (vqdmlals_laneq_s32): Likewise.
10328 (vqdmlslh_laneq_s16): Likewise.
10329 (vqdmlsls_laneq_s32): Likewise.
10330 (vqdmulhh_laneq_s16): Likewise.
10331 (vqdmulhs_laneq_s32): Likewise.
10332 (vqrdmulhh_laneq_s16): Likewise.
10333 (vqrdmulhs_laneq_s32): Likewise.
10334
10335 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10336
10337 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
10338 (vmuld_laneq_f64): Likewise.
10339 (vmuls_laneq_f32): Likewise.
10340 (vmul_n_f64): Likewise.
10341 (vmuld_lane_f64): Reimplement in C.
10342 (vmuls_lane_f32): Likewise.
10343
10344 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10345
10346 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
10347 to reservation.
10348 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
10349
10350 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10351
10352 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
10353 (rbitsi2): Likewise.
10354 (*arm_rev): Set predicable and predicable_short_it attributes.
10355
10356 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10357
10358 * convert.c (convert_to_integer): Guard transformation to lrint by
10359 -fno-math-errno.
10360
10361 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10362
10363 * config/aarch64/aarch64-builtins.c
10364 (aarch64_simd_builtin_type_mode): Delete.
10365 (v8qi_UP): Remap to V8QImode.
10366 (v4hi_UP): Remap to V4HImode.
10367 (v2si_UP): Remap to V2SImode.
10368 (v2sf_UP): Remap to V2SFmode.
10369 (v1df_UP): Remap to V1DFmode.
10370 (di_UP): Remap to DImode.
10371 (df_UP): Remap to DFmode.
10372 (v16qi_UP):V16QImode.
10373 (v8hi_UP): Remap to V8HImode.
10374 (v4si_UP): Remap to V4SImode.
10375 (v4sf_UP): Remap to V4SFmode.
10376 (v2di_UP): Remap to V2DImode.
10377 (v2df_UP): Remap to V2DFmode.
10378 (ti_UP): Remap to TImode.
10379 (ei_UP): Remap to EImode.
10380 (oi_UP): Remap to OImode.
10381 (ci_UP): Map to CImode.
10382 (xi_UP): Remap to XImode.
10383 (si_UP): Remap to SImode.
10384 (sf_UP): Remap to SFmode.
10385 (hi_UP): Remap to HImode.
10386 (qi_UP): Remap to QImode.
10387 (aarch64_simd_builtin_datum): Make mode a machine_mode.
10388 (VAR1): Build builtin name.
10389 (aarch64_init_simd_builtins): Remove dead code.
10390
10391 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10392
10393 * graphite-isl-ast-to-gimple.c:
10394 (set_options): New function.
10395 (scop_to_isl_ast): Add calling of set_options.
10396
10397 2014-08-05 Jakub Jelinek <jakub@redhat.com>
10398
10399 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
10400 (analyze_iv_to_split_insn): Don't initialize them.
10401 (get_ivts_expr): Removed.
10402 (allocate_basic_variable, insert_base_initialization): Use
10403 SET_SRC instead of *get_ivts_expr.
10404 (split_iv): Use &SET_SRC instead of get_ivts_expr.
10405
10406 2014-08-05 Roman Gareev <gareevroman@gmail.com>
10407
10408 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
10409 (translate_isl_ast_for_loop): Add checking of the
10410 flag_loop_parallelize_all.
10411 (ast_build_before_for): New function.
10412 (scop_to_isl_ast): Add checking of the
10413 flag_loop_parallelize_all.
10414 * graphite-dependences.c: Move the defenition of the
10415 scop_get_dependences from graphite-optimize-isl.c to this file.
10416 (apply_schedule_on_deps): Add checking of the ux's emptiness.
10417 (carries_deps): Add checking of the x's value.
10418 * graphite-optimize-isl.c: Move the defenition of the
10419 scop_get_dependences to graphite-dependences.c.
10420 * graphite-poly.h: Add declarations of scop_get_dependences
10421 and carries_deps.
10422
10423 2014-08-04 Rohit <rohitarulraj@freescale.com>
10424
10425 PR target/60102
10426 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
10427 names.
10428 (alt_reg_names): Likewise.
10429 (rs6000_dwarf_register_span): For SPE high registers, replace
10430 dwarf register numbers with GCC hard register numbers.
10431 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
10432 (rs6000_dbx_register_number): For SPE high registers, return dwarf
10433 register number for the corresponding GCC hard register number.
10434 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
10435 newly added GCC hard register numbers for SPE high registers.
10436 (DWARF_FRAME_REGISTERS): Likewise.
10437 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
10438 (DWARF_FRAME_REGNUM): Likewise.
10439 (FIXED_REGISTERS): Likewise.
10440 (CALL_USED_REGISTERS): Likewise.
10441 (CALL_REALLY_USED_REGISTERS): Likewise.
10442 (REG_ALLOC_ORDER): Likewise.
10443 (enum reg_class): Likewise.
10444 (REG_CLASS_NAMES): Likewise.
10445 (REG_CLASS_CONTENTS): Likewise.
10446 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
10447
10448 2014-08-04 Richard Biener <rguenther@suse.de>
10449
10450 * gimple-fold.h (gimple_fold_builtin): Remove.
10451 * gimple-fold.c (gimple_fold_builtin): Make static.
10452 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
10453 fold_stmt, not gimple_fold_builtin.
10454
10455 2014-08-04 Martin Liska <mliska@suse.cz>
10456
10457 * cgraph.h (csi_end_p): Removed.
10458 (csi_next): Likewise.
10459 (csi_node): Likewise.
10460 (csi_start): Likewise.
10461 (cgraph_node_in_set_p): Likewise.
10462 (cgraph_node_set_size): Likewise.
10463 (vsi_end_p): Likewise.
10464 (vsi_next): Likewise.
10465 (vsi_node): Likewise.
10466 (vsi_start): Likewise.
10467 (varpool_node_set_size): Likewise.
10468 (cgraph_node_set_nonempty_p): Likewise.
10469 (varpool_node_set_nonempty_p): Likewise.
10470 * cgraphunit.c (cgraph_process_new_functions): vec replaces
10471 cgraph_node_set.
10472 * ipa-inline-transform.c: Likewise.
10473 * ipa-utils.c (cgraph_node_set_new): Removed.
10474 (cgraph_node_set_add): Likewise.
10475 (cgraph_node_set_remove): Likewise.
10476 (cgraph_node_set_find): Likewise.
10477 (dump_cgraph_node_set): Likewise.
10478 (debug_cgraph_node_set): Likewise.
10479 (free_cgraph_node_set): Likewise.
10480 (varpool_node_set_new): Likewise.
10481 (varpool_node_set_add): Likewise.
10482 (varpool_node_set_remove): Likewise.
10483 (varpool_node_set_find): Likewise.
10484 (dump_varpool_node_set): Likewise.
10485 (free_varpool_node_set): Likewise.
10486 (debug_varpool_node_set): Likewise.
10487 * tree-emutls.c (struct tls_var_data):
10488 (emutls_index): Removed.
10489 (emutls_decl): Likewise.
10490 (gen_emutls_addr): Function implementation uses newly added
10491 hash_map<varpool_node *, tls_var_data>.
10492 (clear_access_vars): Likewise.
10493 (create_emultls_var): Likewise.
10494 (ipa_lower_emutls): Likewise.
10495 (reset_access): New function.
10496
10497 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10498
10499 * config/i386/i386.c (ix86_option_override_internal): Add
10500 PTA_RDRND and PTA_MOVBE for bdver4.
10501
10502 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10503 James Greenhalgh <james.greenhalgh@arm.com>
10504
10505 * doc/md.texi (clrsb): Document.
10506 (clz): Change reference to x into operand 1.
10507 (ctz): Likewise.
10508 (popcount): Likewise.
10509
10510 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10511
10512 PR target/61713
10513 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
10514 move to subtarget in serial version if result is ignored.
10515
10516 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10517 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10518
10519 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
10520 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
10521 (sched_analyze_insn): Update use of try_group_insn to
10522 sched_macro_fuse_insns.
10523 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
10524 arguments that are not conditional jumps.
10525
10526 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10527
10528 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
10529 family information. Handle BTVER2 cpu with cpuid family value.
10530
10531 2014-08-04 Tom de Vries <tom@codesourcery.com>
10532
10533 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10534 (glibc_2_11_or_earlier): Document effective-target keywords.
10535
10536 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10537
10538 * ipa-devirt.c (odr_type_warn_count): Add type.
10539 (possible_polymorphic_call_targets): Set it.
10540 (ipa_devirt): Use it.
10541
10542 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
10543
10544 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
10545 Document.
10546 * ipa-devirt.c: Include hash-map.h
10547 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
10548 (clear_speculation): Break out of ...
10549 (get_class_context): ... here; speed up handling obviously useless
10550 speculations.
10551 (odr_type_warn_count, decl_warn_count): New structures.
10552 (final_warning_record): New structure.
10553 (final_warning_records): New static variable.
10554 (possible_polymorphic_call_targets): Cleanup handling of
10555 speculative info; do not build speculation when user do not care;
10556 record info about warnings when asked for.
10557 (add_decl_warning): New function.
10558 (type_warning_cmp): New function.
10559 (decl_warning_cmp): New function.
10560 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
10561 (gate): Enable pass when warnings are requested.
10562 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
10563 options.
10564
10565 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10566
10567 * hash-map.h (default_hashmap_traits::mark_key_deleted):
10568 Fix cast.
10569 (hash_map::remove): New method.
10570 (hash_map::traverse): New method.
10571 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
10572 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
10573 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
10574 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
10575 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
10576 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
10577 pointer_map.
10578
10579 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
10580
10581 * hash-set.h: new File.
10582 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
10583 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
10584 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
10585 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
10586 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
10587 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
10588 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
10589 varpool.c: Use hash_set instead of pointer_set.
10590
10591 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
10592
10593 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
10594
10595 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10596
10597 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
10598 for frame access when strict_p is false.
10599
10600 2014-08-01 Renlin Li <renlin.li@arm.com>
10601 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10602
10603 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10604 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10605 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10606 Declaration.
10607 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10608 predicate.
10609 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10610 aarch64_mem_pair_offset.
10611
10612 2014-08-01 Jiong Wang <jiong.wang@arm.com>
10613
10614 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10615 offset.
10616 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10617 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10618
10619 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
10620
10621 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10622
10623 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
10624
10625 PR regression/61510
10626 * cgraphunit.c (analyze_functions): Use get_create rather than get
10627 for decls which are clones of abstract functions.
10628
10629 2014-08-01 Martin Liska <mliska@suse.cz>
10630
10631 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10632 * ipa-prop.h (count_formal_params): Global function created from static.
10633 * ipa-prop.c (count_formal_params): Likewise.
10634 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10635 profiles for semantically equivalent functions.
10636 * passes.c (do_per_function): If we load body of a function
10637 during WPA, this condition should behave same.
10638 * varpool.c (ctor_for_folding): More tolerant assert for variable
10639 aliases created during WPA.
10640
10641 2014-08-01 Martin Liska <mliska@suse.cz>
10642
10643 * doc/invoke.texi (Options That Control Optimization): Documentation
10644 for -foptimize-strlen introduced. Optimization levels default options
10645 fixed.
10646
10647 2014-08-01 Jakub Jelinek <jakub@redhat.com>
10648
10649 * opts.c (common_handle_option): Handle -fsanitize=alignment.
10650 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10651 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10652 type to bool.
10653 * stor-layout.h (min_align_of_type): New prototype.
10654 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10655 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
10656 check.
10657 * ubsan.c: Include builtins.h.
10658 (ubsan_expand_bounds_ifn): Change return type to bool,
10659 always return true.
10660 (ubsan_expand_null_ifn): Change return type to bool, change
10661 argument to gimple_stmt_iterator *. Handle both null and alignment
10662 sanitization, take type from ckind argument's type rather than
10663 first argument.
10664 (instrument_member_call): Removed.
10665 (instrument_mem_ref): Remove t argument, add mem and base arguments.
10666 Handle both null and alignment sanitization, don't say whole
10667 struct access is member access. Build 3 argument IFN_UBSAN_NULL
10668 call instead of 2 argument.
10669 (instrument_null): Adjust instrument_mem_ref caller. Don't
10670 instrument calls here.
10671 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10672 like SANITIZE_NULL.
10673 * stor-layout.c (min_align_of_type): New function.
10674 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10675 Or it into SANITIZE_UNDEFINED.
10676 * doc/invoke.texi (-fsanitize=alignment): Document.
10677
10678 2014-07-31 Andi Kleen <ak@linux.intel.com>
10679
10680 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10681
10682 2014-07-31 Andi Kleen <ak@linux.intel.com>
10683
10684 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10685 inchash.
10686 (vn_reference_compute_hash): Dito.
10687 (vn_nary_op_compute_hash): Dito.
10688 (vn_phi_compute_hash): Dito.
10689 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10690
10691 2014-07-31 Andi Kleen <ak@linux.intel.com>
10692
10693 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10694 Rename to inchash:add_expr_commutative. Convert to inchash.
10695 (iterative_hash_hashable_expr): Rename to
10696 inchash:add_hashable_expr. Convert to inchash.
10697 (avail_expr_hash): Dito.
10698
10699 2014-07-31 Andi Kleen <ak@linux.intel.com>
10700
10701 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10702 Convert to inchash.
10703
10704 2014-07-31 Andi Kleen <ak@linux.intel.com>
10705
10706 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10707
10708 2014-07-31 Andi Kleen <ak@linux.intel.com>
10709
10710 * Makefile.in (OBJS): Add rtlhash.o
10711 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10712 (loc_checksum): Dito.
10713 (loc_checksum_ordered): Dito.
10714 (hash_loc_operands): Dito.
10715 (hash_locs): Dito.
10716 (hash_loc_list): Dito.
10717 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10718 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10719 * rtlhash.c: New file.
10720 * rtlhash.h: New file.
10721
10722 2014-07-31 Andi Kleen <ak@linux.intel.com>
10723
10724 * inchash.h (inchash): Change inchash class to namespace.
10725 (class hash): ... Rename from inchash.
10726 (add_object): Move from macro to class template.
10727 * lto-streamer-out.c (hash_tree): Change inchash
10728 to inchash::hash.
10729 * tree.c (build_type_attribute_qual_variant): Dito.
10730 (type_hash_list): Dito.
10731 (attribute_hash_list): Dito.
10732 (iterative_hstate_expr): Rename to inchash::add_expr
10733 (build_range_type_1): Change inchash to inchash::hash
10734 and use hash::add_expr.
10735 (build_array_type_1): Dito.
10736 (build_function_type): Dito
10737 (build_method_type_directly): Dito.
10738 (build_offset_type): Dito.
10739 (build_complex_type): Dito.
10740 (make_vector_type): Dito.
10741 * tree.h (iterative_hash_expr): Dito.
10742
10743 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
10744
10745 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10746
10747 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10748
10749 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10750 correct alphabetical position.
10751 (vpaddd_f64): Rewrite using builtins.
10752 (vpaddd_s64): Move to correct alphabetical position.
10753 (vpaddd_u64): New.
10754
10755 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
10756
10757 PR target/61844
10758 * config/sh/sh.c (sh_legitimate_address_p,
10759 sh_legitimize_reload_address): Handle reg+reg address modes when
10760 ALLOW_INDEXED_ADDRESS is false.
10761 * config/sh/predicates.md (general_movsrc_operand,
10762 general_movdst_operand): Likewise.
10763
10764 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10765
10766 * config/aarch64/aarch64-builtins.c
10767 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10768 BYTES_BIG_ENDIAN.
10769
10770 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
10771
10772 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10773 the generated mask based on BYTES_BIG_ENDIAN.
10774 (aarch64_simd_check_vect_par_cnst_half): New.
10775 * config/aarch64/aarch64-protos.h
10776 (aarch64_simd_check_vect_par_cnst_half): New.
10777 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10778 the check out to aarch64_simd_check_vect_par_cnst_half.
10779 (vect_par_cnst_lo_half): Likewise.
10780 * config/aarch64/aarch64-simd.md
10781 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10782 (move_hi_quad_<mode>): Always generate a low mask.
10783
10784 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10785
10786 * doc/invoke.texi (AVR Options): Add documentation about
10787 __AVR_DEVICE_NAME__ built-in macro.
10788
10789 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
10790
10791 PR target/61948
10792 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10793 constraints are satisfied.
10794 (<shift>di3_neon): Likewise.
10795
10796 2014-07-31 Richard Biener <rguenther@suse.de>
10797
10798 PR tree-optimization/61964
10799 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10800 by structural equality.
10801
10802 2014-07-31 Yury Gribov <y.gribov@samsung.com>
10803
10804 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10805 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10806 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10807 New enums.
10808 * gcc.c (sanitize_spec_function): Support new option.
10809 (SANITIZER_SPEC): Remove now redundant check.
10810 * opts.c (common_handle_option): Support new option.
10811 (finish_options): Check for incompatibilities.
10812 * toplev.c (process_options): Split userspace-specific checks.
10813
10814 2014-07-31 Richard Biener <rguenther@suse.de>
10815
10816 * lto-streamer.h (struct output_block): Remove global.
10817 (struct data_in): Remove labels, num_named_labels and
10818 num_unnamed_labels.
10819 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10820 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10821
10822 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
10823
10824 PR c++/60517
10825 * common.opt (-Wreturn-local-addr): Moved from c.opt.
10826 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10827 (isolate_path): New argument to avoid inserting a trap.
10828 (find_implicit_erroneous_behaviour): Handle returning the address
10829 of a local variable.
10830 (find_explicit_erroneous_behaviour): Likewise.
10831
10832 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
10833
10834 PR lto/61868
10835 * toplev.c (init_random_seed): Move piece of code never called to
10836 set_random_seed.
10837 (set_random_seed): see above.
10838
10839 2014-07-31 Tom de Vries <tom@codesourcery.com>
10840
10841 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10842
10843 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
10844
10845 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10846 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10847
10848 2014-07-31 Richard Biener <rguenther@suse.de>
10849
10850 * data-streamer.h (streamer_write_data_stream): Declare here,
10851 renamed from ...
10852 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
10853 * lto-cgraph.c (lto_output_node): Adjust.
10854 (lto_output_varpool_node): Likewise.
10855 * data-streamer-out.c (streamer_string_index): Likewise.
10856 (streamer_write_data_stream, lto_append_block): Move from ...
10857 * lto-section-out.c (lto_output_data_stream,
10858 lto_append_block): ... here.
10859
10860 2014-07-30 Mike Stump <mikestump@comcast.net>
10861
10862 * configure.ac: Also check for popen.
10863 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10864 * configure: Regenerate.
10865 * config.in: Regenerate.
10866
10867 2014-07-30 Martin Jambor <mjambor@suse.cz>
10868
10869 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10870 parameter to gimple.
10871
10872 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10873
10874 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10875 address as second parameter to __tpf_eh_return routine.
10876
10877 2014-07-30 Jiong Wang <jiong.wang@arm.com>
10878
10879 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10880 Thumb2.
10881
10882 2014-07-30 Tom Tromey <tromey@redhat.com>
10883
10884 PR c/59855
10885 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10886 * doc/extend.texi (Type Attributes): Document designated_init
10887 attribute.
10888
10889 2014-07-30 Roman Gareev <gareevroman@gmail.com>
10890
10891 * graphite-isl-ast-to-gimple.c:
10892 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10893 (gcc_expression_from_isl_expression): Pass type to
10894 gcc_expression_from_isl_ast_expr_id.
10895
10896 2014-07-30 Richard Biener <rguenther@suse.de>
10897
10898 * lto-streamer.h (lto_write_data): New function.
10899 * langhooks.c (lhd_append_data): Do not free block.
10900 * lto-section-out.c (lto_write_data): New function writing
10901 raw data to the current section.
10902 (lto_write_stream): Adjust for langhook semantic change.
10903 (lto_destroy_simple_output_block): Write header directly.
10904 * lto-opts.c (lto_write_options): Write options directly.
10905 * lto-streamer-out.c (produce_asm): Write heaeder directly.
10906 (lto_output_toplevel_asms): Likewise.
10907 (copy_function_or_variable): Copy data directly.
10908 (write_global_references): Output index table directly.
10909 (lto_output_decl_state_refs): Likewise.
10910 (write_symbol): Write data directly.
10911 (produce_symtab): Adjust.
10912 (produce_asm_for_decls): Output header and refs directly.
10913
10914 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10915
10916 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10917 to speculative_targets
10918 (get_class_context): Fix handling of contextes without outer type;
10919 avoid matching non-polymorphic types in LTO.
10920 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10921 parameter to speculative_targetsp; handle speculation.
10922 (dump_possible_polymorphic_call_targets): Update dumping.
10923
10924 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
10925
10926 * common.opt (Wodr): Enable by default.
10927
10928 2014-07-29 Olivier Hainque <hainque@adacore.com>
10929
10930 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10931
10932 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
10933
10934 PR bootstrap/61914
10935 * gengtype.c (strtoken): New function.
10936 (create_user_defined_type): Replace strtok with strtoken.
10937
10938 2014-07-29 Nathan Sidwell <nathan@acm.org>
10939
10940 * gcov-io.c (gcov_var): Make hidden.
10941 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10942 (gcov_do_dump): Declare.
10943 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10944
10945 2014-07-29 Martin Jambor <mjambor@suse.cz>
10946
10947 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10948 parameter to gimple.
10949 (sra_modify_assign): Likewise.
10950
10951 2014-07-29 Richard Biener <rguenther@suse.de>
10952
10953 PR middle-end/52478
10954 * expr.c (expand_expr_real_2): Revert last change.
10955
10956 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
10957
10958 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
10959 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
10960 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
10961 call.
10962 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
10963 (contains_type_p): Forward declare.
10964 (polymorphic_call_target_hasher::hash): Hash speculative info.
10965 (polymorphic_call_target_hasher::equal): Compare speculative info.
10966 (get_class_context): Handle speuclation.
10967 (contains_type_p): Update.
10968 (get_polymorphic_call_info_for_decl): Update.
10969 (walk_ssa_copies): Break out from ...
10970 (get_polymorphic_call_info): ... here; set speculative context
10971 before giving up.
10972 * ipa-prop.c (ipa_write_indirect_edge_info,
10973 ipa_read_indirect_edge_info): Stream speculative context.
10974 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
10975 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
10976 SPECULATIVE_MAYBE_DERIVED_TYPE).
10977 (possible_polymorphic_call_targets overriders): Update.
10978 (dump_possible_polymorphic_call_targets overriders): Update.
10979 (dump_possible_polymorphic_call_target_p overriders): Update.
10980
10981 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
10982
10983 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
10984 ipa-devirt path; fix thinko there.
10985
10986 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
10987
10988 * config/i386/i386.c (ix86_return_in_memory): Replace one
10989 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
10990
10991 2014-07-28 Marek Polacek <polacek@redhat.com>
10992
10993 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
10994
10995 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
10996
10997 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
10998 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
10999 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
11000 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11001 (USE_LD_AS_NEEDED): Likewise.
11002 (ASM_APP_ON): Likewise.
11003 (ASM_APP_OFF): Likewise.
11004 (TARGET_POSIX_IO): Likewise.
11005 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
11006 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
11007 (USE_LD_AS_NEEDED): Likewise.
11008 (ASM_APP_ON): Likewise.
11009 (ASM_APP_OFF): Likewise.
11010 (TARGET_POSIX_IO): Likewise.
11011
11012 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
11013
11014 PR middle-end/61734
11015 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
11016 operators other than the equality operators.
11017
11018 2014-07-28 Richard Biener <rguenther@suse.de>
11019
11020 PR middle-end/52478
11021 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
11022 sure to register SImode ones, not only >= word_mode ones.
11023 * expr.c (expand_expr_real_2): When expanding -ftrapv
11024 binops do not use OPTAB_LIB_WIDEN.
11025
11026 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
11027
11028 PR middle-end/61919
11029 * tree-outof-ssa.c (insert_partition_copy_on_edge)
11030 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
11031 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
11032 inserting them in the insn stream.
11033
11034 2014-07-28 Marek Polacek <polacek@redhat.com>
11035
11036 PR middle-end/61913
11037 * common.opt (Wodr): Add Var.
11038
11039 2014-07-28 Richard Biener <rguenther@suse.de>
11040
11041 PR tree-optimization/61921
11042 * tree-ssa-structalias.c (create_variable_info_for_1): Check
11043 if there is a varpool node before dereferencing it.
11044
11045 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11046
11047 * graphite-sese-to-poly.c:
11048 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
11049 id of the pbb), which contains pointer to the pbb1.
11050
11051 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
11052
11053 2014-07-28 Roman Gareev <gareevroman@gmail.com>
11054
11055 * graphite-isl-ast-to-gimple.c:
11056 (graphite_create_new_guard): New function.
11057 (translate_isl_ast_node_if): New function.
11058 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
11059
11060 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
11061
11062 2014-07-27 Anthony Green <green@moxielogic.com>
11063
11064 * config.gcc: Add moxie-*-moxiebox* configuration.
11065 * config/moxie/moxiebox.h: New file.
11066
11067 2014-07-26 Andrew Pinski <apinski@cavium.com>
11068
11069 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
11070 from the read only register.
11071
11072 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11073
11074 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
11075 as the allocation class if it isn't likely to be spilled.
11076
11077 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
11078
11079 * rtl.h (tls_referenced_p): Declare.
11080 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
11081 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
11082 (mips_cannot_force_const_mem): Use tls_referenced_p.
11083 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
11084 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
11085 instead of pa_tls_referenced_p.
11086 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
11087 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
11088 (pa_legitimate_constant_p): Likewise.
11089 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
11090 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
11091 (rs6000_cannot_force_const_mem, rs6000_emit_move)
11092 (rs6000_address_for_altivec): Use tls_referenced_p instead of
11093 rs6000_tls_referenced_p.
11094 (rs6000_tls_symbol_ref_1): Delete.
11095
11096 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
11097
11098 PR target/44551
11099 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
11100 Optimize inverse of a VEC_CONCAT.
11101
11102 2014-07-25 Xinliang David Li <davidxl@google.com>
11103
11104 * params.def: New parameter.
11105 * coverage.c (get_coverage_counts): Check new flag.
11106 (coverage_compute_profile_id): Check new flag.
11107 (coverage_begin_function): Check new flag.
11108 (coverage_end_function): Check new flag.
11109 * value-prof.c (coverage_node_map_initialized_p): New function.
11110 (init_node_map): Populate map with all functions.
11111 * doc/invoke.texi: Document new parameter.
11112
11113 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
11114 Richard Biener <rguenther@suse.de>
11115
11116 * lto-streamer-out.c (struct sccs): Turn to ...
11117 (class DFS): ... this one; refactor the DFS walk so it can
11118 be re-done on per-SCC basis.
11119 (DFS::DFS): New constructor.
11120 (DFS::~DFS): New destructor.
11121 (hash_tree): Add new MAP argument holding in-SCC hash values;
11122 remove POINTER_TYPE hashing hack.
11123 (scc_entry_compare): Rename to ...
11124 (DFS::scc_entry_compare): ... this one.
11125 (hash_scc): Rename to ...
11126 (DFS::hash_scc): ... this one; pass output_block instead
11127 of streamer_cache; work harder to get unique and stable SCC
11128 hashes.
11129 (DFS_write_tree): Rename to ...
11130 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
11131 (lto_output_tree): Update.
11132
11133 2014-07-25 Andi Kleen <ak@linux.intel.com>
11134
11135 * lto-streamer-out.c (hash_tree): Convert to inchash.
11136
11137 2014-07-25 Andi Kleen <ak@linux.intel.com>
11138
11139 * tree.c (build_type_attribute_qual_variant): Use inchash.
11140 (type_hash_list): Dito.
11141 (attribute_hash_list): Dito
11142 (iterative_hstate_expr): Dito.
11143 (iterative_hash_expr): Dito.
11144 (build_range_type_1): Dito.
11145 (build_array_type_1): Dito.
11146 (build_function_type): Dito.
11147 (build_method_type_directly): Dito.
11148 (build_offset_type): Dito.
11149 (build_complex_type): Dito.
11150 (make_vector_type): Dito.
11151 * tree.h (iterative_hash_expr): Add compat wrapper.
11152 (iterative_hstate_expr): Add.
11153
11154 2014-07-25 Andi Kleen <ak@linux.intel.com>
11155
11156 * Makefile.in (OBJS): Add inchash.o.
11157 (PLUGIN_HEADERS): Add inchash.h.
11158 * ipa-devirt.c: Include inchash.h.
11159 * lto-streamer-out.c: Dito.
11160 * tree-ssa-dom.c: Dito.
11161 * tree-ssa-pre.c: Dito.
11162 * tree-ssa-sccvn.c: Dito.
11163 * tree-ssa-tail-merge.c: Dito.
11164 * asan.c: Dito.
11165 * tree.c (iterative_hash_hashval_t): Move to ...
11166 (iterative_hash_host_wide_int): Move to ...
11167 * inchash.c: Here. New file.
11168 * tree.h (iterative_hash_hashval_t): Move to ...
11169 (iterative_hash_host_wide_int): Move to ...
11170 * inchash.h: Here. New file.
11171
11172 2014-07-25 Richard Biener <rguenther@suse.de>
11173
11174 PR middle-end/61762
11175 PR middle-end/61894
11176 * fold-const.c (native_encode_int): Add and handle offset
11177 parameter to do partial encodings of expr.
11178 (native_encode_fixed): Likewise.
11179 (native_encode_real): Likewise.
11180 (native_encode_complex): Likewise.
11181 (native_encode_vector): Likewise.
11182 (native_encode_string): Likewise.
11183 (native_encode_expr): Likewise.
11184 * fold-const.c (native_encode_expr): Add offset parameter
11185 defaulting to -1.
11186 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
11187 (fold_ctor_reference): Handle all reads from tcc_constant
11188 ctors.
11189
11190 2014-07-25 Richard Biener <rguenther@suse.de>
11191
11192 * tree-inline.c (estimate_move_cost): Mark speed_p argument
11193 as possibly unused.
11194
11195 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11196
11197 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
11198
11199 2014-07-24 Kyle McMartin <kyle@redhat.com>
11200
11201 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
11202
11203 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11204
11205 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
11206 Add prototype.
11207 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
11208 function.
11209 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
11210 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11211 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11212
11213 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11214
11215 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
11216 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
11217 aggregate types. Instead, *all* aggregate types, except for single-
11218 element or homogeneous float/vector aggregates, are quadword-aligned
11219 if required by their type alignment. Issue -Wpsabi note when a type
11220 is now treated differently than before.
11221
11222 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11223
11224 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
11225 does not fit fully into floating-point registers, and there is still
11226 space in the register parameter area, use GPRs to pass those parts
11227 of the argument. Issue -Wpsabi note if any parameter is now treated
11228 differently than before.
11229 (rs6000_arg_partial_bytes): Update.
11230
11231 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
11232
11233 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
11234
11235 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11236
11237 * rtl.h (target_rtl): Remove lang_dependent_initialized.
11238 * toplev.c (initialize_rtl): Don't use it. Move previously
11239 "language-dependent" calls to...
11240 (backend_init): ...here.
11241 (lang_dependent_init_target): Don't set lang_dependent_initialized.
11242 Assert that RTL initialization hasn't happend yet.
11243
11244 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11245
11246 PR rtl-optimization/61629
11247 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
11248 they have already been initialized.
11249
11250 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
11251
11252 PR middle-end/61268
11253 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
11254 DECL_INCOMING_RTL and entry_parm.
11255 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
11256 * calls.c (load_register_parameters): Likewise argument values.
11257 (emit_library_call_value_1, store_one_arg): Likewise argument
11258 save areas.
11259 * config/i386/i386.c (assign_386_stack_local): Likewise the local
11260 stack slot.
11261 * explow.c (validize_mem): Modify the argument in-place.
11262
11263 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11264
11265 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
11266 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
11267
11268 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11269
11270 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
11271 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
11272
11273 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11274
11275 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
11276 (aarch64_save_callee_saves): New parameter "skip_wb".
11277 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
11278
11279 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11280
11281 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
11282 "wb_candidate2".
11283 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
11284
11285 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11286
11287 * graphite-isl-ast-to-gimple.c:
11288 (graphite_create_new_loop): Add calling of isl_id_free to properly
11289 decrement reference counts.
11290
11291 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
11292
11293 2014-07-24 Martin Liska <mliska@suse.cz>
11294 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
11295 function used.
11296 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
11297 (rs6000_code_end): Likewise.
11298
11299 2014-07-24 Martin Liska <mliska@suse.cz>
11300
11301 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
11302 symtab_node funtion used.
11303 (rs6000_xcoff_declare_object_name): Likewise.
11304
11305 2014-07-24 Martin Liska <mliska@suse.cz>
11306
11307 * cgraphunit.c (compile): Correct function used.
11308
11309 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11310
11311 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
11312 as non-indexable.
11313
11314 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
11315
11316 PR lto/61802
11317 * varasm.c (bss_initializer_p): Handle offlined ctors.
11318 (align_variable, get_variable_align): Likewise.
11319 (make_decl_one_only): Likewise.
11320 (default_binds_local_p_1): Likewise.
11321 (decl_binds_to_current_def_p): Likewise.
11322 (get_variable_section): Get constructor if it is offlined.
11323 (assemble_variable_contents): Sanity check that the caller
11324 streamed in the ctor in LTO.
11325
11326 2014-07-24 Roman Gareev <gareevroman@gmail.com>
11327
11328 * graphite-isl-ast-to-gimple.c:
11329 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
11330 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
11331 isl_ast_op_pdiv_r to the different case.
11332
11333 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
11334
11335 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11336
11337 PR middle-end/61876
11338 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
11339 when flag_errno_math is on.
11340
11341 2014-07-24 Martin Liska <mliska@suse.cz>
11342
11343 * cgraph.h (varpool_node):
11344 (availability get_availability (void)):
11345 created from cgraph_variable_initializer_availability
11346 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
11347 created from: cgraph_variable_initializer_availability
11348 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
11349 (void finalize_named_section_flags (void)):
11350 created from varpool_finalize_named_section_flags
11351 (bool assemble_decl (void)): created from varpool_assemble_decl
11352 (void analyze (void)): created from varpool_analyze_node
11353 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
11354 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
11355 (void remove_initializer (void)): created from varpool_remove_initializer
11356 (tree get_constructor (void)): created from varpool_get_constructor
11357 (bool externally_visible_p (void)): created from varpool_externally_visible_p
11358 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
11359 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
11360 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
11361 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
11362 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
11363 (static bool output_variables (void)): created from varpool_output_variables
11364 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
11365 created from varpool_extra_name_alias
11366 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
11367 (static void dump_varpool (FILE *f)): created from dump_varpool
11368 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
11369 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
11370 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
11371 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
11372 (void assemble_aliases (void)): created from assemble_aliases
11373
11374 2014-07-24 Martin Liska <mliska@suse.cz>
11375
11376 * cgraph.h (symtab_node):
11377 (void register_symbol (void)): created from symtab_register_node
11378 (void remove (void)): created from symtab_remove_node
11379 (void dump (FILE *f)): created from dump_symtab_node
11380 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
11381 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
11382 (struct ipa_ref *add_reference (symtab_node *referred_node,
11383 enum ipa_ref_use use_type)): created from add_reference
11384 (struct ipa_ref *add_reference (symtab_node *referred_node,
11385 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
11386 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
11387 gimple stmt)): created from maybe_add_reference
11388 (bool semantically_equivalent_p (symtab_node *target)): created from
11389 symtab_semantically_equivalent_p
11390 (void remove_from_same_comdat_group (void)): created from
11391 remove_from_same_comdat_group
11392 (void add_to_same_comdat_group (symtab_node *old_node)): created from
11393 symtab_add_to_same_comdat_group
11394 (void dissolve_same_comdat_group_list (void)): created from
11395 symtab_dissolve_same_comdat_group_list
11396 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
11397 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
11398 created from symtab_alias_ultimate_target
11399 (inline symtab_node *next_defined_symbol (void)): created from
11400 symtab_next_defined_symbol
11401 (bool resolve_alias (symtab_node *target)): created from
11402 symtab_resolve_alias
11403 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
11404 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
11405 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
11406 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
11407 (void set_section (const char *section)): created from set_section_1
11408 (enum availability get_availability (void)): created from symtab_node_availability
11409 (void make_decl_local (void)): created from symtab_make_decl_local
11410 (bool real_symbol_p (void)): created from symtab_read_node
11411 (can_be_discarded_p (void)): created from symtab_can_be_discarded
11412 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
11413 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
11414 symtab_in_same_comdat_p;
11415 (bool address_taken_from_non_vtable_p (void)): created from
11416 address_taken_from_non_vtable_p
11417 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
11418 (static void dump_table (FILE *)): created from dump_symtab
11419 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
11420 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
11421 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
11422 symtab_used_from_object_file_p
11423 (void dump_base (FILE *)): created from dump_symtab_base
11424 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
11425 (void unregister (void)): created from symtab_unregister_node
11426 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
11427 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
11428 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
11429 symtab_nonoverwritable_alias_1
11430 * cgraph.h (cgraph_node):
11431 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
11432 created from cgraph_remove_node_and_inline_clones
11433 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
11434 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
11435 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
11436 (cgraph_node *function_symbol (enum availability *avail = NULL)):
11437 created from cgraph_function_node
11438 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
11439 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
11440 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
11441 created from cgraph_create_clone
11442 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
11443 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
11444 created from cgraph_create_virtual_clone
11445 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
11446 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
11447 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
11448 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
11449 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
11450 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
11451 created from cgraph_function_version_info
11452 (struct cgraph_function_version_info *insert_new_function_version (void)):
11453 created from insert_new_cgraph_node_version
11454 (struct cgraph_function_version_info *function_version (void)): created from
11455 get_cgraph_node_version
11456 (void analyze (void)): created from analyze_function
11457 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
11458 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
11459 tree real_alias) cgraph_add_thunk
11460 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
11461 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
11462 created from cgraph_function_or_thunk_node
11463 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
11464 created from expand_thunk
11465 (void reset (void)): created from cgraph_reset_node
11466 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
11467 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
11468 (void remove (void)): created from cgraph_remove_node
11469 (void dump (FILE *f)): created from dump_cgraph_node
11470 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
11471 (bool get_body (void)): created from cgraph_get_body
11472 (void release_body (void)): created from cgraph_release_function_body
11473 (void unnest (void)): created from cgraph_unnest_node
11474 (void make_local (void)): created from cgraph_make_node_local
11475 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
11476 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
11477 gcov_type count, int freq)): created from cgraph_create_edge
11478 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
11479 gcov_type count, int freq)): created from cgraph_create_indirect_edge
11480 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
11481 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
11482 created from cgraph_create_edge_including_clones
11483 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
11484 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
11485 (void remove_callers (void)): created from cgraph_node_remove_callers
11486 (void remove_callees (void)): created from cgraph_node_remove_callees
11487 (enum availability get_availability (void)): created from cgraph_function_body_availability
11488 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
11489 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
11490 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
11491 (void call_duplication_hooks (cgraph_node *node2)): created from
11492 cgraph_call_node_duplication_hooks
11493 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
11494 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
11495 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
11496 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
11497 (void call_function_insertion_hooks (void)):
11498 created from cgraph_call_function_insertion_hooks
11499 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
11500 (bool local_p (void)): created from cgraph_local_node
11501 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
11502 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
11503 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
11504 (inline bool only_called_directly_or_aliased_p (void)):
11505 created from cgraph_only_called_directly_or_aliased_p
11506 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
11507 created from cgraph_will_be_removed_from_program_if_no_direct_calls
11508 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
11509 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
11510 (bool can_remove_if_no_direct_calls_p (void)):
11511 created from cgraph_can_remove_if_no_direct_calls_p
11512 (inline bool has_gimple_body_p (void)):
11513 created from cgraph_function_with_gimple_body_p
11514 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
11515 (static void dump_cgraph (FILE *f)): created from dump_cgraph
11516 (static inline void debug_cgraph (void)): created from debug_cgraph
11517 (static void record_function_versions (tree decl1, tree decl2)):
11518 created from record_function_versions
11519 (static void delete_function_version (tree decl)):
11520 created from delete_function_version
11521 (static void add_new_function (tree fndecl, bool lowered)):
11522 created from cgraph_add_new_function
11523 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
11524 (static cgraph_node * create (tree decl)): created from cgraph_create_node
11525 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
11526 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
11527 (static cgraph_node *get_for_asmname (tree asmname)):
11528 created from cgraph_node_for_asm
11529 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
11530 created from cgraph_same_body_alias
11531 (static bool used_from_object_file_p_worker (cgraph_node *node,
11532 void *): new function
11533 (static bool non_local_p (cgraph_node *node, void *)):
11534 created from cgraph_non_local_node_p_1
11535 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
11536 created from verify_cgraph
11537 (static bool make_local (cgraph_node *node, void *)):
11538 created from cgraph_make_node_local
11539 (static cgraph_node *create_alias (tree alias, tree target)):
11540 created from cgraph_create_function_alias
11541 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
11542 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
11543 created from cgraph_create_edge_1
11544 * cgraph.h (varpool_node):
11545 (void remove (void)): created from varpool_remove_node
11546 (void dump (FILE *f)): created from dump_varpool_node
11547
11548 2014-07-24 Richard Biener <rguenther@suse.de>
11549
11550 PR ipa/61823
11551 * tree-ssa-structalias.c (create_variable_info_for_1):
11552 Use varpool_get_constructor.
11553 (create_variable_info_for): Likewise.
11554
11555 2014-07-24 Jiong Wang <jiong.wang@arm.com>
11556
11557 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
11558 subtract outgoing area size when restoring stack_pointer_rtx.
11559
11560 2014-07-24 Nick Clifton <nickc@redhat.com>
11561
11562 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
11563 that operations are taking place in parallel.
11564 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
11565
11566 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
11567
11568 * omp-low.c (extract_omp_for_data): Add missing break statement.
11569
11570 2014-07-24 Richard Biener <rguenther@suse.de>
11571
11572 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
11573 * tree-inline.c (estimate_move_cost): Add speed_p parameter
11574 and adjust MOVE_RATIO query accordingly.
11575 (estimate_num_insns): Adjust callers.
11576 * ipa-prop.c (ipa_populate_param_decls): Likewise.
11577 * ipa-cp.c (gather_context_independent_values,
11578 estimate_local_effects): Likewise.
11579 * ipa-split.c (consider_split): Likewise.
11580
11581 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
11582
11583 * config/i386/driver-i386.c: Remove names of unused arguments and
11584 unnecessary unused attributes.
11585 * config/i386/host-mingw32.c: Likewise.
11586 * config/i386/i386.c: Likewise.
11587 * config/i386/winnt-stubs.c: Likewise.
11588 * config/i386/winnt.c: Likewise.
11589
11590 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11591
11592 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
11593 (aarch64_gen_loadwb_pair): New helper function.
11594 (aarch64_expand_epilogue): Simplify code using new helper functions.
11595 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
11596
11597 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11598
11599 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
11600 (aarch64_gen_storewb_pair): New helper function.
11601 (aarch64_expand_prologue): Simplify code using new helper functions.
11602 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11603
11604 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11605
11606 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11607 Rename to aarch64_save_callee_saves, remove restore code.
11608 (aarch64_restore_callee_saves): New function.
11609
11610 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11611
11612 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11613 (aarch64_save_callee_saves): New function to handle reg save
11614 for both core and vectore regs.
11615
11616 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11617
11618 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11619 (aarch64_gen_store_pair): New helper function.
11620 (aarch64_save_or_restore_callee_save_registers)
11621 (aarch64_save_or_restore_fprs): Use new helper functions.
11622
11623 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11624
11625 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11626 (aarch64_save_or_restore_callee_save_registers)
11627 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11628
11629 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11630
11631 * config/aarch64/aarch64.c
11632 (aarch64_save_or_restore_callee_save_registers)
11633 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11634
11635 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11636
11637 * config/aarch64/aarch64.c
11638 (aarch64_save_or_restore_callee_save_registers)
11639 (aarch64_save_or_restore_fprs): Remove 'increment'.
11640
11641 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11642
11643 * config/aarch64/aarch64.c
11644 (aarch64_save_or_restore_callee_save_registers)
11645 (aarch64_save_or_restore_fprs): Use register offset in
11646 cfun->machine->frame.reg_offset.
11647
11648 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11649
11650 * config/aarch64/aarch64.c
11651 (aarch64_save_or_restore_callee_save_registers)
11652 (aarch64_save_or_restore_fprs): Remove base_rtx.
11653
11654 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11655
11656 * config/aarch64/aarch64.c
11657 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11658 to 'start_offset'. Remove local variable 'start_offset'.
11659
11660 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11661
11662 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11663 type to HOST_WIDE_INT.
11664
11665 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11666
11667 * config/aarch64/aarch64.c (aarch64_expand_prologue)
11668 (aarch64_save_or_restore_fprs)
11669 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11670
11671 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11672
11673 * config/arm/t-rtems-eabi: Add
11674 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11675 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11676 mbig-endian/mthumb/march=armv7-r, and
11677 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11678 multilibs.
11679
11680 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
11681 Chris Johns <chrisj@rtems.org>
11682 Joel Sherrill <joel.sherrill@oarcorp.com>
11683
11684 * config.gcc: Add nios2-*-rtems*.
11685 * config/nios2/rtems.h: New file.
11686 * gcc/config/nios2/t-rtems: New file.
11687
11688 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11689
11690 PR target/61396
11691 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11692 constant numbers, not general constants.
11693 (rs6000_expand_vector_init): Ditto.
11694
11695 2014-07-23 Nathan Sidwell <nathan@acm.org>
11696
11697 * gcov-tool.c (gcov_list): Declare here.
11698 (set_gcov_list): Remove.
11699 (gcov_output_files): Set gcov_list directly.
11700
11701 2014-07-23 Host Schirmeier <horst@schirmeier.com>
11702
11703 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11704
11705 2014-07-23 Jiong Wang <jiong.wang@arm.com>
11706
11707 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11708 callee-saved registers are available for padding purpose
11709 and r3 is not mandatory, then prefer use those callee-saved
11710 instead of r3.
11711
11712 2014-07-23 Richard Biener <rguenther@suse.de>
11713
11714 * params.def (PARAM_MAX_COMBINE_INSNS): New.
11715 * combine.c: Include statistics.h and params.h.
11716 (combine_instructions): Guard three and four insn combines
11717 with max-combine-insns value. Record statistics for combines
11718 performed.
11719 * doc/invoke.texi (max-combine-insns): Document new param.
11720
11721 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11722
11723 * graphite-isl-ast-to-gimple.c:
11724 (translate_isl_ast_node_block): New function.
11725 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11726
11727 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11728 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11729
11730 2014-07-23 Roman Gareev <gareevroman@gmail.com>
11731
11732 * graphite-isl-ast-to-gimple.c:
11733 (get_max_schedule_dimensions): New function.
11734 (extend_schedule): Likewise.
11735 (generate_isl_schedule): Add calling of extend_schedule and
11736 get_max_schedule_dimensions.
11737
11738 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11739
11740 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11741 (case UNSPEC): Handle UNSPEC_RBIT.
11742
11743 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11744
11745 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11746 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11747
11748 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11749
11750 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11751
11752 2014-07-22 Roman Gareev <gareevroman@gmail.com>
11753
11754 * graphite-isl-ast-to-gimple.c:
11755 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11756 (ivs_params_clear):
11757 (build_iv_mapping): New function.
11758 (translate_isl_ast_node_user): Likewise.
11759 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11760
11761 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11762 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11763 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11764
11765 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11766
11767 PR target/55701
11768 * config/arm/arm.md (setmem): New pattern.
11769 * config/arm/arm-protos.h (struct tune_params): New fields.
11770 (arm_gen_setmem): New prototype.
11771 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11772 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11773 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11774 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11775 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11776 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11777 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11778 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11779 (arm_const_inline_cost): New function.
11780 (arm_block_set_max_insns): New function.
11781 (arm_block_set_non_vect_profit_p): New function.
11782 (arm_block_set_vect_profit_p): New function.
11783 (arm_block_set_unaligned_vect): New function.
11784 (arm_block_set_aligned_vect): New function.
11785 (arm_block_set_unaligned_non_vect): New function.
11786 (arm_block_set_aligned_non_vect): New function.
11787 (arm_block_set_vect, arm_gen_setmem): New functions.
11788
11789 2014-07-21 Bin Cheng <bin.cheng@arm.com>
11790
11791 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11792
11793 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
11794
11795 PR target/61855
11796 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11797 out of #ifdef __OPTIMIZE__.
11798
11799 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11800
11801 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11802 different trapping status if -fnon-call-exceptions is enabled.
11803
11804 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
11805
11806 * expr.c (store_field): Handle VOIDmode for calls that return values
11807 in multiple locations.
11808
11809 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11810
11811 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
11812 (altivec_vsldoi_<mode>): Likewise.
11813
11814 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11815
11816 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11817 to the number of characters in the line.
11818
11819 2014-07-20 Roman Gareev <gareevroman@gmail.com>
11820
11821 * graphite-isl-ast-to-gimple.c: Add using of
11822 build_nonstandard_integer_type instead of int128_integer_type_node.
11823
11824 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
11825
11826 * toplev.c (output_stack_usage): Adjust the location of the warning.
11827
11828 2014-07-19 Daniel Cederman <cederman@gaisler.com>
11829
11830 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11831 (*membar_storeload): Disable for LEON3.
11832
11833 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11834
11835 PR rtl-optimization/61461
11836 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11837
11838 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
11839
11840 PR target/61794
11841 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11842 Fix instruction constraint.
11843 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11844
11845 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
11846
11847 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11848
11849 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
11850
11851 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11852 GNU coding standards.
11853 (nds32_register_move_cost): Likewise.
11854 (nds32_memory_move_cost): Likewise.
11855 (nds32_address_cost): Likewise.
11856
11857 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11858
11859 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11860
11861 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
11862
11863 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11864 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11865 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11866 (HAVE_sync_compare_and_swapqi): Define.
11867 (HAVE_sync_compare_and_swaphi): Likewise.
11868 (HAVE_sync_compare_and_swapsi): Likewise.
11869
11870 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
11871
11872 * config/mips/p5600.md: Add missing cpu tests.
11873
11874 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11875
11876 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11877 (vmla_f64): Likewise.
11878 (vfms_f64): Likewise.
11879 (vmls_f64): Likewise.
11880
11881 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11882
11883 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11884 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11885
11886 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11887
11888 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11889 (vmlal_high_lane_s32): Likewise.
11890 (vmlal_high_lane_u16): Likewise.
11891 (vmlal_high_lane_u32): Likewise.
11892 (vmlsl_high_lane_s16): Likewise.
11893 (vmlsl_high_lane_s32): Likewise.
11894 (vmlsl_high_lane_u16): Likewise.
11895 (vmlsl_high_lane_u32): Likewise.
11896
11897 2014-07-17 Terry Guo <terry.guo@arm.com>
11898
11899 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11900 (alus_reg): Renamed to alus_sreg.
11901 * config/arm/arm-fixed.md: Change type of non-dsp instructions
11902 from alu_reg to alu_sreg. Change type of dsp instructions from
11903 alu_reg to alu_dsp_reg.
11904 * config/arm/thumb1.md: Likewise.
11905 * config/arm/thumb2.md: Likewise.
11906 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11907 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11908 with alu_sreg and alus_sreg.
11909 * config/arm/arm1026ejs.md (alu_op): Likewise.
11910 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11911 * config/arm/arm926ejs.md (9_alu_op): Likewise.
11912 * config/arm/fa526.md (526_alu_op): Likewise.
11913 * config/arm/fa606te.md (606te_alu_op): Likewise.
11914 * config/arm/fa626te.md (626te_alu_op): Likewise.
11915 * config/arm/fa726te.md (726te_alu_op): Likewise.
11916 * config/arm/fmp626.md (mp626_alu_op): Likewise.
11917 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11918 alu_sreg, alu_dsp_reg and alus_sreg.
11919 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11920 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11921 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11922 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11923 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11924 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11925 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11926 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11927 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11928 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11929 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11930 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11931 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11932 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11933 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11934 alus_reg to alus_sreg.
11935
11936 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
11937
11938 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11939 infinity format.
11940
11941 2014-07-17 Richard Biener <rguenther@suse.de>
11942
11943 PR rtl-optimization/61801
11944 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11945 don't set reg_pending_barrier if it appears in a debug-insn.
11946
11947 2014-07-16 DJ Delorie <dj@redhat.com>
11948
11949 * config/rx/rx.c (rx_option_override): Fix alignment values.
11950 (rx_align_for_label): Likewise.
11951
11952 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
11953
11954 PR target/61737.
11955 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11956 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11957 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
11958 functions.
11959 (cris_print_index, cris_print_operand, cris_constant_index_p)
11960 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
11961 (cris_address_cost): Ditto last CONSTANT_P.
11962 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
11963 callers changed. Yield cris_offsettable_symbol for non-PIC
11964 constant symbolic expressions including labels. Yield cris_unspec
11965 for all unspecs.
11966 (cris_expand_pic_call_address): New parameter MARKERP. Set its
11967 target to pic_offset_table_rtx for calls that will likely go
11968 through PLT, const0_rtx when they can't. All callers changed.
11969 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
11970 symbolic expressions to be PICified. Remove second, redundant,
11971 assert on can_create_pseudo_p returning non-zero. Use
11972 replace_equiv_address_nv, not replace_equiv_address, for final
11973 operand update.
11974 * config/cris/cris.md ("movsi"): Move variable t to pattern
11975 toplevel. Adjust assert for new cris_symbol_type member. Use
11976 CONSTANT_P instead of CONSTANT_ADDRESS_P.
11977 ("*movsi_internal") <case 9>: Make check for valid unspec operands
11978 for lapc stricter.
11979 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
11980 ("call", "call_value"): Use second incoming operand as a marker
11981 for pic-offset-table-register being used.
11982 ("*expanded_call_non_v32", "*expanded_call_v32")
11983 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
11984 second incoming operand to CALL, match cris_call_type_marker.
11985 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
11986 ("*expanded_call_side"): Ditto. Fix typo in comment.
11987 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
11988 CONSTANT_P.
11989 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
11990 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
11991 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
11992 users changed. Add members cris_offsettable_symbol and cris_unspec.
11993 (cris_symbol_type): Rename from cris_pic_symbol_type.
11994 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
11995 just CONSTANT_P.
11996 * config/cris/cris-protos.h (cris_symbol_type_of,
11997 cris_expand_pic_call_address): Adjust prototypes.
11998 (cris_legitimate_constant_p): New prototype.
11999
12000 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
12001 an existing tmake_file. Don't add t-slibgcc and t-linux.
12002
12003 2014-07-17 Jason Merrill <jason@redhat.com>
12004
12005 PR c++/61623
12006 * symtab.c (symtab_remove_from_same_comdat_group): Also
12007 set_comdat_group to NULL_TREE.
12008 (verify_symtab): Fix diagnostic.
12009
12010 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
12011
12012 PR target/61662
12013 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
12014
12015 2014-07-16 Dodji Seketeli <dodji@redhat.com>
12016
12017 Support location tracking for built-in macro tokens
12018 * input.h (is_location_from_builtin_token): New function declaration.
12019 * input.c (is_location_from_builtin_token): New function definition.
12020 * toplev.c (general_init): Tell libcpp what the pre-defined
12021 spelling location for built-in tokens is.
12022
12023 2014-07-16 Jakub Jelinek <jakub@redhat.com>
12024
12025 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
12026 on the FUNCTION_DECL.
12027
12028 2014-07-16 Richard Biener <rguenther@suse.de>
12029
12030 PR other/61782
12031 * doc/extend.texi (always_inline): Clarify.
12032
12033 2014-07-15 Eric Christopher <echristo@gmail.com>
12034
12035 * doc/invoke.texi (Link Options): Document -z option.
12036
12037 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
12038
12039 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
12040 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12041
12042 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
12043
12044 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
12045
12046 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
12047
12048 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
12049 varpool_assemble_decl.
12050 * varpool.c (varpool_assemble_decl): Assert that node->definition is
12051 true.
12052
12053 2014-07-15 Michael Matz <matz@suse.de>
12054
12055 PR rtl-optimization/61772
12056 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
12057
12058 2014-07-15 Richard Biener <rguenther@suse.de>
12059
12060 * opts.c (default_options_table): Disable bit-ccp at -Og.
12061
12062 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12063
12064 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
12065
12066 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
12067
12068 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
12069 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
12070 call langhook for unknown declaration.
12071 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
12072 * tree.h (DECL_ARGUMENTS): Update.
12073 * print-tree.c (print_node): Update.
12074 * tree-core.h (tree_decl_non_common): Remove arguments.
12075 (tree_function_decl): Add arguments.
12076
12077 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
12078
12079 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
12080
12081 2014-07-14 Richard Biener <rguenther@suse.de>
12082
12083 PR tree-optimization/61779
12084 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
12085 simplifying a condition.
12086
12087 2014-07-14 Richard Biener <rguenther@suse.de>
12088
12089 * builtins.c (c_strlen): Make only_value == 2 really only
12090 affect warning generation.
12091
12092 2014-07-14 Richard Biener <rguenther@suse.de>
12093
12094 PR tree-optimization/61757
12095 PR tree-optimization/61783
12096 PR tree-optimization/61787
12097 * tree-ssa-dom.c (record_equality): Revert canonicalization
12098 change and add comment.
12099 (propagate_rhs_into_lhs): Revert previous fix, removing
12100 loop depth restriction again.
12101
12102 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12103
12104 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
12105 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12106 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12107 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
12108 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12109 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12110 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
12111
12112 2014-07-14 Richard Biener <rguenther@suse.de>
12113
12114 * cgraph.h (decl_in_symtab_p): Make inline.
12115
12116 2014-07-14 Jakub Jelinek <jakub@redhat.com>
12117
12118 PR middle-end/61294
12119 * doc/invoke.texi (-Wmemset-transposed-args): Document.
12120
12121 PR target/61656
12122 * config/i386/i386.c (classify_argument): Don't merge classes above
12123 number of words.
12124
12125 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
12126
12127 * cgraph.h (symtab_node): Add nonzero_address.
12128 (decl_in_symtab_p): Break out from ...
12129 (symtab_get_node): ... here.
12130 * fold-const.c: Include cgraph.h
12131 (tree_single_nonzero_warnv_p): Use symtab to determine
12132 if symbol is non-zero.
12133 * symtab.c (symtab_node::nonzero_address): New method.
12134
12135 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12136
12137 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
12138 forgotten in previous commit.
12139
12140 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12141
12142 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
12143 on builtin types.
12144 * ipa-devirt.c: Include stor-layout.h and intl.h
12145 (odr_subtypes_equivalent_p): New function.
12146 (warn_odr): New function.
12147 (warn_type_mismatch): New function.
12148 (odr_types_equivalent_p): New function.
12149 (add_type_duplicate): Use it.
12150 * common.opt (Wodr): New flag.
12151 * doc/invoke.texi (Wodr): Document new warning.
12152
12153 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
12154
12155 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
12156 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
12157 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
12158 (varpool_get_constructor): Push CTORS_IN timevar.
12159 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
12160
12161 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
12162
12163 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
12164 Remove VOID_FTYPE_PUSHORT.
12165 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
12166 Change code to USHORT_FTYPE_VOID.
12167 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
12168 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
12169 (ix86_atomic_assign_expand_fenv): Update for
12170 __builtin_ia32_fnstsw changes.
12171 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
12172 (fnstsw): Change operand 0 to nonimmediate operand.
12173
12174 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12175
12176 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
12177 (varpool_get_constructor): New function.
12178 (varpool_ctor_useable_for_folding_p): Break out from ...
12179 (ctor_for_folding): ... here; use varpool_get_constructor.
12180 (varpool_assemble_decl): Likewise.
12181 * lto-streamer.h (struct output_block): Turn cgraph_node
12182 to symbol filed.
12183 (lto_input_variable_constructor): Declare.
12184 * ipa-visibility.c (function_and_variable_visibility): Use
12185 varpool_get_constructor.
12186 * cgraph.h (varpool_get_constructor): Declare.
12187 (varpool_ctor_useable_for_folding_p): New function.
12188 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
12189 parameter; return error_mark_node for non-trivial constructors.
12190 (lto_write_tree_1, DFS_write_tree): Update use of
12191 get_symbol_initial_value.
12192 (output_function): Update initialization of symbol.
12193 (output_constructor): New function.
12194 (copy_function): Rename to ..
12195 (copy_function_or_variable): ... this one; handle vars too.
12196 (lto_output): Output variable sections.
12197 * lto-streamer-in.c (input_constructor): New function.
12198 (lto_read_body): Rename from ...
12199 (lto_read_body_or_constructor): ... this one; handle vars too.
12200 (lto_input_variable_constructor): New function.
12201 * ipa-prop.c (ipa_prop_write_jump_functions,
12202 ipa_prop_write_all_agg_replacement): Update.
12203 * lto-cgraph.c (compute_ltrans_boundary): Use it.
12204 (output_cgraph_opt_summary): Set symbol to NULL.
12205
12206 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12207
12208 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
12209 non-polymorphic types.
12210 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
12211 * ipa-devirt.c (types_same_for_odr): Do not explode when one
12212 of types is not polymorphic.
12213
12214 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
12215
12216 * lra-constraints.c (remove_inheritance_pseudos): Process
12217 destination pseudo too.
12218
12219 2014-07-11 Rong Xu <xur@google.com>
12220
12221 * gcov-tool.c (gcov_output_files): Fix build error introduced in
12222 commit r212448.
12223
12224 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12225
12226 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
12227 * config/avr/avr-devices.c (AVR_MCU): Same.
12228 (avr_mcu_types): add text start value to end of device list.
12229 * config/avr/avr-mcus.def: Add text section start for all devices.
12230 (ata5782): Add new avr5 device.
12231 (ata5831): Same.
12232 * config/avr/avr-tables.opt: Regenerate.
12233 * config/avr/avr.h: Add declaration for text section start handler.
12234 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
12235 SPEC functions.
12236 (LINK_SPEC): Include text section start handler to linker spec.
12237 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
12238 pass -Ttext option to linker if the text section start for the device
12239 is not zero.
12240 * config/avr/t-multilib: Regenerate.
12241 * doc/avr-mmcu.texi: Regenerate.
12242
12243 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
12244
12245 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
12246 * config/rs6000/aix52.h (LINK_SPEC): Same.
12247 * config/rs6000/aix53.h (LINK_SPEC): Same.
12248 * config/rs6000/aix61.h (LINK_SPEC): Same.
12249 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
12250
12251 2014-07-11 Roman Gareev <gareevroman@gmail.com>
12252
12253 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
12254 (graphite_verify): New function.
12255 (ivs_params_clear): New function.
12256 (gcc_expression_from_isl_ast_expr_id): New function.
12257 (gcc_expression_from_isl_expr_int): New function.
12258 (binary_op_to_tree): New function.
12259 (ternary_op_to_tree): New function.
12260 (unary_op_to_tree): New function.
12261 (nary_op_to_tree): New function.
12262 (gcc_expression_from_isl_expr_op): New function.
12263 (gcc_expression_from_isl_expression): New function.
12264 (graphite_create_new_loop): New function.
12265 (translate_isl_ast_for_loop): New function.
12266 (get_upper_bound): New function.
12267 (graphite_create_new_loop_guard): New function.
12268 (translate_isl_ast_node_for): New function.
12269 (translate_isl_ast): New function.
12270 (add_parameters_to_ivs_params): New function.
12271 (scop_to_isl_ast): New parameter ip.
12272 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
12273
12274 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
12275
12276 * config/xtensa/predicates.md (call expander): Update for
12277 DECL_SECTION_NAME being string.
12278
12279 2014-07-11 Richard Biener <rguenther@suse.de>
12280
12281 PR middle-end/61473
12282 * builtins.c (fold_builtin_memory_op): Inline memory moves that
12283 can be implemented with a single load followed by a single store.
12284 (c_strlen): Only warn when only_value is not 2.
12285
12286 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
12287
12288 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
12289
12290 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
12291
12292 PR target/61561
12293 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
12294 (*movhi_bytes): Likewise.
12295 (*arm_movqi_insn): Likewise.
12296
12297 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
12298
12299 PR target/56858
12300 * config/alpha/alpha.c: Include tree-pass.h, context.h
12301 and pass_manager.h.
12302 (pass_data_handle_trap_shadows): New pass.
12303 (pass_handle_trap_shadows::gate): New pass gate function.
12304 (make_pass_handle_trap_shadows): New function.
12305 (rest_of_handle_trap_shadows): Ditto.
12306
12307 (alpha_align_insns_1): Rename from alpha_align_insns.
12308 (pass_data_align_insns): New pass.
12309 (pass_align_insns::gate): New pass gate function.
12310 (make_pass_aling_insns): New function.
12311 (rest_of_align_insns): Ditto.
12312 (alpha_align_insns): Ditto.
12313
12314 (alpha_option_override): Declare handle_trap_shadows info
12315 and align_insns_info. Register handle_trap_shadows and align_insns
12316 passes here.
12317 (alpha_reorg): Do not call alpha_trap_shadows and
12318 alpha_align_insn from here.
12319
12320 (alpha_pad_function_end): Do not skip BARRIERs.
12321
12322 2014-07-10 Rong Xu <xur@google.com>
12323
12324 Add gcov-tool: an offline gcda profile processing tool support.
12325 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
12326 (gcov_is_error): Ditto.
12327 (gcov_read_string): Ditto.
12328 (gcov_read_sync): Ditto.
12329 * gcov-io.h: Move counter defines to gcov-counter.def.
12330 * gcov-dump.c (tag_counters): Use gcov-counter.def.
12331 * coverage.c: Ditto.
12332 * gcov-tool.c: Offline gcda profile processing tool.
12333 (unlink_gcda_file): Remove one gcda file.
12334 (unlink_profile_dir): Remove gcda files from the profile path.
12335 (gcov_output_files): Output gcda files to an output dir.
12336 (profile_merge): Merge two profiles in directory.
12337 (print_merge_usage_message): Print merge usage.
12338 (merge_usage): Print merge usage and exit.
12339 (do_merge): Driver for profile merge sub-command.
12340 (profile_rewrite): Rewrite profile.
12341 (print_rewrite_usage_message): Print rewrite usage.
12342 (rewrite_usage): Print rewrite usage and exit.
12343 (do_rewrite): Driver for profile rewrite sub-command.
12344 (print_usage): Print gcov-info usage and exit.
12345 (print_version): Print gcov-info version.
12346 (process_args): Process arguments.
12347 (main): Main routine for gcov-tool.
12348 * Makefile.in: Build and install gcov-tool.
12349 * gcov-counter.def: New file split from gcov-io.h.
12350 * doc/gcc.texi: Include gcov-tool.texi.
12351 * doc/gcov-tool.texi: Document for gcov-tool.
12352
12353 2014-07-10 Richard Biener <rguenther@suse.de>
12354
12355 PR tree-optimization/61757
12356 * tree-ssa-dom.c (loop_depth_of_name): Restore.
12357 (propagate_rhs_into_lhs): Revert part of last change.
12358
12359 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
12360
12361 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
12362 FUNCTION_DECLs.
12363
12364 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
12365
12366 PR middle-end/53590
12367 * function.c (allocate_struct_function): Revert r188667 change.
12368
12369 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
12370
12371 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
12372
12373 * doc/install.texi: Remove links to defunct package providers for
12374 Solaris.
12375
12376 2014-07-09 Tom de Vries <tom@codesourcery.com>
12377
12378 * final.c (get_call_fndecl): Declare.
12379 (self_recursive_call_p): New function.
12380 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
12381
12382 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12383
12384 * ipa-devirt.c (record_node): Walk through aliases.
12385
12386 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12387
12388 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
12389
12390 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12391
12392 Revert:
12393 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12394
12395 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12396
12397 * ipa-visibility.c (function_and_variable_visibility): Remove
12398 temporary hack disabling local aliases on AIX.
12399
12400 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12401
12402 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
12403 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
12404
12405 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12406
12407 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
12408 * rs6000/rs6000.c: Inline output of .set instruction.
12409 (declare_alias_data): New struct.
12410 (rs6000_declare_alias): New function.
12411 (rs6000_xcoff_declare_function_name): Use it.
12412 (rs6000_xcoff_declare_object_name): New function.
12413 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
12414 (ASM_OUTPUT_DEF): Turn to empty definition.
12415
12416 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12417
12418 PR bootstrap/61679
12419 * hash-table.h: use hash_table::value_type instead of
12420 Descriptor::value_type in the return types of several methods.
12421
12422 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12423
12424 * tree-pass.h (pass_data): Remove has_execute member.
12425 * passes.c (execute_one_pass): Don't check pass->has_execute.
12426 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
12427 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
12428 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
12429 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
12430 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
12431 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
12432 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
12433 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
12434 gimple-low.c, gimple-ssa-isolate-paths.c,
12435 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
12436 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
12437 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
12438 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
12439 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
12440 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
12441 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
12442 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
12443 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
12444 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
12445 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
12446 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12447 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12448 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12449 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
12450 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
12451 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
12452 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12453 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12454 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
12455 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
12456 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12457 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
12458 web.c: Remove initializer for pass_data::has_execute.
12459
12460 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
12461
12462 * graphite-htab.h: Use hash_map instead of hash_table.
12463 * graphite-clast-to-gimple.c: Adjust.
12464 * passes.c: Use hash_map instead of hash_table.
12465 * sese.c: Likewise.
12466 * sese.h: Remove now unused code.
12467
12468 2014-07-08 Sriraman Tallam <tmsriram@google.com>
12469
12470 PR target/61599
12471 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
12472 than zero.
12473
12474 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12475
12476 PR rtl-optimization/61673
12477 * combine.c (simplify_comparison): Test just mode's sign bit
12478 in tmode rather than the sign bit and any bits above it.
12479
12480 2014-07-08 Roman Gareev <gareevroman@gmail.com>
12481
12482 * graphite-isl-ast-to-gimple.c (generate_isl_context):
12483 Add __isl_give to the declaration.
12484 (generate_isl_schedule): Likewise.
12485 (scop_to_isl_ast): Likewise.
12486
12487 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12488
12489 * config/arm/arm.c (cortexa5_extra_costs): New table.
12490 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
12491
12492 2014-07-08 Jakub Jelinek <jakub@redhat.com>
12493
12494 PR tree-optimization/61725
12495 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
12496 range, use range_includes_zerop_p instead of integer_zerop on
12497 vr0->min, only use log2 of max if min is not negative.
12498
12499 2014-07-08 Richard Biener <rguenther@suse.de>
12500
12501 * tree-ssa-dom.h (loop_depth_of_name): Remove.
12502 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
12503 restriction on loop depth difference.
12504 (record_equality): Likewise.
12505 (propagate_rhs_into_lhs): Likewise. Simplify condition.
12506 (loop_depth_of_name): Remove.
12507 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
12508 restriction on loop depth difference.
12509 (init_copy_prop): Likewise.
12510
12511 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
12512
12513 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
12514 parameter.
12515 (walk_aliased_vdefs): Likewise.
12516 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
12517 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
12518 (detect_type_change_from_memory_writes): Check if entry was reached.
12519
12520 2014-07-08 Richard Biener <rguenther@suse.de>
12521
12522 PR tree-optimization/61681
12523 * tree-ssa-structalias.c (find_what_var_points_to): Expand
12524 NONLOCAL inside ESCAPED.
12525
12526 2014-07-08 Richard Biener <rguenther@suse.de>
12527
12528 PR tree-optimization/61680
12529 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12530 Handle properly all read-write dependences with group accesses.
12531
12532 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12533
12534 PR tree-optimization/61576
12535 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
12536 block containing reduction statement is predecessor of phi basi block.
12537
12538 2014-07-08 Marek Polacek <polacek@redhat.com>
12539
12540 PR c/60226
12541 * fold-const.c (round_up_loc): Change the parameter type.
12542 Remove assert.
12543 * fold-const.h (round_up_loc): Adjust declaration.
12544 * stor-layout.c (finalize_record_size): Check for too large types.
12545
12546 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
12547
12548 * symtab.c: Include calls.h.
12549 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
12550
12551 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
12552
12553 * config/rs6000/rs6000.c (output_vec_const_move): Handle
12554 little-endian code generation.
12555 * config/rs6000/spe.md (spe_evmergehi): Rename to...
12556 (vec_perm00_v2si): ... this. Handle little-endian code generation.
12557 (spe_evmergehilo): Rename to...
12558 (vec_perm01_v2si): ... this. Handle little-endian code generation.
12559 (spe_evmergelo): Rename to...
12560 (vec_perm11_v2si): ... this. Handle little-endian code generation.
12561 (spe_evmergelohi): Rename to...
12562 (vec_perm10_v2si): ... this. Handle little-endian code generation.
12563 (spe_evmergehi, spe_evmergehilo): New expanders.
12564 (spe_evmergelo, spe_evmergelohi): Likewise.
12565 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
12566 (*frob_tf_ti): Likewise.
12567 (*frob_<mode>_di_2): Likewise.
12568 (*frob_tf_di_8_2): Likewise.
12569 (*frob_di_<mode>): Likewise.
12570 (*frob_ti_tf): Likewise.
12571 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
12572 (*frob_ti_<mode>_8_2): Likewise.
12573 (*frob_ti_tf_2): Likewise.
12574 (mov_si<mode>_e500_subreg0): Rename to...
12575 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
12576 endianness only.
12577 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
12578 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
12579 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
12580 the big endianness only.
12581 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
12582 (*mov_si<mode>_e500_subreg0_2): Rename to...
12583 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
12584 big big endianness only.
12585 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
12586 (*mov_si<mode>_e500_subreg4): Rename to...
12587 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
12588 endianness only.
12589 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
12590 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
12591 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
12592 the big endianness only.
12593 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
12594 pattern.
12595 (*mov_si<mode>_e500_subreg4_2): Rename to...
12596 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
12597 endianness only.
12598 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
12599 (*mov_sitf_e500_subreg8): Rename to...
12600 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
12601 endianness only.
12602 (*mov_sitf_e500_subreg8_le): New instruction pattern.
12603 (*mov_sitf_e500_subreg8_2): Rename to...
12604 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
12605 endianness only.
12606 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12607 (*mov_sitf_e500_subreg12): Rename to...
12608 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
12609 endianness only.
12610 (*mov_sitf_e500_subreg12_le): New instruction pattern.
12611 (*mov_sitf_e500_subreg12_2): Rename to...
12612 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
12613 endianness only.
12614 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12615
12616 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
12617
12618 * asan.c (instrument_strlen_call): Do not instrument first byte
12619 in strlen if already instrumented.
12620
12621 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12622
12623 * config/arm/arm.opt (mwords-little-endian): Delete.
12624 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12625 of TARGET_LITTLE_WORDS.
12626 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12627 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12628 warning.
12629 * doc/invoke.texi: Remove references to -mwords-little-endian.
12630
12631 2014-07-07 Jakub Jelinek <jakub@redhat.com>
12632
12633 * expmed.c (struct init_expmed_rtl): Change all fields but
12634 pow2 and cint from struct rtx_def to rtx.
12635 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12636 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
12637 at the end again.
12638
12639 2014-07-06 Marek Polacek <polacek@redhat.com>
12640
12641 PR c/6940
12642 * doc/invoke.texi: Document -Wsizeof-array-argument.
12643
12644 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
12645
12646 * wide-int.h (wide_int_storage): Change declaration from struct
12647 to class.
12648
12649 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
12650
12651 * cgraph.c (cgraph_create_indirect_edge): Update call of
12652 get_polymorphic_call_info.
12653 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12654 (possible_polymorphic_call_targets): Add parameter call.
12655 (decl_maybe_in_construction_p): New predicate.
12656 (get_polymorphic_call_info): Add parameter call;
12657 use decl_maybe_in_construction_p.
12658 * gimple-fold.c (fold_gimple_assign): Update use of
12659 possible_polymorphic_call_targets.
12660 (gimple_fold_call): Likewise.
12661 * ipa-prop.c: Inlcude calls.h
12662 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12663 (param_type_may_change_p): New predicate.
12664 (detect_type_change_from_memory_writes): Break out from ...
12665 (detect_type_change): ... this one; use param_type_may_change_p.
12666 (detect_type_change_ssa): Use param_type_may_change_p.
12667 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12668
12669 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
12670
12671 PR target/49423
12672 * config/arm/arm-protos.h (arm_legitimate_address_p,
12673 arm_is_constant_pool_ref): Add prototypes.
12674 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12675 (arm_is_constant_pool_ref) New function.
12676 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12677 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12678 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12679 operand. Remove pool_range and neg_pool_range attributes.
12680 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12681 pool_range and neg_pool_range attributes.
12682 * config/arm/constraints.md (Uh): New constraint.
12683 (Uq): Don't allow constant pool references.
12684
12685 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
12686
12687 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12688 (move_lo_quad_internal_be_<mode>): Likewise.
12689 (move_lo_quad_<mode>): Convert to define_expand.
12690 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12691 (aarch64_simd_move_hi_quad_be_<mode>): New.
12692 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12693 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12694 (aarch64_combinez_be<mode>): New.
12695 (aarch64_combine<mode>): Convert to define_expand.
12696 (aarch64_combine_internal<mode>): New.
12697 (aarch64_simd_combine<mode>): Remove bogus RTL description.
12698
12699 2014-07-04 Tom de Vries <tom@codesourcery.com>
12700
12701 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12702 combination of earlyclobber and read/write modifiers.
12703
12704 2014-07-04 Tom de Vries <tom@codesourcery.com>
12705
12706 * config/aarch64/aarch64-simd.md
12707 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12708
12709 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
12710
12711 PR target/61714
12712 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12713
12714 2014-07-04 Jakub Jelinek <jakub@redhat.com>
12715
12716 PR middle-end/61654
12717 * cgraphunit.c (expand_thunk): Call free_dominance_info.
12718
12719 PR tree-optimization/61684
12720 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12721 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12722
12723 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12724 Kito Cheng <kito@0xlab.org>
12725 Monk Chiang <sh.chiang04@gmail.com>
12726
12727 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12728 (nds32_symbol_load_store_p): Move to ...
12729 (nds32_fp_as_gp_check_available): Move to ...
12730 * config/nds32/nds32-fp-as-gp.c: ... here.
12731 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12732 extern declaration.
12733
12734 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12735 Kito Cheng <kito@0xlab.org>
12736 Monk Chiang <sh.chiang04@gmail.com>
12737
12738 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12739 (nds32_expand_store_multiple): Move to ...
12740 (nds32_expand_movmemqi): Move to ...
12741 * config/nds32/nds32-memory-manipulation.c: ... here.
12742
12743 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12744 Kito Cheng <kito@0xlab.org>
12745 Monk Chiang <sh.chiang04@gmail.com>
12746
12747 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
12748 (nds32_output_casesi_pc_relative): Move to ...
12749 (nds32_output_casesi): Move to ...
12750 (nds32_mem_format): Move to ...
12751 (nds32_output_16bit_store): Move to ...
12752 (nds32_output_16bit_load): Move to ...
12753 (nds32_output_32bit_store): Move to ...
12754 (nds32_output_32bit_load): Move to ...
12755 (nds32_output_32bit_load_s): Move to ...
12756 (nds32_output_stack_push): Move to ...
12757 (nds32_output_stack_pop): Move to ...
12758 * config/nds32/nds32-md-auxiliary.c: ... here.
12759
12760 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12761 Ling-Hua Tseng <uranus@tinlans.org>
12762
12763 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12764 the purpose of this file.
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_rtx_costs): Move implementation to ...
12771 (nds32_address_cost): Move implementation to ...
12772 * config/nds32/nds32-cost.c: ... here.
12773 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12774 (nds32_address_cost_impl): Declare.
12775
12776 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12777 Kito Cheng <kito@0xlab.org>
12778 Monk Chiang <sh.chiang04@gmail.com>
12779
12780 * config/nds32/nds32.c
12781 (nds32_consecutive_registers_load_store_p): Move to ...
12782 (nds32_valid_multiple_load_store): Move to ...
12783 (nds32_valid_stack_push_pop): Move to ...
12784 (nds32_can_use_bclr_p): Move to ...
12785 (nds32_can_use_bset_p): Move to ...
12786 (nds32_can_use_btgl_p): Move to ...
12787 (nds32_can_use_bitci_p): Move to ...
12788 * config/nds32/nds32-predicates.c: ... here.
12789
12790 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12791 Kito Cheng <kito@0xlab.org>
12792 Monk Chiang <sh.chiang04@gmail.com>
12793
12794 * config/nds32/nds32.c
12795 (nds32_expand_builtin_null_ftype_reg): Move to ...
12796 (nds32_expand_builtin_reg_ftype_imm): Move to ...
12797 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12798 (nds32_init_builtins): Move implementation to ...
12799 (nds32_expand_builtin): Move implementation to ...
12800 * config/nds32/nds32-intrinsic.c: ... here.
12801 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12802 (nds32_expand_builtin_impl): Declare.
12803
12804 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12805 Kito Cheng <kito@0xlab.org>
12806 Monk Chiang <sh.chiang04@gmail.com>
12807
12808 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12809 (nds32_emit_section_tail_template): Move to ...
12810 (nds32_emit_isr_jmptbl_section): Move to ...
12811 (nds32_emit_isr_vector_section): Move to ...
12812 (nds32_emit_isr_reset_conten): Move to ...
12813 (nds32_check_isr_attrs_conflict): Move to ...
12814 (nds32_construct_isr_vectors_information): Move to ...
12815 (nds32_asm_file_start): Move implementation to ...
12816 (nds32_asm_file_end): Move implementation to ...
12817 * config/nds32/nds32-isr.c: ... here.
12818 * config/nds32/nds32-protos.h
12819 (nds32_check_isr_attrs_conflict): Declare.
12820 (nds32_construct_isr_vectors_information): Declare.
12821 (nds32_asm_file_start_for_isr): Declare.
12822 (nds32_asm_file_end_for_isr): Declare.
12823
12824 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
12825 Kito Cheng <kito@0xlab.org>
12826 Monk Chiang <sh.chiang04@gmail.com>
12827
12828 * config.gcc (nds32*): Add new modules to extra_objs.
12829 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12830 (nds32be-*-*): Likewise.
12831 * config/nds32/nds32-cost.c: New file.
12832 * config/nds32/nds32-fp-as-gp.c: New file.
12833 * config/nds32/nds32-intrinsic.c: New file.
12834 * config/nds32/nds32-isr.c: New file.
12835 * config/nds32/nds32-md-auxiliary.c: New file.
12836 * config/nds32/nds32-memory-manipulation.c: New file.
12837 * config/nds32/nds32-pipelines-auxiliary.c: New file.
12838 * config/nds32/nds32-predicates.c: New file.
12839 * config/nds32/t-nds32: New file.
12840
12841 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12842
12843 PR tree-optimization/61682
12844 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12845 using cases and when one of the operands is equal to 1.
12846
12847 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
12848
12849 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12850 ashr<mode>3): Correct mode of operands[2].
12851 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12852 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12853 Correct mode of operands[2]. Fix split condition.
12854
12855 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
12856
12857 * arm.md (arch): Add armv6_or_vfpv3.
12858 (arch_enabled): Add test for the above.
12859 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12860 on VFP9.
12861 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12862
12863 2014-07-03 Jakub Jelinek <jakub@redhat.com>
12864
12865 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12866 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12867 HWI 1 and negate the unsigned value.
12868 * expmed.c (expand_sdiv_pow2): For modes wider than word always
12869 use AND instead of shift.
12870 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12871
12872 2014-07-03 Marek Polacek <polacek@redhat.com>
12873
12874 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12875 (-fsanitize=float-divide-by-zero): Move to the table with
12876 -fsanitize=undefined suboptions.
12877 (-fsanitize=float-cast-overflow): Likewise.
12878
12879 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
12880
12881 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12882 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12883 endianness.
12884
12885 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12886
12887 * loop-invariant.c (struct invariant): Add a new member: eqno;
12888 (find_identical_invariants): Update eqno;
12889 (create_new_invariant): Init eqno;
12890 (get_inv_cost): Compute comp_cost with eqno;
12891
12892 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
12893
12894 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12895 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12896 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12897 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12898 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12899
12900 2014-07-02 Christian Bruel <christian.bruel@st.com>
12901
12902 PR target/29349
12903 PR target/53513
12904 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12905 (make_preds_opaque): Delete.
12906 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12907 (commit_mode_sets): New function.
12908 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12909 Process all modes at once.
12910 * basic-block.h (pre_edge_lcm_avs): Declare.
12911 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12912 Call clear_aux_for_edges. Fix comments.
12913 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12914 (pre_edge_rev_lcm): Idem.
12915 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12916 parameter.
12917 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12918 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12919 Idem.
12920 * config/i386/i386.c (x96_emit_mode_set): Idem.
12921 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12922 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
12923 (fpscr_toggle) Disallow from delay slot.
12924 * target.def (emit_mode_set): Add prev_mode parameter.
12925 * doc/tm.texi: Regenerate.
12926
12927 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12928
12929 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12930 variable i.
12931
12932 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12933
12934 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12935 vtable_pointer_value_to_vtable): Constify.
12936 (contains_polymorphic_type_p): Declare.
12937 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12938 vtable_pointer_value_to_vtable): Constify.
12939 (contains_polymorphic_type_p): New predicate.
12940 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12941 polymorphic types.
12942 (ipa_set_ancestor_jf): Likewise.
12943 (detect_type_change): Return false in easy cases.
12944 (compute_complex_assign_jump_func): Require type to contain
12945 polymorphic type.
12946 (compute_known_type_jump_func): Likewise.
12947
12948 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
12949
12950 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12951 Remove.
12952 (type_in_anonymous_namespace_p): Constify argument.
12953 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12954 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12955 (main_odr_variant): New function.
12956 (hash_type_name): Make static; update assert; do not ICE on
12957 non-records.
12958 (types_same_for_odr): Bring here from tree.c; simplify and remove
12959 old structural comparing code that doesn't work for templates.
12960 (odr_hasher::equal): Update assert.
12961 (add_type_duplicate): Return true when bases should be computed;
12962 replace incomplete loader by complete; do not output duplicated
12963 warnings; do not ICE on non-records; set odr_violated flag.
12964 (get_odr_type): Be ready to replace incomplete type by complete
12965 one; work on ODR variants instead of main variants; reorder item
12966 in array so bases have still smaller indexes.
12967 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
12968 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
12969
12970 2014-07-01 Cary Coutant <ccoutant@google.com>
12971
12972 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
12973 lookup.
12974 (resolve_addr_in_expr): When replacing the rtx in a location list
12975 entry, get a new address table entry.
12976 (dwarf2out_finish): Call index_location_lists even if there are no
12977 addr_index_table entries yet.
12978
12979 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
12980
12981 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
12982 change for not being obvious.
12983
12984 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
12985
12986 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
12987 unused argument.
12988
12989 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12990
12991 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
12992 (vcagt_f64): Likewise.
12993 (vcale_f64): Likewise.
12994 (vcaled_f64): Likewise.
12995 (vcales_f32): Likewise.
12996 (vcalt_f64): Likewise.
12997 (vcaltd_f64): Likewise.
12998 (vcalts_f32): Likewise.
12999
13000 2014-07-01 Marek Polacek <polacek@redhat.com>
13001
13002 * doc/invoke.texi: Document -Wint-conversion.
13003
13004 2014-07-01 Marek Polacek <polacek@redhat.com>
13005
13006 PR c/58286
13007 * doc/invoke.texi: Document -Wincompatible-pointer-types.
13008
13009 2014-07-01 Martin Liska <mliska@suse.cz>
13010
13011 IPA REF alias refactoring
13012 * cgraph.h (iterate_direct_aliases): New function.
13013 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
13014 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
13015 FOR_EACH_ALIAS added.
13016 (cgraph_for_node_and_aliases): Likewise.
13017 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
13018 * ipa-inline.c (reset_edge_caches): Likewise.
13019 (update_caller_keys): Likewise.
13020 * trans-mem.c (ipa_tm_execute): Likewise.
13021 *varpool.c (varpool_analyze_node): Likewise.
13022 (varpool_for_node_and_aliases): Likewise.
13023 * ipa-ref.h (first_alias): New function.
13024 (last_alias): Likewise.
13025 (has_aliases_p): Likewise.
13026 * ipa-ref.c (ipa_ref::remove_reference): Removal function
13027 is sensitive to IPA_REF_ALIASes.
13028 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
13029 are put at the beginning of the list.
13030 (symtab_node::iterate_direct_aliases): New function.
13031
13032 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13033
13034 Revert:
13035 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13036 type is complete.
13037 (write_ts_type_common_tree_pointers): Do not stream fields not set
13038 for incomplete types; do not stream duplicated fields for variants;
13039 sanity check that variant and type match.
13040 (write_ts_type_non_common_tree_pointers): Likewise.
13041 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13042 TYPE_SIZE whether type is complete.
13043 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13044 write_ts_type_common_tree_pointers
13045 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13046
13047 2014-06-30 Joseph Myers <joseph@codesourcery.com>
13048
13049 * var-tracking.c (add_stores): Return instead of asserting if old
13050 and new values for conditional store are the same.
13051
13052 2014-06-30 Richard Henderson <rth@redhat.com>
13053
13054 PR rtl-opt/61608
13055 PR target/39284
13056 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
13057 the cfg if there were any changes.
13058 * passes.def: Revert move of peephole2 after reorder_blocks;
13059 move duplicate_computed_gotos before peephole2.
13060
13061 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
13062
13063 * except.c (emit_note_eh_region_end): New helper function.
13064 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
13065 emit EH_REGION_END note.
13066 * jump.c (cleanup_barriers): Do not split a call and its
13067 corresponding CALL_ARG_LOCATION note.
13068
13069 2014-06-30 Jeff Law <law@redhat.com>
13070
13071 PR tree-optimization/61607
13072 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13073 deeper into the SSA_NAME_VALUE chain.
13074
13075 2014-06-30 Marek Polacek <polacek@redhat.com>
13076
13077 * convert.c (convert_to_integer): Don't instrument conversions if the
13078 function has no_sanitize_undefined attribute.
13079 * ubsan.c: Don't run the ubsan pass if the function has
13080 no_sanitize_undefined attribute.
13081
13082 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13083
13084 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
13085 -fsanitize=undefined suboptions.
13086
13087 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
13088
13089 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
13090 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
13091 against bigendian and adjust indices.
13092
13093 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13094
13095 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
13096
13097 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
13098
13099 PR target/61633
13100 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
13101 Add alternative; make early clobber. Adjust both split patterns
13102 to use operand 0 as the working register.
13103
13104 2014-06-30 Jakub Jelinek <jakub@redhat.com>
13105
13106 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
13107 as ira_object_id_map might be NULL, or 1.
13108
13109 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13110
13111 * loop-invariant.c (get_inv_cost): Handle register class.
13112 (gain_for_invariant): Check the register pressure of the inv
13113 and its overlapped register class, other than all.
13114
13115 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
13116
13117 * doc/invoke.texi (Optimize Options): Fix descriptions of
13118 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
13119
13120 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
13121
13122 * doc/extend.texi (Function Attributes): Update 'naked' attribute
13123 documentation.
13124
13125 2014-06-29 Tobias Grosser <tobias@grosser.es>
13126
13127 PR bootstrap/61650
13128 * graphite-isl-ast-to-gimple.c: Add missing guards.
13129
13130 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13131
13132 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
13133 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
13134 * flag-types.h: Add new enum fgraphite_generator.
13135 * graphite-isl-ast-to-gimple.c: New.
13136 * graphite-isl-ast-to-gimple.h: New.
13137 * graphite.c (graphite_transform_loops): Add choice of Graphite
13138 code generator, which depends on flag_graphite_code_gen.
13139
13140 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13141
13142 * graphite-dependences.c (subtract_commutative_associative_deps):
13143 Add NULL checking of the following variables: must_raw_no_source,
13144 may_raw_no_source, must_war_no_source, may_war_no_source,
13145 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
13146 must_war, may_war, must_waw, may_waw.
13147
13148 2014-06-29 Roman Gareev <gareevroman@gmail.com>
13149
13150 * graphite-clast-to-gimple.c: gloog is renamed to
13151 graphite_regenerate_ast_cloog. gloog_error is renamed to
13152 graphite_regenerate_error.
13153 * graphite-clast-to-gimple.h: The definition of the struct
13154 bb_pbb_def is moved to graphite-htab.h.
13155 Add inclusion of the hash-table.h.
13156 * graphite-htab.h: The declaration of the function gloog is moved
13157 to graphite-clast-to-gimple.h and renamed to
13158 graphite_regenerate_ast_cloog.
13159 * graphite.c (graphite_transform_loops): gloog is renamed
13160 to graphite_regenerate_ast_cloog.
13161
13162 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13163
13164 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
13165 type is complete.
13166 (write_ts_type_common_tree_pointers): Do not stream fields not set
13167 for incomplete types; do not stream duplicated fields for variants;
13168 sanity check that variant and type match.
13169 (write_ts_type_non_common_tree_pointers): Likewise.
13170 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
13171 TYPE_SIZE whether type is complete.
13172 (lto_input_ts_type_common_tree_pointers): Do same changes as in
13173 write_ts_type_common_tree_pointers
13174 (lto_input_ts_type_non_common_tree_pointers): Likewise.
13175
13176 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13177
13178 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
13179
13180 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13181
13182 * tree-inline.c (remap_type_1): Do not duplicate fields
13183 that are shared in between type and its main variant.
13184
13185 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13186
13187 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
13188 of the type.
13189 (ipa_set_ancestor_jf) Likewise.
13190 (check_stmt_for_type_change): Check that we work on main variant.
13191 (detect_type_change): Look into main variant.
13192 (compute_known_type_jump_func): Check that main variant has BINFO.
13193
13194 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13195
13196 * ipa-devirt.c (set_type_binfo): New function.
13197 (add_type_duplicate): Use it.
13198 (get_odr_type): Sanity check that binfos points to main variants.
13199 (get_class_context): Be sure the context's outer_type is main variant.
13200 (contains_type_p): Walk main variant.
13201 (get_polymorphic_call_info_for_decl): Set outer_type to be
13202 main variant.
13203 (get_polymorphic_call_info): Likewise.
13204 (possible_polymorphic_call_targets): Sanity check that we operate
13205 on main variant.
13206
13207 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
13208
13209 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13210
13211 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13212
13213 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
13214 accidental change due to wide-int branch merge.
13215
13216 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13217
13218 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
13219 compressed debug support.
13220 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
13221 * configure: Regenerate.
13222 * config.in: Regenerate.
13223 * common.opt (compressed_debug_sections): New enum.
13224 (gz, gz=): New options.
13225 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
13226 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
13227 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
13228 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
13229 LINK_COMPRESS_DEBUG_SPEC.
13230 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
13231 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
13232 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
13233 (Debugging Options): Document -gz[=type].
13234
13235 2014-06-27 Martin Jambor <mjambor@suse.cz>
13236
13237 PR ipa/61160
13238 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
13239 args_to_skip, use those from node instead. Copy args_to_skip and
13240 combined_args_to_skip from node to the new thunk.
13241 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
13242 (cgraph_create_virtual_clone): Moved computation of
13243 combined_args_to_skip...
13244 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
13245
13246 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
13247
13248 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
13249 redundant diagnostic machinary.
13250
13251 2014-06-27 Richard Biener <rguenther@suse.de>
13252
13253 * tree-ssa-math-opts.c (bswap_replace): Fix
13254 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
13255
13256 2014-06-27 Martin Liska <mliska@suse.cz>
13257
13258 * gimple.h (gimple_location_safe): New function introduced.
13259 * cgraphunit.c (walk_polymorphic_call_targets): Usage
13260 of gimple_location_safe replaces gimple_location.
13261 (gimple_fold_call): Likewise.
13262 * ipa-devirt.c (ipa_devirt): Likewise.
13263 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13264 * ipa.c (walk_polymorphic_call_targets): Likewise.
13265 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13266
13267 2014-06-27 Jakub Jelinek <jakub@redhat.com>
13268
13269 PR tree-optimization/57233
13270 PR tree-optimization/61299
13271 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
13272 functions.
13273 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
13274 would be lowered to scalar shifts, check if corresponding
13275 shifts and vector BIT_IOR_EXPR are supported and don't lower
13276 or lower just to narrower vector type in that case.
13277 * expmed.c (expand_shift_1): Fix up handling of vector
13278 shifts and rotates.
13279
13280 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
13281
13282 PR target/61586
13283 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
13284
13285 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
13286
13287 * doc/invoke.texi (-fsemantic-interposition): Document.
13288 * common.opt (fsemantic-interposition): New flag.
13289 * varasm.c (decl_replaceable_p): Use it.
13290
13291 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13292
13293 PR target/61542
13294 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
13295 extraction other than index 3.
13296
13297 2014-06-26 Teresa Johnson <tejohnson@google.com>
13298
13299 * doc/invoke.texi: Fix typo.
13300 * dumpfile.c: Add support for documented -fdump-* options
13301 optimized/missed/note/optall.
13302
13303 2014-06-26 Martin Jambor <mjambor@suse.cz>
13304
13305 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
13306 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
13307 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
13308 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
13309 * opts.c (default_options_optimization): Set
13310 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
13311 * doc/invoke.texi (allow-load-data-races)
13312 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
13313 (allow-store-data-races): Document the new default.
13314
13315 2014-06-26 Martin Jambor <mjambor@suse.cz>
13316
13317 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
13318 renamed to ipa_impossible_devirt_target. Fix typo.
13319 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
13320 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
13321 ipa_impossible_devirt_target.
13322
13323 2014-06-26 Richard Biener <rguenther@suse.de>
13324
13325 PR tree-optimization/61607
13326 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
13327 explaining why we restrict copies on loop depth.
13328 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13329 on loop depth.
13330 (record_equivalences_from_phis): Instead add it here.
13331
13332 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
13333
13334 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
13335 (LTO_WRAPPER_OBJS): New variable.
13336 (lto-wrapper$(exeext)): Use it.
13337 * collect2.c: Include "collect-utils.h".
13338 (verbose, debug): Remove variables.
13339 (at_file_supplied): No longer static.
13340 (tool_name): New variable.
13341 (do_wait, fork_execute, maybe_unlink): Don't declare.
13342 (tool_cleanup): No longer static.
13343 (notice): Remove function.
13344 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
13345 fork_execute calls.
13346 (collect_wait, do_wait, collect_execute): Remove functions.
13347 (maybe_unlink): No longer static.
13348 * collect2.h (verbose, debug): Don't declare.
13349 (at_file_supplied): Declare.
13350 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
13351 changed.
13352 (collect_execute): Replace with implementation from collect2, plus a
13353 new arg use_atfile. All callers changed.
13354 (collect_wait): Replace with implementation from collect2.
13355 (maybe_unlink_file): Remove function.
13356 (fork_execute): Replace with implementation from collect2, plus a
13357 new arg use_atfile. All callers changed.
13358 (do_wait): Add call to utils_cleanup to the error path.
13359 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
13360 (tool_cleanup): Adjust declarations.
13361 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
13362 * tlink.c: Include "collect-utils.h".
13363 (tlink_execute): New arg use_atfile. All callers changed.
13364 (tlink_init, tlink_execute): Remove declarations.
13365
13366 * collect-utils.c (save_temps): New variable.
13367 (do_wait): Use it instead of debug. Use fatal_error.
13368 * collect-utils.h (save_temps): Declare.
13369 * collect2.c (verbose): Rename from vflag. All uses changed.
13370 (tool_cleanup): New function, copied from collect_atexit.
13371 (collect_atexit, handler): Just call it.
13372 * collect2.h (verbose): Declaration renamed from vflag.
13373 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
13374 debug.
13375
13376 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
13377 (lto-wrapper$(exeext)): Link with collect-utils.o.
13378 * collect-utils.c: New file.
13379 * collect-utils.h: New file.
13380 * lto-wrapper.c: Include "collect-utils.h".
13381 (args_name): Delete variable.
13382 (tool_name): New variable.
13383 (tool_cleanup): New function.
13384 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
13385 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
13386 (fork_execute): Remove functions.
13387
13388 2014-06-26 Nick Clifton <nickc@redhat.com>
13389
13390 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
13391
13392 * doc/extend.texi (Function Attributes): Fix typo in description
13393 of RX vector attribute.
13394
13395 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
13396
13397 * config.gcc (supported_defaults): Error when passing either
13398 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
13399
13400 2014-06-26 Richard Biener <rguenther@suse.de>
13401
13402 * tree-ssa-dom.c (cprop_operand): Remove restriction on
13403 propagating volatile pointers.
13404
13405 2014-06-26 Richard Biener <rguenther@suse.de>
13406
13407 PR tree-optimization/61607
13408 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
13409 loop if we redirected its latch edge.
13410 (thread_block_1): Do not cancel loops prematurely.
13411
13412 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
13413
13414 * toplev.c (backend_init_target): Move init_emit_regs and
13415 init_regs to...
13416 (backend_init) ... here; skip ira_init_once and backend_init_target.
13417 (target_reinit) ... and here; clear
13418 this_target_rtl->lang_dependent_initialized.
13419 (lang_dependent_init_target): Clear
13420 this_target_rtl->lang_dependent_initialized;
13421 break out rtl initialization to ...
13422 (initialize_rtl): ... here; call also backend_init_target
13423 and ira_init_once.
13424 * toplev.h (initialize_rtl): New function.
13425 * function.c: Include toplev.h
13426 (init_function_start): Call initialize_rtl.
13427 * rtl.h (target_rtl): Add target_specific_initialized,
13428 lang_dependent_initialized.
13429
13430 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
13431 Jakub Jelinek <jakub@redhat.com>
13432
13433 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
13434
13435 2014-06-25 Tom de Vries <tom@codesourcery.com>
13436
13437 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
13438
13439 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13440
13441 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
13442 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
13443 Issue a strict overflow warning if appropriate.
13444
13445 2014-06-25 Martin Liska <mliska@suse.cz>
13446
13447 IPA REF refactoring
13448 * Makefile.in: Removed header file (ipa-ref-inline.h).
13449 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
13450 called.
13451 (cgraph_speculative_call_info): Likewise.
13452 (cgraph_for_node_thunks_and_aliases): Likewise.
13453 (cgraph_for_node_and_aliases): Likewise.
13454 (verify_cgraph_node): Likewise.
13455 * cgraph.h: Batch of IPA REF functions become member functions of
13456 symtab_node: add_reference, maybe_add_reference, clone_references,
13457 clone_referring, clone_reference, find_reference,
13458 remove_stmt_references, remove_all_references,
13459 remove_all_referring, dump_references, dump_referring,
13460 has_alias_p, iterate_reference, iterate_referring.
13461 * cgraphbuild.c (record_reference): New IPA REF function used.
13462 (record_type_list): Likewise.
13463 (record_eh_tables): Likewise.
13464 (mark_address): Likewise.
13465 (mark_load): Likewise.
13466 (mark_store): Likewise.
13467 (pass_build_cgraph_edges): Likewise.
13468 (rebuild_cgraph_edge): Likewise.
13469 (cgraph_rebuild_references): Likewise.
13470 (pass_remove_cgraph_callee_edges): Likewise.
13471 * cgraphclones.c (cgraph_clone_node): Likewise.
13472 (cgraph_create_virtual_clone): Likewise.
13473 (cgraph_materialize_clone): Likewise.
13474 (cgraph_materialize_all_clones): Likewise.
13475 * cgraphunit.c (cgraph_reset_node): Likewise.
13476 (cgraph_reset_node): Likewise.
13477 (analyze_function): Likewise.
13478 (assemble_thunks_and_aliases): Likewise.
13479 (expand_function): Likewise.
13480 * ipa-comdats.c (propagate_comdat_group): Likewise.
13481 (enqueue_references): Likewise.
13482 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
13483 (create_specialized_node): Likewise.
13484 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
13485 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
13486 * ipa-inline.c (reset_edge_caches): Likewise.
13487 (update_caller_keys): Likewise.
13488 (execute): Likewise.
13489 * ipa-prop.c (remove_described_reference): Likewise.
13490 (propagate_controlled_uses): Likewise.
13491 (ipa_edge_duplication_hook): Likewise.
13492 (ipa_modify_call_arguments): Likewise.
13493 * ipa-pure-const.c (propagate_pure_const): Likewise.
13494 * ipa-ref-inline.h: Header file removed, functions moved
13495 to symtab_node class.
13496 * ipa-ref.c (remove_reference): New class member function.
13497 (cannot_lead_to_return): New class member function.
13498 (referring_ref_list): Likewise.
13499 (referred_ref_list): Likewise.
13500 Rest of functions moved to symtab_node class.
13501 * ipa-ref.h: New member functions remove_reference,
13502 cannot_lead_to_return, referring_ref_list, referred_ref_list added
13503 to ipa_ref class.
13504 ipa_ref_list class has new member functions: first_reference,
13505 first_referring, clear, nreferences.
13506 * ipa-reference.c (analyze_function): New IPA REF function used.
13507 (write_node_summary_p): Likewise.
13508 (ipa_reference_write_optimization_summary): Likewise.
13509 * ipa-split.c (split_function): Likewise.
13510 * ipa-utils.c (ipa_reverse_postorder): Likewise.
13511 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
13512 (function_and_variable_visibility): Likewise.
13513 * ipa.c (has_addr_references_p): Likewise.
13514 (process_references): Argument type changed.
13515 (symtab_remove_unreachable_nodes): New IPA REF function used.
13516 (process_references): Likewise.
13517 (set_writeonly_bit): Likewise.
13518 * lto-cgraph.c: Implementation of new symtab_node member functions
13519 that uses new IPA REF functions.
13520 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
13521 function used.
13522 * lto-streamer-out.c (output_symbol_p): Likewise.
13523 * lto-streamer.h (referenced_from_this_partition_p): Argument type
13524 changed.
13525 * symtab.c: Implementation of new IPA REF API.
13526 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
13527 (ipa_tm_create_version): Likewise.
13528 (ipa_tm_execute): Likewise.
13529 * tree-emutls.c (gen_emutls_addr): Likewise.
13530 * tree-inline.c (copy_bb): Likewise.
13531 (delete_unreachable_blocks_update_callgraph): Likewise.
13532 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
13533 (varpool_for_node_and_aliases): Likewise.
13534
13535 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13536
13537 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
13538
13539 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
13540
13541 PR bootstrap/61598
13542 * fold-const.c (fold_checksum_tree): Use a hash_table of const
13543 tree_node * instead of tree_node *.
13544 (fold): Adjust.
13545 (print_fold_checksum): Likewise.
13546 (fold_check_failed): Likewise.
13547 (debug_fold_checksum): Likewise.
13548 (fold_build1_stat_loc): Likewise.
13549 (fold_build2_stat_loc): Likewise.
13550 (fold_build3_stat_loc): Likewise.
13551 (fold_build_call_array_loc): Likewise.
13552
13553 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
13554
13555 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
13556 implementation with call to...
13557 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
13558 function.
13559 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
13560 Declare.
13561
13562 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
13563
13564 PR tree-optimization/57742
13565 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
13566 after replacing the statement.
13567
13568 2014-06-25 Nick Clifton <nickc@redhat.com>
13569
13570 * config/v850/v850.c (GHS_default_section_names): Change to const
13571 char * type.
13572 (GHS_current_section_names): Likewise.
13573 (v850_insert_attributes): Do not build strings, just assign the
13574 names directly. Change the type of 'chosen_section' to const
13575 char*.
13576 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
13577 directly to the array entry.
13578 * config/v850/v850.h (GHS_default_section_names): Change to const
13579 char * type.
13580 (GHS_current_section_names): Likewise.
13581
13582 2014-06-25 Jakub Jelinek <jakub@redhat.com>
13583
13584 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
13585 (LANG_HOOKS_DECLS): Add it.
13586 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
13587 has correct type.
13588 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
13589 * langhooks.h (struct lang_hooks_for_decls): Add
13590 omp_clause_linear_ctor hook.
13591 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
13592 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
13593 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
13594 combined simd loop use omp_clause_linear_ctor hook.
13595
13596 2014-06-24 Cong Hou <congh@google.com>
13597
13598 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
13599 pattern recognition.
13600 (type_conversion_p): PROMOTION is true if it's a type promotion
13601 conversion, and false otherwise. Return true if the given expression
13602 is a type conversion one.
13603 * tree-vectorizer.h: Adjust the number of patterns.
13604 * tree.def: Add SAD_EXPR.
13605 * optabs.def: Add sad_optab.
13606 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13607 * expr.c (expand_expr_real_2): Likewise.
13608 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13609 * gimple.c (get_gimple_rhs_num_ops): Likewise.
13610 * optabs.c (optab_for_tree_code): Likewise.
13611 * tree-cfg.c (estimate_operator_cost): Likewise.
13612 * tree-ssa-operands.c (get_expr_operands): Likewise.
13613 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13614 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13615 * doc/generic.texi: Add document for SAD_EXPR.
13616 * doc/md.texi: Add document for ssad and usad.
13617
13618 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13619
13620 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13621 qualification in cast.
13622
13623 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
13624
13625 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13626 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13627 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13628 (tree_function_decl): ... here.
13629 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13630 streaming of vindex to ...
13631 (write_ts_function_decl_tree_pointers): ... here.
13632 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13633 Do not stream DECL_VINDEX.
13634 (lto_input_ts_function_decl_tree_pointers): Stream it here.
13635
13636 2014-06-24 Catherine Moore <clm@codesourcery.com>
13637 Sandra Loosemore <sandra@codesourcery.com>
13638
13639 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13640 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13641 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13642
13643 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13644
13645 * doc/invoke.texi (Warning Options): Remove duplicated
13646 -Wmaybe-uninitialized.
13647
13648 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
13649
13650 PR tree-optimization/57742
13651 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13652 (handle_builtin_malloc, handle_builtin_memset): New functions.
13653 (strlen_optimize_stmt): Call them.
13654 * passes.def: Move strlen after loop+dom but before vrp.
13655
13656 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13657
13658 PR target/61570
13659 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13660 model family 6 CPU with has_longmode never use a CPU without
13661 64-bit support.
13662
13663 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
13664
13665 PR target/61570
13666 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13667 the last change.
13668
13669 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13670
13671 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13672 * dominance.c (iterate_fix_dominators): Use hash_map instead of
13673 pointer_map.
13674 * hash-map.h: New file.
13675 * ipa-comdats.c: Use hash_map instead of pointer_map.
13676 * ipa.c: Likewise.
13677 * lto-section-out.c: Adjust.
13678 * lto-streamer.h: Replace pointer_map with hash_map.
13679 * symtab.c (verify_symtab): Likewise.
13680 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13681 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13682 * tree-streamer.h: Likewise.
13683 * tree-streamer.c: Adjust.
13684 * pointer-set.h: Remove pointer_map.
13685
13686 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13687
13688 * hash-table.h: Add a template arg to choose between storing values
13689 and storing pointers to values, and then provide partial
13690 specializations for both.
13691 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13692 should store, not the type values should point to.
13693 * tree-into-ssa.c (var_info_hasher): Likewise.
13694 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13695 * tree-complex.c: Adjust.
13696 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13697 table instead of int_tree_map *.
13698 * tree-parloops.c: Adjust.
13699 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13700 type is being stored.
13701 * tree-vectorizer.c: Adjust.
13702
13703 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
13704
13705 * hash-table.h: Remove a layer of indirection from hash_table so that
13706 it contains the hash table's data instead of a pointer to the data.
13707 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13708 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13709 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13710 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13711 fold-const.c, gcse.c, ggc-common.c,
13712 gimple-ssa-strength-reduction.c, gimplify.c,
13713 graphite-clast-to-gimple.c, graphite-dependences.c,
13714 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13715 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13716 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13717 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13718 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13719 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13720 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13721 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13722 tree-ssa-live.c, tree-ssa-loop-im.c,
13723 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13724 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13725 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13726 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13727 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13728 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13729 vtable-verify.c, vtable-verify.h: Adjust.
13730
13731 2014-06-24 Richard Biener <rguenther@suse.de>
13732
13733 PR tree-optimization/61572
13734 * tree-ssa-sink.c (statement_sink_location): Do not sink
13735 loads from hard registers.
13736
13737 2014-06-24 Jakub Jelinek <jakub@redhat.com>
13738
13739 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13740 not mentioned in clauses use private clause if the iterator is
13741 declared in #pragma omp for simd, and when adding lastprivate
13742 instead, add it to the outer #pragma omp for too. Diagnose
13743 if the variable is private in outer context. For simd collapse > 1
13744 loops, replace all iterators with temporaries.
13745 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13746 same even in collapse > 1 loops.
13747
13748 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13749 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13750 non-NULL.
13751 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13752 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13753 non-NULL.
13754 (gimplify_adjust_omp_clauses): Likewise.
13755 * omp-low.c (lower_rec_simd_input_clauses,
13756 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13757 safelen the same as safelen(1).
13758 * tree-nested.c (convert_nonlocal_omp_clauses,
13759 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
13760 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13761 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13762 Fixup handling of GIMPLE_OMP_TARGET.
13763 (convert_tramp_reference_stmt, convert_gimple_call): Handle
13764 GIMPLE_OMP_TARGET.
13765
13766 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
13767
13768 PR tree-optimization/61554
13769 * tree-ssa-propagate.c: Include "bitmap.h".
13770 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13771 properly update constructor/destructor.
13772 (substitute_and_fold_dom_walker::before_dom_children):
13773 Remove call to gimple_purge_dead_eh_edges, add bb->index to
13774 need_eh_cleaup instead.
13775 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13776 need_eh_cleanup.
13777
13778 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13779
13780 * varpool.c (dump_varpool_node): Dump used_by_single_function.
13781 * tree-pass.h (make_pass_ipa_single_use): New pass.
13782 * cgraph.h (used_by_single_function): New flag.
13783 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13784 Stream it.
13785 * passes.def (pass_ipa_single_use): Scedule.
13786 * ipa.c (BOTTOM): New macro.
13787 (meet): New function
13788 (propagate_single_user): New function.
13789 (ipa_single_use): New function.
13790 (pass_data_ipa_single_use): New pass.
13791 (pass_ipa_single_use): New pass.
13792 (pass_ipa_single_use::gate): New gate.
13793 (make_pass_ipa_single_use): New function.
13794
13795 2014-06-23 Kai Tietz <ktietz@redhat.com>
13796
13797 PR target/39284
13798 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13799 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13800
13801 2014-06-23 Richard Biener <rguenther@suse.de>
13802
13803 * tree-ssa-loop.c (gate_loop): New function.
13804 (pass_tree_loop::gate): Call it.
13805 (pass_data_tree_no_loop, pass_tree_no_loop,
13806 make_pass_tree_no_loop): New.
13807 * tree-vectorizer.c: Include tree-scalar-evolution.c
13808 (pass_slp_vectorize::execute): Initialize loops and SCEV if
13809 required.
13810 (pass_slp_vectorize::clone): New method.
13811 * timevar.def (TV_TREE_NOLOOP): New.
13812 * tree-pass.h (make_pass_tree_no_loop): Declare.
13813 * passes.def (pass_tree_no_loop): New pass group with
13814 SLP vectorizer.
13815
13816 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
13817
13818 PR target/61570
13819 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13820 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13821
13822 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13823
13824 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13825 "yes" where needed.
13826
13827 2014-06-23 Alan Modra <amodra@gmail.com>
13828
13829 PR bootstrap/61583
13830 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13831 to zero on debug statements.
13832
13833 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13834
13835 PR target/60825
13836 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13837 Ignore third operand if present by marking qualifier_internal.
13838
13839 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13840
13841 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13842 vector extension.
13843 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13844 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13845 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13846 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13847 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13848 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13849 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13850 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13851 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13852 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13853 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13854 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13855 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13856 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13857 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13858 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13859 logic in GCC vector extensions
13860
13861 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13862 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13863 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13864 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13865 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13866 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13867 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13868 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13869 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13870 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13871
13872 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13873
13874 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13875 extensions.
13876
13877 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13878 (vget_low_s64): Use __GET_LOW macro.
13879 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13880 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13881 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13882 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13883 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13884
13885 (vcombine_s64): Use GCC vector extensions; remove cast.
13886 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13887 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13888 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13889 Fix type signature; remove cast.
13890
13891 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
13892
13893 PR target/60825
13894 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13895 V1DFmode.
13896 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13897 add V1DFmode
13898 (BUILTIN_VD1): New.
13899 (BUILTIN_VD_RE): Remove.
13900 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13901 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13902 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13903 variant but not df.
13904 (vreinterpretv1df*, vreinterpret*v1df): New.
13905 (vreinterpretdf*, vreinterpret*df): Remove.
13906 * config/aarch64/aarch64-simd.md (aarch64_create,
13907 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13908 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13909 (VD1): New.
13910 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13911 (vcreate_f64): Remove cast, use v1df builtin.
13912 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13913 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13914 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13915 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13916 vmov_n_f64, vst1_f64): Use gcc vector extensions.
13917 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13918 add range check using __builtin_aarch64_im_lane_boundsi.
13919 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13920 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13921 type signature, use gcc vector extensions.
13922 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13923 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13924 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13925 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13926 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13927 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13928 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13929 vreinterpret_u64_f64): Use v1df builtin not df.
13930
13931 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
13932
13933 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13934 vector registers.
13935
13936 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
13937
13938 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13939 priority directly.
13940
13941 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13942
13943 * loop-invariant.c (pre_check_invariant_p): New function.
13944 (find_invariant_insn): Call pre_check_invariant_p.
13945
13946 2014-06-22 Richard Henderson <rth@redhat.com>
13947
13948 PR target/61565
13949 * compare-elim.c (struct comparison): Add eh_note.
13950 (find_comparison_dom_walker::before_dom_children): Don't eliminate
13951 a redundant comparison in a different EH region. Purge EH edges if
13952 necessary.
13953
13954 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13955
13956 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
13957 (var_shift): Use it.
13958 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
13959 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13960 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13961 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13962 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13963 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
13964 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
13965 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
13966 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
13967 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
13968 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
13969 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
13970 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
13971 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
13972 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
13973 *rotldi3_internal15be): Use the new attribute. Merge register and
13974 integer alternatives.
13975
13976 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13977
13978 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
13979 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
13980 split, *ashrdi3_internal3 and split): Delete, merge into...
13981 (ashr<mode>3): New expander.
13982 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
13983 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
13984
13985 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13986
13987 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
13988 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
13989 *rotldi3_internal3 and split): Delete, merge into...
13990 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
13991 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
13992 Use "rotlw" extended mnemonic.
13993
13994 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13995
13996 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
13997 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
13998 and split, *ashldi3_internal3 and split): Delete, merge into...
13999 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
14000 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
14001
14002 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14003
14004 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
14005 (lshrsi3, two anonymous define_insns and define_splits,
14006 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
14007 *lshrdi3_internal3 and split): Delete, merge into...
14008 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
14009 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
14010
14011 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
14012
14013 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
14014 Remove "O" alternative.
14015
14016 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
14017
14018 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
14019 (mips_move_from_gpr_cost): Likewise.
14020 (mips_register_move_cost): Update accordingly.
14021 (mips_secondary_reload_class): Remove name of in_p.
14022
14023 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
14024
14025 PR target/61503
14026 * config/i386/i386.md (x86_64_shrd, x86_shrd,
14027 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
14028
14029 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14030
14031 * config/nios2/nios2.c: Include "builtins.h".
14032
14033 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14034
14035 * cgraph.h (tls_model_names): New variable.
14036 * print-tree.c (print_node): Simplify.
14037 * varpool.c (tls_model_names): New variable.
14038 (dump_varpool_node): Output tls model.
14039
14040 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14041
14042 * ipa-visibility.c (function_and_variable_visibility): Disable
14043 temporarily local aliases for some targets.
14044
14045 2014-06-20 Marek Polacek <polacek@redhat.com>
14046
14047 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
14048 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
14049 into SANITIZE_UNDEFINED.
14050 * doc/invoke.texi: Describe -fsanitize=bounds.
14051 * gimplify.c (gimplify_call_expr): Add gimplification of internal
14052 functions created in the FEs.
14053 * internal-fn.c: Move "internal-fn.h" after "tree.h".
14054 (expand_UBSAN_BOUNDS): New function.
14055 * internal-fn.def (UBSAN_BOUNDS): New internal function.
14056 * internal-fn.h: Don't define internal functions here.
14057 * opts.c (common_handle_option): Add -fsanitize=bounds.
14058 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
14059 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
14060 * tree-core.h: Define internal functions here.
14061 (struct tree_base): Add ifn field.
14062 * tree-pretty-print.c: Include "internal-fn.h".
14063 (dump_generic_node): Handle functions without CALL_EXPR_FN.
14064 * tree.c (get_callee_fndecl): Likewise.
14065 (build_call_expr_internal_loc): New function.
14066 * tree.def (CALL_EXPR): Update description.
14067 * tree.h (CALL_EXPR_IFN): Define.
14068 (build_call_expr_internal_loc): Declare.
14069 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
14070 types.
14071 (ubsan_type_descriptor): Change bool parameter to enum
14072 ubsan_print_style. Adjust the code. Add handling of
14073 UBSAN_PRINT_ARRAY.
14074 (ubsan_expand_bounds_ifn): New function.
14075 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
14076 (ubsan_build_overflow_builtin): Likewise.
14077 (instrument_bool_enum_load): Likewise.
14078 (ubsan_instrument_float_cast): Likewise.
14079 * ubsan.h (enum ubsan_print_style): New enum.
14080 (ubsan_expand_bounds_ifn): Declare.
14081 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
14082
14083 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
14084
14085 * config/rs6000/rs6000.md: Append `DONE' to preparation
14086 statements of `bswap' pattern splitters.
14087
14088 2014-06-20 Tom de Vries <tom@codesourcery.com>
14089
14090 * target.def (call_fusage_contains_non_callee_clobbers): Update
14091 definition.
14092 * doc/tm.texi: Regenerate.
14093
14094 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14095 Max Ostapenko <m.ostapenko@partner.samsung.com>
14096
14097 PR sanitizer/61547
14098 * asan.c (instrument_strlen_call): Fixed instrumentation of
14099 trailing byte.
14100
14101 2014-06-20 Martin Jambor <mjambor@suse.cz>
14102
14103 PR ipa/61540
14104 * ipa-prop.c (impossible_devirt_target): New function.
14105 (try_make_edge_direct_virtual_call): Use it, also instead of
14106 asserting.
14107
14108 2014-06-20 Yury Gribov <y.gribov@samsung.com>
14109 Max Ostapenko <m.ostapenko@partner.samsung.com>
14110
14111 PR sanitizer/61530
14112 * asan.c (build_check_stmt): Add condition.
14113
14114 2014-06-20 Martin Jambor <mjambor@suse.cz>
14115
14116 PR ipa/61211
14117 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
14118 expanded clones.
14119
14120 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14121
14122 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
14123 Update comments.
14124 (VCONQ): Make comment more helpful.
14125 (VCON): Delete.
14126 * config/aarch64/aarch64-simd.md
14127 (aarch64_sqdmulh_lane<mode>):
14128 Use VCOND for operands 2. Update lane checking and flipping logic.
14129 (aarch64_sqrdmulh_lane<mode>): Likewise.
14130 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
14131 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
14132 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
14133 attribute of operand 3 to VCOND.
14134 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
14135 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14136 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
14137 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
14138 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14139 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
14140 define_insn.
14141 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
14142 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
14143 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
14144 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
14145 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
14146 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
14147 operand to VCOND. Update lane flipping and bounds checking logic.
14148 (aarch64_sqdmlal2_lane<mode>): Likewise.
14149 (aarch64_sqdmlsl_lane<mode>): Likewise.
14150 (aarch64_sqdmull_lane<mode>): Likewise.
14151 (aarch64_sqdmull2_lane<mode>): Likewise.
14152 (aarch64_sqdmlal_laneq<mode>):
14153 Replace VCON usage with VCONQ.
14154 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
14155 (aarch64_sqdmlal2_laneq<mode>): Emit
14156 aarch64_sqdmlal2_laneq<mode>_internal insn.
14157 Replace VCON with VCONQ.
14158 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
14159 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14160 (aarch64_sqdmull_laneq<mode>): Emit
14161 aarch64_sqdmull_laneq<mode>_internal insn.
14162 Replace VCON with VCONQ.
14163 (aarch64_sqdmull2_laneq<mode>): Emit
14164 aarch64_sqdmull2_laneq<mode>_internal insn.
14165 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
14166 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
14167 of 3rd argument to int16x4_t.
14168 (vqdmlalh_lane_s16): Likewise.
14169 (vqdmlslh_lane_s16): Likewise.
14170 (vqdmull_high_lane_s16): Likewise.
14171 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
14172 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
14173 (vqdmlsl_lane_s16): Likewise.
14174 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
14175 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
14176 (vqdmlals_lane_s32): Likewise.
14177 (vqdmlsls_lane_s32): Likewise.
14178 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
14179 (vqdmulls_lane_s32): Likewise.
14180 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
14181 (vqdmlsl_lane_s32): Likewise.
14182 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
14183 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
14184 (vqrdmulhh_lane_s16): Likewise.
14185 (vqdmlsl_high_lane_s16): Likewise.
14186 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
14187 (vqdmlsl_high_lane_s32): Likewise.
14188 (vqrdmulhs_lane_s32): Likewise.
14189
14190 2014-06-20 Tom de Vries <tom@codesourcery.com>
14191
14192 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
14193 get_call_reg_set_usage.
14194
14195 2014-06-20 Tom de Vries <tom@codesourcery.com>
14196
14197 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
14198 it contains all call_used_regs.
14199
14200 2014-06-20 Tom de Vries <tom@codesourcery.com>
14201
14202 * final.c (collect_fn_hard_reg_usage): Add and use variable
14203 function_used_regs.
14204
14205 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
14206
14207 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
14208 (set_init_priority, get_init_priority, set_fini_priority,
14209 get_fini_priority): New methods.
14210 * tree.c (init_priority_for_decl): Remove.
14211 (init_ttree): Do not initialize init priority.
14212 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
14213 (decl_priority_info): Remove.
14214 (decl_init_priority_insert): Rewrite.
14215 (decl_fini_priority_insert): Rewrite.
14216 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
14217 tree_priority_map_marked_p): Remove.
14218 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
14219 * lto-streamer-out.c (hash_tree): Do not hash priorities.
14220 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
14221 not output priorities.
14222 (pack_ts_function_decl_value_fields): Likewise.
14223 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14224 not input priorities.
14225 (unpack_ts_function_decl_value_fields): Likewise.
14226 * symtab.c (symbol_priority_map): Declare.
14227 (init_priority_hash): Declare.
14228 (symtab_unregister_node): Unregister from priority hash, too.
14229 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
14230 New methods.
14231 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
14232 (symbol_priority_info): New function.
14233 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
14234 New methods.
14235 * tree-core.h (tree_priority_map): Remove.
14236
14237 2014-06-20 Jakub Jelinek <jakub@redhat.com>
14238
14239 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
14240 0xff to uint64_t before shifting it up.
14241
14242 2014-06-20 Julian Brown <julian@codesourcery.com>
14243 Chung-Lin Tang <cltang@codesourcery.com>
14244
14245 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
14246 TARGET_THUMB1_ONLY. Add comments.
14247
14248 2014-06-19 Tom de Vries <tom@codesourcery.com>
14249
14250 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
14251 return type to void.
14252 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
14253
14254 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14255
14256 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
14257 as "move", from depends_on.
14258
14259 2014-06-19 Terry Guo <terry.guo@arm.com>
14260
14261 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
14262 stage.
14263
14264 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
14265
14266 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
14267 Remove cr5.
14268 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
14269
14270 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14271
14272 PR target/61550
14273 * config/sh/sh.c (prepare_move_operands): Don't process TLS
14274 addresses here if reload in progress or completed.
14275
14276 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14277
14278 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
14279 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
14280 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
14281 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
14282 (mips_register_priority): New function that implements the target
14283 hook TARGET_REGISTER_PRIORITY.
14284 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
14285 (mips_lra_p): Likewise for TARGET_LRA_P.
14286 (TARGET_REGISTER_PRIORITY): Define macro.
14287 (TARGET_SPILL_CLASS): Likewise.
14288 (TARGET_LRA_P): Likewise.
14289 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
14290 classes.
14291 (REG_CLASS_NAMES): Likewise.
14292 (REG_CLASS_CONTENTS): Likewise.
14293 (BASE_REG_CLASS): Use M16_SP_REGS.
14294 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
14295 New set attribute to enable alternatives depending on the register
14296 allocator used.
14297 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
14298 (*lea64): Disable pattern for MIPS16.
14299 * config/mips/mips.opt (mlra): New option.
14300
14301 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
14302
14303 * lra-constraints.c (base_to_reg): New function.
14304 (process_address): Use new function.
14305
14306 2014-06-18 Tom de Vries <tom@codesourcery.com>
14307
14308 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
14309 * config/aarch64/aarch64.c
14310 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
14311 (aarch64_emit_call_insn): New function.
14312 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
14313 of emit_call_insn.
14314 * config/aarch64/aarch64.md (define_expand "call_internal")
14315 (define_expand "call_value_internal", define_expand "sibcall_internal")
14316 (define_expand "sibcall_value_internal"): New.
14317 (define_expand "call", define_expand "call_value")
14318 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
14319 expand variant and aarch64_emit_call_insn.
14320
14321 2014-06-18 Radovan Obradovic <robradovic@mips.com>
14322 Tom de Vries <tom@codesourcery.com>
14323
14324 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
14325 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14326 Redefine to true.
14327 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
14328 clobbers to CALL_INSN_FUNCTION_USAGE.
14329 (define_expand "sibcall_internal")
14330 (define_expand "sibcall_value_internal"): New.
14331 (define_expand "call", define_expand "call_value"): Add argument to
14332 arm_emit_call_insn.
14333 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
14334 (define_expand "sibcall_value"): Use sibcall_value_internal and
14335 arm_emit_call_insn.
14336
14337 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14338
14339 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
14340
14341 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14342
14343 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
14344 __udivmoddi4.
14345
14346 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14347
14348 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
14349 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
14350 annotations. Fix DWARF information.
14351
14352 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14353
14354 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
14355 __udivmoddi4, and fixups for negative operands.
14356
14357 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14358
14359 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
14360
14361 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14362
14363 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
14364 to __udivmoddi4.
14365
14366 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14367
14368 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
14369 manipulation.
14370
14371 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14372
14373 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
14374 describing register usage on function entry and exit.
14375
14376 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14377
14378 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
14379 (__aeabi_ldivmod): Fix whitespace.
14380
14381 2014-06-18 Andreas Schwab <schwab@suse.de>
14382
14383 * doc/md.texi (Standard Names): Use @itemx for grouped items.
14384 Remove blank line after @item.
14385
14386 2014-06-18 Richard Henderson <rth@redhat.com>
14387
14388 PR target/61545
14389 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
14390
14391 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
14392
14393 * config/arm/arm.c (neon_vector_mem_operand): Allow register
14394 POST_MODIFY for neon loads and stores.
14395 (arm_print_operand): Output post-index register for neon loads and
14396 stores.
14397
14398 2014-06-18 Richard Biener <rguenther@suse.de>
14399
14400 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
14401
14402 2014-06-18 Richard Biener <rguenther@suse.de>
14403
14404 * tree-pass.h (make_pass_dce_loop): Remove.
14405 * passes.def: Replace pass_dce_loop with pass_dce.
14406 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
14407 changed free niter estimates and reset the scev cache.
14408 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
14409 make_pass_dce_loop): Remove.
14410 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
14411 (fini_copy_prop): Return whether something changed. Always
14412 let substitute_and_fold perform DCE and free niter estimates
14413 and reset the scev cache if so.
14414 (execute_copy_prop): If sth changed schedule cleanup-cfg.
14415 (pass_data_copy_prop): Do not unconditionally schedule
14416 cleanup-cfg or update-ssa.
14417
14418 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14419
14420 PR tree-optimization/61518
14421 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14422 reduction var is used in reduction stmt or phi-function only.
14423
14424 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14425
14426 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
14427
14428 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14429
14430 PR tree-optimization/61517
14431 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
14432 whose rhs's first tree is the source expression instead of the
14433 expression itself.
14434 (find_bswap_or_nop): Likewise.
14435 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
14436 gimple stmt whose rhs's first tree is the source. In the memory source
14437 case, move the stmt to be replaced close to one of the original load to
14438 avoid the problem of a store between the load and the stmt's original
14439 location.
14440 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
14441 signature.
14442
14443 2014-06-18 Andreas Schwab <schwab@suse.de>
14444
14445 PR rtl-optimization/54555
14446 * postreload.c (move2add_use_add2_insn): Substitute
14447 STRICT_LOW_PART only if it is cheaper.
14448
14449 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
14450
14451 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
14452 Do not use unspec as call operand. Use memory_operand instead of
14453 memory_nox32_operand and add "m" operand constraint. Disable
14454 pattern for TARGET_X32.
14455 (*sibcall_pop_memory): Ditto.
14456 (*sibcall_value_memory): Ditto.
14457 (*sibcall_value_pop_memory): Ditto.
14458 (sibcall peepholes): Merge SImode and DImode patterns using
14459 W mode iterator. Use memory_operand instead of memory_nox32_operand.
14460 Disable pattern for TARGET_X32. Check if eliminated register is
14461 really dead after call insn. Generate call RTX without unspec operand.
14462 (sibcall_value peepholes): Ditto.
14463 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
14464 instead of memory_nox32_operand. Check if eliminated register is
14465 really dead after call insn. Generate call RTX without unspec operand.
14466 (sibcall_value_pop peepholes): Ditto.
14467 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
14468
14469 2014-06-18 Terry Guo <terry.guo@arm.com>
14470
14471 PR target/61544
14472 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
14473 reach the head.
14474
14475 2014-06-18 Olivier Hainque <hainque@adacore.com>
14476
14477 * tree-core.h (tree_block): Add an "end_locus" field, allowing
14478 memorization of the end of block source location.
14479 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
14480 * gimplify.c (gimplify_bind_expr): Propagate the block start and
14481 end source location info we have on the block entry/exit code we
14482 generate.
14483
14484 2014-06-18 Richard Biener <rguenther@suse.de>
14485
14486 * common.opt (fssa-phiopt): New option.
14487 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
14488 but not with -Og.
14489 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
14490 * doc/invoke.texi (-fssa-phiopt): Document.
14491
14492 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14493
14494 * genattrtab.c (n_bypassed): New variable.
14495 (process_bypasses): Initialise n_bypassed.
14496 Count number of bypassed reservations.
14497 (make_automaton_attrs): Allocate space for bypassed reservations
14498 rather than number of bypasses.
14499
14500 2014-06-18 Richard Biener <rguenther@suse.de>
14501
14502 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
14503 we propagated anything.
14504 (substitute_and_fold_dom_walker::before_dom_children): Something
14505 changed if we propagated into PHI arguments.
14506 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
14507 we removed a stmt.
14508
14509 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
14510
14511 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
14512 vector case.
14513 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
14514 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
14515 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
14516 Introduces alternative way of loads group permutaions.
14517 (vect_transform_grouped_load): Try alternative way of permutations.
14518
14519 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14520
14521 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
14522 changed in ORT_TARGET region, don't jump to do_outer.
14523 (struct gimplify_adjust_omp_clauses_data): New type.
14524 (gimplify_adjust_omp_clauses_1): Adjust for data being
14525 a struct gimplify_adjust_omp_clauses_data pointer instead
14526 of tree *. Pass pre_p as a new argument to
14527 lang_hooks.decls.omp_finish_clause hook.
14528 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
14529 splay_tree_foreach to pass both list_p and pre_p.
14530 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
14531 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
14532 gimplify_adjust_omp_clauses callers.
14533 * langhooks.c (lhd_omp_finish_clause): New function.
14534 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
14535 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
14536 * langhooks.h (struct lang_hooks_for_decls): Add a new
14537 gimple_seq * argument to omp_finish_clause hook.
14538 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
14539 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
14540 (scan_omp_parallel, lower_omp_for): When adding
14541 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
14542 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
14543 * tree-nested.c (convert_nonlocal_omp_clauses,
14544 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
14545 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
14546
14547 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
14548
14549 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
14550 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
14551
14552 2014-06-17 Xinliang David Li <davidxl@google.com>
14553
14554 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
14555 * passes.c (pass_init_dump_file): Do not set initialize
14556 flag to false unconditionally.
14557
14558 2014-06-17 Richard Biener <rguenther@suse.de>
14559
14560 * genopinit.c (main): Use vec<>::qsort method.
14561 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14562 Likewise.
14563 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
14564
14565 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
14566
14567 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
14568 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
14569 (mips_move_to_gpr_cost): Remove ST_REGS case.
14570 (mips_move_from_gpr_cost): Likewise.
14571 (mips_register_move_cost): Likewise.
14572 (mips_secondary_reload_class): Likewise.
14573
14574 2014-06-17 Richard Biener <rguenther@suse.de>
14575
14576 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
14577 (pass_all_optimizations): Move 3rd copy-prop pass from after
14578 fre to before ifcombine/phiopt.
14579
14580 2014-06-17 Richard Biener <rguenther@suse.de>
14581
14582 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
14583 and allow all blocks to be forwarders.
14584
14585 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
14586
14587 PR target/61483
14588 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
14589 variable 'size'; calculate 'size' right in the front; use
14590 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
14591 pcum->aapcs_stack_words.
14592
14593 2014-06-17 Nick Clifton <nickc@redhat.com>
14594
14595 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
14596 (umulhi3, mulsidi3, umulsidi3): Likewise.
14597
14598 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
14599
14600 PR middle-end/61508
14601 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14602 check for section name.
14603
14604 2014-06-17 Richard Biener <rguenther@suse.de>
14605
14606 * tree-ssa-propagate.c: Include domwalk.h.
14607 (substitute_and_fold): Outline main worker into a domwalker ...
14608 (substitute_and_fold_dom_walker::before_dom_children): ... here.
14609 Schedule stmts we can fully propagate for removal. Remove
14610 poor-mans DCE.
14611 (substitute_and_fold): Apply a dominator walk to perform
14612 substitution. Process stmts scheduled for removal here.
14613
14614 2014-06-17 Richard Biener <rguenther@suse.de>
14615
14616 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14617 of PHI node moving.
14618
14619 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14620
14621 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14622 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14623 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14624 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14625 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14626 TARGET_HARD_FLOAT.
14627 (get_fpscr) : Likewise.
14628
14629 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14630
14631 PR rtl-optimization/61325
14632 * lra-constraints.c (valid_address_p): Add forward declaration.
14633 (simplify_operand_subreg): Check address validity before and after
14634 alter_reg of memory subreg.
14635
14636 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
14637
14638 * config/i386/i386.c (decide_alg): Correctly handle
14639 maximum size of stringop algorithm.
14640
14641 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14642
14643 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14644
14645 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
14646
14647 PR rtl-optimization/61522
14648 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14649
14650 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
14651
14652 Revert:
14653 * symtab.c (symtab_node::reset_section): New method.
14654 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14655 for localization.
14656 * cgraph.h (reset_section): Declare.
14657 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14658 do not consider comdat locals.
14659 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14660 for new symbol.
14661 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14662 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14663 reset sections of symbols dragged out of the comdats.
14664 (function_and_variable_visibility): Reset sections of
14665 localized symbols.
14666
14667 2014-06-16 Richard Biener <rguenther@suse.de>
14668
14669 PR tree-optimization/61482
14670 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14671 [-INF(OVF), +INF(OVF)] range.
14672
14673 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14674
14675 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14676 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14677 handling 32-bit multiplication.
14678
14679 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
14680
14681 PR middle-end/61430
14682 * lra-lives.c (process_bb_lives): Skip creating copy during
14683 insn scan when src/dest has constrained to same regno.
14684
14685 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14686
14687 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14688 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14689
14690 2014-06-16 Yury Gribov <y.gribov@samsung.com>
14691
14692 * asan.c (check_func): New function.
14693 (maybe_create_ssa_name): Likewise.
14694 (build_check_stmt_with_calls): Likewise.
14695 (use_calls_p): Likewise.
14696 (report_error_func): Change interface.
14697 (build_check_stmt): Allow non-integer lengths; add support
14698 for new parameter.
14699 (asan_instrument): Likewise.
14700 (instrument_mem_region_access): Moved code to build_check_stmt.
14701 (instrument_derefs): Likewise.
14702 (instrument_strlen_call): Likewise.
14703 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14704 * doc/invoke.texi: Describe new parameter.
14705 * params.def: Define new parameter.
14706 * params.h: Likewise.
14707 * sanitizer.def: Describe new builtins.
14708
14709 2014-06-16 Richard Biener <rguenther@suse.de>
14710
14711 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14712 Make all defs available at the end.
14713 (eliminate): If we remove a PHI node schedule cfg-cleanup.
14714
14715 2014-06-18 Jakub Jelinek <jakub@redhat.com>
14716
14717 PR plugins/45078
14718 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14719
14720 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
14721
14722 PR bootstrap/61516
14723 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14724 initialization. Replace remaining use of uid.
14725
14726 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
14727
14728 * c-family/c-common.c (handle_tls_model_attribute): Use
14729 set_decl_tls_model.
14730 * c-family/c-common.c (handle_tls_model_attribute): Use
14731 set_decl_tls_model.
14732 * cgraph.h (struct varpool_node): Add tls_model.
14733 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14734 * tree.h (DECL_TLS_MODEL): Update.
14735 (DECL_THREAD_LOCAL_P): Check that variable is static.
14736 (decl_tls_model): Declare.
14737 (set_decl_tls_model): Declare.
14738 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14739 set symbol prorperties.
14740 (get_emutls_init_templ_addr): Cleanup.
14741 (new_emutls_decl): Update.
14742 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14743 (lto_input_varpool_node): Likewise.
14744 * lto-streamer-out.c (hash_tree): Likewise.
14745 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14746 not stream DECL_TLS_MODEL.
14747 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14748 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14749
14750 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14751
14752 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14753
14754 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14755
14756 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14757 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14758 lists.
14759 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14760 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14761 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14762 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14763 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14764 (df_get_artificial_defs, df_get_artificial_uses)
14765 (df_single_def, df_single_use): Update accordingly.
14766 (df_refs_chain_dump): Take the first element in a linked list as
14767 parameter, rather than a pointer to an array of pointers.
14768 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14769 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14770 (df_chain_create_bb_process_use): Likewise.
14771 (df_md_bb_local_compute_process_def): Likewise.
14772 * fwprop.c (process_defs, process_uses): Likewise.
14773 (register_active_defs, update_uses): Likewise.
14774 (forward_propagate_asm): Update for new df_ref linking.
14775 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14776 (df_null_ref_rec, df_null_mw_rec): Likewise.
14777 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14778 explicitly.
14779 (df_scan_free_bb_info): Remove check for null artificial_defs.
14780 (df_install_ref_incremental): Adjust for new df_ref linking.
14781 Use a single-element insertion rather than a full sort.
14782 (df_ref_chain_delete_du_chain): Take the first element
14783 in a linked list as parameter, rather than a pointer to an array of
14784 pointers.
14785 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14786 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14787 (df_insn_info_delete): Remove check for null defs and call to
14788 df_scan_free_mws_vec.
14789 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14790 null rather than df_null_*_rec.
14791 (df_insn_rescan_debug_internal): Likewise, and update null
14792 checks in the same way. Remove check for null defs.
14793 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14794 Move a single element rather doing a full sort.
14795 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14796 linking.
14797 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
14798 Initialize df_ref and df_mw_hardreg lists to null rather than
14799 df_null_*_rec.
14800 (df_ref_compare): Take df_refs as parameter, transferring the
14801 old interface to...
14802 (df_ref_ptr_compare): ...this new function.
14803 (df_sort_and_compress_refs): Update accordingly.
14804 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14805 old interface to...
14806 (df_mw_ptr_compare): ...this new function.
14807 (df_sort_and_compress_mws): Update accordingly.
14808 (df_install_refs, df_install_mws): Return a linked list rather than
14809 an array of pointers.
14810 (df_refs_add_to_chains): Assert that old lists are empty rather
14811 than freeing them.
14812 (df_insn_refs_verify): Don't handle null defs speciailly.
14813 * web.c (union_match_dups): Update for new df_ref linking.
14814
14815 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14816
14817 * df.h (df_ref_create, df_ref_remove): Delete.
14818 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14819 (df_ref_remove): Likewise.
14820
14821 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14822
14823 * df.h (df_single_def, df_single_use): New functions.
14824 * ira.c (find_moveable_pseudos): Use them.
14825
14826 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14827
14828 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14829 * df-problems.c (df_note_bb_compute): Use it.
14830 * regstat.c (regstat_bb_compute_ri): Likewise.
14831
14832 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14833
14834 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14835 * cse.c (cse_extended_basic_block): Use them.
14836 * dce.c (mark_artificial_use): Likewise.
14837 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14838 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14839 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14840 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14841 (df_simulate_initialize_backwards): Likewise.
14842 (df_simulate_finalize_backwards): Likewise.
14843 (df_simulate_initialize_forwards): Likewise.
14844 (df_md_simulate_artificial_defs_at_top): Likewise.
14845 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14846 * regrename.c (init_rename_info): Likewise.
14847 * regstat.c (regstat_bb_compute_ri): Likewise.
14848 (regstat_bb_compute_calls_crossed): Likewise.
14849
14850 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
14851
14852 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14853 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14854 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14855 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14856 * combine.c (create_log_links): Likewise.
14857 * compare-elim.c (find_flags_uses_in_insn): Likewise.
14858 (try_eliminate_compare): Likewise.
14859 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14860 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14861 (remove_reg_equal_equiv_notes_for_defs): Likewise.
14862 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14863 (word_dce_process_block, dce_process_block): Likewise.
14864 * ddg.c (def_has_ccmode_p): Likewise.
14865 * df-core.c (df_bb_regno_first_def_find): Likewise.
14866 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14867 * df-problems.c (df_rd_simulate_one_insn): Likewise.
14868 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14869 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14870 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14871 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14872 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14873 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14874 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14875 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14876 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14877 * fwprop.c (local_ref_killed_between_p): Likewise.
14878 (all_uses_available_at, free_load_extend): Likewise.
14879 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14880 * hw-doloop.c (scan_loop): Likewise.
14881 * ifcvt.c (dead_or_predicable): Likewise.
14882 * init-regs.c (initialize_uninitialized_regs): Likewise.
14883 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14884 (process_bb_node_lives): Likewise.
14885 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14886 (find_moveable_pseudos): Likewise.
14887 * loop-invariant.c (check_dependencies, record_uses): Likewise.
14888 * recog.c (peep2_find_free_register): Likewise.
14889 * ree.c (get_defs): Likewise.
14890 * regstat.c (regstat_bb_compute_ri): Likewise.
14891 (regstat_bb_compute_calls_crossed): Likewise.
14892 * sched-deps.c (find_inc, find_mem): Likewise.
14893 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14894 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14895 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14896 (prepare_shrink_wrap): Likewise.
14897 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14898 * web.c (union_defs, pass_web::execute): Likewise.
14899 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14900 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14901
14902 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
14903
14904 * lra-assign.c (assign_by_spills): Add code to assign vector regs
14905 to inheritance pseudos.
14906 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14907
14908 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
14909
14910 PR target/61415
14911 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14912 (BU_MISC_2): Rename to ...
14913 (BU_LDBL128_2): ... this.
14914 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14915 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14916 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14917 RS6000_BTM_LDBL128.
14918 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14919 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14920 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14921 (unpacktf_1): Likewise.
14922 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14923 (__builtin_longdouble_dw1): Likewise.
14924 * doc/sourcebuild.texi (longdouble128): Document.
14925
14926 2014-06-13 Jeff Law <law@redhat.com>
14927
14928 PR rtl-optimization/61094
14929 PR rtl-optimization/61446
14930 * ree.c (combine_reaching_defs): Get the mode for the copy from
14931 the extension insn rather than the defining insn.
14932
14933 2014-06-13 Dehao Chen <dehao@google.com>
14934
14935 * dwarf2out.c (add_linkage_name): Emit more linkage name.
14936
14937 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
14938
14939 * doc/install.texi (--enable-linker-plugin-configure-flags)
14940 (--enable-linker-plugin-flags): Document new flags.
14941
14942 2014-06-13 Martin Jambor <mjambor@suse.cz>
14943
14944 PR ipa/61186
14945 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14946 cache_token if returning early.
14947
14948 2014-06-13 Nick Clifton <nickc@redhat.com>
14949
14950 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14951 requested alignment is active.
14952 (LABEL_ALIGN): Likewise.
14953 (LOOP_ALIGN): Likewise.
14954
14955 2014-06-13 Richard Biener <rguenther@suse.de>
14956
14957 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14958 Rewrite to propagate the VN result into all uses where
14959 possible and to remove stmts becoming dead because of that.
14960 (eliminate): Generalize stmt removal handling, remove in
14961 reverse dominator order to support proper debug stmt
14962 generation. Update stmts before removing stmts.
14963 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
14964
14965 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14966
14967 PR tree-optimization/61375
14968 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
14969 symbolic number cannot be represented in an uint64_t.
14970 (find_bswap_or_nop_1): Likewise.
14971
14972 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
14973
14974 * symtab.c (symtab_node::reset_section): New method.
14975 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14976 for localization.
14977 * cgraph.h (reset_section): Declare.
14978 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14979 do not consider comdat locals.
14980 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14981 for new symbol.
14982 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14983 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14984 reset sections of symbols dragged out of the comdats.
14985 (function_and_variable_visibility): Reset sections of
14986 localized symbols.
14987
14988 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
14989
14990 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
14991 to use symtab and decl_binds_to_current_def_p
14992 * tree-vectorizer.c (increase_alignment): Increase alignment
14993 of alias target, too.
14994
14995 2014-06-12 Jakub Jelinek <jakub@redhat.com>
14996
14997 PR middle-end/61486
14998 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
14999 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
15000 if outer combined construct is distribute.
15001 (gimplify_omp_for): For OMP_DISTRIBUTE set
15002 gimplify_omp_ctxp->distribute.
15003 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
15004 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
15005 mapping into decl map.
15006
15007 2014-06-12 Jason Merrill <jason@redhat.com>
15008
15009 * common.opt (fabi-version): Change default to 0.
15010
15011 2014-06-12 Jason Merrill <jason@redhat.com>
15012
15013 * toplev.c (process_options): Reject -fabi-version=1.
15014
15015 2014-06-12 Jeff Law <law@redhat.com>
15016
15017 PR tree-optimization/61009
15018 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
15019 value when we stop processing a block due to problematic PHIs.
15020
15021 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
15022
15023 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
15024 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
15025 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
15026 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
15027 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
15028 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
15029 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
15030 are not in the spec.
15031
15032 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
15033
15034 PR target/59843
15035 * config/aarch64/aarch64-modes.def: Add V1DFmode.
15036 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
15037 Support V1DFmode.
15038
15039 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
15040
15041 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
15042
15043 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
15044
15045 PR target/61443
15046 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
15047 loading from address spaces.
15048
15049 2014-06-12 Martin Liska <mliska@suse.cz>
15050
15051 PR ipa/61462
15052 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
15053 statement is reachable.
15054
15055 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15056
15057 * symtab.c (section_hash): New hash.
15058 (symtab_unregister_node): Clear section before freeing.
15059 (hash_section_hash_entry): New haser.
15060 (eq_sections): New function.
15061 (symtab_node::set_section_for_node): New method.
15062 (set_section_1): Update.
15063 (symtab_node::set_section): Take string instead of tree as parameter.
15064 (symtab_resolve_alias): Update.
15065 * cgraph.h (section_hash_entry_d): New structure.
15066 (section_hash_entry): New typedef.
15067 (cgraph_node): Change comdat_group_ to x_comdat_group,
15068 change section_ to x_section and turn into section_hash_entry;
15069 update accestors; put set_section_for_node offline.
15070 * tree.c (decl_section_name): Turn into string.
15071 (set_decl_section_name): Change parameter to be string.
15072 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
15073 * sdbout.c (sdbout_one_type): Update.
15074 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
15075 * varasm.c (IN_NAMED_SECTION, get_named_section,
15076 resolve_unique_section, hot_function_section, get_named_text_section,
15077 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
15078 make_decl_rtl, default_unique_section): Update.
15079 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
15080 (c6x_elf_unique_section): Update.
15081 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
15082 * config/pa/pa.c (pa_function_section): Update.
15083 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
15084 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
15085 * config/arc/arc.c (arc_in_small_data_p): Update.
15086 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
15087 * config/mcore/mcore.c (mcore_unique_section): Update.
15088 * config/mips/mips.c (mips16_build_function_stub): Update.
15089 (mips16_build_call_stub): Update.
15090 (mips_function_rodata_section): Update.
15091 (mips_in_small_data_p): Update.
15092 * config/score/score.c (score_in_small_data_p): Update.
15093 * config/rx/rx.c (rx_in_small_data): Update.
15094 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
15095 (rs6000_xcoff_asm_named_section): Update.
15096 (rs6000_xcoff_unique_section): Update.
15097 * config/frv/frv.c (frv_string_begins_with): Update.
15098 (frv_in_small_data_p): Update.
15099 * config/v850/v850.c (v850_encode_data_area): Update.
15100 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
15101 (bfin_handle_l1_data_attribute): Update.
15102 (bfin_handle_l2_attribute): Update.
15103 * config/mep/mep.c (mep_unique_section): Update.
15104 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
15105 Update.
15106 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
15107 (h8300_handle_tiny_data_attribute): Update.
15108 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
15109 (m32r_in_small_data_p): Update.
15110 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
15111 * config/i386/i386.c (ix86_in_large_data_p): Update.
15112 * config/i386/winnt.c (i386_pe_unique_section): Update.
15113 * config/darwin.c (darwin_function_section): Update.
15114 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
15115 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15116 (new_emutls_decl): Update.
15117 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
15118 input_varpool_node): Update.
15119 (ead_string_cst): Turn to ...
15120 (read_string): ... this one.
15121 * dwarf2out.c (secname_for_decl): Update.
15122 * asan.c (asan_protect_global): Update.
15123
15124 2014-06-11 DJ Delorie <dj@redhat.com>
15125
15126 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
15127 cache lines.
15128 * config/rx/rx.c (rx_option_override): Likewise.
15129 (rx_align_for_label): Likewise.
15130
15131 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
15132
15133 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
15134
15135 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
15136 prototype.
15137
15138 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15139
15140 * common.md: New file.
15141 * doc/md.texi: Update description of generic, machine-independent
15142 constraints.
15143 * config/s390/constraints.md (e): Delete.
15144 * Makefile.in (md_file): Include common.md.
15145 * config/m32c/t-m32c (md_file): Likewise.
15146 * genpreds.c (general_mem): New array.
15147 (generic_constraint_letters): Remove constraints now defined by
15148 common.md.
15149 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15150 Allow the first character to be '<' or '>' as well.
15151 * genoutput.c (general_mem): New array.
15152 (indep_constraints): Remove constraints now defined by common.md.
15153 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
15154 Remove special handling of 'm'.
15155 * ira-costs.c (record_reg_classes): Remove special handling of
15156 constraints now defined by common.md.
15157 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15158 * ira-lives.c (single_reg_class): Likewise.
15159 (ira_implicitly_set_insn_hard_regs): Likewise.
15160 * lra-constraints.c (reg_class_from_constraints): Likewise.
15161 (process_alt_operands, process_address, curr_insn_transform): Likewise.
15162 * postreload.c (reload_cse_simplify_operands): Likewise.
15163 * reload.c (push_secondary_reload, scratch_reload_class)
15164 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15165 * reload1.c (maybe_fix_stack_asms): Likewise.
15166 * targhooks.c (default_secondary_reload): Likewise.
15167 * stmt.c (parse_output_constraint): Likewise.
15168 * recog.c (preprocess_constraints): Likewise.
15169 (constrain_operands, peep2_find_free_register): Likewise.
15170 (asm_operand_ok): Likewise, but add a comment saying why 'o'
15171 must be handled specially.
15172
15173 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15174
15175 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
15176 * genpreds.c (have_const_dbl_constraints): Delete.
15177 (add_constraint): Don't set it.
15178 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
15179 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
15180 constraints using the lookup_constraint logic.
15181 * ira-lives.c (single_reg_class): Likewise.
15182 * ira.c (ira_setup_alts): Likewise.
15183 * lra-constraints.c (process_alt_operands): Likewise.
15184 * recog.c (asm_operand_ok, constrain_operands): Likewise.
15185 * reload.c (find_reloads): Likewise.
15186
15187 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15188
15189 * genpreds.c (const_int_start, const_int_end): New variables.
15190 (choose_enum_order): Output CONST_INT constraints before memory
15191 constraints.
15192 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
15193 Add CT_CONST_INT.
15194 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
15195 * ira.c (ira_setup_alts): Likewise.
15196 * lra-constraints.c (process_alt_operands): Likewise.
15197 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15198 * reload.c (find_reloads): Likewise.
15199
15200 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15201
15202 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
15203 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
15204 * recog.c (preprocess_constraints): Update accordingly.
15205
15206 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15207
15208 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
15209 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
15210 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
15211 * genpreds.c (print_type_tree): New function.
15212 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
15213 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
15214 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
15215 Write out enum constraint_type and get_constraint_type.
15216 * lra-constraints.c (satisfies_memory_constraint_p): Take a
15217 constraint_num rather than a constraint string.
15218 (satisfies_address_constraint_p): Likewise.
15219 (reg_class_from_constraints): Avoid old constraint macros.
15220 (process_alt_operands, process_address_1): Likewise.
15221 (curr_insn_transform): Likewise.
15222 * ira-costs.c (record_reg_classes): Likewise.
15223 (record_operand_costs): Likewise.
15224 * ira-lives.c (single_reg_class): Likewise.
15225 (ira_implicitly_set_insn_hard_regs): Likewise.
15226 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
15227 * postreload.c (reload_cse_simplify_operands): Likewise.
15228 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15229 (constrain_operands, peep2_find_free_register): Likewise.
15230 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
15231 (find_reloads, alternative_allows_const_pool_ref): Likewise.
15232 * reload1.c (maybe_fix_stack_asms): Likewise.
15233 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15234 * targhooks.c (default_secondary_reload): Likewise.
15235 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
15236 to EXTRA_CONSTRAINT_STR.
15237 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
15238
15239 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15240
15241 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
15242 (write_constraint_satisfied_p_array): ...this new function.
15243 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
15244 an array.
15245 (write_insn_preds_c): Update accordingly.
15246
15247 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15248
15249 * genpreds.c (write_lookup_constraint): Rename to...
15250 (write_lookup_constraint_1): ...this.
15251 (write_lookup_constraint_array): New function.
15252 (write_tm_preds_h): Define lookup_constraint as an inline function
15253 that uses write_lookup_constraint_array where possible.
15254 (write_insn_preds_c): Update for the changes above.
15255
15256 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
15257
15258 * doc/md.texi (regclass_for_constraint): Rename to...
15259 (reg_class_for_constraint): ...this.
15260 * genpreds.c (num_constraints, enum_order, register_start)
15261 (register_end, satisfied_start, memory_start, memory_end)
15262 (address_start, address_end): New variables.
15263 (add_constraint): Count the number of constraints.
15264 (choose_enum_order): New function.
15265 (write_enum_constraint_num): Iterate over enum_order.
15266 (write_regclass_for_constraint): Rename to...
15267 (write_reg_class_for_constraint_1): ...this and update output
15268 accordingly.
15269 (write_constraint_satisfied_p): Rename to...
15270 (write_constraint_satisfied_p_1): ...this and update output
15271 accordingly. Do nothing if all extra constraints are register
15272 constraints.
15273 (write_insn_extra_memory_constraint): Delete.
15274 (write_insn_extra_address_constraint): Delete.
15275 (write_range_function): New function.
15276 (write_tm_preds_h): Define constraint_satisfied_p and
15277 reg_class_for_constraint as inline functions that do a range check
15278 before calling the out-of-line function. Use write_range_function
15279 to implement insn_extra_{register,memory,address}_constraint,
15280 the first of which is new.
15281 (write_insn_preds_c): Update after above changes to write_* functions.
15282 (main): Call choose_enum_order.
15283
15284 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
15285
15286 PR tree-optimization/61306
15287 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
15288 expression instead of its size.
15289 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
15290 false to prevent optimization when the result is unpredictable due to
15291 arithmetic right shift of signed type with highest byte is set.
15292 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
15293 (init_symbolic_number): Likewise.
15294 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
15295 when the result is unpredictable due to sign extension.
15296
15297 2014-06-11 Terry Guo <terry.guo@arm.com>
15298
15299 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
15300 (*thumb1_addsi3): Ditto.
15301 (*thumb_subdi3): Ditto.
15302 (thumb1_subsi3_insn): Ditto.
15303 (*thumb_mulsi3): Ditto.
15304 (*thumb_mulsi3_v6): Ditto.
15305 (*thumb1_andsi3_insn): Ditto.
15306 (thumb1_bicsi3): Ditto.
15307 (*thumb1_iorsi3_insn): Ditto.
15308 (*thumb1_xorsi3_insn): Ditto.
15309 (*thumb1_ashlsi3): Ditto.
15310 (*thumb1_ashrsi3): Ditto.
15311 (*thumb1_lshrsi3): Ditto.
15312 (*thumb1_rotrsi3): Ditto.
15313 (*thumb1_negdi2): Ditto.
15314 (*thumb1_negsi2): Ditto.
15315 (*thumb1_abssi2): Ditto.
15316 (*thumb1_neg_abssi2): Ditto.
15317 (*thumb1_one_cmplsi2): Ditto.
15318 (*thumb1_zero_extendhisi2): Ditto.
15319 (*thumb1_zero_extendqisi2): Ditto.
15320 (*thumb1_zero_extendqisi2_v6): Ditto.
15321 (thumb1_extendhisi2): Ditto.
15322 (thumb1_extendqisi2): Ditto.
15323 (*thumb1_movdi_insn): Ditto.
15324 (*thumb1_movsi_insn): Ditto.
15325 (*thumb1_movhi_insn): Ditto.
15326 (thumb_movhi_clobber): Ditto.
15327 (*thumb1_movqi_insn): Ditto.
15328 (*thumb1_movhf): Ditto.
15329 (*thumb1_movsf_insn): Ditto.
15330 (*thumb_movdf_insn): Ditto.
15331 (movmem12b): Ditto.
15332 (movmem8b): Ditto.
15333 (cbranchqi4): Ditto.
15334 (cbranchsi4_insn): Ditto.
15335 (cbranchsi4_scratch): Ditto.
15336 (*negated_cbranchsi4): Ditto.
15337 (*tbit_cbranch): Ditto.
15338 (*tlobits_cbranch): Ditto.
15339 (*tstsi3_cbranch): Ditto.
15340 (*cbranchne_decr1): Ditto.
15341 (*addsi3_cbranch): Ditto.
15342 (*addsi3_cbranch_scratch): Ditto.
15343 (*thumb_cmpdi_zero): Ditto.
15344 (cstoresi_eq0_thumb1): Ditto.
15345 (cstoresi_ne0_thumb1): Ditto.
15346 (*cstoresi_eq0_thumb1_insn): Ditto.
15347 (*cstoresi_ne0_thumb1_insn): Ditto.
15348 (cstoresi_nltu_thumb1): Ditto.
15349 (cstoresi_ltu_thumb1): Ditto.
15350 (thumb1_addsi3_addgeu): Ditto.
15351 (*thumb_jump): Ditto.
15352 (*call_reg_thumb1_v5): Ditto.
15353 (*call_reg_thumb1): Ditto.
15354 (*call_value_reg_thumb1_v5): Ditto.
15355 (*call_value_reg_thumb1): Ditto.
15356 (*call_insn): Ditto.
15357 (*call_value_insn): Ditto.
15358 (thumb1_casesi_internal_pic): Ditto.
15359 (thumb1_casesi_dispatch): Ditto.
15360 (*thumb1_indirect_jump): Ditto.
15361 (prologue_thumb1_interwork): Ditto.
15362 (*epilogue_insns): Ditto.
15363 (consttable_1): Ditto.
15364 (consttable_2): Ditto.
15365 (tablejump): Ditto.
15366 (*thumb1_tablejump): Ditto.
15367 (thumb_eh_return): Ditto.
15368 (define_peephole2): Two of them are thumb1 only and got moved into
15369 new file thumb1.md.
15370 (define_split): Six of them are thumb1 only and got moved into new
15371 file thumb1.md.
15372 * config/arm/thumb1.md: New file comprised of above thumb1 only
15373 patterns.
15374
15375 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15376
15377 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
15378 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
15379 dependencies.
15380 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
15381 (aarch64_crc_builtin_datum): New struct.
15382 (aarch64_crc_builtin_data): New.
15383 (aarch64_init_crc32_builtins): New function.
15384 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
15385 (aarch64_crc32_expand_builtin): New.
15386 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
15387 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15388 __ARM_FEATURE_CRC32 when appropriate.
15389 (TARGET_CRC32): Define.
15390 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
15391 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
15392 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
15393 (aarch64_<crc_variant>): New pattern.
15394 * config/aarch64/arm_acle.h: New file.
15395 * config/aarch64/iterators.md (CRC): New int iterator.
15396 (crc_variant, crc_mode): New int attributes.
15397 * doc/aarch64-acle-intrinsics.texi: New file.
15398 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
15399 Include aarch64-acle-intrinsics.texi.
15400
15401 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
15402
15403 * tree-vect-data-refs.c (vect_grouped_store_supported): New
15404 check for stores group of length 3.
15405 (vect_permute_store_chain): New permutations for stores group of
15406 length 3.
15407 * tree-vect-stmts.c (vect_model_store_cost): Change cost
15408 of vec_perm_shuffle for the new permutations.
15409
15410 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
15411
15412 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
15413 table rewriting temporarily on targets not supporting ONE_ONLY.
15414
15415 2014-06-11 Richard Biener <rguenther@suse.de>
15416
15417 PR middle-end/61437
15418 Revert
15419 2014-06-04 Richard Biener <rguenther@suse.de>
15420
15421 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15422 TREE_PUBLIC and DECL_EXTERNAL decls.
15423
15424 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15425
15426 * varasm.c (set_implicit_section): New function.
15427 (resolve_unique_section): Use it to set implicit section
15428 for aliases, too.
15429 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
15430 (default_function_section): Likewise.
15431 (decl_binds_to_current_def_p): Constify argument.
15432 * varasm.h (decl_binds_to_current_def_p): Update prototype.
15433 * asan.c (asan_protect_global): Use
15434 symtab_get_node (decl)->implicit_section.
15435 * symtab.c (dump_symtab_base): Dump implicit sections.
15436 (verify_symtab_base): Verify sanity of sectoins and comdats.
15437 (symtab_resolve_alias): Alias share the section of its target.
15438 (set_section_1): New function.
15439 (symtab_node::set_section): Move here, recurse to aliases.
15440 (verify_symtab): Check for duplicated symtab lists.
15441 * tree-core.h (implicit_section_name_p): Remove.
15442 * tree-vect-data-refs.c: Include varasm.h.
15443 (vect_can_force_dr_alignment_p): Fix conditional on when
15444 decl bints to current definition; use
15445 symtab_get_node (decl)->implicit_section.
15446 * cgraph.c (cgraph_make_node_local_1): Fix section set.
15447 * cgraph.h (struct symtab_node): Add implicit_section.
15448 (set_section): Rename to ...
15449 (set_section_for_node): ... this one.
15450 (set_section): Declare.
15451 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
15452 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15453 input_overwrite_node, input_varpool_node): Stream implicit_section.
15454 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
15455 removal; it will fail in LTO.
15456
15457 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15458
15459 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
15460 Change second alternative type to f_mcr.
15461 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
15462 and 12th alternatives' types to f_mcr and f_mrc.
15463 (*movdi_aarch64): Same for 12th and 13th alternatives.
15464 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
15465 (aarch64_movtilow_tilow): Change type to fmov.
15466
15467 2014-06-10 Jiong Wang <jiong.wang@arm.com>
15468
15469 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
15470 (aarch64_save_or_restore_callee_save_registers): Fix layout.
15471
15472 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15473
15474 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
15475 New expander.
15476 (aarch64_sqrdmulh_lane<mode>): Likewise.
15477 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15478 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15479 (aarch64_sqdmulh_laneq<mode>): New expander.
15480 (aarch64_sqrdmulh_laneq<mode>): Likewise.
15481 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
15482 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
15483 (aarch64_sqdmulh_lane<mode>): New expander.
15484 (aarch64_sqrdmulh_lane<mode>): Likewise.
15485 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15486 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15487 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
15488 (aarch64_sqdmlal_laneq<mode>): Likewise.
15489 (aarch64_sqdmlsl_lane<mode>): Likewise.
15490 (aarch64_sqdmlsl_laneq<mode>): Likewise.
15491 (aarch64_sqdmlal2_lane<mode>): Likewise.
15492 (aarch64_sqdmlal2_laneq<mode>): Likewise.
15493 (aarch64_sqdmlsl2_lane<mode>): Likewise.
15494 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15495 (aarch64_sqdmull_lane<mode>): Likewise.
15496 (aarch64_sqdmull_laneq<mode>): Likewise.
15497 (aarch64_sqdmull2_lane<mode>): Likewise.
15498 (aarch64_sqdmull2_laneq<mode>): Likewise.
15499
15500 2014-06-10 Richard Biener <rguenther@suse.de>
15501
15502 PR tree-optimization/61438
15503 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
15504 (eliminate_dom_walker::before_dom_children): Only try to inhibit
15505 insertion of IVs if running PRE.
15506 (eliminate): Adjust.
15507 (pass_pre::execute): Likewise.
15508 (pass_fre::execute): Likewise.
15509
15510 2014-06-10 Richard Biener <rguenther@suse.de>
15511
15512 PR middle-end/61456
15513 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15514 Do not use the main variant for the type comparison.
15515 (ncr_compar): Likewise.
15516 (nonoverlapping_component_refs_p): Likewise.
15517
15518 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
15519
15520 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
15521 REG_CFA_RESTORE mode.
15522
15523 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
15524
15525 * config/i386/i386.c (expand_vec_perm_pblendv): New.
15526 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
15527 expand_vec_perm_pblendv.
15528
15529 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15530
15531 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
15532 available.
15533 Simplify description of __crc32d and __crc32cd intrinsics.
15534 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
15535 availability.
15536
15537 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
15538
15539 PR lto/61334
15540 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
15541 * config.in: Regenerate.
15542 * configure: Likewise.
15543
15544 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
15545
15546 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
15547 and public vars.
15548 (intersect_static_var_sets): Remove.
15549 (propagate): Do not prune local statics.
15550
15551 2014-06-10 Jakub Jelinek <jakub@redhat.com>
15552
15553 PR fortran/60928
15554 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
15555 Set lastprivate_firstprivate even if omp_private_outer_ref
15556 langhook returns true.
15557 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
15558 langhook, call unshare_expr on new_var and call
15559 build_outer_var_ref to get the last argument.
15560
15561 2014-06-10 Marek Polacek <polacek@redhat.com>
15562
15563 PR c/60988
15564 * doc/extend.texi: Add cindex for transparent_union.
15565
15566 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
15567
15568 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
15569 init_symbolic_number ().
15570
15571 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
15572
15573 PR middle-end/61141
15574 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
15575 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
15576 (verify_rtl_sharing): Likewise.
15577
15578 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
15579
15580 PR c++/54442
15581 * tree.c (build_qualified_type): Use a canonical type for
15582 TYPE_CANONICAL.
15583
15584 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15585
15586 * config/arm/arm-modes.def: Remove XFmode.
15587
15588 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
15589
15590 PR target/61062
15591 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
15592 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
15593 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
15594 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
15595 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
15596 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
15597 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
15598 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
15599 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
15600
15601 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
15602
15603 * tree-core.h (tree_decl_with_vis): Remove section_name.
15604
15605 2014-06-09 Kito Cheng <kito@0xlab.org>
15606
15607 * ira.c (ira): Don't call init_caller_save if LRA enabled
15608 since LRA use its own infrastructure to handle that.
15609
15610 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15611
15612 * symtab.c (dump_symtab_base): Update dumping.
15613 (symtab_make_decl_local): Clear only DECL_COMDAT.
15614 * tree-vect-data-refs.c (Check that variable is static before
15615 tampering with sections.
15616 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15617 (cgraph_create_virtual_clone): Likewise.
15618 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15619 (decl_section_name, set_decl_section_name): New accessors.
15620 (find_decls_types_r): Do not walk section name
15621 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15622 (decl_comdat_group, decl_comdat_group_id): Constify.
15623 (decl_section_name, set_decl_section_name): Update.
15624 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15625 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15626 (cgraph_make_node_local_1): Clear section and comdat group.
15627 * cgraph.h (set_comdat_group): Sanity check.
15628 (get_section, set_section): New.
15629 * ipa-comdats.c (ipa_comdats): Use get_section.
15630 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15631 * lto-streamer-out.c: Do not follow section names.
15632 * c-family/c-common.c (handle_section_attribute): Update.
15633 * lto-cgraph.c (lto_output_node): Output section.
15634 (lto_output_varpool_node): Likewise.
15635 (read_comdat_group): Rename to ...
15636 (read_identifier): ... this one.
15637 (read_string_cst): New function.
15638 (input_node, input_varpool_node): Input section names.
15639 * tree-emutls.c (get_emutls_init_templ_addr): Update.
15640 (new_emutls_decl): Update.
15641 (secname_for_decl): Check section names only of static vars.
15642 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15643 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15644 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15645 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15646 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15647 * config/mcore/mcore.c (mcore_unique_section): Likewise.
15648 * config/mips/mips.c (mips16_build_function_stub): Likewise.
15649 * config/v850/v850.c (v850_insert_attributes): Likewise.
15650 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15651 Likewise.
15652 (h8300_handle_tiny_data_attribute): Likewise.
15653 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15654 (bfin_handle_l2_attribute): Likewise.
15655
15656 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15657
15658 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15659 remove static initializer.
15660
15661 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15662
15663 * varasm.c (use_blocks_for_decl_p): Check symbol table
15664 instead of alias attribute.
15665 (place_block_symbol): Recurse on aliases.
15666
15667 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15668
15669 * ipa-visibility.c: Include varasm.h
15670 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15671
15672 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
15673
15674 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15675 outputting aliases.
15676
15677 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
15678
15679 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15680 from test_insn into GGC space escape via SET_SRC.
15681
15682 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
15683
15684 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15685 call statement, if any.
15686 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15687 statements, if any. Tidy up.
15688
15689 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15690
15691 PR target/61431
15692 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15693 iterators, VSX_D that handles 64-bit types, and VSX_LE that
15694 handles swapping the two 64-bit double words on little endian
15695 systems. Include V1TImode and optionally TImode in VSX_LE so that
15696 these types are properly swapped. Change all of the insns and
15697 splits that do the 64-bit swaps to use VSX_LE.
15698 (vsx_le_perm_load_<mode>): Likewise.
15699 (vsx_le_perm_store_<mode>): Likewise.
15700 (splitters for little endian memory operations): Likewise.
15701 (vsx_xxpermdi2_le_<mode>): Likewise.
15702 (vsx_lxvd2x2_le_<mode>): Likewise.
15703 (vsx_stxvd2x2_le_<mode>): Likewise.
15704
15705 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
15706
15707 PR target/61423
15708 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15709 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15710 and corresponding splitters. Zero extend general register
15711 or memory input operand to XMM temporary. Enable for
15712 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15713 (floatunssi<mode>2): Update expander predicate.
15714
15715 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
15716
15717 PR rtl-optimization/61325
15718 * lra-constraints.c (process_address_1): Check scale equal to one
15719 to prevent transformation: base + scale * index => base + new_reg.
15720
15721 2014-06-06 Richard Biener <rguenther@suse.de>
15722
15723 PR tree-optimization/59299
15724 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15725 a def operand.
15726 (nearest_common_dominator_of_uses): Likewise.
15727 (statement_sink_location): Adjust. Support sinking loads.
15728
15729 2014-06-06 Martin Jambor <mjambor@suse.cz>
15730
15731 * ipa-prop.c (get_place_in_agg_contents_list): New function.
15732 (build_agg_jump_func_from_list): Likewise.
15733 (determine_known_aggregate_parts): Renamed to
15734 determine_locally_known_aggregate_parts. Moved some functionality
15735 to the two functions above, removed bound checks.
15736
15737 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
15738
15739 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15740 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15741 (aarch64_progress_pointer): Likewise.
15742 (aarch64_copy_one_part_and_move_pointers): Likewise.
15743 (aarch64_expand_movmen): Likewise.
15744 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15745 * config/aarch64/aarch64.md (movmem<mode>): New.
15746
15747 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
15748
15749 * targhooks.c (default_add_stmt_cost): Call target specific
15750 hook instead of default one.
15751
15752 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
15753
15754 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15755 endianness instead of host endianness.
15756 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15757 comments.
15758
15759 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15760
15761 PR debug/53927
15762 * function.c (instantiate_decls): Process the saved static chain.
15763 (expand_function_start): If not optimizing, save the static chain
15764 onto the stack.
15765 * tree-nested.c (convert_all_function_calls): Always create the static
15766 chain for nested functions if not optimizing.
15767
15768 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15769
15770 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15771
15772 2014-06-06 Richard Biener <rguenther@suse.de>
15773
15774 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15775 (construct_init_block): Likewise.
15776 (construct_exit_block): Likewise.
15777 (pass_expand::execute): Likewise.
15778 * graphite.c (graphite_transforms): Replace check for current_loops
15779 with a check for > 1 loops.
15780 (pass_graphite_transforms::execute): Adjust.
15781 * ipa-split.c (split_function): Remove check for current_loops.
15782 * omp-low.c (expand_parallel_call): Likewise.
15783 (expand_omp_for_init_counts): Likewise.
15784 (extract_omp_for_update_vars): Likewise.
15785 (expand_omp_for_generic): Likewise.
15786 (expand_omp_sections): Likewise.
15787 (expand_omp_target): Likewise.
15788 * tracer.c (tail_duplicate): Likewise.
15789 (pass_tracer::execute): Likewise.
15790 * trans-mem.c (expand_transaction): Likewise.
15791 * tree-complex.c (expand_complex_div_wide): Likewise.
15792 * tree-eh.c (lower_resx): Likewise.
15793 (cleanup_empty_eh_merge_phis): Likewise.
15794 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15795 current_loops with a check for > 1 loops.
15796 (pass_predcom::execute): Adjust.
15797 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15798 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15799 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15800 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15801 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15802 * tree-switch-conversion.c (process_switch): Likewise.
15803 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15804 * tree-vrp.c (vrp_visit_phi_node): Likewise.
15805 (execute_vrp): Likewise.
15806 * ubsan.c (ubsan_expand_null_ifn): Likewise.
15807
15808 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
15809
15810 * rtl.h (insn_location): Declare.
15811 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15812 with UNKNOWN_LOCATION.
15813 * emit-rtl.c (insn_location): New function.
15814 * final.c (notice_source_line): Check that the instruction has a
15815 location before retrieving it and use insn_location.
15816 * modulo-sched.c (loop_single_full_bb_p): Likewise.
15817 * print-rtl.c (print_rtx): Likewise.
15818
15819 2014-06-06 Richard Biener <rguenther@suse.de>
15820
15821 * passes.def: Move 2nd VRP pass before phi-only-cprop.
15822
15823 2014-06-06 Christian Bruel <christian.bruel@st.com>
15824
15825 PR tree-optimization/43934
15826 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15827 cost.
15828
15829 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
15830
15831 * ira-lives.c (single_reg_class): Add missing break. Explicitly
15832 return NO_REGS for extra address and memory constraints. Handle
15833 operands that match (or are equivalent to something that matches)
15834 extra constant constraints. Ignore other non-register operands.
15835
15836 2014-06-06 Alan Modra <amodra@gmail.com>
15837
15838 PR target/61300
15839 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15840 * doc/tm.texi: Regenerate.
15841 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15842 Use throughout in place of REG_PARM_STACK_SPACE.
15843 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15844 "incoming" param. Pass to rs6000_function_parms_need_stack.
15845 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15846 prototype_p when incoming. Use function decl when incoming
15847 to handle K&R style functions.
15848 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15849 (INCOMING_REG_PARM_STACK_SPACE): Define.
15850
15851 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15852
15853 PR target/52472
15854 * cfgexpand.c (expand_debug_expr): Use address space of nested
15855 TREE_TYPE for ADDR_EXPR and MEM_REF.
15856
15857 2014-06-05 Jeff Law <law@redhat.com>
15858
15859 PR tree-optimization/61289
15860 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15861 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
15862 looking for those which match LHS. All callers changed.
15863 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15864 parameters and code which manipulated them. All callers changed.
15865 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15866 and DST_MAP parameters. Simplify invalidation code by just calling
15867 invalidate_equivalences. All callers changed.
15868 (thread_across_edge): Simplify now that we don't need to maintain
15869 the map of equivalences to invalidate.
15870
15871 2014-06-05 Kai Tietz <ktietz@redhat.com>
15872 Richard Henderson <rth@redhat.com>
15873
15874 PR target/46219
15875 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15876 checking for !TARGET_X32.
15877 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15878 (sibcall_intern): New define_insn, plus required peepholes.
15879 (sibcall_pop_intern): Likewise.
15880 (sibcall_value_intern): Likewise.
15881 (sibcall_value_pop_intern): Likewise.
15882
15883 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
15884
15885 * tree-inline.c (tree_function_versioning): Check DF info existence
15886 before accessing it.
15887
15888 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15889
15890 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15891 frame_size.
15892 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15893 aarch64_frame hard_fp_offset and frame_size.
15894 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15895 frame_size; remove original_frame_size.
15896 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15897 (aarch64_initial_elimination_offset): Remove frame_size and
15898 offset. Use aarch64_frame frame_size.
15899
15900 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15901 Jiong Wang <jiong.wang@arm.com>
15902 Renlin <renlin.li@arm.com>
15903
15904 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15905 initialization of R30 offset. Update offset. Iterate core
15906 regisers upto X30. Remove X29, X30 specific code.
15907
15908 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15909 Jiong Wang <jiong.wang@arm.com>
15910
15911 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15912 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15913 (aarch64_register_saved_on_entry): Adjust test.
15914
15915 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15916
15917 * config/aarch64/aarch64.h (machine_function): Move
15918 saved_varargs_size from here...
15919 (aarch64_frame): ... to here.
15920
15921 * config/aarch64/aarch64.c (aarch64_expand_prologue)
15922 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15923 (aarch64_initial_elimination_offset)
15924 (aarch64_setup_incoming_varargs): Adjust location of
15925 saved_varargs_size.
15926
15927 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
15928
15929 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15930 layout comment.
15931
15932 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
15933 Prachi Godbole <Prachi.Godbole@imgtec.com>
15934
15935 * config/mips/mips-cpus.def: Add definition for p5600. Updated
15936 mips32r5 entry to use PROCESSOR_P5600.
15937 * config/mips/mips-tables.opt: Regenerate.
15938 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15939 * config/mips/mips.c (mips_fmadd_bypass): New function.
15940 (mips_rtx_cost_data): Add costs for p5600.
15941 (mips_issue_rate): Add support for p5600.
15942 (mips_multipass_dfa_lookahead): Likewise.
15943 * config/mips/mips.h (TUNE_P5600): New define.
15944 (TUNE_MACC_CHAINS): Add TUNE_P5600.
15945 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15946 * config/mips/mips.md: Include p5600.md.
15947 (processor): Add p5600.
15948 * config/mips/p5600.md: New file.
15949
15950 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
15951
15952 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15953 * config/i386/predicates.md (palignr_operand): New.
15954 Indicates if permutation is suitable for palignr instruction.
15955
15956 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
15957
15958 PR tree-optimization/61319
15959 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15960 stmt belongs to loop.
15961
15962 2014-06-05 Richard Biener <rguenther@suse.de>
15963
15964 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
15965 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
15966 (lookup_tmp_var): Adjust.
15967 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
15968
15969 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15970
15971 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
15972
15973 2014-06-05 Marek Polacek <polacek@redhat.com>
15974
15975 PR c/49706
15976 * doc/invoke.texi: Document -Wlogical-not-parentheses.
15977
15978 2014-06-04 Tom de Vries <tom@codesourcery.com>
15979
15980 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
15981 CONST_INT.
15982
15983 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
15984
15985 PR tree-optimization/61385
15986 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
15987
15988 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
15989
15990 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
15991 changed to use fatal_error.
15992 (main): Ensure lto_wrapper_cleanup is run atexit.
15993
15994 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
15995
15996 * lra-constraints.c (valid_address_p): Move earlier in file.
15997 (address_eliminator): New structure.
15998 (satisfies_memory_constraint_p): New function.
15999 (satisfies_address_constraint_p): Likewise.
16000 (process_alt_operands, process_address, curr_insn_transform): Use them.
16001
16002 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16003
16004 * lra-int.h (lra_static_insn_data): Make operand_alternative a
16005 const pointer.
16006 (target_lra_int, default_target_lra_int, this_target_lra_int)
16007 (op_alt_data): Delete.
16008 * lra.h (lra_init): Delete.
16009 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
16010 (init_insn_code_data_once): Remove op_alt_data handling.
16011 (finish_insn_code_data_once): Likewise.
16012 (init_op_alt_data): Delete.
16013 (get_static_insn_data): Initialize operand_alternative to null.
16014 (free_insn_recog_data): Cast operand_alternative before freeing it.
16015 (setup_operand_alternative): Take the operand_alternative as
16016 parameter and assume it isn't already cached in the static
16017 insn data.
16018 (lra_set_insn_recog_data): Update accordingly.
16019 (lra_init): Delete.
16020 * ira.c (ira_init): Don't call lra_init.
16021 * target-globals.h (this_target_lra_int): Declare.
16022 (target_globals): Remove lra_int.
16023 (restore_target_globals): Update accordingly.
16024 * target-globals.c: Don't include lra-int.h.
16025 (default_target_globals, save_target_globals): Remove lra_int.
16026
16027 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16028
16029 * recog.h (operand_alternative): Convert reg_class, reject,
16030 matched and matches into bitfields.
16031 (preprocess_constraints): New overload.
16032 (preprocess_insn_constraints): New function.
16033 (preprocess_constraints): Take the insn as parameter.
16034 (recog_op_alt): Change into a pointer.
16035 (target_recog): Add x_op_alt.
16036 * recog.c (asm_op_alt): New variable.
16037 (recog_op_alt): Change into a pointer.
16038 (preprocess_constraints): New overload, replacing the old function
16039 definition with one that doesn't use global state.
16040 (preprocess_insn_constraints): New function.
16041 (preprocess_constraints): Use them. Take the insn as parameter.
16042 Use asm_op_alt for asms.
16043 (recog_init): Free existing x_op_alt entries.
16044 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
16045 pointer const.
16046 (make_early_clobber_and_input_conflicts): Likewise.
16047 (process_bb_node_lives): Pass the insn to process_constraints.
16048 * reg-stack.c (check_asm_stack_operands): Likewise.
16049 (subst_asm_stack_regs): Likewise.
16050 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16051 * regrename.c (build_def_use): Likewise.
16052 * sched-deps.c (sched_analyze_insn): Likewise.
16053 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
16054 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16055 (note_invalid_constants): Likewise.
16056 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16057 (ix86_legitimate_combined_insn): Make operand_alternative pointer
16058 const.
16059
16060 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16061
16062 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
16063 * ira-lives.c (check_and_make_def_conflict): Check for disabled
16064 alternatives.
16065 (make_early_clobber_and_input_conflicts): Likewise.
16066 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16067
16068 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16069
16070 * recog.h (alternative_class): New function.
16071 (which_op_alt): Return a const recog_op_alt.
16072 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
16073 (subst_asm_stack_regs): Likewise.
16074 * config/arm/arm.c (note_invalid_constants): Likewise.
16075 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
16076 the operand_alternative; use alternative class instead.
16077 * sel-sched.c (get_reg_class): Likewise.
16078 * regrename.c (build_def_use): Likewise.
16079 (hide_operands, restore_operands, record_out_operands): Update type
16080 accordingly.
16081
16082 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
16083
16084 * recog.h (recog_op_alt): Convert to a flat array.
16085 (which_op_alt): New function.
16086 * recog.c (recog_op_alt): Convert to a flat array.
16087 (preprocess_constraints): Update accordingly, grouping all
16088 operands of the same alternative together, rather than the
16089 other way around.
16090 * ira-lives.c (check_and_make_def_conflict): Likewise.
16091 (make_early_clobber_and_input_conflicts): Likewise.
16092 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
16093 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
16094 (subst_asm_stack_regs): Likewise.
16095 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
16096 * regrename.c (hide_operands, record_out_operands): Likewise.
16097 (build_def_use): Likewise.
16098 * sel-sched.c (get_reg_class): Likewise.
16099 * config/arm/arm.c (note_invalid_constants): Likewise.
16100
16101 2014-06-04 Jason Merrill <jason@redhat.com>
16102
16103 PR c++/51253
16104 PR c++/61382
16105 * gimplify.c (gimplify_arg): Non-static.
16106 * gimplify.h: Declare it.
16107
16108 2014-06-04 Richard Biener <rguenther@suse.de>
16109
16110 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16111 TREE_PUBLIC and DECL_EXTERNAL decls.
16112
16113 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
16114
16115 * regcprop.c (copyprop_hardreg_forward_1): Account for
16116 HARD_REGNO_CALL_PART_CLOBBERED.
16117
16118 2014-06-04 Richard Biener <rguenther@suse.de>
16119
16120 * configure.ac: Check whether the underlying type of int64_t
16121 is long or long long.
16122 * configure: Regenerate.
16123 * config.in: Likewise.
16124 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
16125 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16126
16127 2014-06-04 Richard Biener <rguenther@suse.de>
16128
16129 PR tree-optimization/60098
16130 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
16131 we hit a kill.
16132 (dse_optimize_stmt): Simplify, now that we found a kill
16133 earlier.
16134
16135 2014-06-04 Richard Biener <rguenther@suse.de>
16136
16137 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
16138 of accesses with non-invariant address.
16139
16140 2014-06-04 Martin Liska <mliska@suse.cz>
16141
16142 * cgraph.h (cgraph_make_wrapper): New function introduced.
16143 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
16144 * ipa-inline.h (inline_analyze_function): The function is global.
16145 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
16146
16147 2014-06-04 Martin Liska <mliska@suse.cz>
16148
16149 * tree.h (private_lookup_attribute_starting): New function.
16150 (lookup_attribute_starting): Likewise.
16151 * tree.c (private_lookup_attribute_starting): Likewise.
16152
16153 2014-06-04 Martin Liska <mliska@suse.cz>
16154
16155 * cgraph.h (expand_thunk): New argument added.
16156 (address_taken_from_non_vtable_p): New global function.
16157 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
16158 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
16159 * cgraphunit.c (analyze_function): Likewise.
16160 (assemble_thunks_and_aliases): Argument added to call.
16161 (expand_thunk): New argument forces to produce GIMPLE thunk.
16162
16163 2014-06-04 Martin Liska <mliska@suse.cz>
16164
16165 * coverage.h (coverage_compute_cfg_checksum): Argument added.
16166 * coverage.c (coverage_compute_cfg_checksum): Likewise.
16167 * profile.c (branch_prob): Likewise.
16168
16169 2014-06-04 Martin Jambor <mjambor@suse.cz>
16170
16171 PR ipa/61340
16172 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
16173 handler for switch on an ipa_ref_use enum.
16174 * ipa-reference.c (analyze_function): Likewise.
16175
16176 2014-06-04 Kai Tietz <ktietz@redhat.com>
16177
16178 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
16179 from old call-instruction.
16180
16181 2014-06-04 Bin Cheng <bin.cheng@arm.com>
16182
16183 * config/aarch64/aarch64.c (aarch64_classify_address)
16184 (aarch64_legitimize_reload_address): Support full addressing modes
16185 for vector modes.
16186 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
16187 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
16188
16189 2014-06-03 Andrew Pinski <apinski@cavium.com>
16190
16191 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
16192 for OP0.
16193
16194 2014-06-03 Andrew Pinski <apinski@cavium.com>
16195
16196 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
16197 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
16198
16199 2014-06-03 Kai Tietz <ktietz@redhat.com>
16200
16201 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
16202 for 64-bit ms-abi.
16203
16204 2014-06-03 Dehao Chen <dehao@google.com>
16205
16206 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
16207 the same loop.
16208
16209 2014-06-03 Marek Polacek <polacek@redhat.com>
16210
16211 PR c/60439
16212 * doc/invoke.texi: Document -Wswitch-bool.
16213 * function.c (stack_protect_epilogue): Cast controlling expression of
16214 the switch to int.
16215 * gengtype.c (walk_type): Generate switch expression with its
16216 controlling expression cast to int.
16217
16218 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
16219
16220 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
16221 and attiny841.
16222 * config/avr/avr-tables.opt: Regenerate.
16223 * config/avr/t-multilib: Regenerate.
16224 * doc/avr-mmcu.texi: Regenerate.
16225
16226 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
16227 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16228
16229 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
16230 (ata6617c, ata664251): Add new avr35 devices.
16231 (ata6612c): Add new avr4 device.
16232 (ata6613c, ata6614q): Add new avr5 devices.
16233 * config/avr/avr-tables.opt: Regenerate.
16234 * config/avr/t-multilib: Regenerate.
16235 * doc/avr-mmcu.texi: Regenerate.
16236
16237 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16238
16239 * gcc/config/aarch64/aarch64-builtins.c
16240 (aarch64_types_binop_ssu_qualifiers): New static data.
16241 (TYPES_BINOP_SSU): Define.
16242 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
16243 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
16244 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
16245 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
16246 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
16247 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
16248 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
16249 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
16250 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
16251 suffix to builtin function name, remove cast.
16252 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
16253 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
16254 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
16255
16256 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16257
16258 * gcc/config/aarch64/aarch64-builtins.c
16259 (aarch64_types_binop_uus_qualifiers,
16260 aarch64_types_shift_to_unsigned_qualifiers,
16261 aarch64_types_unsigned_shiftacc_qualifiers): Define.
16262 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
16263 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
16264 sqshlu_n, uqshl_n): Update qualifiers.
16265 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
16266 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
16267 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
16268 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
16269 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
16270 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
16271 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
16272 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
16273 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
16274 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
16275 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
16276 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
16277 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
16278 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
16279 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
16280 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
16281 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
16282 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
16283 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
16284 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
16285 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
16286 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
16287 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
16288 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
16289 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
16290 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
16291 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
16292
16293 2014-06-03 Teresa Johnson <tejohnson@google.com>
16294
16295 * tree-sra.c (modify_function): Record caller nodes after rebuild.
16296
16297 2014-06-02 Jason Merrill <jason@redhat.com>
16298
16299 PR c++/61020
16300 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
16301
16302 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16303
16304 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
16305 location == 0.
16306
16307 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
16308
16309 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
16310 New pattern.
16311 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
16312 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
16313 * config/aarch64/iterators.md (REVERSE): New iterator.
16314 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
16315 (rev_op): New int_attribute.
16316 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
16317 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
16318 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
16319 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
16320 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
16321 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
16322 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
16323 Replace temporary __asm__ with __builtin_shuffle.
16324
16325 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16326
16327 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
16328 mips64r5.
16329 * config/mips/mips-tables.opt: Regenerate.
16330 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
16331 to use mips_isa_rev rather than ISA_MIPS32R2.
16332 * config/mips/mips.h (ISA_MIPS32R3): New define.
16333 (ISA_MIPS32R5): New define.
16334 (ISA_MIPS64R3): New define.
16335 (ISA_MIPS64R5): New define.
16336 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
16337 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
16338 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
16339 and mips64r5.
16340 (MIPS_ISA_SYNCI_SPEC): Likewise.
16341 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
16342 (LINK_SPEC): Added mips32r3 and mips32r5.
16343 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
16344 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
16345 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
16346 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
16347 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
16348 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
16349 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
16350
16351 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
16352
16353 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
16354 options.
16355 * config/mips/mips.opt (mxpa): New option.
16356 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
16357 assembler.
16358
16359 2014-06-03 Martin Jambor <mjambor@suse.cz>
16360
16361 PR ipa/61160
16362 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
16363 thunks.
16364
16365 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
16366
16367 PR tree-optimization/61328
16368 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
16369 initialization from find_bswap_or_nop_1.
16370 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
16371 in source_expr2 before using the size value the function sets. Also
16372 make use of init_symbolic_number () in both the old place and
16373 find_bswap_or_nop_load () to avoid reading uninitialized memory when
16374 doing recursion in the GIMPLE_BINARY_RHS case.
16375
16376 2014-06-03 Richard Biener <rguenther@suse.de>
16377
16378 PR tree-optimization/61383
16379 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
16380 stmts can't trap.
16381
16382 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
16383
16384 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
16385 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
16386 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
16387 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
16388 in this file.
16389 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16390 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
16391 * system.h: ...here and make it unconditional.
16392 * target.def (conditional_register_usage): Mention
16393 define_register_constraint instead of old-style constraint macros.
16394 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
16395 * doc/tm.texi: Regenerate.
16396 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
16397 protected by !USE_MD_CONSTRAINTS.
16398 * config/frv/frv.md: Remove quote from old version of documentation.
16399 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
16400 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
16401 CONST_DOUBLE_OK_FOR_LETTER.
16402 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
16403
16404 2014-06-02 Andrew Pinski <apinski@cavium.com>
16405
16406 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
16407 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
16408 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
16409 file whose name depends on -mabi= and -mbig-endian.
16410 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
16411 Handle LP64 better and handle ilp32 too.
16412 (MULTILIB_OPTIONS): Delete.
16413 (MULTILIB_DIRNAMES): Delete.
16414
16415 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
16416
16417 * expr.h: Remove prototypes of functions defined in builtins.c.
16418 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
16419 Remove prototypes of functions defined in builtins.c.
16420 * builtins.h: Update prototype list to include all exported functions.
16421 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
16422 no_c99_libc_has_function): Move to targhooks.c
16423 (build_string_literal, build_call_expr_loc_array,
16424 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
16425 to tree.c.
16426 (expand_builtin_object_size, fold_builtin_object_size): Make static.
16427 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
16428 no_c99_libc_has_function): Relocate from builtins.c.
16429 * tree.c: Include builtins.h.
16430 (build_call_expr_loc_array, build_call_expr_loc_vec,
16431 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
16432 from builtins.c.
16433 * fold-const.h (fold_fma): Move prototype to builtins.h.
16434 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
16435 * asan.c: Include builtins.h.
16436 * cfgexpand.c: Likewise.
16437 * convert.c: Likewise.
16438 * emit-rtl.c: Likewise.
16439 * except.c: Likewise.
16440 * expr.c: Likewise.
16441 * fold-const.c: Likewise.
16442 * gimple-fold.c: Likewise.
16443 * gimple-ssa-strength-reduction.c: Likewise.
16444 * gimplify.c: Likewise.
16445 * ipa-inline.c: Likewise.
16446 * ipa-prop.c: Likewise.
16447 * lto-streamer-out.c: Likewise.
16448 * stmt.c: Likewise.
16449 * tree-inline.c: Likewise.
16450 * tree-object-size.c: Likewise.
16451 * tree-sra.c: Likewise.
16452 * tree-ssa-ccp.c: Likewise.
16453 * tree-ssa-forwprop.c: Likewise.
16454 * tree-ssa-loop-ivcanon.c: Likewise.
16455 * tree-ssa-loop-ivopts.c: Likewise.
16456 * tree-ssa-math-opts.c: Likewise.
16457 * tree-ssa-reassoc.c: Likewise.
16458 * tree-ssa-threadedge.c: Likewise.
16459 * tree-streamer-in.c: Likewise.
16460 * tree-vect-data-refs.c: Likewise.
16461 * tree-vect-patterns.c: Likewise.
16462 * tree-vect-stmts.c: Likewise.
16463 * config/aarch64/aarch64.c: Likewise.
16464 * config/alpha/alpha.c: Likewise.
16465 * config/arc/arc.c: Likewise.
16466 * config/arm/arm.c: Likewise.
16467 * config/avr/avr.c: Likewise.
16468 * config/bfin/bfin.c: Likewise.
16469 * config/c6x/c6x.c: Likewise.
16470 * config/cr16/cr16.c: Likewise.
16471 * config/cris/cris.c: Likewise.
16472 * config/epiphany/epiphany.c: Likewise.
16473 * config/fr30/fr30.c: Likewise.
16474 * config/frv/frv.c: Likewise.
16475 * config/h8300/h8300.c: Likewise.
16476 * config/i386/i386.c: Likewise.
16477 * config/i386/winnt.c: Likewise.
16478 * config/ia64/ia64.c: Likewise.
16479 * config/iq2000/iq2000.c: Likewise.
16480 * config/lm32/lm32.c: Likewise.
16481 * config/m32c/m32c.c: Likewise.
16482 * config/m32r/m32r.c: Likewise.
16483 * config/m68k/m68k.c: Likewise.
16484 * config/mcore/mcore.c: Likewise.
16485 * config/mep/mep.c: Likewise.
16486 * config/microblaze/microblaze.c: Likewise.
16487 * config/mips/mips.c: Likewise.
16488 * config/mmix/mmix.c: Likewise.
16489 * config/mn10300/mn10300.c: Likewise.
16490 * config/moxie/moxie.c: Likewise.
16491 * config/msp430/msp430.c: Likewise.
16492 * config/nds32/nds32.c: Likewise.
16493 * config/pa/pa.c: Likewise.
16494 * config/pdp11/pdp11.c: Likewise.
16495 * config/picochip/picochip.c: Likewise.
16496 * config/rl78/rl78.c: Likewise.
16497 * config/rs6000/rs6000.c: Likewise.
16498 * config/rx/rx.c: Likewise.
16499 * config/s390/s390.c: Likewise.
16500 * config/score/score.c: Likewise.
16501 * config/sh/sh.c: Likewise.
16502 * config/sparc/sparc.c: Likewise.
16503 * config/spu/spu.c: Likewise.
16504 * config/stormy16/stormy16.c: Likewise.
16505 * config/tilegx/tilegx.c: Likewise.
16506 * config/tilepro/tilepro.c: Likewise.
16507 * config/v850/v850.c: Likewise.
16508 * config/vax/vax.c: Likewise.
16509 * config/xtensa/xtensa.c: Likewise.
16510
16511 2014-06-02 Jeff Law <law@redhat.com>
16512
16513 PR rtl-optimization/61094
16514 * ree.c (combine_reaching_defs): Do not reextend an insn if it
16515 was marked as do_no_reextend. If a copy is needed to eliminate
16516 an extension, then mark it as do_not_reextend.
16517
16518 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
16519
16520 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
16521
16522 2014-06-02 Richard Henderson <rth@redhat.com>
16523
16524 PR target/61336
16525 * config/alpha/alpha.c (print_operand_address): Allow symbolic
16526 addresses inside asms. Use output_operand_lossage instead of
16527 gcc_unreachable.
16528
16529 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
16530
16531 PR target/61239
16532 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
16533 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
16534
16535 2014-06-02 Tom de Vries <tom@codesourcery.com>
16536
16537 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
16538 case that x has VOIDmode.
16539
16540 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
16541
16542 * varasm.c (copy_constant): Delete function.
16543 (build_constant_desc): Don't call it.
16544
16545 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16546
16547 PR target/61154
16548 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
16549 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
16550 with immediate_operand.
16551
16552 2014-06-02 Andreas Schwab <schwab@suse.de>
16553
16554 * config/ia64/ia64.c
16555 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
16556 pending_data_specs first.
16557
16558 2014-06-02 Richard Biener <rguenther@suse.de>
16559
16560 PR tree-optimization/61378
16561 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
16562 valueized_anything.
16563
16564 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
16565
16566 * config/i386/constraints.md (Bw): Rename from 'w'.
16567 (Bz): Rename from 'z'.
16568 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
16569
16570 2014-06-01 Kai Tietz <ktietz@redhat.com>
16571
16572 PR target/61377
16573 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
16574 * config/i386/i386.md (sibcall_insn_operand): Use Bs
16575 instead of m constraint.
16576
16577 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
16578
16579 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
16580 a separate alternative where the scratch operand 2 is marked as
16581 early clobber.
16582
16583 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16584
16585 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16586 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
16587 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
16588 and __builtins_arm_get_fpscr.
16589 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16590 __builtins_arm_get_fpscr.
16591 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
16592 __builtins_arm_ldfpscr.
16593 (arm_atomic_assign_expand_fenv): New function.
16594 * config/arm/vfp.md (set_fpscr): New pattern.
16595 (get_fpscr) : Likewise.
16596 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
16597 VUNSPEC_SET_FPSCR.
16598 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16599 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
16600
16601 2014-05-30 Jakub Jelinek <jakub@redhat.com>
16602
16603 * asan.c (report_error_func): Add SLOW_P argument, use
16604 BUILT_IN_ASAN_*_N if set.
16605 (build_check_stmt): Likewise.
16606 (instrument_derefs): If T has insufficient alignment,
16607 force same handling as for odd sizes.
16608
16609 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16610 BUILT_IN_ASAN_REPORT_STORE_N): New.
16611 * asan.c (struct asan_mem_ref): Change access_size type to
16612 HOST_WIDE_INT.
16613 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16614 update_mem_ref_hash_table): Likewise.
16615 (asan_mem_ref_hasher::hash): Hash in a HWI.
16616 (report_error_func): Change size_in_bytes argument to HWI.
16617 Use *_N builtins if size_in_bytes is larger than 16 or not power of
16618 two.
16619 (build_shadow_mem_access): New function.
16620 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
16621 Handle size_in_bytes not power of two or larger than 16.
16622 (instrument_derefs): Don't give up if size_in_bytes is not
16623 power of two or is larger than 16.
16624
16625 2014-05-30 Kai Tietz <ktietz@redhat.com>
16626
16627 PR target/60104
16628 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16629 for sibling-tail-calls.
16630 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16631 to its use.
16632 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16633 (sibcall_insn_operand): Add check for sibcall_memory_operand.
16634
16635 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16636
16637 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16638 * config/avr/avr-tables.opt: Regenerate.
16639 * config/avr/t-multilib: Regenerate.
16640 * doc/avr-mmcu.texi: Regenerate.
16641
16642 2014-05-30 Ian Lance Taylor <iant@google.com>
16643
16644 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16645 target("sse").
16646
16647 2014-05-30 Tom de Vries <tom@codesourcery.com>
16648
16649 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16650 Redefine as true.
16651
16652 2014-05-30 Tom de Vries <tom@codesourcery.com>
16653
16654 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16655 * lra.c (initialize_lra_reg_info_element): Add init of
16656 actual_call_used_reg_set field.
16657 (lra): Call lra_create_live_ranges before lra_inheritance for
16658 -fuse-caller-save.
16659 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16660 -fuse-caller-save.
16661 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16662 instead of call_used_reg_set for -fuse-caller-save.
16663 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16664
16665 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16666
16667 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16668 to mov_imm.
16669 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16670
16671 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16672
16673 * ira.c (ira_get_dup_out_num): Check for output operands at
16674 the start of the loop. Handle cases where an included alternative
16675 follows an excluded one.
16676
16677 2014-05-29 Mike Stump <mikestump@comcast.net>
16678
16679 PR debug/61352
16680 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16681 post ld passes when lto is used.
16682
16683 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
16684
16685 PR rtl-optimization/61325
16686 * lra-constraints.c (process_address): Rename to process_address_1.
16687 (process_address): New function.
16688
16689 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
16690
16691 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16692 TYPES_BINOPV): New static data.
16693 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16694 New builtin.
16695 * config/aarch64/aarch64-simd.md (aarch64_ext,
16696 aarch64_im_lane_boundsi): New patterns.
16697 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16698 patterns for EXT.
16699 (aarch64_evpc_ext): New function.
16700
16701 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16702
16703 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16704 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16705 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16706 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16707 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16708
16709 2014-05-29 Tom de Vries <tom@codesourcery.com>
16710
16711 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16712
16713 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
16714 Richard Sandiford <rdsandiford@googlemail.com>
16715
16716 * arm/iterators.md (shiftable_ops): New code iterator.
16717 (t2_binop0, arith_shift_insn): New code attributes.
16718 * arm/predicates.md (shift_nomul_operator): New predicate.
16719 * arm/arm.md (insn_enabled): Delete.
16720 (enabled): Remove insn_enabled test.
16721 (*arith_shiftsi): Delete. Replace with ...
16722 (*<arith_shift_insn>_multsi): ... new pattern.
16723 (*<arith_shift_insn>_shiftsi): ... new pattern.
16724 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16725
16726 2014-05-29 Radovan Obradovic <robradovic@mips.com>
16727 Tom de Vries <tom@codesourcery.com>
16728
16729 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16730 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16731 clobber.
16732 (mips_split_call): Use POST_CALL_TMP_REG.
16733 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16734
16735 2014-05-29 Tom de Vries <tom@codesourcery.com>
16736
16737 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16738 with #ifdef STACK_REGS.
16739
16740 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
16741
16742 * varasm.c (get_variable_section): Walk aliases.
16743 (place_block_symbol): Walk aliases.
16744
16745 2014-05-28 Tom de Vries <tom@codesourcery.com>
16746
16747 Revert:
16748 2014-05-28 Tom de Vries <tom@codesourcery.com>
16749
16750 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16751 * lra.c (initialize_lra_reg_info_element): Add init of
16752 actual_call_used_reg_set field.
16753 (lra): Call lra_create_live_ranges before lra_inheritance for
16754 -fuse-caller-save.
16755 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16756 -fuse-caller-save.
16757 * lra-constraints.c (need_for_call_save_p): Use
16758 actual_call_used_reg_set instead of call_used_reg_set for
16759 -fuse-caller-save.
16760 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16761
16762 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16763
16764 * doc/md.texi: Document that the % constraint character must
16765 be at the beginning of the string.
16766 * genoutput.c (validate_insn_alternatives): Check that '=',
16767 '+' and '%' only appear at the beginning of a constraint.
16768 * ira.c (commutative_constraint_p): Delete.
16769 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16770 at the start of the string.
16771 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16772 duplicate '='s.
16773 * config/arm/neon.md (bicdi3_neon): Likewise.
16774 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16775 (slt_si, sltu_si): Likewise.
16776 * config/vax/vax.md (sbcdi3): Likewise.
16777 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16778 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16779 (mul64): Move '%' to beginning of constraint.
16780 * config/arm/arm.md (*xordi3_insn): Likewise.
16781 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16782 (xorsi3): Likewise.
16783
16784 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16785
16786 * doc/md.texi: Document the restrictions on the "enabled" attribute.
16787
16788 2014-05-28 Jason Merrill <jason@redhat.com>
16789
16790 PR c++/47202
16791 * cgraph.h (symtab_node::get_comdat_group_id): New.
16792 * cgraphunit.c (analyze_functions): Call it.
16793 * symtab.c (dump_symtab_node): Likewise.
16794 * tree.c (decl_comdat_group_id): New.
16795 * tree.h: Declare it.
16796 * lto-streamer-out.c (write_symbol): Use it.
16797 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16798
16799 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16800
16801 PR bootstrap/PR61146
16802 * wide-int.cc: Do not include longlong.h when compiling with clang.
16803
16804 2014-05-28 Richard Biener <rguenther@suse.de>
16805
16806 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16807 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16808 (vrp_visit_assignment_or_call): Print less vertical space.
16809 (vrp_visit_stmt): Likewise.
16810 (vrp_visit_phi_node): Likewise. For a PHI argument with
16811 VR_VARYING range consider recording it as copy.
16812
16813 2014-05-28 Richard Biener <rguenther@suse.de>
16814
16815 Revert
16816 2014-05-28 Richard Biener <rguenther@suse.de>
16817
16818 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16819
16820 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16821
16822 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16823 sufficiently aligned and an offset is used at the same time.
16824 (expand_expr_real_1): Likewise.
16825
16826 2014-05-28 Richard Biener <rguenther@suse.de>
16827
16828 PR middle-end/61045
16829 * fold-const.c (fold_comparison): When folding
16830 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16831 the sign of the remaining constant operand stays the same.
16832
16833 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
16834
16835 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16836 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16837 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16838 to the assembler.
16839 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16840 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16841 (m32bit-doubles) Likewise.
16842 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16843 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16844 option for RL78.
16845
16846 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16847
16848 * configure.ac ($gcc_cv_ld_clearcap): New test.
16849 * configure: Regenerate.
16850 * config.in: Regenerate.
16851 * config/sol2.opt (mclear-hwcap): New option.
16852 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16853 * config/sol2-clearcap.map: Moved here from
16854 testsuite/gcc.target/i386/clearcap.map.
16855 * config/sol2-clearcapv2.map: Move here from
16856 gcc.target/i386/clearcapv2.map.
16857 * config/t-sol2 (install): Depend on install-clearcap-map.
16858 (install-clearcap-map): New target.
16859 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16860 -mclear-hwcap.
16861
16862 2014-05-28 Richard Biener <rguenther@suse.de>
16863
16864 * hwint.h (*_HALF_WIDE_INT*): Move to ...
16865 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16866 ... here and remove the rest.
16867 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16868
16869 2014-05-28 Richard Biener <rguenther@suse.de>
16870
16871 PR tree-optimization/61335
16872 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16873 new range fails, drop to varying.
16874
16875 2014-05-28 Olivier Hainque <hainque@adacore.com>
16876
16877 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16878 (CPP_SPEC): Add entry for -mcpu=8548.
16879 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16880 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16881
16882 2014-05-28 Tom de Vries <tom@codesourcery.com>
16883
16884 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16885 * lra.c (initialize_lra_reg_info_element): Add init of
16886 actual_call_used_reg_set field.
16887 (lra): Call lra_create_live_ranges before lra_inheritance for
16888 -fuse-caller-save.
16889 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16890 -fuse-caller-save.
16891 * lra-constraints.c (need_for_call_save_p): Use
16892 actual_call_used_reg_set instead of call_used_reg_set for
16893 -fuse-caller-save.
16894 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16895
16896 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16897 Tom de Vries <tom@codesourcery.com>
16898
16899 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16900 to gccoptlist.
16901 (@item -fuse-caller-save): New item.
16902
16903 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16904 Tom de Vries <tom@codesourcery.com>
16905
16906 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16907 OPT_fuse_caller_save.
16908
16909 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16910 Tom de Vries <tom@codesourcery.com>
16911
16912 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16913 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16914 get_call_reg_set_usage.
16915 * resource.c (mark_set_resources, mark_target_live_regs): Use
16916 get_call_reg_set_usage.
16917 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16918 field.
16919 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16920 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16921 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16922 * ira-build.c (ira_create_allocno): Init
16923 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16924 (create_cap_allocno, propagate_allocno_info)
16925 (propagate_some_info_from_allocno)
16926 (copy_info_to_removed_store_destinations): Handle
16927 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16928 * ira-costs.c (ira_tune_allocno_costs): Use
16929 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16930
16931 2014-05-28 Radovan Obradovic <robradovic@mips.com>
16932 Tom de Vries <tom@codesourcery.com>
16933
16934 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16935 and function_used_regs_valid fields.
16936 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16937 find_all_hard_reg_sets.
16938 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16939 (get_call_reg_set_usage): New function.
16940 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16941 * regs.h (get_call_reg_set_usage): Declare.
16942
16943 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16944
16945 PR libgcc/61152
16946 * config/dbx.h (License): Add Runtime Library Exception.
16947 * config/newlib-stdint.h (License): Same.
16948 * config/rtems.h (License): Same
16949 * config/initfini-array.h (License): Same
16950 * config/v850/v850.h (License): Same.
16951 * config/v850/v850-opts.h (License): Same
16952 * config/v850/rtems.h (License): Same.
16953
16954 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
16955
16956 PR target/61044
16957 * doc/extend.texi (Local Labels): Note that label differences are
16958 not supported for AVR.
16959
16960 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16961 Olivier Hainque <hainque@adacore.com>
16962
16963 * rtl.h (set_for_reg_notes): Declare.
16964 * emit-rtl.c (set_for_reg_notes): New function.
16965 (set_unique_reg_note): Use it.
16966 * optabs.c (add_equal_note): Likewise
16967
16968 2014-05-27 Andrew Pinski <apinski@cavium.com>
16969
16970 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
16971 Use <w> for the register in assembly template.
16972 (stack_protect_test): Use the mode of operands[0] for the result.
16973 (stack_protect_test_<mode>): Use <w> for the register
16974 in assembly template.
16975
16976 2014-05-27 DJ Delorie <dj@redhat.com>
16977
16978 * config/rx/rx.c (add_vector_labels): New.
16979 (rx_output_function_prologue): Call it.
16980 (rx_handle_func_attribute): Don't require empty arguments.
16981 (rx_handle_vector_attribute): New.
16982 (rx_attribute_table): Add "vector" attribute.
16983 * doc/extend.texi (interrupt, vector): Document new/changed
16984 RX-specific attributes.
16985
16986 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
16987
16988 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
16989
16990 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
16991 predicate to detect a negative quotient.
16992
16993 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
16994
16995 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
16996 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
16997 Add X - Y CMP 0 to X CMP Y transformation.
16998 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
16999
17000 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
17001
17002 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
17003 before printing.
17004
17005 2014-05-27 Steve Ellcey <sellcey@mips.com>
17006
17007 * config/mips/mips.c: Add include of cgraph.h.
17008
17009 2014-05-27 Richard Biener <rguenther@suse.de>
17010
17011 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
17012
17013 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17014
17015 PR libgcc/61152
17016 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
17017 * config/arm/arm-cores.def (License): Same.
17018 * config/arm/arm-opts.h (License): Same.
17019 * config/arm/aout.h (License): Same.
17020 * config/arm/bpabi.h (License): Same.
17021 * config/arm/elf.h (License): Same.
17022 * config/arm/linux-elf.h (License): Same.
17023 * config/arm/linux-gas.h (License): Same.
17024 * config/arm/netbsd-elf.h (License): Same.
17025 * config/arm/uclinux-eabi.h (License): Same.
17026 * config/arm/uclinux-elf.h (License): Same.
17027 * config/arm/vxworks.h (License): Same.
17028
17029 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17030
17031 * config/arm/neon.md (neon_bswap<mode>): New pattern.
17032 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
17033 (arm_init_neon_builtins): Handle NEON_BSWAP.
17034 Define required type nodes.
17035 (arm_expand_neon_builtin): Handle NEON_BSWAP.
17036 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
17037 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
17038 * config/arm/iterators.md (VDQHSD): New mode iterator.
17039
17040 2014-05-27 Richard Biener <rguenther@suse.de>
17041
17042 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
17043 Try using literal operands when comparing value-ranges failed.
17044
17045 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17046
17047 * ira.c (commutative_operand): Adjust for change to recog_data.
17048 [Missing from previous commit.]
17049
17050 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17051
17052 * system.h (TEST_BIT): New macro.
17053 * recog.h (alternative_mask): New type.
17054 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
17055 (recog_data_d): Replace alternative_enabled_p array with
17056 enabled_alternatives.
17057 (target_recog): New structure.
17058 (default_target_recog, this_target_recog): Declare.
17059 (get_enabled_alternatives, recog_init): Likewise.
17060 * recog.c (default_target_recog, this_target_recog): New variables.
17061 (get_enabled_alternatives): New function.
17062 (extract_insn): Use it.
17063 (recog_init): New function.
17064 (preprocess_constraints, constrain_operands): Adjust for change to
17065 recog_data.
17066 * postreload.c (reload_cse_simplify_operands): Likewise.
17067 * reload.c (find_reloads): Likewise.
17068 * ira-costs.c (record_reg_classes): Likewise.
17069 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
17070 all alternatives after a disabled one would be skipped.
17071 (ira_implicitly_set_insn_hard_regs): Likewise.
17072 * ira.c (ira_setup_alts): Adjust for change to recog_data.
17073 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
17074 with enabled_alternatives.
17075 * lra.c (free_insn_recog_data): Update accordingly.
17076 (lra_update_insn_recog_data): Likewise.
17077 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
17078 * lra-constraints.c (process_alt_operands): Likewise. Handle
17079 only_alternative as part of the enabled mask.
17080 * target-globals.h (this_target_recog): Declare.
17081 (target_globals): Add a recog field.
17082 (restore_target_globals): Restore this_target_recog.
17083 * target-globals.c: Include recog.h.
17084 (default_target_globals): Initialize recog field.
17085 (save_target_globals): Likewise.
17086 * reginfo.c (reinit_regs): Call recog_init.
17087 * toplev.c (backend_init_target): Likewise.
17088
17089 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
17090
17091 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
17092 rather than any named insn's code.
17093
17094 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
17095
17096 PR libgcc/61152
17097 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
17098 * config/arm/arm-cores.def (License): Same.
17099
17100 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
17101
17102 * tree.h (decl_comdat_group): Declare.
17103 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
17104 * tree.c (decl_comdat_group): Here.
17105
17106 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
17107
17108 PR rtl-optimization/61222
17109 * combine.c (simplify_shift_const_1): When moving a PLUS outside
17110 the shift, truncate the PLUS operand to the result mode.
17111
17112 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
17113
17114 PR target/61271
17115 * config/i386/i386.c (ix86_rtx_costs)
17116 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
17117 Fix condition.
17118
17119 2014-05-26 Martin Jambor <mjambor@suse.cz>
17120
17121 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
17122 subreg uses.
17123
17124 2014-05-26 Richard Biener <rguenther@suse.de>
17125
17126 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
17127 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
17128 Provide specializations.
17129 (wi::int_traits <HOST_WIDE_INT>,
17130 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
17131
17132 2014-05-26 Alan Modra <amodra@gmail.com>
17133
17134 PR target/61098
17135 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
17136 params and return a bool. Remove dead code. Update comment.
17137 Assert we have a const_int source. Remove bogus code from
17138 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
17139 handling of constants > 2G and reg_equal note, from..
17140 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
17141 return value. Update comment. If we can, use a new pseudo
17142 for intermediate calculations.
17143 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
17144 prototype.
17145 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
17146 call to rs6000_emit_set_const in splitter.
17147 (movdi_internal64+2, +3): Likewise.
17148
17149 2014-05-26 Richard Biener <rguenther@suse.de>
17150
17151 * system.h: Define __STDC_FORMAT_MACROS before
17152 including inttypes.h.
17153 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
17154 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
17155 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
17156 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
17157 HOST_WIDEST_INT_C): Remove.
17158 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
17159 if C99 inttypes.h is not available.
17160 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
17161 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
17162 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
17163 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
17164 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
17165 (struct output_info): Likewise.
17166 (print_statistics): Adjust.
17167 (dump_bitmap_statistics): Likewise.
17168 * bt-load.c (migrate_btr_defs): Print with PRId64.
17169 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
17170 (MAX_SAFE_MULTIPLIER): Adjust.
17171 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
17172 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
17173 dump_cgraph_node): Likewise.
17174 * final.c (dump_basic_block_info): Likewise.
17175 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
17176 * gcov.c (format_gcov): Likewise.
17177 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
17178 for calculation.
17179 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
17180 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
17181 (inline_small_functions, dump_overall_stats, dump_inline_stats):
17182 Use PRId64 for dumping.
17183 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
17184 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
17185 (add_allocno_hard_regs): Adjust.
17186 * loop-doloop.c (doloop_modify): Print using PRId64.
17187 * loop-iv.c (inverse): Compute in uint64_t.
17188 (determine_max_iter, iv_number_of_iterations): Likewise.
17189 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
17190 Print using PRId64.
17191 * lto-streamer-out.c (write_symbol): Use uint64_t.
17192 * mcf.c (CAP_INFINITY): Use int64_t maximum.
17193 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
17194 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
17195 * modulo-sched.c (const_iteration_count): Use int64_t.
17196 (sms_schedule): Dump using PRId64.
17197 * predict.c (dump_prediction): Likewise.
17198 * pretty-print.h (pp_widest_integer): Remove.
17199 * profile.c (get_working_sets, is_edge_inconsistent,
17200 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
17201 * tree-pretty-print.c (pp_double_int): Remove case handling
17202 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
17203 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
17204 and adjust users.
17205 (pass_optimize_bswap::execute): Remove restriction on hosts.
17206 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
17207 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
17208 * tree.c (widest_int_cst_value): Remove.
17209 * tree.h (widest_int_cst_value): Likewise.
17210 * value-prof.c (dump_histogram_value): Print using PRId64.
17211 * gengtype.c (main): Also inject int64_t.
17212 * ggc-page.c (struct max_alignment): Use int64_t.
17213 * alloc-pool.c (struct allocation_object_def): Likewise.
17214 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
17215 for computation.
17216 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
17217 * doc/tm.texi: Regenerated.
17218 * gengtype-lex.l (IWORD): Handle [u]int64_t.
17219 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
17220 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
17221 mmix_output_register_setting): Use [u]int64_t in prototypes.
17222 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
17223 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
17224 mmix_output_octa, mmix_output_shifted_value): Adjust.
17225 (mmix_intval): Adjust. Remove unreachable case.
17226 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
17227
17228 2014-05-26 Richard Biener <rguenther@suse.de>
17229
17230 * configure.ac: Drop __int64 type check. Insist that we
17231 found uint64_t and int64_t.
17232 * hwint.h (HOST_BITS_PER___INT64): Remove.
17233 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
17234 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
17235 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
17236 (HOST_WIDEST_FAST_INT): Remove __int64 case.
17237 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
17238 for dst_q_src_df_rms_cdt.
17239 * configure: Regenerate.
17240 * config.in: Likewise.
17241
17242 2014-05-26 Michael Tautschnig <mt@debian.org>
17243
17244 PR target/61249
17245 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
17246 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
17247
17248 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17249
17250 PR rtl-optimization/61278
17251 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
17252
17253 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17254
17255 PR rtl-optimization/61220
17256 Part of PR rtl-optimization/61225
17257 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
17258 insn; skip split_edge for a block with only one successor.
17259
17260 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17261
17262 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
17263 for variables.
17264
17265 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17266
17267 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
17268 (update_vtable_references): New function.
17269 (function_and_variable_visibility): Rewrite also vtable initializers.
17270 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
17271
17272 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17273
17274 * ggc.h (ggc_grow): New function.
17275 * ggc-none.c (ggc_grow): New function.
17276 * ggc-page.c (ggc_grow): Likewise.
17277
17278 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17279
17280 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
17281 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
17282 comdat_can_be_unshared_p, cgraph_externally_visible_p,
17283 varpool_externally_visible_p, can_replace_by_local_alias,
17284 update_visibility_by_resolution_info, function_and_variable_visibility,
17285 pass_data_ipa_function_and_variable_visibility,
17286 make_pass_ipa_function_and_variable_visibility,
17287 whole_program_function_and_variable_visibility,
17288 pass_data_ipa_whole_program_visibility,
17289 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
17290 * cgraph.h (cgraph_local_node_p): Declare.
17291 * ipa-visibility.c: New file.
17292 * Makefile.in (OBJS): Add ipa-visiblity.o
17293
17294 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17295
17296 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
17297 that var decl is available.
17298
17299 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17300
17301 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
17302 symtab_node pointer.
17303 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
17304 (find_decls_types_r): Do not walk COMDAT_GROUP.
17305 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
17306 * varasm.c (make_decl_one_only): Use set_comdat_group;
17307 create node if needed.
17308 * ipa-inline-transform.c (save_inline_function_body): Update
17309 way we decl->symtab mapping.
17310 * symtab.c (symtab_hash, hash_node, eq_node
17311 symtab_insert_node_to_hashtable): Remove.
17312 (symtab_register_node): Update.
17313 (symtab_unregister_node): Update.
17314 (symtab_get_node): Reimplement as inline function.
17315 (symtab_add_to_same_comdat_group): Update.
17316 (symtab_dissolve_same_comdat_group_list): Update.
17317 (dump_symtab_base): Update.
17318 (verify_symtab_base): Update.
17319 (symtab_make_decl_local): Update.
17320 (fixup_same_cpp_alias_visibility): Update.
17321 (symtab_nonoverwritable_alias): Update.
17322 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
17323 * ipa.c (update_visibility_by_resolution_info): UPdate.
17324 * bb-reorder.c: Include cgraph.h
17325 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
17326 with comdat groups.
17327 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
17328 * cgraph.c (cgraph_get_create_node): Update.
17329 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
17330 and comdat_group_.
17331 (symtab_get_node): Make inline.
17332 (symtab_insert_node_to_hashtable): Remove.
17333 (symtab_can_be_discarded): Update.
17334 (decl_comdat_group): New function.
17335 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
17336 Update.
17337 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
17338 comdat group name.
17339 (read_comdat_group): New function.
17340 (input_node, input_varpool_node): Use it.
17341 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
17342 comdat groups.
17343 * mips.c (mips_start_unique_function): Likewise.
17344 (ix86_code_end): Likewise.
17345 (rs6000_code_end): Likweise.
17346 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
17347
17348 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17349
17350 * gengtype-state.c (fatal_reading_state): Bring offline.
17351 * optabs.c (widening_optab_handler): Bring offline.
17352 * optabs.h (widening_optab_handler): Likewise.
17353 * final.c (get_attr_length_1): Likewise.
17354
17355 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
17356
17357 * sched-int.h (sd_iterator_cond): Manually tail recurse.
17358
17359 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17360
17361 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
17362 (ppc440-compare): Include shift with dot.
17363 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
17364 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
17365 without dot.
17366 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
17367 without dot.
17368 (e6500_sfx2): Include it.
17369 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
17370 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17371 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
17372 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
17373 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
17374 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
17375 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
17376 *lshiftrt_internal1le, *lshiftrt_internal1be,
17377 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
17378 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
17379 *rotldi3_internal10le, *rotldi3_internal10be,
17380 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
17381 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
17382 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
17383 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
17384 define_insns): Use type "shift" in the appropriate alternatives.
17385
17386 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17387
17388 * config/rs6000/rs6000.md (type): Add "logical". Delete
17389 "fast_compare".
17390 (dot): Adjust comment.
17391 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
17392 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
17393 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
17394 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
17395 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
17396 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
17397 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
17398 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17399
17400 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17401 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17402 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17403 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17404 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17405 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17406 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17407 * config/rs6000/8540.md (ppc8540_su): Adjust.
17408 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17409 cell-cmp-microcoded): Adjust.
17410 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17411 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17412 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17413 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17414 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17415 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17416 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17417 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17418 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17419 Adjust.
17420 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17421 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
17422 Adjust. Adjust comment.
17423 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17424 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17425
17426 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17427
17428 * config/rs6000/rs6000.md (type): Add "add".
17429 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
17430 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
17431 define_insns): Use it.
17432 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
17433
17434 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17435 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
17436 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17437 * config/rs6000/601.md (ppc601-integer): Adjust.
17438 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17439 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17440 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17441 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17442 * config/rs6000/8540.md (ppc8540_su): Adjust.
17443 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17444 cell-cmp-microcoded): Adjust.
17445 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
17446 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17447 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
17448 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
17449 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
17450 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17451 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
17452 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
17453 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
17454 Adjust.
17455 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
17456 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
17457 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17458 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17459
17460 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17461
17462 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
17463 "delayed_compare", "var_delayed_compare".
17464 (var_shift): New attribute.
17465 (cell_micro): Adjust.
17466 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
17467 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
17468 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
17469 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17470 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17471 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17472 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17473 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
17474 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
17475 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17476 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
17477 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
17478 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
17479 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
17480 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
17481 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
17482 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
17483 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
17484 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
17485 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
17486 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
17487 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
17488 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
17489 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17490 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17491
17492 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17493 * config/rs6000/440.md (ppc440-integer): Adjust.
17494 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17495 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
17496 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17497 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17498 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17499 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17500 * config/rs6000/8540.md (ppc8540_su): Adjust.
17501 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17502 cell-cmp-microcoded): Adjust.
17503 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
17504 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17505 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
17506 e500mc64_delayed): Adjust.
17507 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
17508 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
17509 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17510 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
17511 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
17512 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
17513 power6-delayed-compare, power6-var-delayed-compare): Adjust.
17514 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
17515 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
17516 Adjust comment.
17517 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17518 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17519
17520 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17521
17522 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
17523 (bits): New mode_attr.
17524 (idiv_ldiv): Delete mode_attr.
17525 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
17526 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17527 rs6000_adjust_priority, is_nonpipeline_insn,
17528 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17529
17530 * config/rs6000/40x.md (ppc403-idiv): Adjust.
17531 * config/rs6000/440.md (ppc440-idiv): Adjust.
17532 * config/rs6000/476.md (ppc476-idiv): Adjust.
17533 * config/rs6000/601.md (ppc601-idiv): Adjust.
17534 * config/rs6000/603.md (ppc603-idiv): Adjust.
17535 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
17536 ppc620-ldiv): Adjust.
17537 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
17538 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
17539 * config/rs6000/8540.md (ppc8540_divide): Adjust.
17540 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
17541 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
17542 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
17543 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
17544 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
17545 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
17546 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
17547 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
17548 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
17549 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
17550 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
17551 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
17552 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
17553 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
17554 * config/rs6000/titan.md (titan_fxu_div): Adjust.
17555
17556 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17557
17558 * config/rs6000/rs6000.md (type): Delete "insert_word",
17559 "insert_dword". Add "insert".
17560 (size): Update comment.
17561 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17562 insn_must_be_first_in_group): Adjust.
17563 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17564 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17565 *insvsi_internal6, insvdi_internal): Adjust.
17566
17567 * config/rs6000/40x.md (ppc403-integer): Adjust.
17568 * config/rs6000/440.md (ppc440-integer): Adjust.
17569 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
17570 * config/rs6000/601.md (ppc601-integer): Adjust.
17571 * config/rs6000/603.md (ppc603-integer): Adjust.
17572 * config/rs6000/6xx.md (ppc604-integer): Adjust.
17573 * config/rs6000/7450.md (ppc7450-integer): Adjust.
17574 * config/rs6000/7xx.md (ppc750-integer): Adjust.
17575 * config/rs6000/8540.md (ppc8540_su): Adjust.
17576 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
17577 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
17578 * config/rs6000/e500mc.md (e500mc_su): Adjust.
17579 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
17580 * config/rs6000/e5500.md (e5500_sfx): Adjust.
17581 * config/rs6000/e6500.md (e6500_sfx): Adjust.
17582 * config/rs6000/mpc.md (mpccore-integer): Adjust.
17583 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
17584 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
17585 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
17586 * config/rs6000/power7.md (power7-integer): Adjust.
17587 * config/rs6000/power8.md (power8-1cyc): Adjust.
17588 * config/rs6000/rs64.md (rs64a-integer): Adjust.
17589 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17590
17591 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17592
17593 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
17594 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
17595 (size): New attribute.
17596 (dot): New attribute.
17597 (cell_micro): Adjust.
17598 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
17599 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
17600 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
17601 umuldi3_highpart): Adjust.
17602 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17603 rs6000_adjust_priority, is_nonpipeline_insn,
17604 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17605
17606 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17607 ppc405-imul3): Adjust.
17608 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17609 * config/rs6000/476.md (ppc476-imul): Adjust.
17610 * config/rs6000/601.md (ppc601-imul): Adjust.
17611 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17612 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17613 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17614 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17615 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17616 Adjust.
17617 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17618 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17619 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17620 cell-imul): Adjust.
17621 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17622 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17623 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17624 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17625 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17626 * config/rs6000/mpc.md (mpccore-imul): Adjust.
17627 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17628 power4-lmul, power4-imul, power4-imul3): Adjust.
17629 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17630 power5-lmul, power5-imul, power5-imul3): Adjust.
17631 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17632 power6-lmul, power6-imul, power6-imul3): Adjust.
17633 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17634 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17635
17636 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17637 rs64a-lmul): Adjust.
17638 * config/rs6000/titan.md (titan_imul): Adjust.
17639
17640 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17641
17642 * config/rs6000/rs6000.md (type): Add new value "halfmul".
17643 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17644 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17645 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17646 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17647 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17648 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17649 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17650 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17651 * config/rs6000/titan.md: Delete nonsensical comment.
17652 (titan_imul): Add type imul3.
17653 (titan_mulhw): Remove type imul3; add type halfmul.
17654
17655 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
17656
17657 * config/rs6000/rs6000.md (type): Reorder, reformat.
17658
17659 2014-05-23 Martin Jambor <mjambor@suse.cz>
17660
17661 PR tree-optimization/53787
17662 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17663 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17664 analysis_done, update all uses.
17665 * ipa-prop.c: Include domwalk.h
17666 (param_analysis_info): Removed.
17667 (param_aa_status): New type.
17668 (ipa_bb_info): Likewise.
17669 (func_body_info): Likewise.
17670 (ipa_get_bb_info): New function.
17671 (aa_overwalked): Likewise.
17672 (find_dominating_aa_status): Likewise.
17673 (parm_bb_aa_status_for_bb): Likewise.
17674 (parm_preserved_before_stmt_p): Changed to use new param AA info.
17675 (load_from_unmodified_param): Accept func_body_info as a parameter
17676 instead of parms_ainfo.
17677 (parm_ref_data_preserved_p): Changed to use new param AA info.
17678 (parm_ref_data_pass_through_p): Likewise.
17679 (ipa_load_from_parm_agg_1): Likewise. Update callers.
17680 (compute_complex_assign_jump_func): Changed to use new param AA info.
17681 (compute_complex_ancestor_jump_func): Likewise.
17682 (ipa_compute_jump_functions_for_edge): Likewise.
17683 (ipa_compute_jump_functions): Removed.
17684 (ipa_compute_jump_functions_for_bb): New function.
17685 (ipa_analyze_indirect_call_uses): Likewise, moved variable
17686 declarations down.
17687 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17688 and info, moved variable declarations down.
17689 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17690 node and info.
17691 (ipa_analyze_stmt_uses): Likewise.
17692 (ipa_analyze_params_uses): Removed.
17693 (ipa_analyze_params_uses_in_bb): New function.
17694 (ipa_analyze_controlled_uses): Likewise.
17695 (free_ipa_bb_info): Likewise.
17696 (analysis_dom_walker): New class.
17697 (ipa_analyze_node): Handle node-specific forbidden analysis,
17698 initialize and free func_body_info, use dominator walker.
17699 (ipcp_modif_dom_walker): New class.
17700 (ipcp_transform_function): Create and free func_body_info, use
17701 ipcp_modif_dom_walker, moved a lot of functionality there.
17702
17703 2014-05-23 Marek Polacek <polacek@redhat.com>
17704 Jakub Jelinek <jakub@redhat.com>
17705
17706 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17707 * gcc.c (sanitize_spec_function): Likewise.
17708 * convert.c (convert_to_integer): Include "ubsan.h". Add
17709 floating-point to integer instrumentation.
17710 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17711 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17712 SANITIZE_NONDEFAULT.
17713 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17714 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17715 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17716 * ubsan.c: Include "realmpfr.h" and "dfp.h".
17717 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17718 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17719 float/double/long double.
17720 (ubsan_instrument_float_cast): New function.
17721 * ubsan.h (ubsan_instrument_float_cast): Declare.
17722
17723 2014-05-23 Jiong Wang <jiong.wang@arm.com>
17724
17725 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17726 predicate.
17727 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
17728 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17729 Adjust for tailcalling through registers.
17730 * config/aarch64/aarch64.h (enum reg_class): New caller save
17731 register class.
17732 (REG_CLASS_NAMES): Likewise.
17733 (REG_CLASS_CONTENTS): Likewise.
17734 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17735 Allow tailcalling without decls.
17736
17737 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17738
17739 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17740 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17741
17742 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17743 gsi, and variables v_* to v*.
17744
17745 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
17746
17747 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17748
17749 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
17750
17751 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17752 * omp-low.c: Update accordingly.
17753
17754 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17755 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17756 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17757 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17758 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17759 GF_OMP_TARGET_KIND_UPDATE.
17760
17761 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17762 Explicitly enumerate the expected region types.
17763
17764 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
17765
17766 PR other/56955
17767 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
17768 documentation; the old documentation didn't clearly state the
17769 constraints on the contents of the pointed-to storage.
17770
17771 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17772
17773 Fix bootstrap error on ia64
17774 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17775 Return default value.
17776
17777 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
17778
17779 PR tree-optimization/54733
17780 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17781 (CMPNOP): Define.
17782 (find_bswap_or_nop_load): New.
17783 (find_bswap_1): Renamed to ...
17784 (find_bswap_or_nop_1): This. Also add support for memory source.
17785 (find_bswap): Renamed to ...
17786 (find_bswap_or_nop): This. Also add support for memory source and
17787 detection of bitwise operations equivalent to load in target
17788 endianness.
17789 (execute_optimize_bswap): Likewise. Also move its leading comment back
17790 in place and split statement transformation into ...
17791 (bswap_replace): This.
17792
17793 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17794
17795 PR rtl-optimization/61215
17796 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17797 simplify_gen_subreg until final substitution.
17798
17799 2014-05-23 Alan Modra <amodra@gmail.com>
17800
17801 PR target/61231
17802 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17803 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17804 Use "Y" constraint rather than "m".
17805
17806 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
17807
17808 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17809 define.
17810 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17811 New function declaration.
17812 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17813 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17814 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17815 (aarch64_init_builtins) : Initialize builtins
17816 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17817 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17818 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17819 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17820 and __builtins_aarch64_set_fpsr.
17821 (aarch64_atomic_assign_expand_fenv): New function.
17822 * config/aarch64/aarch64.md (set_fpcr): New pattern.
17823 (get_fpcr) : Likewise.
17824 (set_fpsr) : Likewise.
17825 (get_fpsr) : Likewise.
17826 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17827 and UNSPECV_SET_FPSR.
17828 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17829 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17830 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17831
17832 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
17833
17834 PR rtl-optimization/60969
17835 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17836 constraints. Set up mem cost for NO_REGS case.
17837
17838 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
17839
17840 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17841
17842 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
17843
17844 * config/darwin.c: Include "lto-section-names.h".
17845 (LTO_SEGMENT_NAME): Don't define.
17846 * config/i386/winnt.c: Include "lto-section-names.h".
17847 * lto-streamer.c: Include "lto-section-names.h".
17848 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17849 * lto-wrapper.c: Include "lto-section-names.h".
17850 (LTO_SECTION_NAME_PREFIX): Don't define.
17851 * lto-section-names.h: New file.
17852 * cgraphunit.c: Include "lto-section-names.h".
17853
17854 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
17855
17856 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17857
17858 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
17859
17860 PR target/61208
17861 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17862
17863 2014-05-22 Nick Clifton <nickc@redhat.com>
17864
17865 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17866
17867 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
17868
17869 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17870 -> (T)A transformation to integer types.
17871
17872 2014-05-22 Teresa Johnson <tejohnson@google.com>
17873
17874 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17875 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17876 (gcov_rewrite): Use gcov_nonruntime_assert.
17877 (gcov_open): Ditto.
17878 (gcov_write_words): Ditto.
17879 (gcov_write_length): Ditto.
17880 (gcov_read_words): Use gcov_nonruntime_assert, and remove
17881 gcc_assert from IN_LIBGCOV code.
17882 (gcov_read_summary): Use gcov_error to flag profile corruption.
17883 (gcov_sync): Use gcov_nonruntime_assert.
17884 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17885 (gcov_histo_index): Use gcov_nonruntime_assert.
17886 (static void gcov_histogram_merge): Ditto.
17887 (compute_working_sets): Ditto.
17888 * gcov-io.h (gcov_nonruntime_assert): Define.
17889 (gcov_error): Define for !IN_LIBGCOV
17890
17891 2014-05-22 Richard Biener <rguenther@suse.de>
17892
17893 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17894 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17895 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17896 and deallocation site.
17897 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17898 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17899 passing through the incoming points-to set.
17900 (handle_lhs_call): Use flags argument instead of recomputing it.
17901 (find_func_aliases_for_call): Call handle_lhs_call with proper
17902 call return flags.
17903
17904 2014-05-22 Jakub Jelinek <jakub@redhat.com>
17905
17906 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17907 all padding bits in REAL_VALUE_TYPE are cleared.
17908
17909 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17910
17911 Cleanup and improve multipass_dfa_lookahead_guard
17912 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17913 (core2i7_first_cycle_multipass_begin,)
17914 (core2i7_first_cycle_multipass_issue,)
17915 (core2i7_first_cycle_multipass_backtrack): Update signature.
17916 * config/ia64/ia64.c
17917 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17918 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17919 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17920 hook definition.
17921 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17922 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
17923 values.
17924 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17925 return values.
17926 * doc/tm.texi: Regenerate.
17927 * doc/tm.texi.in
17928 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17929 * haifa-sched.c (ready_try): Make signed to allow negative values.
17930 (rebug_ready_list_1): Update.
17931 (choose_ready): Simplify.
17932 (sched_extend_ready_list): Update.
17933
17934 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17935
17936 Remove IA64 speculation tweaking flags
17937 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17938 speculation tuning flags.
17939 (msched-prefer-non-data-spec-insns,)
17940 (msched-prefer-non-control-spec-insns): Obsolete options.
17941 * haifa-sched.c (choose_ready): Remove handling of
17942 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17943 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17944 and PREFER_NON_DATA_SPEC.
17945 * sel-sched.c (process_spec_exprs): Remove handling of
17946 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17947
17948 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17949
17950 Improve scheduling debug output
17951 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17952 (advance_one_cycle): Update.
17953 (schedule_insn, queue_to_ready): Add debug printouts.
17954 (debug_ready_list_1): New static function.
17955 (debug_ready_list): Update.
17956 (max_issue): Add debug printouts.
17957 (dump_insn_stream): New static function.
17958 (schedule_block): Use it. Also better indent printouts.
17959
17960 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17961
17962 Fix sched_insn debug counter
17963 * haifa-sched.c (schedule_insn): Update.
17964 (struct haifa_saved_data): Add nonscheduled_insns_begin.
17965 (save_backtrack_point, restore_backtrack_point): Update.
17966 (first_nonscheduled_insn): New static function.
17967 (queue_to_ready, choose_ready): Use it.
17968 (schedule_block): Init nonscheduled_insns_begin.
17969 (sched_emit_insn): Update.
17970
17971
17972 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17973
17974 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
17975 to GENERAL_REGS.
17976 (aarch64_secondary_reload) : LikeWise.
17977 (aarch64_class_max_nregs) : Remove CORE_REGS.
17978 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
17979 (REG_CLASS_NAMES) : Likewise.
17980 (REG_CLASS_CONTENTS) : LikeWise.
17981 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
17982
17983 2014-05-21 Guozhi Wei <carrot@google.com>
17984
17985 PR target/61202
17986 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
17987 constraint.
17988 (vqdmulhq_n_s16): Likewise.
17989
17990 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17991
17992 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
17993
17994 2014-05-21 Marek Polacek <polacek@redhat.com>
17995
17996 PR sanitizer/61272
17997 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
17998
17999 2014-05-21 Martin Jambor <mjambor@suse.cz>
18000
18001 * doc/invoke.texi (Optimize Options): Document parameters
18002 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
18003 ipa-cp-array-index-hint-bonus.
18004
18005 2014-05-21 Mark Wielaard <mjw@redhat.com>
18006
18007 PR debug/16063
18008 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
18009 version >= 3 or not strict DWARF.
18010 * langhooks.h (struct lang_hooks_for_types): Add
18011 enum_underlying_base_type.
18012 * langhooks.c (lhd_enum_underlying_base_type): New function.
18013 * gcc/langhooks.h (struct lang_hooks_for_types): Add
18014 enum_underlying_base_type.
18015 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
18016 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
18017 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
18018
18019 2014-05-21 Richard Biener <rguenther@suse.de>
18020
18021 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
18022
18023 2014-05-21 John Marino <gnugcc@marino.st>
18024
18025 * config.gcc (*-*-dragonfly*): New target.
18026 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
18027 * configure: Regenerate.
18028 * config/dragonfly-stdint.h: New.
18029 * config/dragonfly.h: New.
18030 * config/dragonfly.opt: New.
18031 * config/i386/dragonfly.h: New.
18032 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
18033
18034 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18035
18036 * tree.def (VOID_CST): New.
18037 * tree-core.h (TI_VOID): New.
18038 * tree.h (void_node): New.
18039 * tree.c (tree_node_structure_for_code, tree_code_size)
18040 (iterative_hash_expr): Handle VOID_CST.
18041 (build_common_tree_nodes): Initialize void_node.
18042
18043 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
18044
18045 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
18046 functions.
18047 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
18048
18049 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
18050 more places.
18051
18052 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
18053 flag_reorder_blocks_and_partition.
18054 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
18055
18056 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
18057
18058 PR target/54236
18059 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
18060 constraints.
18061 (*addc_r_t): Add new insn_and_split.
18062
18063 2014-05-21 Jakub Jelinek <jakub@redhat.com>
18064
18065 PR middle-end/61252
18066 * omp-low.c (handle_simd_reference): New function.
18067 (lower_rec_input_clauses): Use it. Defer adding reference
18068 initialization even for reduction without placeholder if in simd,
18069 handle it properly later on.
18070
18071 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18072
18073 PR tree-optimization/60899
18074 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
18075 assume all static symbols will have definition wile parsing and
18076 check the do have definition later in compilation; check that
18077 variable referring symbol will be output before concluding that
18078 reference is safe; be conservative for referring local statics;
18079 be more precise about when comdat is output in other partition.
18080
18081 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18082
18083 PR bootstrap/60984
18084 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
18085 parameter.
18086 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
18087 (ipa_inline): Loop inline_to_all_callers until no more aliases
18088 are removed.
18089
18090 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18091
18092 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
18093 set writeonly flag only for vars actually written to.
18094
18095 2014-05-20 Dehao Chen <dehao@google.com>
18096
18097 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
18098 and callee count to get clone count.
18099 * tree-inline.c (expand_call_inline): Use callee count instead of bb
18100 count in copy_body.
18101
18102 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
18103
18104 PR rtl-optimization/61243
18105 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
18106
18107 2014-05-20 Xinliang David Li <davidxl@google.com>
18108
18109 * cgraphunit.c (walk_polymorphic_call_targets): Add
18110 dbgcnt and fopt-info support.
18111 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
18112 * ipa-devirt.c (ipa_devirt): Ditto.
18113 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
18114 * ipa.c (walk_polymorphic_call_targets): Ditto.
18115 * gimple-fold.c (fold_gimple_assign): Ditto.
18116 (gimple_fold_call): Ditto.
18117 * dbgcnt.def: New counter.
18118
18119 2014-05-20 DJ Delorie <dj@redhat.com>
18120
18121 * config/msp430/msp430.md (split): Don't allow subregs when
18122 splitting SImode adds.
18123 (andneghi): Fix subtraction logic.
18124 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
18125
18126 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
18127
18128 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
18129 symbols.
18130 * except.c (switch_to_exception_section, resolve_unique_section,
18131 get_named_text_section, default_function_rodata_section,
18132 align_variable, get_block_for_decl, default_section_type_flags):
18133 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
18134 * symtab.c (symtab_add_to_same_comdat_group,
18135 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
18136 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
18137 Likewise.
18138 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
18139 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
18140 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18141 (c6x_function_in_section_p): Likewise.
18142 * config/darwin.c (machopic_select_section): Likewise.
18143 * config/arm/arm.c (arm_function_in_section_p): Likewise.
18144 * config/mips/mips.c (mips_function_rodata_section): Likewise.
18145 * config/mep/mep.c (mep_select_section): LIkewise.
18146 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18147
18148 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
18149
18150 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
18151 EH region of calls to pure functions that can throw an exception.
18152 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
18153 (copy_reference_ops_from_call): Also copy the EH region of the call if
18154 it can throw an exception.
18155
18156 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18157
18158 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
18159 nested VEC_SELECTs that are inverses of each other.
18160
18161 2014-05-20 Richard Biener <rguenther@suse.de>
18162
18163 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
18164 (extract_and_process_scc_for_name): not here.
18165 (cond_dom_walker::before_dom_children): Only process
18166 stmts that end the BB in interesting ways.
18167 (run_scc_vn): Mark param uses as visited.
18168
18169 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18170
18171 * config/arm/arm.md (arith_shiftsi): Do not predicate for
18172 arm_restrict_it.
18173
18174 2014-05-20 Nick Clifton <nickc@redhat.com>
18175
18176 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
18177 (msp430_gimplify_va_arg_expr): New function.
18178 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
18179
18180 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
18181 operand 0 in order to prevent confusion about the number of
18182 registers involved.
18183
18184 2014-05-20 Richard Biener <rguenther@suse.de>
18185
18186 PR tree-optimization/61221
18187 * tree-ssa-pre.c (el_to_update): Remove.
18188 (eliminate_dom_walker::before_dom_children): Handle released
18189 VDEFs by value-numbering them to the associated VUSE. Update
18190 stmt immediately for substituted call address.
18191 (eliminate): Remove delayed stmt updating code.
18192 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
18193 possibly late re-numbered vuses.
18194 (vn_reference_lookup_2): Adjust.
18195 (vn_reference_lookup_pieces): Likewise.
18196 (vn_reference_lookup): Likewise.
18197
18198 2014-05-20 Richard Biener <rguenther@suse.de>
18199
18200 * config.gcc: Remove need_64bit_hwint.
18201 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
18202 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
18203 it to be true.
18204 * config.in: Regenerate.
18205 * configure: Likewise.
18206
18207 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
18208
18209 * doc/extend.texi: Create Label Attributes section,
18210 move all label attributes into it and reference it.
18211
18212 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
18213
18214 * arm.c (thumb1_reorg): When scanning backwards skip anything
18215 that's not a proper insn.
18216
18217 2014-05-19 Richard Biener <rguenther@suse.de>
18218
18219 PR tree-optimization/61221
18220 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18221 Do nothing for unreachable blocks.
18222 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
18223 Improve unreachability detection.
18224
18225 2014-05-19 Richard Biener <rguenther@suse.de>
18226
18227 PR tree-optimization/61209
18228 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
18229
18230 2014-05-19 Nick Clifton <nickc@redhat.com>
18231
18232 * except.c (init_eh): Fix computation of builtin setjmp buffer
18233 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
18234
18235 2014-05-19 Richard Biener <rguenther@suse.de>
18236
18237 PR tree-optimization/61184
18238 * tree-vrp.c (is_negative_overflow_infinity): Use
18239 TREE_OVERFLOW_P and do that check first.
18240 (is_positive_overflow_infinity): Likewise.
18241 (is_overflow_infinity): Likewise.
18242 (vrp_operand_equal_p): Properly treat operands with
18243 differing overflow as not equal.
18244
18245 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
18246
18247 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
18248 shift simplification where it was intended.
18249
18250 2014-05-19 Christian Bruel <christian.bruel@st.com>
18251
18252 PR target/61195
18253 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
18254
18255 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
18256
18257 PR target/61084
18258 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
18259 than wide_int.
18260
18261 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18262
18263 * reg-notes.def (CROSSING_JUMP): Likewise.
18264 * rtl.h (rtx_def): Update comment for jump flag.
18265 (CROSSING_JUMP_P): Define.
18266 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
18267 of a REG_CROSSING_JUMP note.
18268 * cfghooks.c (tidy_fallthru_edges): Likewise.
18269 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
18270 * emit-rtl.c (try_split): Likewise.
18271 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18272 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
18273 * jump.c (redirect_jump_2): Likewise.
18274 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
18275 (relax_delay_slots): Likewise.
18276 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
18277 (bbit_di): Likewise.
18278 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
18279 * config/sh/sh.md (jump_compact): Likewise.
18280 * bb-reorder.c (rotate_loop): Likewise.
18281 (pass_duplicate_computed_gotos::execute): Likewise.
18282 (add_reg_crossing_jump_notes): Rename to...
18283 (update_crossing_jump_flags): ...this.
18284 (pass_partition_blocks::execute): Update accordingly.
18285
18286 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
18287
18288 * tree.h: Remove extraneous template <>.
18289
18290 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18291
18292 * ipa.c (symtab_remove_unreachable_nodes): Remove
18293 symbol from comdat group if its body was eliminated.
18294 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
18295 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
18296 (symtab_unregister_node): ... this one.
18297 (verify_symtab_base): More strict checking of comdats.
18298 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
18299
18300 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18301
18302 * tree-pass.h (make_pass_ipa_comdats): New pass.
18303 * timevar.def (TV_IPA_COMDATS): New timevar.
18304 * passes.def (pass_ipa_comdats): Add.
18305 * Makefile.in (OBJS): Add ipa-comdats.o
18306 * ipa-comdats.c: New file.
18307
18308 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18309
18310 * ipa.c (update_visibility_by_resolution_info): New function.
18311 (function_and_variable_visibility): Use it.
18312
18313 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
18314
18315 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
18316 New functions.
18317 (FOR_EACH_DEFINED_SYMBOL): New macro.
18318 (varpool_first_static_initializer, varpool_next_static_initializer,
18319 varpool_first_defined_variable, varpool_next_defined_variable):
18320 Fix comments.
18321 (symtab_in_same_comdat_p): Correctly deal with inline functions.
18322
18323 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18324
18325 * ggc-page.c (ggc_handle_finalizers): Add comment.
18326
18327 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18328
18329 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
18330 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
18331 (ggc_internal_cleared_alloc): Likewise.
18332 * ggc-page.c (finalizer): New class.
18333 (vec_finalizer): Likewise.
18334 (globals::finalizers): New member.
18335 (globals::vec_finalizers): Likewise.
18336 (ggc_internal_alloc): Record the finalizer if any for the block being
18337 allocated.
18338 (ggc_handle_finalizers): New function.
18339 (ggc_collect): Call ggc_handle_finalizers.
18340 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
18341 finalizer.
18342 (ggc_internal_cleared_alloc): Likewise.
18343 (finalize): New function.
18344 (need_finalization_p): Likewise.
18345 (ggc_alloc): Install the type's destructor as the finalizer if it
18346 might do something.
18347 (ggc_cleared_alloc): Likewise.
18348 (ggc_vec_alloc): Likewise.
18349 (ggc_cleared_vec_alloc): Likewise.
18350
18351 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18352
18353 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
18354
18355 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18356
18357 * alias.c (record_alias_subset): Adjust.
18358 * bitmap.c (bitmap_element_allocate): Likewise.
18359 (bitmap_gc_alloc_stat): Likewise.
18360 * cfg.c (init_flow): Likewise.
18361 (alloc_block): Likewise.
18362 (unchecked_make_edge): Likewise.
18363 * cfgloop.c (alloc_loop): Likewise.
18364 (flow_loops_find): Likewise.
18365 (rescan_loop_exit): Likewise.
18366 * cfgrtl.c (init_rtl_bb_info): Likewise.
18367 * cgraph.c (insert_new_cgraph_node_version): Likewise.
18368 (cgraph_allocate_node): Likewise.
18369 (cgraph_create_edge_1): Likewise.
18370 (cgraph_allocate_init_indirect_info): Likewise.
18371 * cgraphclones.c (cgraph_clone_edge): Likewise.
18372 * cgraphunit.c (add_asm_node): Likewise.
18373 (init_lowered_empty_function): Likewise.
18374 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
18375 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
18376 (alpha_use_linkage): Likewise.
18377 * config/arc/arc.c (arc_init_machine_status): Likewise.
18378 * config/arm/arm.c (arm_init_machine_status): Likewise.
18379 * config/avr/avr.c (avr_init_machine_status): Likewise.
18380 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
18381 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
18382 * config/cris/cris.c (cris_init_machine_status): Likewise.
18383 * config/darwin.c (machopic_indirection_name): Likewise.
18384 (darwin_build_constant_cfstring): Likewise.
18385 (darwin_enter_string_into_cfstring_table): Likewise.
18386 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
18387 * config/frv/frv.c (frv_init_machine_status): Likewise.
18388 * config/i386/i386.c (get_dllimport_decl): Likewise.
18389 (ix86_init_machine_status): Likewise.
18390 (assign_386_stack_local): Likewise.
18391 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18392 (i386_pe_maybe_record_exported_symbol): Likewise.
18393 (i386_pe_record_stub): Likewise.
18394 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
18395 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
18396 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
18397 (m32c_note_pragma_address): Likewise.
18398 * config/mep/mep.c (mep_init_machine_status): Likewise.
18399 (mep_note_pragma_flag): Likewise.
18400 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
18401 (mips16_local_alias): Likewise.
18402 (mips_init_machine_status): Likewise.
18403 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
18404 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
18405 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
18406 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
18407 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
18408 * config/pa/pa.c (pa_init_machine_status): Likewise.
18409 (pa_get_deferred_plabel): Likewise.
18410 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
18411 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
18412 (rs6000_init_machine_status): Likewise.
18413 (output_toc): Likewise.
18414 * config/s390/s390.c (s390_init_machine_status): Likewise.
18415 * config/score/score.c (score_output_external): Likewise.
18416 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
18417 * config/spu/spu.c (spu_init_machine_status): Likewise.
18418 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
18419 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
18420 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
18421 * coverage.c (coverage_end_function): Likewise.
18422 * dbxout.c (dbxout_init): Likewise.
18423 * doc/gty.texi: Don't mention variable_size attribute.
18424 * dwarf2cfi.c (new_cfi): Adjust.
18425 (new_cfi_row): Likewise.
18426 (copy_cfi_row): Likewise.
18427 (create_cie_data): Likewise.
18428 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
18429 (new_loc_descr): Likewise.
18430 (find_AT_string_in_table): Likewise.
18431 (add_addr_table_entry): Likewise.
18432 (new_die): Likewise.
18433 (add_var_loc_to_decl): Likewise.
18434 (clone_die): Likewise.
18435 (clone_as_declaration): Likewise.
18436 (break_out_comdat_types): Likewise.
18437 (new_loc_list): Likewise.
18438 (add_loc_descr_to_each): Likewise.
18439 (add_location_or_const_value_attribute): Likewise.
18440 (add_linkage_name): Likewise.
18441 (lookup_filename): Likewise.
18442 (dwarf2out_var_location): Likewise.
18443 (new_line_info_table): Likewise.
18444 (dwarf2out_init): Likewise.
18445 (mem_loc_descriptor): Likewise.
18446 (loc_descriptor): Likewise.
18447 (add_const_value_attribute): Likewise.
18448 (tree_add_const_value_attribute): Likewise.
18449 (comp_dir_string): Likewise.
18450 (dwarf2out_vms_debug_main_pointer): Likewise.
18451 (string_cst_pool_decl): Likewise.
18452 * emit-rtl.c (set_mem_attrs): Likewise.
18453 (get_reg_attrs): Likewise.
18454 (start_sequence): Likewise.
18455 (init_emit): Likewise.
18456 (init_emit_regs): Likewise.
18457 * except.c (init_eh_for_function): Likewise.
18458 (gen_eh_region): Likewise.
18459 (gen_eh_region_catch): Likewise.
18460 (gen_eh_landing_pad): Likewise.
18461 (add_call_site): Likewise.
18462 * function.c (add_frame_space): Likewise.
18463 (insert_temp_slot_address): Likewise.
18464 (assign_stack_temp_for_type): Likewise.
18465 (get_hard_reg_initial_val): Likewise.
18466 (allocate_struct_function): Likewise.
18467 (prepare_function_start): Likewise.
18468 (types_used_by_var_decl_insert): Likewise.
18469 * gengtype.c (variable_size_p): Remove function.
18470 (enum alloc_quantity): Remove enum.
18471 (write_typed_alloc_def): Remove function.
18472 (write_typed_struct_alloc_def): Likewise.
18473 (write_typed_typedef_alloc_def): Likewise.
18474 (write_typed_alloc_defns): Likewise.
18475 (main): Adjust.
18476 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
18477 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
18478 * ggc.h (ggc_alloc): new function.
18479 (ggc_cleared_alloc): Likewise.
18480 (ggc_vec_alloc): Template on type of vector element, and remove
18481 element size argument.
18482 (ggc_cleared_vec_alloc): Likewise.
18483 * gimple.c (gimple_build_omp_for): Adjust.
18484 (gimple_copy): Likewise.
18485 * ipa-cp.c (get_replacement_map): Likewise.
18486 (find_aggregate_values_for_callers_subset): Likewise.
18487 (known_aggs_to_agg_replacement_list): Likewise.
18488 * ipa-devirt.c (get_odr_type): Likewise.
18489 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
18490 (read_agg_replacement_chain): Likewise.
18491 * loop-iv.c (get_simple_loop_desc): Likewise.
18492 * lto-cgraph.c (input_node_opt_summary): Likewise.
18493 * lto-section-in.c (lto_new_in_decl_state): Likewise.
18494 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18495 (input_eh_region): Likewise.
18496 (input_eh_lp): Likewise.
18497 (input_cfg): Likewise.
18498 * optabs.c (set_optab_libfunc): Likewise.
18499 (init_tree_optimization_optabs): Likewise.
18500 (set_conv_libfunc): Likewise.
18501 * passes.c (do_per_function_toporder): Likewise.
18502 * rtl.h: Don't use variable_size gty attribute.
18503 * sese.c (if_region_set_false_region): Adjust.
18504 * stringpool.c (gt_pch_save_stringpool): Likewise.
18505 * target-globals.c (save_target_globals): Likewise.
18506 * toplev.c (general_init): Likewise.
18507 * trans-mem.c (record_tm_replacement): Likewise.
18508 (split_bb_make_tm_edge): Likewise.
18509 * tree-cfg.c (move_sese_region_to_fn): Likewise.
18510 * tree-data-ref.h (lambda_vector_new): Likewise.
18511 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18512 * tree-iterator.c (tsi_link_before): Likewise.
18513 (tsi_link_after): Likewise.
18514 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18515 * tree-ssa-loop-niter.c (record_estimate): Likewise.
18516 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18517 * tree-ssa-operands.h: Don't use variable_size gty attribute.
18518 * tree-ssa.c (init_tree_ssa): Adjust.
18519 * tree-ssanames.c (set_range_info): Likewise.
18520 (get_ptr_info): Likewise.
18521 (duplicate_ssa_name_ptr_info): Likewise.
18522 (duplicate_ssa_name_range_info): Likewise.
18523 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
18524 (unpack_ts_fixed_cst_value_fields): Likewise.
18525 * tree.c (build_fixed): Likewise.
18526 (build_real): Likewise.
18527 (build_string): Likewise.
18528 (decl_priority_info): Likewise.
18529 (decl_debug_expr_insert): Likewise.
18530 (decl_value_expr_insert): Likewise.
18531 (decl_debug_args_insert): Likewise.
18532 (type_hash_add): Likewise.
18533 (build_omp_clause): Likewise.
18534 * ubsan.c (decl_for_type_insert): Likewise.
18535 * varasm.c (get_unnamed_section): Likewise.
18536 (get_noswitch_section): Likewise.
18537 (get_section): Likewise.
18538 (get_block_for_section): Likewise.
18539 (create_block_symbol): Likewise.
18540 (build_constant_desc): Likewise.
18541 (create_constant_pool): Likewise.
18542 (force_const_mem): Likewise.
18543 (record_tm_clone_pair): Likewise.
18544 * varpool.c (varpool_create_empty_node): Likewise.
18545
18546 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
18547
18548 * dwarf2out.c (tree_add_const_value_attribute): Call
18549 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
18550 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
18551 instead of ggc_internal_<x>alloc_stat.
18552 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
18553 (ggc_realloc): Likewise.
18554 * ggc-none.c (ggc_internal_alloc): Likewise.
18555 (ggc_internal_cleared_alloc): Likewise.
18556 * ggc-page.c: Likewise.
18557 * ggc.h (ggc_internal_alloc_stat): Likewise.
18558 (ggc_internal_alloc): Remove macro.
18559 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
18560 (ggc_internal_cleared_alloc): Remove macro.
18561 (GGC_RESIZEVEC): Adjust.
18562 (ggc_resizevar): Remove macro.
18563 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
18564 (ggc_internal_cleared_vec_alloc_stat): Likewise.
18565 (ggc_internal_vec_cleared_alloc): Remove macro.
18566 (ggc_alloc_atomic_stat): Drop _stat suffix.
18567 (ggc_alloc_atomic): Remove macro.
18568 (ggc_alloc_cleared_atomic): Remove macro.
18569 (ggc_alloc_string_stat): Drop _stat suffix.
18570 (ggc_alloc_string): Remove macro.
18571 (ggc_alloc_rtx_def_stat): Adjust.
18572 (ggc_alloc_tree_node_stat): Likewise.
18573 (ggc_alloc_cleared_tree_node_stat): Likewise.
18574 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
18575 (ggc_alloc_cleared_simd_clone_stat): Likewise.
18576 * gimple.c (gimple_build_omp_for): Likewise.
18577 (gimple_copy): Likewise.
18578 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
18579 * toplev.c (realloc_for_line_map): Adjust.
18580 * tree-data-ref.h (lambda_vector_new): Likewise.
18581 * tree-phinodes.c (allocate_phi_node): Likewise.
18582 * tree.c (grow_tree_vec_stat): Likewise.
18583 * vec.h (va_gc::reserve): Adjust.
18584
18585 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
18586
18587 * config/microblaze/microblaze.c (break_handler): New Declaration.
18588 (microblaze_break_function_p,microblaze_is_break_handler): New.
18589 (compute_frame_size): Use microblaze_break_function_p.
18590 Add the test of break_handler.
18591 (microblaze_function_prologue) : Add the test of variable
18592 break_handler. Check the fnname by BREAK_HANDLER_NAME.
18593 (microblaze_function_epilogue) : Add the test of break_handler.
18594 (microblaze_globalize_label) : Add the test of break_handler.
18595 Check the name by BREAK_HANDLER_NAME.
18596
18597 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
18598
18599 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
18600 microblaze_is_break_handler test.
18601 (call_internal1,call_value_intern): Use microblaze_break_function_p.
18602 Use SYMBOL_REF_DECL.
18603
18604 * config/microblaze/microblaze-protos.h
18605 (microblaze_break_function_p,microblaze_is_break_handler):
18606 New Declaration.
18607
18608 * doc/extend.texi (MicroBlaze break_handler Functions): Document
18609 new MicroBlaze break_handler functions.
18610
18611 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18612
18613 * doc/extend.texi (Size of an asm): Move node text according
18614 to its @menu entry position.
18615
18616 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
18617
18618 PR tree-optimization/61140
18619 PR tree-optimization/61150
18620 PR tree-optimization/61197
18621 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18622
18623 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
18624
18625 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
18626
18627 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
18628
18629 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18630 __SIZEOF_INT128__ is defined.
18631
18632 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18633
18634 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18635 (rs6000_delegitimize_address): Use it.
18636
18637 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
18638
18639 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18640 inplace argument. Store the new address in the original MEM when true.
18641 * emit-rtl.c (change_address_1): Likewise.
18642 (adjust_address_1, adjust_automodify_address_1, offset_address):
18643 Update accordingly.
18644 * rtl.h (plus_constant): Add an inplace argument.
18645 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
18646 when true. Avoid generating (plus X (const_int 0)).
18647 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18648 in-place. Pass true to plus_constant.
18649 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18650
18651 2014-05-16 Dehao Chen <dehao@google.com>
18652
18653 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18654
18655 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18656
18657 PR target/54089
18658 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18659 patterns.
18660 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18661
18662 2014-05-16 Dehao Chen <dehao@google.com>
18663
18664 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18665 optimize_function_for_size_p.
18666 * regs.h (REG_FREQ_FROM_BB): Likewise.
18667
18668 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18669
18670 PR target/51244
18671 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18672 negt_reg_operand cases.
18673 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18674 predicate.
18675 * config/sh/predicates.md (cbranch_treg_value): Simplify.
18676
18677 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
18678
18679 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18680 target variants.
18681
18682 2014-05-16 David Malcolm <dmalcolm@redhat.com>
18683
18684 Revert:
18685 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18686
18687 * tree-cfg.c (dump_function_to_file): Dump the return type of
18688 functions, in a line to itself before the function body, mimicking
18689 the layout of a C function.
18690
18691 2014-05-16 Dehao Chen <dehao@google.com>
18692
18693 * cfghooks.c (make_forwarder_block): Use direct computation to
18694 get fall-through edge's count and frequency.
18695
18696 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
18697
18698 * config/arc/arc.c (arc_init): Fix typo in error message.
18699 * config/i386/i386.c (ix86_expand_builtin): Likewise.
18700 (split_stack_prologue_scratch_regno): Likewise.
18701 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18702 word from error message.
18703
18704 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18705
18706 * ira-costs.c: Fix typo in comment.
18707
18708 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
18709
18710 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18711
18712 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
18713
18714 * varpool.c (dump_varpool_node): Dump write-only flag.
18715 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18716 write-only flag.
18717 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18718 write-only variables.
18719 * ipa.c (process_references): New function.
18720 (set_readonly_bit): New function.
18721 (set_writeonly_bit): New function.
18722 (clear_addressable_bit): New function.
18723 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18724 fix handling of aliases.
18725 * cgraph.h (struct varpool_node): Add writeonly flag.
18726
18727 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
18728
18729 PR rtl-optimization/60969
18730 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18731 Calculate costs for this case.
18732
18733 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
18734
18735 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18736 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18737
18738 2014-05-16 Richard Biener <rguenther@suse.de>
18739
18740 PR tree-optimization/61194
18741 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18742 bool patterns ending in a COND_EXPR.
18743
18744 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18745
18746 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18747
18748 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18749
18750 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18751 where we were unable to cost an RTX.
18752
18753 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18754
18755 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18756 HIGH, LO_SUM.
18757
18758 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18759 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18760
18761 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18762
18763 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18764 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18765
18766 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18767 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18768
18769 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18770 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18771
18772 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18773 operators.
18774
18775 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18776 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18777
18778 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18779 DIV/MOD.
18780
18781 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18782 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18783
18784 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18785 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18786
18787 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18788 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18789
18790 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18791 rotates and shifts.
18792
18793 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18794 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18795
18796 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18797 ZERO_EXTEND and SIGN_EXTEND better.
18798
18799 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18800 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18801
18802 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18803 logical operations.
18804
18805 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18806 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18807
18808 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18809 costs when costing loads and stores to memory.
18810
18811 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18812 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
18813
18814 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18815 for SET RTX.
18816
18817 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18818
18819 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18820
18821 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18822 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18823
18824 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18825 to...
18826 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18827 well formed.
18828 (aarch64_rtx_mult_cost): New.
18829 (aarch64_rtx_costs): Use it, refactor as appropriate.
18830
18831 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18832 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18833
18834 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18835 emit instructions, return number of instructions which would
18836 be emitted.
18837 (aarch64_add_constant): Update call to aarch64_build_constant.
18838 (aarch64_output_mi_thunk): Likewise.
18839 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18840 a CONST_DOUBLE.
18841
18842 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18843
18844 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18845 (TARGET_RTX_COSTS): Call it.
18846
18847 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18848
18849 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18850 (cortexa57_vector_cost): Likewise.
18851 (cortexa57_tunings): Use them.
18852
18853 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
18854
18855 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18856 (cpu_addrcost_table): Use it.
18857 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18858 (aarch64_address_cost): Rewrite using aarch64_classify_address,
18859 move it.
18860
18861 2014-05-16 Richard Biener <rguenther@suse.de>
18862
18863 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18864 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18865 (visit_phi): Ignore edges marked as not executable.
18866 (class cond_dom_walker): New.
18867 (cond_dom_walker::before_dom_children): Value-number
18868 control statements and mark successor edges as not
18869 executable if possible.
18870 (run_scc_vn): First walk all control statements in
18871 dominator order, marking edges as not executable.
18872 * tree-inline.c (copy_edges_for_bb): Be not confused
18873 about random edge flags.
18874
18875 2014-05-16 Richard Biener <rguenther@suse.de>
18876
18877 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18878
18879 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
18880
18881 PR target/61193
18882 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18883 (__TM_simple_begin): Use it.
18884 (__TM_begin): Likewise.
18885
18886 2014-05-15 Martin Jambor <mjambor@suse.cz>
18887
18888 PR ipa/61085
18889 * ipa-prop.c (update_indirect_edges_after_inlining): Check
18890 type_preserved flag when the indirect edge is polymorphic.
18891
18892 2014-05-15 Martin Jambor <mjambor@suse.cz>
18893
18894 PR tree-optimization/61090
18895 * tree-sra.c (sra_modify_expr): Pass the current gsi to
18896 build_ref_for_model.
18897
18898 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18899
18900 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18901 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18902
18903 2014-05-15 Jakub Jelinek <jakub@redhat.com>
18904
18905 PR tree-optimization/61158
18906 * fold-const.c (fold_binary_loc): If X is zero-extended and
18907 shiftc >= prec, make sure zerobits is all ones instead of
18908 invoking undefined behavior.
18909
18910 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18911
18912 * regcprop.h: New file.
18913 * regcprop.c (skip_debug_insn_p): New decl.
18914 (replace_oldest_value_reg): Check skip_debug_insn_p.
18915 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18916 * shrink-wrap.c: Include regcprop.h.
18917 (prepare_shrink_wrap): Call
18918 copyprop_hardreg_forward_bb_without_debug_insn.
18919
18920 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18921
18922 * shrink-wrap.h: Update comment.
18923 * shrink-wrap.c: Update comment.
18924 (next_block_for_reg): Rename to live_edge_for_reg.
18925 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18926 (move_insn_for_shrink_wrap): Split live_edge.
18927 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18928
18929 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
18930
18931 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18932 Delete.
18933 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18934 * config/sparc/sparc.md (fptype_ut699): New attribute.
18935 (in_branch_delay): Return false if -mfix-ut699 is specified and
18936 fptype_ut699 is set to single.
18937 (truncdfsf2): Add fptype_ut699 attribute.
18938 (fix_truncdfsi2): Likewise.
18939 (floatsisf2): Change fptype attribute.
18940 (fix_truncsfsi2): Likewise.
18941 (negtf2_notv9): Delete.
18942 (negtf2_v9): Likewise.
18943 (negtf2_hq): New instruction.
18944 (negtf2): New instruction and splitter.
18945 (negdf2_notv9): Rewrite.
18946 (abstf2_notv9): Delete.
18947 (abstf2_hq_v9): Likewise.
18948 (abstf2_v9): Likewise.
18949 (abstf2_hq): New instruction.
18950 (abstf2): New instruction and splitter.
18951 (absdf2_notv9): Rewrite.
18952
18953 2014-05-14 Cary Coutant <ccoutant@google.com>
18954
18955 PR debug/61013
18956 * opts.c (common_handle_option): Don't special-case "-g".
18957 (set_debug_level): Default to at least level 2 with "-g".
18958
18959 2014-05-14 DJ Delorie <dj@redhat.com>
18960
18961 * config/msp430/msp430.c (msp430_builtin): Add
18962 MSP430_BUILTIN_DELAY_CYCLES.
18963 (msp430_init_builtins): Register void __delay_cycles(long long).
18964 (msp430_builtin_decl): Add it.
18965 (cg_magic_constant): New.
18966 (msp430_expand_delay_cycles): New.
18967 (msp430_expand_builtin): Call it.
18968 (msp430_print_operand_raw): Change integer printing from "int" to
18969 HOST_WIDE_INT.
18970 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
18971 (delay_cycles_start): New.
18972 (delay_cycles_end): New.
18973 (delay_cycles_32): New.
18974 (delay_cycles_32x): New.
18975 (delay_cycles_16): New.
18976 (delay_cycles_16x): New.
18977 (delay_cycles_2): New.
18978 (delay_cycles_1): New.
18979 * doc/extend.texi: Document __delay_cycles().
18980
18981 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
18982
18983 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
18984 length attribute computation.
18985
18986 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
18987
18988 PR debug/61188
18989 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
18990
18991 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
18992
18993 PR target/61084
18994 * config/sparc/sparc.md: Fix types of low and high in DI constant
18995 splitter. Use gen_int_mode in some other splitters.
18996
18997 2014-05-14 Martin Jambor <mjambor@suse.cz>
18998
18999 PR ipa/60897
19000 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
19001
19002 2014-05-14 James Norris <jnorris@codesourcery.com>
19003
19004 * omp-low.c (expand_parallel_call): Remove shadow variable.
19005 (expand_omp_taskreg): Likewise.
19006
19007 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
19008
19009 * common/config/i386/i386-common.c
19010 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
19011 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
19012 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
19013 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
19014 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
19015 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
19016 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
19017 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
19018 xsavecintrin.h, xsavesintrin.h.
19019 (x86_64-*-*): Ditto.
19020 * config/i386/clflushoptintrin.h: New.
19021 * config/i386/xsavecintrin.h: Ditto.
19022 * config/i386/xsavesintrin.h: Ditto.
19023 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
19024 (bit_XSAVES): Ditto.
19025 (bit_XSAVES): Ditto.
19026 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
19027 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
19028 -mno-clflushopt.
19029 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19030 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
19031 OPTION_MASK_ISA_XSAVES.
19032 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
19033 -mxsavec, -mxsaves.
19034 (PTA_CLFLUSHOPT) Define.
19035 (PTA_XSAVEC): Ditto.
19036 (PTA_XSAVES): Ditto.
19037 (ix86_option_override_internal): Handle new options.
19038 (ix86_valid_target_attribute_inner_p): Ditto.
19039 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
19040 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
19041 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
19042 (bdesc_special_args): Add __builtin_ia32_xsaves,
19043 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
19044 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
19045 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
19046 (ix86_expand_builtin): Handle new builtins.
19047 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
19048 (TARGET_CLFLUSHOPT_P): Ditto.
19049 (TARGET_XSAVEC): Ditto.
19050 (TARGET_XSAVEC_P): Ditto.
19051 (TARGET_XSAVES): Ditto.
19052 (TARGET_XSAVES_P): Ditto.
19053 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
19054 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
19055 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
19056 (ANY_XRSTOR): New.
19057 (ANY_XRSTOR64): Ditto.
19058 (xrstor): Ditto.
19059 (xrstor): Change into <xrstor>.
19060 (xrstor_rex64): Change into <xrstor>_rex64.
19061 (xrstor64): Change into <xrstor>64
19062 (clflushopt): New.
19063 * config/i386/i386.opt (mclflushopt): New.
19064 (mxsavec): Ditto.
19065 (mxsaves): Ditto.
19066 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
19067 xsavecintrin.h.
19068 * doc/invoke.texi: Document new options.
19069
19070 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19071
19072 PR rtl-optimization/60866
19073 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
19074 Default it to -1. Pass it down to init_simplejump_data.
19075 (init_simplejump_data): New parameter old_seqno. Pass it down
19076 to get_seqno_for_a_jump.
19077 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
19078 initializing new jump seqno as a last resort. Add comment.
19079 (sel_redirect_edge_and_branch): Save old seqno of the conditional
19080 jump and pass it down to sel_init_new_insn.
19081 (sel_redirect_edge_and_branch_force): Likewise.
19082
19083 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
19084
19085 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
19086 shifted values to avoid build warning.
19087
19088 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
19089
19090 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
19091 * cfgrtl.c (rtl_merge_blocks): Fix comment.
19092 (cfg_layout_merge_blocks): Likewise.
19093 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
19094
19095 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
19096
19097 PR rtl-optimization/60901
19098 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
19099 bb predecessor belongs to the same scheduling region. Adjust comment.
19100
19101 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
19102
19103 * doc/sourcebuild.texi: (dfp_hw): Document.
19104 (p8vector_hw): Likewise.
19105 (powerpc_eabi_ok): Likewise.
19106 (powerpc_elfv2): Likewise.
19107 (powerpc_htm_ok): Likewise.
19108 (ppc_recip_hw): Likewise.
19109 (vsx_hw): Likewise.
19110
19111 2014-05-13 Cary Coutant <ccoutant@google.com>
19112
19113 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
19114
19115 2014-05-13 David Malcolm <dmalcolm@redhat.com>
19116
19117 * gengtype-parse.c (require3): Eliminate in favor of...
19118 (require4): New.
19119 (require_template_declaration): Update to support optional single *
19120 on a type.
19121
19122 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
19123 (create_user_defined_type): Handle a single level of explicit
19124 pointerness within template arguments.
19125 (struct write_types_data): Add field "kind".
19126 (filter_type_name): Handle "*" character.
19127 (write_user_func_for_structure_ptr): Require a write_types_data
19128 rather than just a prefix string, so that we can look up the kind
19129 of the wtd and use it as an index into wrote_user_func_for_ptr,
19130 ensuring that such functions are written at most once. Support
19131 subclasses by invoking the marking function of the ultimate base class.
19132 (write_user_func_for_structure_body): Require a write_types_data
19133 rather than just a prefix string, so that we can pass this to
19134 write_user_func_for_structure_ptr.
19135 (write_func_for_structure): Likewise.
19136 (ggc_wtd): Add initializer of new "kind" field.
19137 (pch_wtd): Likewise.
19138
19139 * gengtype.h (enum write_types_kinds): New.
19140 (struct type): Add field wrote_user_func_for_ptr to the "s"
19141 union member.
19142
19143 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19144
19145 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
19146 instead of const_binop.
19147 (fold_binary_loc): Likewise.
19148
19149 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
19150
19151 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
19152 calculation to match get_ref_base_and_extent.
19153
19154 2014-05-13 Catherine Moore <clm@codesourcery.com>
19155 Sandra Loosemore <sandra@codesourcery.com>
19156
19157 * configure.ac: Fix assembly for explicit JALR relocation check.
19158 * configure: Regenerate.
19159
19160 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19161
19162 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
19163 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
19164 Remove associated type declarations and initialisations.
19165 (arm_expand_neon_builtin): Likewise.
19166 (neon_emit_pair_result_insn): Delete.
19167 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
19168 * config/arm/neon.md (neon_vtrn<mode>): Delete.
19169 (neon_vzip<mode>): Likewise.
19170 (neon_vuzp<mode>): Likewise.
19171
19172 2014-05-13 Richard Biener <rguenther@suse.de>
19173
19174 PR ipa/60973
19175 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
19176 it needs revisiting whether the call still may be tail-called.
19177
19178 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19179
19180 * rtl.def (SYMBOL_REF): Remove middle "0" field.
19181 * rtl.h (block_symbol): Reduce number of fields to 2.
19182 (rtx_def): Add u2.symbol_ref_flags.
19183 (SYMBOL_REF_FLAGS): Use it.
19184 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
19185 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
19186 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
19187 Lower index of SYMBOL_REF_DATA.
19188 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
19189 Print SYMBOL_REF_FLAGS at the same time.
19190 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
19191
19192 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19193
19194 * rtl.def (VAR_LOCATION): Remove "i" field.
19195 * rtl.h (rtx_def): Add u2.var_location_status.
19196 (PAT_VAR_LOCATION_STATUS): Use it.
19197 (gen_rtx_VAR_LOCATION): Declare.
19198 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
19199 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
19200 * var-tracking.c (emit_note_insn_var_location): Remove casts.
19201
19202 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19203
19204 * rtl.def (scratch): Fix outdated comment and remove "0" field.
19205 * gengtype.c (adjust_field_rtx_def): Update accordingly.
19206
19207 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19208
19209 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
19210 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
19211 * rtl.h (rtx_def): Add insn_uid to u2 field.
19212 (RTX_FLAG_CHECK8): Delete in favor of...
19213 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
19214 (INSN_DELETED_P): Update accordingly.
19215 (INSN_UID): Use u2.insn_uid.
19216 (INSN_CHAIN_CODE_P): Define.
19217 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
19218 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
19219 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
19220 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
19221 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
19222 indices accordingly.
19223 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
19224 Update indices for insn-chain rtxes.
19225 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
19226 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
19227 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
19228 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
19229 * combine.c (try_combine): Likewise.
19230 * ira.c (setup_prohibited_mode_move_regs): Likewise.
19231
19232 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19233
19234 * rtl.def (REG): Remove middle field.
19235 * rtl.h (rtx_def): Add orignal_regno to u2.
19236 (ORIGINAL_REGNO): Use it instead of field 1.
19237 (REG_ATTRS): Lower field index accordingly.
19238 * gengtype.c (adjust_field_rtx_def): Remove handling of
19239 ORIGINAL_REGNO. Move REG_ATTRS index down.
19240 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
19241 code that prints the REGNO.
19242
19243 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19244
19245 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
19246 GENERATOR_FILE.
19247
19248 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
19249
19250 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
19251
19252 2014-05-13 Bin Cheng <bin.cheng@arm.com>
19253
19254 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
19255 (alloc_iv): Lower base expressions containing ADDR_EXPR.
19256
19257 2014-05-13 Ian Bolton <ian.bolton@arm.com>
19258
19259 * config/aarch64/aarch64-protos.h
19260 (aarch64_hard_regno_caller_save_mode): New prototype.
19261 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
19262 New function.
19263 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
19264
19265 2014-05-13 Christian Bruel <christian.bruel@st.com>
19266
19267 * target.def (mode_switching): New hook vector.
19268 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
19269 (mode_exit, modepriority_to_mode): Likewise.
19270 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
19271 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19272 * target.h: Include tm.h and hard-reg-set.h.
19273 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
19274 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
19275 * doc/tm.texi Regenerate.
19276 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19277 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19278 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
19279 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
19280 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
19281 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19282 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
19283 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
19284 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
19285 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
19286 (ix86_emit_mode_set): Hookify.
19287 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
19288 Delete.
19289 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
19290 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
19291 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
19292 (epiphany_mode_priority_to_mode): Remove declaration.
19293 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
19294 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
19295 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
19296 Likewise.
19297 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
19298 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
19299 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
19300
19301 2014-05-13 Jakub Jelinek <jakub@redhat.com>
19302
19303 PR target/61060
19304 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
19305 is const0_rtx, return immediately. Don't test count == 0 when
19306 it is always true.
19307
19308 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19309
19310 * Makefile.in: add shrink-wrap.o.
19311 * config/i386/i386.c: include "shrink-wrap.h"
19312 * function.c: Likewise.
19313 (requires_stack_frame_p, next_block_for_reg,
19314 move_insn_for_shrink_wrap, prepare_shrink_wrap,
19315 dup_block_and_redirect): Move to shrink-wrap.c
19316 (thread_prologue_and_epilogue_insns): Extract three code segments
19317 as functions in shrink-wrap.c
19318 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
19319 shrink-wrap.h
19320 * shrink-wrap.c: New file.
19321 * shrink-wrap.h: New file.
19322
19323 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19324
19325 * doc/extend.texi: Reflect current numbers of pragmas. Remove
19326 reference to Solaris.
19327
19328 2014-05-12 Mike Stump <mikestump@comcast.net>
19329
19330 PR other/31778
19331 * genattrtab.c (filename): Add.
19332 (convert_set_attr_alternative): Improve error message.
19333 (check_defs): Restore read_md_filename for error messages.
19334 (gen_insn): Save filename.
19335
19336 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
19337
19338 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
19339 -fno-local-ivars and -fivar-visibility.
19340 * c-family/c.opt: Make -Wshadow also implicitly enable
19341 -Wshadow-ivar.
19342
19343 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
19344
19345 * doc/tm.texi: Remove reference to deleted macro.
19346 * doc/tm.texi.in: Likewise.
19347
19348 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19349
19350 PR target/60991
19351 * config/avr/avr.c (avr_out_store_psi): Use correct constant
19352 to restore Y.
19353
19354 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
19355
19356 PR libgcc/61152
19357 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
19358 * config/arm/aout.h (License): Same.
19359 * config/arm/bpabi.h (License): Same.
19360 * config/arm/elf.h (License): Same.
19361 * config/arm/linux-elf.h (License): Same.
19362 * config/arm/linux-gas.h (License): Same.
19363 * config/arm/netbsd-elf.h (License): Same.
19364 * config/arm/uclinux-eabi.h (License): Same.
19365 * config/arm/uclinux-elf.h (License): Same.
19366 * config/arm/vxworks.h (License): Same.
19367
19368 2014-05-11 Jakub Jelinek <jakub@redhat.com>
19369
19370 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
19371 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
19372 number of operands to 3.
19373 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
19374 * tree-nested.c (convert_nonlocal_omp_clauses,
19375 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
19376 * gimplify.c (gimplify_scan_omp_clauses): Handle
19377 OMP_CLAUSE_LINEAR_STMT.
19378 * omp-low.c (lower_rec_input_clauses): Fix typo.
19379 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
19380 cast between Fortran boolean_type_node and C _Bool if
19381 needed.
19382
19383 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
19384
19385 PR tree-optimization/61136
19386 * wide-int.h (multiple_of_p): Define a version that doesn't return
19387 the quotient.
19388 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
19389 integer_zerop/const_binop pair.
19390 (multiple_of_p): Likewise, converting both operands to widest_int
19391 precision.
19392
19393 2014-05-09 Teresa Johnson <tejohnson@google.com>
19394
19395 * cgraphunit.c (analyze_functions): Use correct dump file.
19396
19397 2014-05-09 Florian Weimer <fweimer@redhat.com>
19398
19399 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
19400 expand_used_vars.
19401 (stack_protect_return_slot_p): New function.
19402 (expand_used_vars): Call stack_protect_decl_p and
19403 stack_protect_return_slot_p for -fstack-protector-strong.
19404
19405 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
19406 Andrew Haley <aph@redhat.com>
19407 Richard Sandiford <rdsandiford@googlemail.com>
19408
19409 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
19410 pages.
19411
19412 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19413
19414 PR middle-end/61111
19415 * fold-const.c (fold_binary_loc): Changed width of mask.
19416
19417 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19418
19419 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
19420 unsigned int initializers for regno_in, regno_out.
19421
19422 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
19423
19424 PR target/61055
19425 * config/avr/avr.md (cc): Add new attribute set_vzn.
19426 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
19427 Set cc insn attribute to set_vzn instead of set_zn for alternatives
19428 with INC, DEC or NEG.
19429 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
19430 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
19431 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
19432
19433 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19434
19435 Revert:
19436 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19437
19438 * wide-int.cc (UTItype): Define.
19439 (UDWtype): Define for appropriate W_TYPE_SIZE.
19440
19441 2014-05-09 Richard Biener <rguenther@suse.de>
19442
19443 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
19444 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
19445 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
19446 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
19447 ssa_propagate): Adjust.
19448
19449 2014-05-08 Jeff Law <law@redhat.com>
19450
19451 PR tree-optimization/61009
19452 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
19453 tri-state rather than a boolean. When a block is too big to
19454 thread through, inform caller via negative return value.
19455 (thread_across_edge): If a block was too big for normal threading,
19456 then it's too big for a joiner too, so remove temporary equivalences
19457 and return immediately.
19458
19459 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
19460 Matthias Klose <doko@ubuntu.com>
19461
19462 PR driver/61106
19463 * optc-gen.awk: Fix option handling for -Wunused-parameter.
19464
19465 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19466
19467 PR target/59952
19468 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
19469
19470 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
19471
19472 PR target/61092
19473 * config/alpha/alpha.c: Include gimple-iterator.h.
19474 (alpha_gimple_fold_builtin): New function. Move
19475 ALPHA_BUILTIN_UMULH folding from ...
19476 (alpha_fold_builtin): ... here.
19477 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
19478
19479 2014-05-08 Wei Mi <wmi@google.com>
19480
19481 PR target/58066
19482 * config/i386/i386.c (ix86_compute_frame_layout): Update
19483 preferred_stack_boundary for call, expanded from tls descriptor.
19484 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
19485 to depend on SP register.
19486 (*tls_local_dynamic_base_32_gnu): Ditto.
19487 (*tls_local_dynamic_32_once): Ditto.
19488 (tls_global_dynamic_64_<mode>): Set
19489 ix86_tls_descriptor_calls_expanded_in_cfun.
19490 (tls_local_dynamic_base_64_<mode>): Ditto.
19491 (tls_global_dynamic_32): Set
19492 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
19493 to depend on SP register.
19494 (tls_local_dynamic_base_32): Ditto.
19495
19496 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19497
19498 * config/arm/arm_neon.h: Update comment.
19499 * config/arm/neon-docgen.ml: Delete.
19500 * config/arm/neon-gen.ml: Delete.
19501 * doc/arm-neon-intrinsics.texi: Update comment.
19502
19503 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19504
19505 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
19506 and v4sf versions.
19507 (vand, vorr, veor, vorn, vbic): Remove.
19508 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
19509 iterator.
19510 (neon_vsub_unspec): Likewise.
19511 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
19512
19513 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19514
19515 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
19516 (vadd_s16): Likewise.
19517 (vadd_s32): Likewise.
19518 (vadd_f32): Likewise.
19519 (vadd_u8): Likewise.
19520 (vadd_u16): Likewise.
19521 (vadd_u32): Likewise.
19522 (vadd_s64): Likewise.
19523 (vadd_u64): Likewise.
19524 (vaddq_s8): Likewise.
19525 (vaddq_s16): Likewise.
19526 (vaddq_s32): Likewise.
19527 (vaddq_s64): Likewise.
19528 (vaddq_f32): Likewise.
19529 (vaddq_u8): Likewise.
19530 (vaddq_u16): Likewise.
19531 (vaddq_u32): Likewise.
19532 (vaddq_u64): Likewise.
19533 (vmul_s8): Likewise.
19534 (vmul_s16): Likewise.
19535 (vmul_s32): Likewise.
19536 (vmul_f32): Likewise.
19537 (vmul_u8): Likewise.
19538 (vmul_u16): Likewise.
19539 (vmul_u32): Likewise.
19540 (vmul_p8): Likewise.
19541 (vmulq_s8): Likewise.
19542 (vmulq_s16): Likewise.
19543 (vmulq_s32): Likewise.
19544 (vmulq_f32): Likewise.
19545 (vmulq_u8): Likewise.
19546 (vmulq_u16): Likewise.
19547 (vmulq_u32): Likewise.
19548 (vsub_s8): Likewise.
19549 (vsub_s16): Likewise.
19550 (vsub_s32): Likewise.
19551 (vsub_f32): Likewise.
19552 (vsub_u8): Likewise.
19553 (vsub_u16): Likewise.
19554 (vsub_u32): Likewise.
19555 (vsub_s64): Likewise.
19556 (vsub_u64): Likewise.
19557 (vsubq_s8): Likewise.
19558 (vsubq_s16): Likewise.
19559 (vsubq_s32): Likewise.
19560 (vsubq_s64): Likewise.
19561 (vsubq_f32): Likewise.
19562 (vsubq_u8): Likewise.
19563 (vsubq_u16): Likewise.
19564 (vsubq_u32): Likewise.
19565 (vsubq_u64): Likewise.
19566 (vand_s8): Likewise.
19567 (vand_s16): Likewise.
19568 (vand_s32): Likewise.
19569 (vand_u8): Likewise.
19570 (vand_u16): Likewise.
19571 (vand_u32): Likewise.
19572 (vand_s64): Likewise.
19573 (vand_u64): Likewise.
19574 (vandq_s8): Likewise.
19575 (vandq_s16): Likewise.
19576 (vandq_s32): Likewise.
19577 (vandq_s64): Likewise.
19578 (vandq_u8): Likewise.
19579 (vandq_u16): Likewise.
19580 (vandq_u32): Likewise.
19581 (vandq_u64): Likewise.
19582 (vorr_s8): Likewise.
19583 (vorr_s16): Likewise.
19584 (vorr_s32): Likewise.
19585 (vorr_u8): Likewise.
19586 (vorr_u16): Likewise.
19587 (vorr_u32): Likewise.
19588 (vorr_s64): Likewise.
19589 (vorr_u64): Likewise.
19590 (vorrq_s8): Likewise.
19591 (vorrq_s16): Likewise.
19592 (vorrq_s32): Likewise.
19593 (vorrq_s64): Likewise.
19594 (vorrq_u8): Likewise.
19595 (vorrq_u16): Likewise.
19596 (vorrq_u32): Likewise.
19597 (vorrq_u64): Likewise.
19598 (veor_s8): Likewise.
19599 (veor_s16): Likewise.
19600 (veor_s32): Likewise.
19601 (veor_u8): Likewise.
19602 (veor_u16): Likewise.
19603 (veor_u32): Likewise.
19604 (veor_s64): Likewise.
19605 (veor_u64): Likewise.
19606 (veorq_s8): Likewise.
19607 (veorq_s16): Likewise.
19608 (veorq_s32): Likewise.
19609 (veorq_s64): Likewise.
19610 (veorq_u8): Likewise.
19611 (veorq_u16): Likewise.
19612 (veorq_u32): Likewise.
19613 (veorq_u64): Likewise.
19614 (vbic_s8): Likewise.
19615 (vbic_s16): Likewise.
19616 (vbic_s32): Likewise.
19617 (vbic_u8): Likewise.
19618 (vbic_u16): Likewise.
19619 (vbic_u32): Likewise.
19620 (vbic_s64): Likewise.
19621 (vbic_u64): Likewise.
19622 (vbicq_s8): Likewise.
19623 (vbicq_s16): Likewise.
19624 (vbicq_s32): Likewise.
19625 (vbicq_s64): Likewise.
19626 (vbicq_u8): Likewise.
19627 (vbicq_u16): Likewise.
19628 (vbicq_u32): Likewise.
19629 (vbicq_u64): Likewise.
19630 (vorn_s8): Likewise.
19631 (vorn_s16): Likewise.
19632 (vorn_s32): Likewise.
19633 (vorn_u8): Likewise.
19634 (vorn_u16): Likewise.
19635 (vorn_u32): Likewise.
19636 (vorn_s64): Likewise.
19637 (vorn_u64): Likewise.
19638 (vornq_s8): Likewise.
19639 (vornq_s16): Likewise.
19640 (vornq_s32): Likewise.
19641 (vornq_s64): Likewise.
19642 (vornq_u8): Likewise.
19643 (vornq_u16): Likewise.
19644 (vornq_u32): Likewise.
19645 (vornq_u64): Likewise.
19646
19647 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19648
19649 * wide-int.cc (UTItype): Define.
19650 (UDWtype): Define for appropriate W_TYPE_SIZE.
19651
19652 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
19653
19654 PR tree-optimization/59100
19655 * tree-ssa-phiopt.c: Include tree-inline.h.
19656 (neutral_element_p, absorbing_element_p): New functions.
19657 (value_replacement): Handle conditional binary operations with a
19658 neutral or absorbing element.
19659
19660 2014-05-08 Richard Biener <rguenther@suse.de>
19661
19662 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19663 folding the expression.
19664 (valueize_expr): Remove.
19665 (visit_reference_op_load): Do not valueize the result of
19666 vn_get_expr_for.
19667 (simplify_binary_expression): Likewise.
19668 (simplify_unary_expression): Likewise.
19669
19670 2014-05-08 Richard Biener <rguenther@suse.de>
19671
19672 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19673 looking at TYPE_ARG_TYPES.
19674
19675 2014-05-08 Richard Biener <rguenther@suse.de>
19676
19677 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19678 pointer propagation special-case.
19679
19680 2014-05-08 Bin Cheng <bin.cheng@arm.com>
19681
19682 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19683 core part of address expressions.
19684
19685 2014-05-08 Alan Modra <amodra@gmail.com>
19686
19687 PR target/60737
19688 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19689 loads and stores when -mno-strict-align at any alignment.
19690 (expand_block_clear): Similarly. Also correct calculation of
19691 instruction count.
19692
19693 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
19694
19695 PR middle-end/39246
19696 * tree-complex.c (expand_complex_move): Keep line info when expanding
19697 complex move.
19698 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19699 of complex expression. Use new argument to display correct location
19700 for values coming from phi statement.
19701 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19702 (warn_uninitialized_phi): Pass location of phi argument to
19703 warn_uninit.
19704 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19705 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19706
19707 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19708
19709 * config/rs6000/predicates.md (indexed_address_mem): New.
19710 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19711 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19712 fpstore_ux, fpstore_u.
19713 (sign_extend, indexed, update): New.
19714 (cell_micro): Adjust.
19715 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19716 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19717 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19718 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19719 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19720 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19721 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19722 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19723 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19724 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19725 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19726 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19727 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19728 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19729 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19730
19731 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19732 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19733 *vsx_extract_<mode>_store): Adjust.
19734 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19735 is_cracked_insn, insn_must_be_first_in_group,
19736 insn_must_be_last_in_group): Adjust.
19737
19738 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19739 Adjust.
19740 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19741 ppc440-fpstore): Adjust.
19742 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19743 ppc476-fpstore): Adjust.
19744 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19745 ppc601-fpstore): Adjust.
19746 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19747 Adjust.
19748 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19749 Adjust.
19750 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19751 ppc7450-fpstore): Adjust.
19752 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19753 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19754 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19755 Adjust.
19756 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19757 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19758 cell-fpstore, cell-fpstore-update): Adjust.
19759 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19760 ppce300c3_store, ppce300c3_fpstore): Adjust.
19761 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19762 e500mc_fpstore): Adjust.
19763 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19764 e500mc64_store, e500mc64_fpstore): Adjust.
19765 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19766 e5500_fpstore): Adjust.
19767 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19768 e6500_fpstore): Adjust.
19769 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19770 Adjust.
19771 * config/rs6000/power4.md (power4-load, power4-load-ext,
19772 power4-load-ext-update, power4-load-ext-update-indexed,
19773 power4-load-update-indexed, power4-load-update, power4-fpload,
19774 power4-fpload-update, power4-store, power4-store-update,
19775 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19776 Adjust.
19777 * config/rs6000/power5.md (power5-load, power5-load-ext,
19778 power5-load-ext-update, power5-load-ext-update-indexed,
19779 power5-load-update-indexed, power5-load-update, power5-fpload,
19780 power5-fpload-update, power5-store, power5-store-update,
19781 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19782 Adjust.
19783 * config/rs6000/power6.md (power6-load, power6-load-ext,
19784 power6-load-update, power6-load-update-indexed,
19785 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19786 power6-fpload-update, power6-store, power6-store-update,
19787 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19788 Adjust.
19789 * config/rs6000/power7.md (power7-load, power7-load-ext,
19790 power7-load-update, power7-load-update-indexed,
19791 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19792 power7-fpload-update, power7-store, power7-store-update,
19793 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19794 Adjust.
19795 * config/rs6000/power8.md (power8-load, power8-load-update,
19796 power8-load-ext, power8-load-ext-update, power8-fpload,
19797 power8-fpload-update, power8-store, power8-store-update-indexed,
19798 power8-fpstore, power8-fpstore-update): Adjust.
19799 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19800 Adjust.
19801 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19802 titan_lsu_store, titan_lsu_fpstore): Adjust.
19803 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19804
19805 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
19806
19807 PR target/60884
19808 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19809 unrolled byte insns. Emit address increments after move insns.
19810
19811 2014-05-07 David Malcolm <dmalcolm@redhat.com>
19812
19813 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19814 const_gimple, rather than a gimple.
19815 (gimple_call_builtin_p): Likewise, for the three variants.
19816
19817 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19818 (gimple_call_builtin_p): Likewise, for the three variants.
19819
19820 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19821
19822 PR tree-optimization/61095
19823 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19824
19825 2014-05-07 Richard Biener <rguenther@suse.de>
19826
19827 PR tree-optimization/61034
19828 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19829 (maybe_skip_until): Use translate to take into account
19830 lattices when trying to do disambiguations.
19831 (get_continuation_for_phi_1): Likewise.
19832 (get_continuation_for_phi): Adjust for added translate arguments.
19833 (walk_non_aliased_vuses): Likewise.
19834 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19835 (walk_non_aliased_vuses): Likewise.
19836 (call_may_clobber_ref_p_1): Declare.
19837 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19838 calls. Stop early if we are only supposed to disambiguate.
19839 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19840
19841 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
19842
19843 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19844 Emit an error when the function has arguments.
19845
19846 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19847
19848 * cfgloop.h (unswitch_loops): Remove.
19849 * doc/passes.texi: Remove references to loop-unswitch.c
19850 * timevar.def (TV_LOOP_UNSWITCH): Remove.
19851
19852 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
19853
19854 * tree-vect-data-refs.c (vect_grouped_load_supported): New
19855 check for loads group of length 3.
19856 (vect_permute_load_chain): New permutations for loads group of
19857 length 3.
19858 * tree-vect-stmts.c (vect_model_load_cost): Change cost
19859 of vec_perm_shuffle for the new permutations.
19860
19861 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
19862
19863 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19864 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19865 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19866 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19867 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19868 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19869 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19870 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19871
19872 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
19873
19874 * loop-unswitch.c: Delete.
19875
19876 2014-05-07 Richard Biener <rguenther@suse.de>
19877
19878 * config.gcc: Always set need_64bit_hwint to yes.
19879
19880 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
19881
19882 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19883 of using optimize_size.
19884
19885 2014-05-06 Mike Stump <mikestump@comcast.net>
19886
19887 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19888
19889 2014-05-06 Joseph Myers <joseph@codesourcery.com>
19890
19891 * config/i386/sse.md (*mov<mode>_internal)
19892 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19893 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19894 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19895 (*<code><mode>3, *andnot<mode>3<mask_name>)
19896 (<mask_codefor><code><mode>3<mask_name>): Only consider
19897 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19898
19899 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19900
19901 Revert:
19902 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19903
19904 * lra-constraints.c (valid_address_p): Move earlier in file.
19905 Add a constraint argument to the address_info version.
19906 (satisfies_memory_constraint_p): New function.
19907 (satisfies_address_constraint_p): Likewise.
19908 (process_alt_operands, curr_insn_transform): Use them.
19909 (process_address): Pass the constraint to valid_address_p when
19910 checking address operands.
19911
19912 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
19913
19914 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19915 to their respective blocks. Fix inadvertent use of "node".
19916
19917 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
19918
19919 * emit-rtl.c (init_derived_machine_modes): New functionm, split
19920 out from...
19921 (init_emit_once): ...here.
19922 * rtl.h (init_derived_machine_modes): Declare.
19923 * toplev.c (do_compile): Call it even if no_backend.
19924
19925 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
19926 Mike Stump <mikestump@comcast.net>
19927 Richard Sandiford <rdsandiford@googlemail.com>
19928 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19929
19930 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19931 (rtx_equal_for_memref_p): Update comment.
19932 (adjust_offset_for_component_ref): Use wide-int interfaces.
19933 * builtins.c (get_object_alignment_2): Likewise.
19934 (c_readstr): Likewise.
19935 (target_char_cast): Add comment.
19936 (determine_block_size): Use wide-int interfaces.
19937 (expand_builtin_signbit): Likewise.
19938 (fold_builtin_int_roundingfn): Likewise.
19939 (fold_builtin_bitop): Likewise.
19940 (fold_builtin_bswap): Likewise.
19941 (fold_builtin_logarithm): Use signop.
19942 (fold_builtin_pow): Likewise.
19943 (fold_builtin_memory_op): Use wide-int interfaces.
19944 (fold_builtin_object_size): Likewise.
19945 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19946 nb_iterations_estimate.
19947 (record_niter_bound): Use wide-int interfaces.
19948 (get_estimated_loop_iterations_int): Likewise.
19949 (get_estimated_loop_iterations): Likewise.
19950 (get_max_loop_iterations): Likewise.
19951 * cfgloop.h: Include wide-int.h.
19952 (struct nb_iter_bound): Change bound to widest_int.
19953 (struct loop): Change nb_iterations_upper_bound and
19954 nb_iterations_estimate to widest_int.
19955 (record_niter_bound): Switch to use widest_int.
19956 (get_estimated_loop_iterations): Likewise.
19957 (get_max_loop_iterations): Likewise.
19958 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
19959 update for wide-int.
19960 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
19961 * combine.c (try_combine): Likewise.
19962 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
19963 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
19964 interfaces.
19965 (aarch64_float_const_representable_p): Likewise.
19966 * config/arc/arc.c: Include wide-int.h.
19967 (arc_can_use_doloop_p): Use wide-int interfaces.
19968 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
19969 (vfp3_const_double_index): Likewise.
19970 * config/avr/avr.c (avr_out_round): Likewise.
19971 (avr_fold_builtin): Likewise.
19972 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
19973 (bfin_can_use_doloop_p): Likewise.
19974 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
19975 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
19976 * config/i386/i386.c: Include wide-int.h.
19977 (ix86_data_alignment): Use wide-int interfaces.
19978 (ix86_local_alignment): Likewise.
19979 (ix86_emit_swsqrtsf): Update real_from_integer.
19980 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
19981 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19982 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
19983 (zero_constant): Likewise.
19984 (input_operand): Likewise.
19985 (splat_input_operand): Likewise.
19986 (non_logical_cint_operand): Change const_double to const_wide_int.
19987 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
19988 (easy_altivec_constant): Remove comment.
19989 (paired_expand_vector_init): Use CONSTANT_P.
19990 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
19991 (rs6000_emit_move): Update checks.
19992 (rs6000_aggregate_candidate): Use wide-int interfaces.
19993 (rs6000_expand_ternop_builtin): Likewise.
19994 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
19995 (rs6000_assemble_integer): Likewise.
19996 (rs6000_hash_constant): Likewise.
19997 (output_toc): Likewise.
19998 (rs6000_rtx_costs): Likewise.
19999 (rs6000_emit_swrsqrt); Update call to real_from_integer.
20000 * config/rs6000/rs6000-c.c: Include wide-int.h.
20001 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
20002 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
20003 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
20004 Handle CONST_WIDE_INT.
20005 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
20006 Use tree_fits_uhwi_p.
20007 * config/sparc/sparc.c: Include wide-int.h.
20008 (sparc_fold_builtin): Use wide-int interfaces.
20009 * config/vax/vax.c: Include wide-int.h.
20010 (vax_float_literal): Use real_from_integer.
20011 * coretypes.h (struct hwivec_def): New.
20012 (hwivec): New.
20013 (const_hwivec): New.
20014 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
20015 (equiv_constant): Handle CONST_WIDE_INT.
20016 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
20017 (cselib_hash_rtx): Handle CONST_WIDE_INT.
20018 * dbxout.c (stabstr_U): Use wide-int interfaces.
20019 (dbxout_type): Update to use cst_fits_shwi_p.
20020 * defaults.h (LOG2_BITS_PER_UNIT): Define.
20021 (TARGET_SUPPORTS_WIDE_INT): Add default.
20022 * dfp.c: Include wide-int.h.
20023 (decimal_real_to_integer2): Use wide-int interfaces and rename to
20024 decimal_real_to_integer.
20025 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
20026 decimal_real_to_integer.
20027 * doc/generic.texi (Constant expressions): Update for wide_int.
20028 * doc/rtl.texi (const_double): Likewise.
20029 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
20030 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
20031 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
20032 (REAL_VALUE_FROM_INT): Remove.
20033 (TARGET_SUPPORTS_WIDE_INT): New.
20034 * doc/tm.texi: Regenerate.
20035 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
20036 * double-int.h: Include wide-int.h.
20037 (struct wi::int_traits): New.
20038 * dwarf2out.c (get_full_len): New.
20039 (dw_val_equal_p): Add case dw_val_class_wide_int.
20040 (size_of_loc_descr): Likewise.
20041 (output_loc_operands): Likewise.
20042 (insert_double): Remove.
20043 (insert_wide_int): New.
20044 (add_AT_wide): New.
20045 (print_die): Add case dw_val_class_wide_int.
20046 (attr_checksum): Likewise.
20047 (attr_checksum_ordered): Likewise.
20048 (same_dw_val_p): Likewise.
20049 (size_of_die): Likewise.
20050 (value_format): Likewise.
20051 (output_die): Likewise.
20052 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
20053 Use wide-int.
20054 (clz_loc_descriptor): Use wide-int interfaces.
20055 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
20056 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
20057 (round_up_to_align): Use wide-int interfaces.
20058 (field_byte_offset): Likewise.
20059 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
20060 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
20061 CONST_DOUBLE handling. Use wide-int interfaces.
20062 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
20063 (gen_enumeration_type_die): Use add_AT_wide.
20064 (hash_loc_operands): Add case dw_val_class_wide_int.
20065 (compare_loc_operands): Likewise.
20066 * dwarf2out.h: Include wide-int.h.
20067 (wide_int_ptr): New.
20068 (enum dw_val_class): Add dw_val_class_wide_int.
20069 (struct dw_val_struct): Add val_wide.
20070 * emit-rtl.c (const_wide_int_htab): New.
20071 (const_wide_int_htab_hash): New.
20072 (const_wide_int_htab_eq): New.
20073 (lookup_const_wide_int): New.
20074 (const_double_htab_hash): Use wide-int interfaces.
20075 (const_double_htab_eq): Likewise.
20076 (rtx_to_double_int): Conditionally compile for wide-int.
20077 (immed_double_int_const): Rename to immed_wide_int_const and
20078 update for wide-int.
20079 (immed_double_const): Conditionally compile for wide-int.
20080 (init_emit_once): Use wide-int interfaces.
20081 * explow.c (plus_constant): Likewise.
20082 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
20083 (lshift_value): Use wide-int interfaces.
20084 (expand_mult): Likewise.
20085 (choose_multiplier): Likewise.
20086 (expand_smod_pow2): Likewise.
20087 (make_tree): Likewise.
20088 * expr.c (convert_modes): Consolidate handling of constants.
20089 Use wide-int interfaces.
20090 (emit_group_load_1): Add note.
20091 (store_expr): Update comment.
20092 (get_inner_reference): Use wide-int interfaces.
20093 (expand_constructor): Update comment.
20094 (expand_expr_real_2): Use wide-int interfaces.
20095 (expand_expr_real_1): Likewise.
20096 (reduce_to_bit_field_precision): Likewise.
20097 (const_vector_from_tree): Likewise.
20098 * final.c: Include wide-int-print.h.
20099 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
20100 * fixed-value.c: Include wide-int.h.
20101 (fixed_from_string): Use wide-int interfaces.
20102 (fixed_to_decimal): Likewise.
20103 (fixed_convert_from_real): Likewise.
20104 (real_convert_from_fixed): Likewise.
20105 * fold-const.h (mem_ref_offset): Return an offset_int.
20106 (div_if_zero_remainder): Remove code parameter.
20107 * fold-const.c (div_if_zero_remainder): Remove code parameter.
20108 Use wide-int interfaces.
20109 (may_negate_without_overflow_p): Use wide-int interfaces.
20110 (negate_expr_p): Likewise.
20111 (fold_negate_expr): Likewise.
20112 (int_const_binop_1): Likewise.
20113 (const_binop): Likewise.
20114 (fold_convert_const_int_from_int): Likewise.
20115 (fold_convert_const_int_from_real): Likewise.
20116 (fold_convert_const_int_from_fixed): Likewise.
20117 (fold_convert_const_fixed_from_int): Likewise.
20118 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
20119 (sign_bit_p): Use wide-int interfaces.
20120 (make_range_step): Likewise.
20121 (build_range_check): Likewise. Pass an integer of the correct type
20122 instead of using integer_one_node.
20123 (range_predecessor): Pass an integer of the correct type instead
20124 of using integer_one_node.
20125 (range_successor): Likewise.
20126 (merge_ranges): Likewise.
20127 (unextend): Use wide-int interfaces.
20128 (extract_muldiv_1): Likewise.
20129 (fold_div_compare): Likewise.
20130 (fold_single_bit_test): Likewise.
20131 (fold_sign_changed_comparison): Likewise.
20132 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
20133 (fold_plusminus_mult_expr): Use wide-int interfaces.
20134 (native_encode_int): Likewise.
20135 (native_interpret_int): Likewise.
20136 (fold_unary_loc): Likewise.
20137 (pointer_may_wrap_p): Likewise.
20138 (size_low_cst): Likewise.
20139 (mask_with_tz): Likewise.
20140 (fold_binary_loc): Likewise.
20141 (fold_ternary_loc): Likewise.
20142 (multiple_of_p): Likewise.
20143 (tree_call_nonnegative_warnv_p): Update calls to
20144 tree_int_cst_min_precision and real_from_integer.
20145 (fold_negate_const): Use wide-int interfaces.
20146 (fold_abs_const): Likewise.
20147 (fold_relational_const): Use tree_int_cst_lt.
20148 (round_up_loc): Use wide-int interfaces.
20149 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
20150 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
20151 * gengtype.c: Remove include of double-int.h.
20152 (do_typedef): Use wide-int interfaces.
20153 (open_base_files): Add wide-int.h.
20154 (main): Add offset_int and widest_int typedefs.
20155 * gengtype-lex.l: Handle "^".
20156 (CXX_KEYWORD): Add "static".
20157 * gengtype-parse.c (require3): New.
20158 (require_template_declaration): Handle constant template arguments
20159 and nested templates.
20160 * gengtype-state.c: Don't include "double-int.h".
20161 * genpreds.c (write_one_predicate_function): Update comment.
20162 (write_tm_constrs_h): Add check for hval and lval use in
20163 CONST_WIDE_INT.
20164 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
20165 (add_to_sequence): Likewise.
20166 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
20167 and const_double_operand.
20168 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
20169 interfaces.
20170 * gimple-fold.c (get_base_constructor): Likewise.
20171 (fold_array_ctor_reference): Likewise.
20172 (fold_nonarray_ctor_reference): Likewise.
20173 (fold_const_aggregate_ref_1): Likewise.
20174 (gimple_val_nonnegative_real_p): Likewise.
20175 (gimple_fold_indirect_ref): Likewise.
20176 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
20177 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
20178 (struct slsr_cand_d): Change index to be widest_int.
20179 (struct incr_info_d): Change incr to be widest_int.
20180 (alloc_cand_and_find_basis): Use wide-int interfaces.
20181 (slsr_process_phi): Likewise.
20182 (backtrace_base_for_ref): Likewise. Return a widest_int.
20183 (restructure_reference): Take a widest_int instead of a double_int.
20184 (slsr_process_ref): Use wide-int interfaces.
20185 (create_mul_ssa_cand): Likewise.
20186 (create_mul_imm_cand): Likewise.
20187 (create_add_ssa_cand): Likewise.
20188 (create_add_imm_cand): Take a widest_int instead of a double_int.
20189 (slsr_process_add): Use wide-int interfaces.
20190 (slsr_process_cast): Likewise.
20191 (slsr_process_copy): Likewise.
20192 (dump_candidate): Likewise.
20193 (dump_incr_vec): Likewise.
20194 (replace_ref): Likewise.
20195 (cand_increment): Likewise. Return a widest_int.
20196 (cand_abs_increment): Likewise.
20197 (replace_mult_candidate): Take a widest_int instead of a double_int.
20198 (replace_unconditional_candidate): Use wide-int interfaces.
20199 (incr_vec_index): Take a widest_int instead of a double_int.
20200 (create_add_on_incoming_edge): Likewise.
20201 (create_phi_basis): Use wide-int interfaces.
20202 (replace_conditional_candidate): Likewise.
20203 (record_increment): Take a widest_int instead of a double_int.
20204 (record_phi_increments): Use wide-int interfaces.
20205 (phi_incr_cost): Take a widest_int instead of a double_int.
20206 (lowest_cost_path): Likewise.
20207 (total_savings): Likewise.
20208 (analyze_increments): Use wide-int interfaces.
20209 (ncd_with_phi): Take a widest_int instead of a double_int.
20210 (ncd_of_cand_and_phis): Likewise.
20211 (nearest_common_dominator_for_cands): Likewise.
20212 (insert_initializers): Use wide-int interfaces.
20213 (all_phi_incrs_profitable): Likewise.
20214 (replace_one_candidate): Likewise.
20215 (replace_profitable_candidates): Likewise.
20216 * godump.c: Include wide-int-print.h.
20217 (go_output_typedef): Use wide-int interfaces.
20218 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
20219 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
20220 (build_loop_iteration_domains): Likewise.
20221 * hooks.h: Include wide-int.h rather than double-int.h.
20222 (hook_bool_dint_dint_uint_bool_true): Delete.
20223 (hook_bool_wint_wint_uint_bool_true): Declare.
20224 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
20225 (hook_bool_wint_wint_uint_bool_true): New.
20226 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
20227 interfaces.
20228 (ubsan_expand_si_overflow_mul_check): Likewise.
20229 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
20230 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
20231 (get_ancestor_addr_info): Likewise.
20232 (ipa_modify_call_arguments): Likewise.
20233 * loop-doloop.c (doloop_modify): Likewise.
20234 (doloop_optimize): Likewise.
20235 * loop-iv.c (iv_number_of_iterations): Likewise.
20236 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
20237 (unroll_loop_constant_iterations): Likewise.
20238 (decide_unroll_runtime_iterations): Likewise.
20239 (unroll_loop_runtime_iterations): Likewise.
20240 (decide_peel_simple): Likewise.
20241 (decide_unroll_stupid): Likewise.
20242 * lto-streamer-in.c (streamer_read_wi): Add.
20243 (input_cfg): Use wide-int interfaces.
20244 (lto_input_tree_1): Likewise.
20245 * lto-streamer-out.c (streamer_write_wi): Add.
20246 (hash_tree): Use wide-int interfaces.
20247 (output_cfg): Likewise.
20248 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
20249 (GTFILES): Add wide-int.h and signop.h.
20250 (TAGS): Look for .cc files too.
20251 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
20252 * optabs.c (expand_subword_shift): Likewise.
20253 (expand_doubleword_shift): Likewise.
20254 (expand_absneg_bit): Likewise.
20255 (expand_copysign_absneg): Likewise.
20256 (expand_copysign_bit): Likewise.
20257 * postreload.c (reload_cse_simplify_set): Likewise.
20258 * predict.c (predict_iv_comparison): Likewise.
20259 * pretty-print.h: Include wide-int-print.h.
20260 (pp_wide_int) New.
20261 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
20262 * print-tree.c: Include wide-int-print.h.
20263 (print_node_brief): Use wide-int interfaces.
20264 (print_node): Likewise.
20265 * read-rtl.c (validate_const_wide_int): New.
20266 (read_rtx_code): Add CONST_WIDE_INT case.
20267 * real.c: Include wide-int.h.
20268 (real_to_integer2): Delete.
20269 (real_to_integer): New function, returning a wide_int.
20270 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20271 (ten_to_ptwo): Update call to real_from_integer.
20272 (real_digit): Likewise.
20273 * real.h: Include signop.h, wide-int.h and insn-modes.h.
20274 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
20275 (REAL_VALUE_TO_INT): Delete.
20276 (real_to_integer): Declare a wide-int form.
20277 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
20278 * recog.c (const_int_operand): Improve comment.
20279 (const_scalar_int_operand): New.
20280 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
20281 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
20282 (split_double): Likewise.
20283 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
20284 (rtx_size): Likewise.
20285 (rtx_alloc_stat_v): New.
20286 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
20287 (cwi_output_hex): New.
20288 (iterative_hash_rtx): Handle CONST_WIDE_INT.
20289 (cwi_check_failed_bounds): New.
20290 * rtl.def (CONST_WIDE_INT): New.
20291 * rtl.h: Include <utility> and wide-int.h.
20292 (struct hwivec_def): New.
20293 (CWI_GET_NUM_ELEM): New.
20294 (CWI_PUT_NUM_ELEM): New.
20295 (struct rtx_def): Add num_elem and hwiv.
20296 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
20297 (CASE_CONST_UNIQUE): Likewise.
20298 (CASE_CONST_ANY): Likewise.
20299 (CONST_SCALAR_INT_P): Likewise.
20300 (CONST_WIDE_INT_P): New.
20301 (CWI_ELT): New.
20302 (HWIVEC_CHECK): New.
20303 (cwi_check_failed_bounds): New.
20304 (CWI_ELT): New.
20305 (HWIVEC_CHECK): New.
20306 (CONST_WIDE_INT_VEC) New.
20307 (CONST_WIDE_INT_NUNITS) New.
20308 (CONST_WIDE_INT_ELT) New.
20309 (rtx_mode_t): New type.
20310 (wi::int_traits <rtx_mode_t>): New.
20311 (wi::shwi): New.
20312 (wi::min_value): New.
20313 (wi::max_value): New.
20314 (rtx_alloc_v) New.
20315 (const_wide_int_alloc): New.
20316 (immed_wide_int_const): New.
20317 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
20318 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
20319 * signop.h: New file.
20320 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
20321 (simplify_const_unary_operation): Use wide-int interfaces.
20322 (simplify_binary_operation_1): Likewise.
20323 (simplify_const_binary_operation): Likewise.
20324 (simplify_const_relational_operation): Likewise.
20325 (simplify_immed_subreg): Likewise.
20326 * stmt.c (expand_case): Likewise.
20327 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
20328 signop rather than a bool.
20329 * stor-layout.c (layout_type): Use wide-int interfaces.
20330 (initialize_sizetypes): Update calls to
20331 set_min_and_max_values_for_integral_type.
20332 (set_min_and_max_values_for_integral_type): Take a signop rather
20333 than a bool. Use wide-int interfaces.
20334 (fixup_signed_type): Update accordingly. Remove
20335 HOST_BITS_PER_DOUBLE_INT limit.
20336 (fixup_unsigned_type): Likewise.
20337 * system.h (STATIC_CONSTANT_P): New.
20338 (STATIC_ASSERT): New.
20339 * target.def (can_use_doloop_p): Take widest_ints rather than
20340 double_ints.
20341 * target.h: Include wide-int.h rather than double-int.h.
20342 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
20343 than double_ints.
20344 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
20345 rather than INT_CST_LT_UNSIGNED.
20346 (can_use_doloop_if_innermost): Take widest_ints rather than
20347 double_ints.
20348 * tree-affine.c: Include wide-int-print.h.
20349 (double_int_ext_for_comb): Delete.
20350 (wide_int_ext_for_comb): New.
20351 (aff_combination_zero): Use wide-int interfaces.
20352 (aff_combination_const): Take a widest_int instead of a double_int.
20353 (aff_combination_elt): Use wide-int interfaces.
20354 (aff_combination_scale): Take a widest_int instead of a double_int.
20355 (aff_combination_add_elt): Likewise.
20356 (aff_combination_add_cst): Likewise.
20357 (aff_combination_add): Use wide-int interfaces.
20358 (aff_combination_convert): Likewise.
20359 (tree_to_aff_combination): Likewise.
20360 (add_elt_to_tree): Take a widest_int instead of a double_int.
20361 (aff_combination_to_tree): Use wide-int interfaces.
20362 (aff_combination_remove_elt): Likewise.
20363 (aff_combination_add_product): Take a widest_int instead of
20364 a double_int.
20365 (aff_combination_mult): Use wide-int interfaces.
20366 (aff_combination_expand): Likewise.
20367 (double_int_constant_multiple_p): Delete.
20368 (wide_int_constant_multiple_p): New.
20369 (aff_combination_constant_multiple_p): Take a widest_int pointer
20370 instead of a double_int pointer.
20371 (print_aff): Use wide-int interfaces.
20372 (get_inner_reference_aff): Take a widest_int pointer
20373 instead of a double_int pointer.
20374 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
20375 * tree-affine.h: Include wide-int.h.
20376 (struct aff_comb_elt): Change type of coef to widest_int.
20377 (struct affine_tree_combination): Change type of offset to widest_int.
20378 (double_int_ext_for_comb): Delete.
20379 (wide_int_ext_for_comb): New.
20380 (aff_combination_const): Use widest_int instead of double_int.
20381 (aff_combination_scale): Likewise.
20382 (aff_combination_add_elt): Likewise.
20383 (aff_combination_constant_multiple_p): Likewise.
20384 (get_inner_reference_aff): Likewise.
20385 (aff_comb_cannot_overlap_p): Likewise.
20386 (aff_combination_zero_p): Use wide-int interfaces.
20387 * tree.c: Include tree.h.
20388 (init_ttree): Use make_int_cst.
20389 (tree_code_size): Removed code for INTEGER_CST case.
20390 (tree_size): Add INTEGER_CST case.
20391 (make_node_stat): Update comment.
20392 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
20393 (build_int_cst_type): Use wide-int interfaces.
20394 (double_int_to_tree): Likewise.
20395 (double_int_fits_to_tree_p): Delete.
20396 (force_fit_type_double): Delete.
20397 (force_fit_type): New.
20398 (int_cst_hash_hash): Use wide-int interfaces.
20399 (int_cst_hash_eq): Likewise.
20400 (build_int_cst_wide): Delete.
20401 (wide_int_to_tree): New.
20402 (cache_integer_cst): Use wide-int interfaces.
20403 (build_low_bits_mask): Likewise.
20404 (cst_and_fits_in_hwi): Likewise.
20405 (real_value_from_int_cst): Likewise.
20406 (make_int_cst_stat): New.
20407 (integer_zerop): Use wide_int interfaces.
20408 (integer_onep): Likewise.
20409 (integer_all_onesp): Likewise.
20410 (integer_pow2p): Likewise.
20411 (integer_nonzerop): Likewise.
20412 (tree_log2): Likewise.
20413 (tree_floor_log2): Likewise.
20414 (tree_ctz): Likewise.
20415 (int_size_in_bytes): Likewise.
20416 (mem_ref_offset): Return an offset_int rather than a double_int.
20417 (build_type_attribute_qual_variant): Use wide_int interfaces.
20418 (type_hash_eq): Likewise
20419 (tree_int_cst_equal): Likewise.
20420 (tree_int_cst_lt): Delete.
20421 (tree_int_cst_compare): Likewise.
20422 (tree_fits_shwi_p): Use wide_int interfaces.
20423 (tree_fits_uhwi_p): Likewise.
20424 (tree_int_cst_sign_bit): Likewise.
20425 (tree_int_cst_sgn): Likewise.
20426 (tree_int_cst_min_precision): Take a signop rather than a bool.
20427 (simple_cst_equal): Use wide_int interfaces.
20428 (compare_tree_int): Likewise.
20429 (iterative_hash_expr): Likewise.
20430 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
20431 INT_CST_LT.
20432 (get_type_static_bounds): Use wide_int interfaces.
20433 (tree_int_cst_elt_check_failed): New.
20434 (build_common_tree_nodes): Reordered to set prec before filling in
20435 value.
20436 (int_cst_value): Check cst_and_fits_in_hwi.
20437 (widest_int_cst_value): Use wide_int interfaces.
20438 (upper_bound_in_type): Likewise.
20439 (lower_bound_in_type): Likewise.
20440 (num_ending_zeros): Likewise.
20441 (drop_tree_overflow): Likewise.
20442 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
20443 (gen_conditions_for_pow_cst_base): Likewise.
20444 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
20445 (group_case_labels_stmt): Use wide-int interfaces.
20446 (verify_gimple_assign_binary): Likewise.
20447 (print_loop): Likewise.
20448 * tree-chrec.c (tree_fold_binomial): Likewise.
20449 * tree-core.h (struct tree_base): Add int_length.
20450 (struct tree_int_cst): Change rep of value.
20451 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
20452 (dr_may_alias_p): Likewise.
20453 (max_stmt_executions_tree): Likewise.
20454 * tree.def (INTEGER_CST): Update comment.
20455 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
20456 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
20457 * tree-dump.c: Include wide-int.h and wide-int-print.h.
20458 (dequeue_and_dump): Use wide-int interfaces.
20459 * tree.h: Include wide-int.h.
20460 (NULL_TREE): Moved to earlier loc in file.
20461 (TREE_INT_CST_ELT_CHECK): New.
20462 (tree_int_cst_elt_check_failed): New.
20463 (TYPE_SIGN): New.
20464 (TREE_INT_CST): Delete.
20465 (TREE_INT_CST_LOW): Use wide-int interfaces.
20466 (TREE_INT_CST_HIGH): Delete.
20467 (TREE_INT_CST_NUNITS): New.
20468 (TREE_INT_CST_EXT_NUNITS): Likewise.
20469 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
20470 (TREE_INT_CST_ELT): Likewise.
20471 (INT_CST_LT): Delete.
20472 (tree_int_cst_elt_check): New (two forms).
20473 (type_code_size): Update comment.
20474 (make_int_cst_stat, make_int_cst): New.
20475 (tree_to_double_int): Delete.
20476 (double_int_fits_to_tree_p): Delete.
20477 (force_fit_type_double): Delete.
20478 (build_int_cstu): Replace with out-of-line function.
20479 (build_int_cst_wide): Delete.
20480 (tree_int_cst_lt): Define inline.
20481 (tree_int_cst_le): New.
20482 (tree_int_cst_compare): Define inline.
20483 (tree_int_cst_min_precision): Take a signop rather than a bool.
20484 (wi::int_traits <const_tree>): New.
20485 (wi::int_traits <tree>): New.
20486 (wi::extended_tree): New.
20487 (wi::int_traits <wi::extended_tree>): New.
20488 (wi::to_widest): New.
20489 (wi::to_offset): New.
20490 (wi::fits_to_tree_p): New.
20491 (wi::min_value): New.
20492 (wi::max_value): New.
20493 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
20494 (copy_tree_body_r): Likewise.
20495 * tree-object-size.c (compute_object_offset): Likewise.
20496 (addr_object_size): Likewise.
20497 * tree-predcom.c: Include wide-int-print.h.
20498 (struct dref_d): Change type of offset to widest_int.
20499 (dump_dref): Call wide-int printer.
20500 (aff_combination_dr_offset): Use wide-int interfaces.
20501 (determine_offset): Take a widest_int pointer rather than a
20502 double_int pointer.
20503 (split_data_refs_to_components): Use wide-int interfaces.
20504 (suitable_component_p): Likewise.
20505 (order_drefs): Likewise.
20506 (add_ref_to_chain): Likewise.
20507 (valid_initializer_p): Likewise.
20508 (determine_roots_comp): Likewise.
20509 * tree-pretty-print.c: Include wide-int-print.h.
20510 (dump_generic_node): Use wide-int interfaces.
20511 * tree-sra.c (sra_ipa_modify_expr): Likewise.
20512 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
20513 (move_fixed_address_to_symbol): Likewise.
20514 (move_hint_to_base): Likewise.
20515 (move_pointer_to_base): Likewise.
20516 (move_variant_to_index): Likewise.
20517 (most_expensive_mult_to_index): Likewise.
20518 (addr_to_parts): Likewise.
20519 (copy_ref_info): Likewise.
20520 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20521 (indirect_refs_may_alias_p): Likewise.
20522 (stmt_kills_ref_p_1): Likewise.
20523 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
20524 * tree-ssa-ccp.c: Update comment at top of file. Include
20525 wide-int-print.h.
20526 (struct prop_value_d): Change type of mask to widest_int.
20527 (extend_mask): New function.
20528 (dump_lattice_value): Use wide-int interfaces.
20529 (get_default_value): Likewise.
20530 (set_constant_value): Likewise.
20531 (set_value_varying): Likewise.
20532 (valid_lattice_transition): Likewise.
20533 (set_lattice_value): Likewise.
20534 (value_to_double_int): Delete.
20535 (value_to_wide_int): New.
20536 (get_value_from_alignment): Use wide-int interfaces.
20537 (get_value_for_expr): Likewise.
20538 (do_dbg_cnt): Likewise.
20539 (ccp_finalize): Likewise.
20540 (ccp_lattice_meet): Likewise.
20541 (bit_value_unop_1): Use widest_ints rather than double_ints.
20542 (bit_value_binop_1): Likewise.
20543 (bit_value_unop): Use wide-int interfaces.
20544 (bit_value_binop): Likewise.
20545 (bit_value_assume_aligned): Likewise.
20546 (evaluate_stmt): Likewise.
20547 (ccp_fold_stmt): Likewise.
20548 (visit_cond_stmt): Likewise.
20549 (ccp_visit_stmt): Likewise.
20550 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20551 (constant_pointer_difference): Likewise.
20552 (associate_pointerplus): Likewise.
20553 (combine_conversions): Likewise.
20554 * tree-ssa-loop.h: Include wide-int.h.
20555 (struct tree_niter_desc): Change type of max to widest_int.
20556 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
20557 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
20558 (remove_redundant_iv_tests): Likewise.
20559 (canonicalize_loop_induction_variables): Likewise.
20560 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
20561 (constant_multiple_of): Take a widest_int pointer instead of
20562 a double_int pointer.
20563 (get_computation_aff): Use wide-int interfaces.
20564 (ptr_difference_cost): Likewise.
20565 (difference_cost): Likewise.
20566 (get_loop_invariant_expr_id): Likewise.
20567 (get_computation_cost_at): Likewise.
20568 (iv_elimination_compare_lt): Likewise.
20569 (may_eliminate_iv): Likewise.
20570 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
20571 instead of double_int.
20572 (max_loop_iterations): Likewise.
20573 (max_stmt_executions): Likewise.
20574 (estimated_stmt_executions): Likewise.
20575 * tree-ssa-loop-niter.c: Include wide-int-print.h.
20576 (split_to_var_and_offset): Use wide-int interfaces.
20577 (determine_value_range): Likewise.
20578 (bound_difference_of_offsetted_base): Likewise.
20579 (bounds_add): Take a widest_int instead of a double_int.
20580 (number_of_iterations_ne_max): Use wide-int interfaces.
20581 (number_of_iterations_ne): Likewise.
20582 (number_of_iterations_lt_to_ne): Likewise.
20583 (assert_loop_rolls_lt): Likewise.
20584 (number_of_iterations_lt): Likewise.
20585 (number_of_iterations_le): Likewise.
20586 (number_of_iterations_cond): Likewise.
20587 (number_of_iterations_exit): Likewise.
20588 (finite_loop_p): Likewise.
20589 (derive_constant_upper_bound_assign): Likewise.
20590 (derive_constant_upper_bound): Return a widest_int.
20591 (derive_constant_upper_bound_ops): Likewise.
20592 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
20593 (record_estimate): Take a widest_int rather than a double_int.
20594 (record_nonwrapping_iv): Use wide-int interfaces.
20595 (double_int_cmp): Delete.
20596 (wide_int_cmp): New.
20597 (bound_index): Take a widest_int rather than a double_int.
20598 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
20599 (maybe_lower_iteration_bound): Likewise.
20600 (estimate_numbers_of_iterations_loop): Likewise.
20601 (estimated_loop_iterations): Take a widest_int pointer than than
20602 a double_int pointer.
20603 (estimated_loop_iterations_int): Use wide-int interfaces.
20604 (max_loop_iterations): Take a widest_int pointer than than
20605 a double_int pointer.
20606 (max_loop_iterations_int): Use wide-int interfaces.
20607 (max_stmt_executions): Take a widest_int pointer than than
20608 a double_int pointer.
20609 (estimated_stmt_executions): Likewise.
20610 (n_of_executions_at_most): Use wide-int interfaces.
20611 (scev_probably_wraps_p): Likewise.
20612 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20613 to real_to_integer.
20614 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20615 interfaces.
20616 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20617 double_ints. Adjust for trailing_wide_ints <3> representation.
20618 (set_nonzero_bits): Likewise.
20619 (get_range_info): Return wide_ints rather than double_ints.
20620 Adjust for trailing_wide_ints <3> representation.
20621 (get_nonzero_bits): Likewise.
20622 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20623 representation.
20624 * tree-ssanames.h (struct range_info_def): Replace min, max and
20625 nonzero_bits with a trailing_wide_ints <3>.
20626 (set_range_info): Use wide_int_refs rather than double_ints.
20627 (set_nonzero_bits): Likewise.
20628 (get_range_info): Return wide_ints rather than double_ints.
20629 (get_nonzero_bits): Likewise.
20630 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20631 * tree-ssa-pre.c (phi_translate_1): Likewise.
20632 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20633 (acceptable_pow_call): Likewise.
20634 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20635 interfaces.
20636 (vn_reference_fold_indirect): Likewise.
20637 (vn_reference_maybe_forwprop_address): Likewise.
20638 (valueize_refs_1): Likewise.
20639 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20640 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20641 tree_int_cst_lt and tree_int_cst_le.
20642 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20643 interfaces.
20644 (streamer_alloc_tree): Likewise.
20645 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20646 (streamer_write_tree_header): Likewise.
20647 (streamer_write_integer_cst): Likewise.
20648 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20649 (build_constructors): Likewise.
20650 (array_value_type): Likewise.
20651 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20652 (vect_check_gather): Likewise.
20653 * tree-vect-generic.c (build_replicated_const): Likewise.
20654 (expand_vector_divmod): Likewise.
20655 * tree-vect-loop.c (vect_transform_loop): Likewise.
20656 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20657 (vect_do_peeling_for_alignment): Likewise.
20658 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20659 * tree-vrp.c: Include wide-int.h.
20660 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20661 (extract_range_from_assert): Use wide-int interfaces.
20662 (vrp_int_const_binop): Likewise.
20663 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20664 double_int pointers.
20665 (ranges_from_anti_range): Use wide-int interfaces.
20666 (quad_int_cmp): Delete.
20667 (quad_int_pair_sort): Likewise.
20668 (extract_range_from_binary_expr_1): Use wide-int interfaces.
20669 (extract_range_from_unary_expr_1): Likewise.
20670 (adjust_range_with_scev): Likewise.
20671 (masked_increment): Take and return wide_ints rather than double_ints.
20672 (register_edge_assert_for_2): Use wide-int interfaces.
20673 (check_array_ref): Likewise.
20674 (search_for_addr_array): Likewise.
20675 (maybe_set_nonzero_bits): Likewise.
20676 (union_ranges): Pass an integer of the correct type instead of
20677 using integer_one_node.
20678 (intersect_ranges): Likewise.
20679 (simplify_truth_ops_using_ranges): Likewise.
20680 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20681 (range_fits_type_p): Likewise.
20682 (simplify_cond_using_ranges): Likewise. Take a signop rather than
20683 a bool.
20684 (simplify_conversion_using_ranges): Use wide-int interfaces.
20685 (simplify_float_conversion_using_ranges): Likewise.
20686 (vrp_finalize): Likewise.
20687 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20688 (gimple_stringops_transform): Likewise.
20689 * varasm.c (decode_addr_const): Likewise.
20690 (const_hash_1): Likewise.
20691 (const_rtx_hash_1): Likewise
20692 (output_constant): Likewise.
20693 (array_size_for_constructor): Likewise.
20694 (output_constructor_regular_field): Likewise.
20695 (output_constructor_bitfield): Likewise.
20696 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20697 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20698 GENERATOR_FILEs.
20699 * gencheck.c: Define BITS_PER_UNIT.
20700 * wide-int.cc: New.
20701 * wide-int.h: New.
20702 * wide-int-print.cc: New.
20703 * wide-int-print.h: New.
20704
20705 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20706
20707 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20708
20709 2014-05-06 Richard Biener <rguenther@suse.de>
20710
20711 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20712 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20713 (TODO_verify_all): Adjust.
20714 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20715 TODO_verify_stmts and TODO_verify_rtl_sharing.
20716 * bb-reorder.c: Likewise.
20717 * cfgexpand.c: Likewise.
20718 * cprop.c: Likewise.
20719 * cse.c: Likewise.
20720 * function.c: Likewise.
20721 * fwprop.c: Likewise.
20722 * gcse.c: Likewise.
20723 * gimple-ssa-isolate-paths.c: Likewise.
20724 * gimple-ssa-strength-reduction.c: Likewise.
20725 * ipa-split.c: Likewise.
20726 * loop-init.c: Likewise.
20727 * loop-unroll.c: Likewise.
20728 * lower-subreg.c: Likewise.
20729 * modulo-sched.c: Likewise.
20730 * postreload-gcse.c: Likewise.
20731 * predict.c: Likewise.
20732 * recog.c: Likewise.
20733 * sched-rgn.c: Likewise.
20734 * store-motion.c: Likewise.
20735 * tracer.c: Likewise.
20736 * trans-mem.c: Likewise.
20737 * tree-call-cdce.c: Likewise.
20738 * tree-cfg.c: Likewise.
20739 * tree-cfgcleanup.c: Likewise.
20740 * tree-complex.c: Likewise.
20741 * tree-eh.c: Likewise.
20742 * tree-emutls.c: Likewise.
20743 * tree-if-conv.c: Likewise.
20744 * tree-into-ssa.c: Likewise.
20745 * tree-loop-distribution.c: Likewise.
20746 * tree-object-size.c: Likewise.
20747 * tree-parloops.c: Likewise.
20748 * tree-pass.h: Likewise.
20749 * tree-sra.c: Likewise.
20750 * tree-ssa-ccp.c: Likewise.
20751 * tree-ssa-copy.c: Likewise.
20752 * tree-ssa-copyrename.c: Likewise.
20753 * tree-ssa-dce.c: Likewise.
20754 * tree-ssa-dom.c: Likewise.
20755 * tree-ssa-dse.c: Likewise.
20756 * tree-ssa-forwprop.c: Likewise.
20757 * tree-ssa-ifcombine.c: Likewise.
20758 * tree-ssa-loop-ch.c: Likewise.
20759 * tree-ssa-loop-ivcanon.c: Likewise.
20760 * tree-ssa-loop.c: Likewise.
20761 * tree-ssa-math-opts.c: Likewise.
20762 * tree-ssa-phiopt.c: Likewise.
20763 * tree-ssa-phiprop.c: Likewise.
20764 * tree-ssa-pre.c: Likewise.
20765 * tree-ssa-reassoc.c: Likewise.
20766 * tree-ssa-sink.c: Likewise.
20767 * tree-ssa-strlen.c: Likewise.
20768 * tree-ssa-tail-merge.c: Likewise.
20769 * tree-ssa-uncprop.c: Likewise.
20770 * tree-switch-conversion.c: Likewise.
20771 * tree-tailcall.c: Likewise.
20772 * tree-vect-generic.c: Likewise.
20773 * tree-vectorizer.c: Likewise.
20774 * tree-vrp.c: Likewise.
20775 * tsan.c: Likewise.
20776 * var-tracking.c: Likewise.
20777 * bt-load.c: Likewise.
20778 * cfgcleanup.c: Likewise.
20779 * combine-stack-adj.c: Likewise.
20780 * combine.c: Likewise.
20781 * compare-elim.c: Likewise.
20782 * config/epiphany/resolve-sw-modes.c: Likewise.
20783 * config/i386/i386.c: Likewise.
20784 * config/mips/mips.c: Likewise.
20785 * config/s390/s390.c: Likewise.
20786 * config/sh/sh_treg_combine.cc: Likewise.
20787 * config/sparc/sparc.c: Likewise.
20788 * dce.c: Likewise.
20789 * dse.c: Likewise.
20790 * final.c: Likewise.
20791 * ifcvt.c: Likewise.
20792 * mode-switching.c: Likewise.
20793 * passes.c: Likewise.
20794 * postreload.c: Likewise.
20795 * ree.c: Likewise.
20796 * reg-stack.c: Likewise.
20797 * regcprop.c: Likewise.
20798 * regrename.c: Likewise.
20799 * web.c: Likewise.
20800
20801 2014-05-06 Richard Biener <rguenther@suse.de>
20802
20803 PR middle-end/61070
20804 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20805 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20806
20807 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
20808
20809 PR ipa/60965
20810 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20811
20812 2014-05-05 Radovan Obradovic <robradovic@mips.com>
20813 Tom de Vries <tom@codesourcery.com>
20814
20815 * target.def (call_fusage_contains_non_callee_clobbers): New
20816 DEFHOOKPOD.
20817 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20818 Hooks to @menu.
20819 (@node Miscellaneous Register Hooks): New node.
20820 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20821 * doc/tm.texi: Regenerate.
20822
20823 2014-05-05 Marek Polacek <polacek@redhat.com>
20824
20825 PR driver/61065
20826 * opts.c (common_handle_option): Call error_at instead of warning_at.
20827
20828 2014-05-05 Richard Biener <rguenther@suse.de>
20829
20830 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20831 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
20832 under the TODO_verify_il umbrella.
20833
20834 2014-05-05 Richard Biener <rguenther@suse.de>
20835
20836 * passes.c (execute_function_todo): Move TODO_verify_flow under
20837 the TODO_verify_ul umbrella.
20838
20839 2014-05-05 Richard Biener <rguenther@suse.de>
20840
20841 PR middle-end/61010
20842 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20843 X & CST away from a CST that is the mask of a mode.
20844
20845 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20846
20847 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20848 int argument to enum machine_mode.
20849 (picochip_class_max_nregs): Ditto.
20850 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20851 (picochip_class_max_nregs): Ditto.
20852
20853 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20854
20855 * target.def: Add new target hook.
20856 * doc/tm.texi: Regenerate.
20857 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20858 * targhooks.c (default_keep_leaf_when_profiled): New function.
20859
20860 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20861 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20862
20863 2014-05-05 Bin Cheng <bin.cheng@arm.com>
20864
20865 PR tree-optimization/60363
20866 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20867 (copy_phi_args): New parameters. Call get_value_locus_in_path.
20868 (update_destination_phis): New parameter.
20869 (create_edge_and_update_destination_phis): Ditto.
20870 (ssa_fix_duplicate_block_edges): Pass new arguments.
20871 (thread_single_edge): Ditto.
20872
20873 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
20874
20875 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20876 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20877 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20878 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20879 Use RS6000_BTM_HARD_FLOAT.
20880 (BU_MISC_2): Likewise.
20881 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20882 RS6000_BTM_HARD_FLOAT.
20883 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20884 is explicitly used.
20885 (rs6000_invalid_builtin): Add hard floating builtin support.
20886 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20887 hard float builtins.
20888 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20889
20890 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20891
20892 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20893 Add missing function* argument.
20894
20895 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20896
20897 * lra-constraints.c (valid_address_p): Move earlier in file.
20898 Add a constraint argument to the address_info version.
20899 (satisfies_memory_constraint_p): New function.
20900 (satisfies_address_constraint_p): Likewise.
20901 (process_alt_operands, curr_insn_transform): Use them.
20902 (process_address): Pass the constraint to valid_address_p when
20903 checking address operands.
20904
20905 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
20906
20907 * config/mips/mips.c (mips_isa_rev): New variable.
20908 (mips_set_architecture): Set it.
20909 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20910 from mips_isa_rev.
20911 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20912 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20913 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20914 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20915 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20916 conditions in terms of mips_isa_rev.
20917 (mips_isa_rev): Declare.
20918
20919 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20920
20921 * config/sh/sh-mem.cc: Use tabs instead of spaces.
20922 (prob_unlikely, prob_likely): Make variables const.
20923
20924 2014-05-03 Denis Chertykov <chertykov@gmail.com>
20925
20926 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20927
20928 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20929
20930 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20931
20932 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20933
20934 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20935 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20936 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20937 functions.
20938 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20939 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20940 sh_pass_in_reg_p.
20941 Replace usage of ROUND_REG with sh_round_reg.
20942 Use CEIL instead of ROUND_ADVANCE.
20943
20944 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20945
20946 PR target/61026
20947 * config/sh/sh.c: Include stdlib headers before everything else.
20948
20949 2014-05-02 Jakub Jelinek <jakub@redhat.com>
20950
20951 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20952 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20953 (gimplify_adjust_omp_clauses): Simd region is never
20954 directly nested in combined parallel. Instead, for linear
20955 with copyin/copyout, if in combined for simd loop, make decl
20956 firstprivate/lastprivate on OMP_FOR.
20957 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20958 expand_omp_for_static_chunk): When setting endvar, also set
20959 fd->loop.v to the same value.
20960
20961 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20962
20963 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
20964
20965 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
20966
20967 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
20968 expression.
20969
20970 2014-05-02 Marek Polacek <polacek@redhat.com>
20971
20972 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
20973
20974 2014-05-02 Kito Cheng <kito@0xlab.org>
20975
20976 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
20977 to a C expression marco.
20978 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
20979 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
20980 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
20981 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
20982 HONOR_REG_ALLOC_ORDER.
20983 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
20984
20985 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20986
20987 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
20988
20989 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20990
20991 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
20992
20993 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
20994
20995 * tree-if-conv.c (is_cond_scalar_reduction): New function.
20996 (convert_scalar_cond_reduction): Likewise.
20997 (predicate_scalar_phi): Add recognition and transformation
20998 of simple conditioanl reduction to be vectorizable.
20999
21000 2014-05-01 Marek Polacek <polacek@redhat.com>
21001
21002 PR c/43245
21003 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
21004
21005 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
21006
21007 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
21008 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
21009 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
21010 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
21011 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
21012 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
21013 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
21014 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
21015
21016 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
21017
21018 * config/arc/arc.opt (mlra): Move comment above option name
21019 to avoid mis-parsing as language options.
21020
21021 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21022
21023 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
21024 * config/sol2.h: ... here.
21025 * config/sol2-10.h: Remove.
21026
21027 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
21028 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
21029 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
21030 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
21031 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
21032 * config/sol2.h: ... here.
21033 (SECTION_NAME_FORMAT): Don't redefine.
21034 (STARTFILE_ARCH32_SPEC): Rename to ...
21035 (STARTFILE_ARCH_SPEC): ... this.
21036 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21037 * config/sparc/sol2.h: ... here.
21038 (SECTION_NAME_FORMAT): Don't undef.
21039 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
21040 (SUBTARGET_EXTRA_SPECS): Remove.
21041 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
21042
21043 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
21044 (MD_STARTFILE_PREFIX): Remove.
21045 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
21046 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
21047 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
21048 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
21049 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
21050 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
21051 * config/i386/sol2.h: ... here.
21052 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
21053 * config/i386/sol2-bi.h: Remove.
21054 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
21055 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
21056
21057 * config/i386/t-sol2-64: Rename to ...
21058 * config/i386/t-sol2: ... this.
21059 * config/sparc/t-sol2-64: Rename to ...
21060 * config/sparc/t-sol2: ... this.
21061
21062 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
21063 sol2_tm_file_head, sol2_tm_file_tail.
21064 Include ${cpu_type}/sol2.h before sol2.h.
21065 Remove sol2-10.h.
21066 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
21067 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
21068 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
21069 Reflect i386/t-sol2-64 renaming.
21070 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
21071 Reflect sparc/t-sol2-64 renaming.
21072
21073 2014-04-30 Richard Biener <rguenther@suse.de>
21074
21075 * passes.c (execute_function_todo): Move TODO_verify_stmts
21076 and TODO_verify_ssa under the TODO_verify_il umbrella.
21077 * tree-ssa.h (verify_ssa): Adjust prototype.
21078 * tree-ssa.c (verify_ssa): Add parameter to tell whether
21079 we should verify SSA operands.
21080 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
21081 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
21082 whether we should verify whether not throwing stmts have EH info.
21083 * graphite-scop-detection.c (create_sese_edges): Adjust.
21084 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
21085 * tree-eh.c (lower_try_finally_switch): Do not add the
21086 default case label twice.
21087
21088 2014-04-30 Marek Polacek <polacek@redhat.com>
21089
21090 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
21091 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
21092 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
21093 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
21094
21095 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
21096
21097 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
21098 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
21099 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
21100 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
21101 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
21102 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
21103 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
21104 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
21105
21106 2014-04-29 David Malcolm <dmalcolm@redhat.com>
21107
21108 * tree-cfg.c (dump_function_to_file): Dump the return type of
21109 functions, in a line to itself before the function body, mimicking
21110 the layout of a C function.
21111
21112 2014-04-29 Jakub Jelinek <jakub@redhat.com>
21113
21114 PR tree-optimization/60971
21115 * tree-tailcall.c (process_assignment): Reject conversions which
21116 reduce precision.
21117
21118 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
21119
21120 * calls.c (initialize_argument_information): Always treat
21121 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
21122 (expand_call): Likewise.
21123 (emit_library_call_calue_1): Likewise.
21124 * expr.c (PUSH_ARGS_REVERSED): Do not define.
21125 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
21126 code accordingly.
21127
21128 2014-04-29 Nick Clifton <nickc@redhat.com>
21129
21130 * config/msp430/msp430.md (umulsidi): Fix typo.
21131 (mulhisi3): Enable even inside interrupt handlers.
21132 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
21133 bigger return address pushed in large mode.
21134
21135 2014-04-29 Nick Clifton <nickc@redhat.com>
21136
21137 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
21138 (arc_init_reg_tables): Use a machine_mode enum to iterate over
21139 available modes.
21140 * config/m32r/m32r.c (init_reg_tables): Likewise.
21141 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
21142 enum to hold the modes.
21143
21144 2014-04-29 Richard Biener <rguenther@suse.de>
21145
21146 * dominance.c (free_dominance_info): Add overload with
21147 function parameter.
21148 (dom_info_state): Likewise.
21149 (dom_info_available_p): Likewise.
21150 * basic-block.h (free_dominance_info, dom_info_state,
21151 dom_info_available_p): Declare overloads.
21152 * passes.c (execute_function_todo): Verify that verifiers
21153 don't change dominator info state. Drop dominator info
21154 for IPA pass invocations.
21155 * cgraph.c (release_function_body): Restore asserts that
21156 dominator information is released.
21157
21158 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
21159
21160 * doc/invoke.texi: Fix typo.
21161 * tree-vrp.c: Fix typos.
21162 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
21163
21164 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21165
21166 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
21167
21168 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21169
21170 * config/aarch64/aarch64-builtins.c
21171 (aarch64_types_storestruct_lane_qualifiers): New.
21172 (TYPES_STORESTRUCT_LANE): Likewise.
21173 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
21174 (st3_lane): Likewise.
21175 (st4_lane): Likewise.
21176 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
21177 (vec_store_lanesci_lane<mode>): Likewise.
21178 (vec_store_lanesxi_lane<mode>): Likewise.
21179 (aarch64_st2_lane<VQ:mode>): Likewise.
21180 (aarch64_st3_lane<VQ:mode>): Likewise.
21181 (aarch64_st4_lane<VQ:mode>): Likewise.
21182 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
21183 * config/aarch64/arm_neon.h
21184 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
21185 use new macro arguments.
21186 (__ST3_LANE_FUNC): Likewise.
21187 (__ST4_LANE_FUNC): Likewise.
21188 * config/aarch64/iterators.md (V_TWO_ELEM): New.
21189 (V_THREE_ELEM): Likewise.
21190 (V_FOUR_ELEM): Likewise.
21191
21192 2014-04-28 David Malcolm <dmalcolm@redhat.com>
21193
21194 * doc/gimple.texi: Replace the description of the now-defunct
21195 union gimple_statement_d with a diagram showing the
21196 gimple_statement_base class hierarchy and its relationships to
21197 the GSS_ and GIMPLE_ enums.
21198
21199 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
21200
21201 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
21202 * config/aarch64/aarch64.c
21203 (aarch64_cannot_change_mode_class): Weaken conditions.
21204 (aarch64_modes_tieable_p): New.
21205 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
21206
21207 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
21208
21209 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21210 (loadsync_<mode>): Change mode.
21211 (load_quadpti, store_quadpti): New.
21212 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21213 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21214
21215 2014-04-28 Martin Jambor <mjambor@suse.cz>
21216
21217 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
21218 same alias type as the original statement.
21219 (subreplacement_assignment_data): New type.
21220 (handle_unscalarized_data_in_subtree): New type of parameter,
21221 generate new memory accesses with same alias type as the original
21222 statement.
21223 (load_assign_lhs_subreplacements): Likewise.
21224 (sra_modify_constructor_assign): Generate new memory accesses with
21225 same alias type as the original statement.
21226
21227 2014-04-28 Richard Biener <rguenther@suse.de>
21228
21229 * tree-pass.h (TODO_verify_il): Define.
21230 (TODO_verify_all): Complete properly.
21231 * passes.c (execute_function_todo): Move existing loop-closed
21232 SSA verification under TODO_verify_il.
21233 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
21234 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
21235 Fix tree sharing issue.
21236
21237 2014-04-28 Richard Biener <rguenther@suse.de>
21238
21239 PR middle-end/60092
21240 * builtins.def (DEF_C11_BUILTIN): Add.
21241 (BUILT_IN_ALIGNED_ALLOC): Likewise.
21242 * coretypes.h (enum function_class): Add function_c11_misc.
21243 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21244 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
21245 (call_may_clobber_ref_p_1): Likewise.
21246 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21247 (mark_all_reaching_defs_necessary_1): Likewise.
21248 (propagate_necessity): Likewise.
21249 (eliminate_unnecessary_stmts): Likewise.
21250 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
21251
21252 2014-04-28 Richard Biener <rguenther@suse.de>
21253
21254 * tree-vrp.c (vrp_var_may_overflow): Remove.
21255 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
21256 with overflow immediately bump to one before that value and
21257 let iteration figure out overflow status.
21258
21259 2014-04-28 Richard Biener <rguenther@suse.de>
21260
21261 * configure.ac: Do valgrind header checks unconditionally.
21262 Add --enable-valgrind-annotations.
21263 * system.h: Guard valgrind header inclusion with
21264 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
21265 * alloc-pool.c (pool_alloc, pool_free): Use
21266 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
21267 to guard possibly dead code.
21268 * config.in: Regenerated.
21269 * configure: Likewise.
21270
21271 2014-04-28 Jeff Law <law@redhat.com>
21272
21273 PR tree-optimization/60902
21274 * tree-ssa-threadedge.c
21275 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
21276 over real defs when invalidating outputs from statements that do not
21277 produce useful outputs for threading.
21278
21279 2014-04-28 Richard Biener <rguenther@suse.de>
21280
21281 PR tree-optimization/60979
21282 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
21283 SCOPs that end in a block with a successor with abnormal
21284 predecessors.
21285
21286 2014-04-28 Richard Biener <rguenther@suse.de>
21287
21288 * tree-pass.h (execute_pass_list): Adjust prototype.
21289 * passes.c (pass_manager::execute_early_local_passes): Adjust.
21290 (do_per_function): Change callback signature, push all actual
21291 work to the callbals.
21292 (do_per_function_toporder): Likewise.
21293 (execute_function_dump): Adjust.
21294 (execute_function_todo): Likewise.
21295 (clear_last_verified): Likewise.
21296 (verify_curr_properties): Likewise.
21297 (update_properties_after_pass): Likewise.
21298 (execute_pass_list_1): Split out from ...
21299 (execute_pass_list): ... here. Adjust.
21300 (execute_ipa_pass_list): Likewise.
21301 * cgraphunit.c (cgraph_add_new_function): Adjust.
21302 (analyze_function): Likewise.
21303 (expand_function): Likewise.
21304 * cgraph.c (release_function_body): Free dominance info
21305 here instead of asserting it was magically freed elsewhere.
21306
21307 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
21308
21309 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
21310 * configure: Regenerate.
21311 * config/sparc/sparc.opt (muser-mode): New option.
21312 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
21313 for LEON3.
21314 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
21315 * doc/invoke.texi (SPARC options): Document -muser-mode.
21316
21317 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21318
21319 * cselib.c (find_slot_memmode): Delete.
21320 (cselib_hasher): Change compare_type to a struct.
21321 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
21322 constants.
21323 (preserve_constants_and_equivs): Adjust for new compare_type.
21324 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
21325 (wrap_constant): Delete.
21326 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
21327
21328 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21329
21330 * doc/install.texi (Building with profile feedback): Remove
21331 outdated sentence.
21332
21333 2014-04-26 Tom de Vries <tom@codesourcery.com>
21334
21335 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
21336 array accesses.
21337
21338 2014-04-25 Cary Coutant <ccoutant@google.com>
21339
21340 PR debug/60929
21341 * dwarf2out.c (should_move_die_to_comdat): A type definition
21342 can contain a subprogram definition, but don't move it to a
21343 comdat unit.
21344 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
21345 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
21346 from original DIE.
21347 (clone_tree_hash): Rename to...
21348 (clone_tree_partial): ...this; change callers. Copy
21349 DW_TAG_subprogram DIEs as declarations.
21350 (copy_decls_walk): Don't copy children of a declaration into a
21351 type unit.
21352
21353 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
21354
21355 PR target/60969
21356 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
21357 alternative 12.
21358
21359 2014-04-25 Jiong Wang <jiong.wang@arm.com>
21360
21361 * config/arm/predicates.md (call_insn_operand): Add long_call check.
21362 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
21363 reg for long_call.
21364 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
21365 restriction.
21366
21367 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21368
21369 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
21370
21371 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21372
21373 PR tree-optimization/60930
21374 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
21375 creating a multiply candidate by folding two constant
21376 multiplicands when the result overflows.
21377
21378 2014-04-25 Jakub Jelinek <jakub@redhat.com>
21379
21380 PR tree-optimization/60960
21381 * tree-vect-generic.c (expand_vector_operation): Only call
21382 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
21383
21384 2014-04-25 Tom de Vries <tom@codesourcery.com>
21385
21386 * expr.c (clobber_reg_mode): New function.
21387 * expr.h (clobber_reg): New function.
21388
21389 2014-04-25 Tom de Vries <tom@codesourcery.com>
21390
21391 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
21392 clobbers.
21393
21394 2014-04-25 Radovan Obradovic <robradovic@mips.com>
21395 Tom de Vries <tom@codesourcery.com>
21396
21397 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
21398 handle.
21399 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
21400 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
21401 new argument to find_all_hard_reg_sets call.
21402
21403 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21404
21405 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
21406 Use HOST_WIDE_INT_C for mask literal.
21407 (aarch_rev16_shleft_mask_imm_p): Likewise.
21408
21409 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
21410
21411 PR target/60941
21412 * config/sparc/sparc.md (ashlsi3_extend): Delete.
21413
21414 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
21415
21416 PR preprocessor/56540
21417 * config/i386/i386-c.c (ix86_target_macros): Define
21418 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
21419
21420 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21421
21422 * configure.ac (tga_func): Remove.
21423 (LIB_TLS_SPEC): Remove.
21424 * configure: Regenerate.
21425 * config.in: Regenerate.
21426 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
21427
21428 2014-04-25 Richard Biener <rguenther@suse.de>
21429
21430 PR ipa/60912
21431 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
21432 call stmt use/clobber sets during stmt walk instead of
21433 walking the possibly incomplete set of caller edges.
21434
21435 2014-04-25 Richard Biener <rguenther@suse.de>
21436
21437 PR ipa/60911
21438 * passes.c (apply_ipa_transforms): Inline into only caller ...
21439 (execute_one_pass): ... here. Properly bring in function
21440 bodies for nodes we want to apply IPA transforms to.
21441
21442 2014-04-24 Cong Hou <congh@google.com>
21443
21444 PR tree-optimization/60896
21445 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
21446 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
21447 (vect_mark_pattern_stmts): Set the def type of all statements in
21448 PATTERN_DEF_SEQ as vect_internal_def.
21449
21450 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21451
21452 * doc/extend.texi (PowerPC Built-in Functions): Document new
21453 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
21454 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
21455
21456 * config/rs6000/predicates.md (const_0_to_3_operand): New
21457 predicate to match 0..3 integer constants.
21458
21459 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
21460 to support adding miscellaneous builtin functions.
21461 (BU_DFP_MISC_2): Likewise.
21462 (BU_P7_MISC_1): Likewise.
21463 (BU_P7_MISC_2): Likewise.
21464 (BU_P8V_MISC_3): Likewise.
21465 (BU_MISC_1): Likewise.
21466 (BU_MISC_2): Likewise.
21467 (DIVWE): Add extended divide builtin functions.
21468 (DIVWEO): Likewise.
21469 (DIVWEU): Likewise.
21470 (DIVWEUO): Likewise.
21471 (DIVDE): Likewise.
21472 (DIVDEO): Likewise.
21473 (DIVDEU): Likewise.
21474 (DIVDEUO): Likewise.
21475 (DXEX): Add decimal floating-point builtin functions.
21476 (DXEXQ): Likewise.
21477 (DDEDPD): Likewise.
21478 (DDEDPDQ): Likewise.
21479 (DENBCD): Likewise.
21480 (DENBCDQ): Likewise.
21481 (DIEX): Likewise.
21482 (DIEXQ): Likewise.
21483 (DSCLI): Likewise.
21484 (DSCLIQ): Likewise.
21485 (DSCRI): Likewise.
21486 (DSCRIQ): Likewise.
21487 (CDTBCD): Add new BCD builtin functions.
21488 (CBCDTD): Likewise.
21489 (ADDG6S): Likewise.
21490 (BCDADD): Likewise.
21491 (BCDADD_LT): Likewise.
21492 (BCDADD_EQ): Likewise.
21493 (BCDADD_GT): Likewise.
21494 (BCDADD_OV): Likewise.
21495 (BCDSUB): Likewise.
21496 (BCDSUB_LT): Likewise.
21497 (BCDSUB_EQ): Likewise.
21498 (BCDSUB_GT): Likewise.
21499 (BCDSUB_OV): Likewise.
21500 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
21501 (UNPACK_TD): Likewise.
21502 (PACK_TF): Likewise.
21503 (UNPACK_TF): Likewise.
21504 (UNPACK_TF_0): Likewise.
21505 (UNPACK_TF_1): Likewise.
21506 (PACK_V1TI): Likewise.
21507 (UNPACK_V1TI): Likewise.
21508
21509 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21510 support for decimal floating point builtin functions.
21511 (rs6000_expand_ternop_builtin): Add checks for the new builtin
21512 functions that take constant arguments.
21513 (rs6000_invalid_builtin): Add decimal floating point builtin support.
21514 (rs6000_init_builtins): Setup long double, _Decimal64, and
21515 _Decimal128 types for new builtin functions.
21516 (builtin_function_type): Set the unsigned flags appropriately for
21517 the new builtin functions.
21518 (rs6000_opt_masks): Add support for decimal floating point builtin
21519 functions.
21520
21521 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
21522 floating point builtin functions.
21523 (RS6000_BTM_COMMON): Likewise.
21524 (RS6000_BTI_long_double): Likewise.
21525 (RS6000_BTI_dfloat64): Likewise.
21526 (RS6000_BTI_dfloat128): Likewise.
21527 (long_double_type_internal_node): Likewise.
21528 (dfloat64_type_internal_node): Likewise.
21529 (dfloat128_type_internal_node): Likewise.
21530
21531 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
21532 2.07 bcd arithmetic instructions.
21533 (UNSPEC_BCDSUB): Likewise.
21534 (UNSPEC_BCD_OVERFLOW): Likewise.
21535 (UNSPEC_BCD_ADD_SUB): Likewise.
21536 (bcd_add_sub): Likewise.
21537 (BCD_TEST): Likewise.
21538 (bcd<bcd_add_sub>): Likewise.
21539 (bcd<bcd_add_sub>_test): Likewise.
21540 (bcd<bcd_add_sub>_test2): Likewise.
21541 (bcd<bcd_add_sub>_<code>): Likewise.
21542 (peephole2 for combined bcd ops): Likewise.
21543
21544 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
21545 decimal floating point builtin functions.
21546 (UNSPEC_DENBCD): Likewise.
21547 (UNSPEC_DXEX): Likewise.
21548 (UNSPEC_DIEX): Likewise.
21549 (UNSPEC_DSCLI): Likewise.
21550 (UNSPEC_DSCRI): Likewise.
21551 (D64_D128): Likewise.
21552 (dfp_suffix): Likewise.
21553 (dfp_ddedpd_<mode>): Likewise.
21554 (dfp_denbcd_<mode>): Likewise.
21555 (dfp_dxex_<mode>): Likewise.
21556 (dfp_diex_<mode>): Likewise.
21557 (dfp_dscli_<mode>): Likewise.
21558 (dfp_dscri_<mode>): Likewise.
21559
21560 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
21561 builtin functions.
21562 (UNSPEC_CDTBCD): Likewise.
21563 (UNSPEC_CBCDTD): Likewise.
21564 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
21565 (UNSPEC_DIVEO): Likewise.
21566 (UNSPEC_DIVEU): Likewise.
21567 (UNSPEC_DIVEUO): Likewise.
21568 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
21569 pack/unpack 128-bit types.
21570 (UNSPEC_PACK_128BIT): Likewise.
21571 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
21572 (udiv<mode>3): Use idiv_ldiv mode attribute.
21573 (div<mode>3): Likewise.
21574 (addg6s): Add new BCD builtin functions.
21575 (cdtbcd): Likewise.
21576 (cbcdtd): Likewise.
21577 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
21578 (div_extend): Likewise.
21579 (div<div_extend>_<mode>"): Likewise.
21580 (FP128_64): Add support for new builtin functions to pack/unpack
21581 128-bit types.
21582 (unpack<mode>): Likewise.
21583 (unpacktf_0): Likewise.
21584 (unpacktf_1): Likewise.
21585 (unpack<mode>_dm): Likewise.
21586 (unpack<mode>_nodm): Likewise.
21587 (pack<mode>): Likewise.
21588 (unpackv1ti): Likewise.
21589 (packv1ti): Likewise.
21590
21591 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
21592
21593 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
21594 is disabled.
21595
21596 2014-04-24 Jakub Jelinek <jakub@redhat.com>
21597
21598 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
21599 * gimplify.c (omp_is_private): Change last argument's type to int.
21600 Only diagnose lastprivate if the simd argument is 1, only diagnose
21601 linear if the simd argument is 2.
21602 (gimplify_omp_for): Adjust omp_is_private callers. When adding
21603 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
21604 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
21605 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21606 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21607 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21608 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21609 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21610 * tree-nested.c (convert_nonlocal_omp_clauses,
21611 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21612
21613 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
21614
21615 PR target/60822
21616 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21617 operand 1.
21618
21619 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
21620
21621 * flag-types.h (enum ivar_visibility): Add.
21622
21623 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
21624
21625 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21626 function * argument.
21627
21628 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
21629
21630 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21631
21632 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21633 Tom de Vries <tom@codesourcery.com>
21634
21635 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21636 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21637 reg-note.
21638 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21639 * emit-rtl.c (try_split): Same.
21640
21641 2014-04-24 Radovan Obradovic <robradovic@mips.com>
21642 Tom de Vries <tom@codesourcery.com>
21643
21644 * common.opt (fuse-caller-save): New option.
21645
21646 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
21647
21648 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21649 elements for big-endian.
21650
21651 2014-04-24 Richard Biener <rguenther@suse.de>
21652
21653 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21654 during TER and instead use the sepops interface for expanding
21655 non-GIMPLE_SINGLE_RHS.
21656
21657 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21658
21659 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21660 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21661
21662 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21663
21664 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21665 assembler 64-bit option.
21666 * configure: Regenerate.
21667
21668 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21669
21670 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21671 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21672 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21673 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21674 (TARGET_CRYPTO): Take TARGET_SIMD into account.
21675
21676 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21677
21678 * config/aarch64/aarch64-builtins.c
21679 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21680 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21681 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21682 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21683 builtins.
21684 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21685 (Vrevsuff): New mode attribute.
21686
21687 2014-04-24 Terry Guo <terry.guo@arm.com>
21688
21689 * config/arm/arm.h (machine_function): Define variable
21690 after_arm_reorg here.
21691 * config/arm/arm.c (after_arm_reorg): Remove the definition.
21692 (arm_split_constant): Update the way to access variable
21693 after_arm_reorg.
21694 (arm_reorg): Ditto.
21695 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21696
21697 2014-04-23 Tom de Vries <tom@codesourcery.com>
21698
21699 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21700
21701 2014-04-23 David Malcolm <dmalcolm@redhat.com>
21702
21703 * is-a.h: Update comments to reflect the following changes to the
21704 "pointerness" of the API, making the template parameter match the
21705 return type, allowing use of is-a.h with typedefs of pointers.
21706 (is_a_helper::cast): Return a T rather then a pointer to a T, so
21707 that the return type matches the parameter to the is_a_helper.
21708 (as_a): Likewise.
21709 (dyn_cast): Likewise.
21710
21711 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21712 pointer from the is-a.h API.
21713
21714 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21715 (is_a_helper <cgraph_node *>::test): ...this, matching change to
21716 is-a.h API.
21717 (is_a_helper <varpool_node>::test): Likewise, convert to...
21718 (is_a_helper <varpool_node *>::test): ...this.
21719
21720 (varpool_first_variable): Update for removal of implicit pointer
21721 from the is-a.h API.
21722 (varpool_next_variable): Likewise.
21723 (varpool_first_static_initializer): Likewise.
21724 (varpool_next_static_initializer): Likewise.
21725 (varpool_first_defined_variable): Likewise.
21726 (varpool_next_defined_variable): Likewise.
21727 (cgraph_first_defined_function): Likewise.
21728 (cgraph_next_defined_function): Likewise.
21729 (cgraph_first_function): Likewise.
21730 (cgraph_next_function): Likewise.
21731 (cgraph_first_function_with_gimple_body): Likewise.
21732 (cgraph_next_function_with_gimple_body): Likewise.
21733 (cgraph_alias_target): Likewise.
21734 (varpool_alias_target): Likewise.
21735 (cgraph_function_or_thunk_node): Likewise.
21736 (varpool_variable_node): Likewise.
21737 (symtab_real_symbol_p): Likewise.
21738 * cgraphunit.c (referred_to_p): Likewise.
21739 (analyze_functions): Likewise.
21740 (handle_alias_pairs): Likewise.
21741 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21742 * gimple-ssa.h (gimple_vuse_op): Likewise.
21743 (gimple_vdef_op): Likewise.
21744 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21745 * gimple.c (gimple_build_asm_1): Likewise.
21746 (gimple_build_try): Likewise.
21747 (gimple_build_resx): Likewise.
21748 (gimple_build_eh_dispatch): Likewise.
21749 (gimple_build_omp_for): Likewise.
21750 (gimple_omp_for_set_clauses): Likewise.
21751
21752 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21753 (is_a_helper <gimple_statement_asm *>::test): ...this.
21754 (is_a_helper <gimple_statement_bind>::test): Convert to...
21755 (is_a_helper <gimple_statement_bind *>::test): ...this.
21756 (is_a_helper <gimple_statement_call>::test): Convert to...
21757 (is_a_helper <gimple_statement_call *>::test): ...this.
21758 (is_a_helper <gimple_statement_catch>::test): Convert to...
21759 (is_a_helper <gimple_statement_catch *>::test): ...this.
21760 (is_a_helper <gimple_statement_resx>::test): Convert to...
21761 (is_a_helper <gimple_statement_resx *>::test): ...this.
21762 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21763 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21764 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21765 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21766 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21767 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21768 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21769 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21770 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21771 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21772 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21773 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21774 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21775 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21776 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21777 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21778 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21779 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21780 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21781 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21782 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21783 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21784 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21785 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21786 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21787 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21788 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21789 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21790 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21791 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21792 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21793 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21794 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21795 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21796 (is_a_helper <gimple_statement_phi>::test): Convert to...
21797 (is_a_helper <gimple_statement_phi *>::test): ...this.
21798 (is_a_helper <gimple_statement_transaction>::test): Convert to...
21799 (is_a_helper <gimple_statement_transaction *>::test): ...this.
21800 (is_a_helper <gimple_statement_try>::test): Convert to...
21801 (is_a_helper <gimple_statement_try *>::test): ...this.
21802 (is_a_helper <gimple_statement_wce>::test): Convert to...
21803 (is_a_helper <gimple_statement_wce *>::test): ...this.
21804 (is_a_helper <const gimple_statement_asm>::test): Convert to...
21805 (is_a_helper <const gimple_statement_asm *>::test): ...this.
21806 (is_a_helper <const gimple_statement_bind>::test): Convert to...
21807 (is_a_helper <const gimple_statement_bind *>::test): ...this.
21808 (is_a_helper <const gimple_statement_call>::test): Convert to...
21809 (is_a_helper <const gimple_statement_call *>::test): ...this.
21810 (is_a_helper <const gimple_statement_catch>::test): Convert to...
21811 (is_a_helper <const gimple_statement_catch *>::test): ...this.
21812 (is_a_helper <const gimple_statement_resx>::test): Convert to...
21813 (is_a_helper <const gimple_statement_resx *>::test): ...this.
21814 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21815 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21816 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21817 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21818 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21819 Convert to...
21820 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21821 ...this.
21822 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21823 Convert to...
21824 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21825 ...this.
21826 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21827 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21828 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21829 to...
21830 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21831 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21832 to...
21833 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21834 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21835 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21836 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21837 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21838 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21839 to...
21840 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21841 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21842 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21843 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21844 to...
21845 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21846 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21847 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21848 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21849 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21850 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21851 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21852 (is_a_helper <const gimple_statement_phi>::test): Convert to...
21853 (is_a_helper <const gimple_statement_phi *>::test): ...this.
21854 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21855 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21856 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21857 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21858 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21859 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21860 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21861 to...
21862 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21863 ...this.
21864 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21865 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21866
21867 (gimple_use_ops): Update for removal of implicit pointer from the
21868 is-a.h API.
21869 (gimple_set_use_ops): Likewise.
21870 (gimple_vuse): Likewise.
21871 (gimple_vdef): Likewise.
21872 (gimple_vuse_ptr): Likewise.
21873 (gimple_vdef_ptr): Likewise.
21874 (gimple_set_vuse): Likewise.
21875 (gimple_set_vdef): Likewise.
21876 (gimple_omp_return_set_lhs): Likewise.
21877 (gimple_omp_return_lhs): Likewise.
21878 (gimple_omp_return_lhs_ptr): Likewise.
21879 (gimple_call_fntype): Likewise.
21880 (gimple_call_set_fntype): Likewise.
21881 (gimple_call_set_internal_fn): Likewise.
21882 (gimple_call_use_set): Likewise.
21883 (gimple_call_clobber_set): Likewise.
21884 (gimple_bind_vars): Likewise.
21885 (gimple_bind_set_vars): Likewise.
21886 (gimple_bind_body_ptr): Likewise.
21887 (gimple_bind_set_body): Likewise.
21888 (gimple_bind_add_stmt): Likewise.
21889 (gimple_bind_block): Likewise.
21890 (gimple_bind_set_block): Likewise.
21891 (gimple_asm_ninputs): Likewise.
21892 (gimple_asm_noutputs): Likewise.
21893 (gimple_asm_nclobbers): Likewise.
21894 (gimple_asm_nlabels): Likewise.
21895 (gimple_asm_input_op): Likewise.
21896 (gimple_asm_input_op_ptr): Likewise.
21897 (gimple_asm_output_op): Likewise.
21898 (gimple_asm_output_op_ptr): Likewise.
21899 (gimple_asm_set_output_op): Likewise.
21900 (gimple_asm_clobber_op): Likewise.
21901 (gimple_asm_set_clobber_op): Likewise.
21902 (gimple_asm_label_op): Likewise.
21903 (gimple_asm_set_label_op): Likewise.
21904 (gimple_asm_string): Likewise.
21905 (gimple_catch_types): Likewise.
21906 (gimple_catch_types_ptr): Likewise.
21907 (gimple_catch_handler_ptr): Likewise.
21908 (gimple_catch_set_types): Likewise.
21909 (gimple_catch_set_handler): Likewise.
21910 (gimple_eh_filter_types): Likewise.
21911 (gimple_eh_filter_types_ptr): Likewise.
21912 (gimple_eh_filter_failure_ptr): Likewise.
21913 (gimple_eh_filter_set_types): Likewise.
21914 (gimple_eh_filter_set_failure): Likewise.
21915 (gimple_eh_must_not_throw_fndecl): Likewise.
21916 (gimple_eh_must_not_throw_set_fndecl): Likewise.
21917 (gimple_eh_else_n_body_ptr): Likewise.
21918 (gimple_eh_else_e_body_ptr): Likewise.
21919 (gimple_eh_else_set_n_body): Likewise.
21920 (gimple_eh_else_set_e_body): Likewise.
21921 (gimple_try_eval_ptr): Likewise.
21922 (gimple_try_cleanup_ptr): Likewise.
21923 (gimple_try_set_eval): Likewise.
21924 (gimple_try_set_cleanup): Likewise.
21925 (gimple_wce_cleanup_ptr): Likewise.
21926 (gimple_wce_set_cleanup): Likewise.
21927 (gimple_phi_capacity): Likewise.
21928 (gimple_phi_num_args): Likewise.
21929 (gimple_phi_result): Likewise.
21930 (gimple_phi_result_ptr): Likewise.
21931 (gimple_phi_set_result): Likewise.
21932 (gimple_phi_arg): Likewise.
21933 (gimple_phi_set_arg): Likewise.
21934 (gimple_resx_region): Likewise.
21935 (gimple_resx_set_region): Likewise.
21936 (gimple_eh_dispatch_region): Likewise.
21937 (gimple_eh_dispatch_set_region): Likewise.
21938 (gimple_omp_critical_name): Likewise.
21939 (gimple_omp_critical_name_ptr): Likewise.
21940 (gimple_omp_critical_set_name): Likewise.
21941 (gimple_omp_for_clauses): Likewise.
21942 (gimple_omp_for_clauses_ptr): Likewise.
21943 (gimple_omp_for_set_clauses): Likewise.
21944 (gimple_omp_for_collapse): Likewise.
21945 (gimple_omp_for_index): Likewise.
21946 (gimple_omp_for_index_ptr): Likewise.
21947 (gimple_omp_for_set_index): Likewise.
21948 (gimple_omp_for_initial): Likewise.
21949 (gimple_omp_for_initial_ptr): Likewise.
21950 (gimple_omp_for_set_initial): Likewise.
21951 (gimple_omp_for_final): Likewise.
21952 (gimple_omp_for_final_ptr): Likewise.
21953 (gimple_omp_for_set_final): Likewise.
21954 (gimple_omp_for_incr): Likewise.
21955 (gimple_omp_for_incr_ptr): Likewise.
21956 (gimple_omp_for_set_incr): Likewise.
21957 (gimple_omp_for_pre_body_ptr): Likewise.
21958 (gimple_omp_for_set_pre_body): Likewise.
21959 (gimple_omp_parallel_clauses): Likewise.
21960 (gimple_omp_parallel_clauses_ptr): Likewise.
21961 (gimple_omp_parallel_set_clauses): Likewise.
21962 (gimple_omp_parallel_child_fn): Likewise.
21963 (gimple_omp_parallel_child_fn_ptr): Likewise.
21964 (gimple_omp_parallel_set_child_fn): Likewise.
21965 (gimple_omp_parallel_data_arg): Likewise.
21966 (gimple_omp_parallel_data_arg_ptr): Likewise.
21967 (gimple_omp_parallel_set_data_arg): Likewise.
21968 (gimple_omp_task_clauses): Likewise.
21969 (gimple_omp_task_clauses_ptr): Likewise.
21970 (gimple_omp_task_set_clauses): Likewise.
21971 (gimple_omp_task_child_fn): Likewise.
21972 (gimple_omp_task_child_fn_ptr): Likewise.
21973 (gimple_omp_task_set_child_fn): Likewise.
21974 (gimple_omp_task_data_arg): Likewise.
21975 (gimple_omp_task_data_arg_ptr): Likewise.
21976 (gimple_omp_task_set_data_arg): Likewise.
21977 (gimple_omp_taskreg_clauses): Likewise.
21978 (gimple_omp_taskreg_clauses_ptr): Likewise.
21979 (gimple_omp_taskreg_set_clauses): Likewise.
21980 (gimple_omp_taskreg_child_fn): Likewise.
21981 (gimple_omp_taskreg_child_fn_ptr): Likewise.
21982 (gimple_omp_taskreg_set_child_fn): Likewise.
21983 (gimple_omp_taskreg_data_arg): Likewise.
21984 (gimple_omp_taskreg_data_arg_ptr): Likewise.
21985 (gimple_omp_taskreg_set_data_arg): Likewise.
21986 (gimple_omp_task_copy_fn): Likewise.
21987 (gimple_omp_task_copy_fn_ptr): Likewise.
21988 (gimple_omp_task_set_copy_fn): Likewise.
21989 (gimple_omp_task_arg_size): Likewise.
21990 (gimple_omp_task_arg_size_ptr): Likewise.
21991 (gimple_omp_task_set_arg_size): Likewise.
21992 (gimple_omp_task_arg_align): Likewise.
21993 (gimple_omp_task_arg_align_ptr): Likewise.
21994 (gimple_omp_task_set_arg_align): Likewise.
21995 (gimple_omp_single_clauses): Likewise.
21996 (gimple_omp_single_clauses_ptr): Likewise.
21997 (gimple_omp_single_set_clauses): Likewise.
21998 (gimple_omp_target_clauses): Likewise.
21999 (gimple_omp_target_clauses_ptr): Likewise.
22000 (gimple_omp_target_set_clauses): Likewise.
22001 (gimple_omp_target_child_fn): Likewise.
22002 (gimple_omp_target_child_fn_ptr): Likewise.
22003 (gimple_omp_target_set_child_fn): Likewise.
22004 (gimple_omp_target_data_arg): Likewise.
22005 (gimple_omp_target_data_arg_ptr): Likewise.
22006 (gimple_omp_target_set_data_arg): Likewise.
22007 (gimple_omp_teams_clauses): Likewise.
22008 (gimple_omp_teams_clauses_ptr): Likewise.
22009 (gimple_omp_teams_set_clauses): Likewise.
22010 (gimple_omp_sections_clauses): Likewise.
22011 (gimple_omp_sections_clauses_ptr): Likewise.
22012 (gimple_omp_sections_set_clauses): Likewise.
22013 (gimple_omp_sections_control): Likewise.
22014 (gimple_omp_sections_control_ptr): Likewise.
22015 (gimple_omp_sections_set_control): Likewise.
22016 (gimple_omp_for_set_cond): Likewise.
22017 (gimple_omp_for_cond): Likewise.
22018 (gimple_omp_atomic_store_set_val): Likewise.
22019 (gimple_omp_atomic_store_val): Likewise.
22020 (gimple_omp_atomic_store_val_ptr): Likewise.
22021 (gimple_omp_atomic_load_set_lhs): Likewise.
22022 (gimple_omp_atomic_load_lhs): Likewise.
22023 (gimple_omp_atomic_load_lhs_ptr): Likewise.
22024 (gimple_omp_atomic_load_set_rhs): Likewise.
22025 (gimple_omp_atomic_load_rhs): Likewise.
22026 (gimple_omp_atomic_load_rhs_ptr): Likewise.
22027 (gimple_omp_continue_control_def): Likewise.
22028 (gimple_omp_continue_control_def_ptr): Likewise.
22029 (gimple_omp_continue_set_control_def): Likewise.
22030 (gimple_omp_continue_control_use): Likewise.
22031 (gimple_omp_continue_control_use_ptr): Likewise.
22032 (gimple_omp_continue_set_control_use): Likewise.
22033 (gimple_transaction_body_ptr): Likewise.
22034 (gimple_transaction_label): Likewise.
22035 (gimple_transaction_label_ptr): Likewise.
22036 (gimple_transaction_set_body): Likewise.
22037 (gimple_transaction_set_label): Likewise.
22038
22039 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
22040 * ipa-inline-analysis.c (inline_write_summary): Likewise.
22041 * ipa-ref.c (ipa_record_reference): Likewise.
22042 * ipa-reference.c (analyze_function): Likewise.
22043 (ipa_reference_write_optimization_summary): Likewise.
22044 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
22045 (address_taken_from_non_vtable_p): Likewise.
22046 (comdat_can_be_unshared_p_1): Likewise.
22047 * lto-cgraph.c (lto_output_ref): Likewise.
22048 (add_references): Likewise.
22049 (compute_ltrans_boundary): Likewise.
22050 (output_symtab): Likewise.
22051 (input_ref): Likewise.
22052 (input_cgraph_1): Likewise.
22053 (output_cgraph_opt_summary): Likewise.
22054 * lto-streamer-out.c (lto_output): Likewise.
22055 (output_symbol_p): Likewise.
22056 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
22057 (lsei_start_function_in_partition): Likewise.
22058 (lsei_next_variable_in_partition): Likewise.
22059 (lsei_start_variable_in_partition): Likewise.
22060 * symtab.c (insert_to_assembler_name_hash): Likewise.
22061 (unlink_from_assembler_name_hash): Likewise.
22062 (symtab_unregister_node): Likewise.
22063 (symtab_remove_node): Likewise.
22064 (dump_symtab_node): Likewise.
22065 (verify_symtab_base): Likewise.
22066 (verify_symtab_node): Likewise.
22067 (symtab_make_decl_local): Likewise.
22068 (symtab_alias_ultimate_target): Likewise.
22069 (symtab_resolve_alias): Likewise.
22070 (symtab_get_symbol_partitioning_class): Likewise.
22071 * tree-phinodes.c (allocate_phi_node): Likewise.
22072 (reserve_phi_args_for_new_edge): Likewise.
22073 (remove_phi_args): Likewise.
22074 * varpool.c (varpool_node_for_asm): Likewise.
22075 (varpool_remove_unreferenced_decls): Likewise.
22076
22077 2014-04-23 Jeff Law <law@redhat.com>
22078
22079 PR tree-optimization/60902
22080 * tree-ssa-threadedge.c
22081 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
22082 invalidate outputs from statements that do not produce useful
22083 outputs for threading.
22084
22085 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
22086
22087 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
22088 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
22089 machine descriptions for Stack Smashing Protector.
22090
22091 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
22092
22093 * aarch64.md (<optab>_rol<mode>3): New pattern.
22094 (<optab>_rolsi3_uxtw): Likewise.
22095 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
22096
22097 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
22098
22099 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
22100 (arm_cortex_a12_tune): Likewise.
22101
22102 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22103
22104 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
22105
22106 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22107
22108 * config/arm/arm.md (arm_rev16si2): New pattern.
22109 (arm_rev16si2_alt): Likewise.
22110 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
22111
22112 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22113
22114 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
22115 (rev16<mode>2_alt): Likewise.
22116 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
22117 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
22118 (aarch_rev16_shleft_mask_imm_p): Likewise.
22119 (aarch_rev16_p_1): Likewise.
22120 (aarch_rev16_p): Likewise.
22121 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
22122 (aarch_rev16_shright_mask_imm_p): Likewise.
22123 (aarch_rev16_shleft_mask_imm_p): Likewise.
22124
22125 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22126
22127 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
22128 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
22129 rev cost.
22130 (cortex_a53_extra_costs): Likewise.
22131 (cortex_a57_extra_costs): Likewise.
22132 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
22133 (cortexa7_extra_costs): Likewise.
22134 (cortexa8_extra_costs): Likewise.
22135 (cortexa12_extra_costs): Likewise.
22136 (cortexa15_extra_costs): Likewise.
22137 (v7m_extra_costs): Likewise.
22138 (arm_new_rtx_costs): Handle BSWAP.
22139
22140 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22141
22142 * config/arm/arm.c (cortexa8_extra_costs): New table.
22143 (arm_cortex_a8_tune): New tuning struct.
22144 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
22145
22146 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22147
22148 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
22149
22150 2014-04-23 Richard Biener <rguenther@suse.de>
22151
22152 * Makefile.in (OBJS): Remove loop-unswitch.o.
22153 * tree-pass.h (make_pass_rtl_unswitch): Remove.
22154 * passes.def (pass_rtl_unswitch): Likewise.
22155 * loop-init.c (gate_rtl_unswitch): Likewise.
22156 (rtl_unswitch): Likewise.
22157 (pass_data_rtl_unswitch): Likewise.
22158 (pass_rtl_unswitch): Likewise.
22159 (make_pass_rtl_unswitch): Likewise.
22160 * rtl.h (reversed_condition): Likewise.
22161 (compare_and_jump_seq): Likewise.
22162 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
22163 and make static.
22164 * loop-unroll.c (compare_and_jump_seq): Likewise.
22165
22166 2014-04-23 Richard Biener <rguenther@suse.de>
22167
22168 PR tree-optimization/60903
22169 * tree-ssa-loop-im.c (analyze_memory_references): Remove
22170 commented code block.
22171 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
22172 loop flags to newly created BBs and edges.
22173
22174 2014-04-23 Nick Clifton <nickc@redhat.com>
22175
22176 * config/msp430/msp430.c (msp430_handle_option): Move function
22177 to msp430-common.c
22178 (msp430_option_override): Simplify mcu and mcpu option handling.
22179 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
22180 support for -mhwmult command line option.
22181 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
22182 -mhwmult command line option.
22183 (msp430_hwmult_enabled): Delete.
22184 (msp43o_output_labelref): Add support for -mhwmult command line option.
22185 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
22186 (umulsidi3): Likewise.
22187 * config/msp430/msp430.opt (mmcu): Add Report attribute.
22188 (mcpu, mlarge, msmall): Likewise.
22189 (mhwmult): New option.
22190 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
22191 prototype.
22192 (msp430_is_f5_mcu): Remove prototype.
22193 (msp430_use_f5_series_hwmult): Add prototype.
22194 * config/msp430/msp430-opts.h: New file.
22195 * common/config/msp430: New directory.
22196 * common/config/msp430/msp430-common.c: New file.
22197 * config.gcc (msp430): Remove target_has_targetm_common.
22198 * doc/invoke.texi: Document -mhwmult command line option.
22199
22200 2014-04-23 Nick Clifton <nickc@redhat.com>
22201
22202 * config/i386/cygwin.h (ENDFILE_SPEC): Include
22203 default-manifest.o if it can be found in the search path.
22204 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22205
22206 2014-04-23 Terry Guo <terry.guo@arm.com>
22207
22208 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
22209
22210 2014-04-23 Richard Biener <rguenther@suse.de>
22211
22212 PR middle-end/60895
22213 * tree-inline.c (declare_return_variable): Use mark_addressable.
22214
22215 2014-04-23 Richard Biener <rguenther@suse.de>
22216
22217 PR middle-end/60891
22218 * loop-init.c (loop_optimizer_init): Make sure to apply
22219 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
22220
22221 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22222
22223 PR sanitizer/60275
22224 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
22225 New options.
22226 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
22227 if flag_sanitize_undefined_trap_on_error.
22228 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
22229 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
22230 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
22231 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
22232 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
22233 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
22234 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
22235 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
22236 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
22237 * ubsan.c (ubsan_instrument_unreachable): Return
22238 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
22239 (ubsan_expand_null_ifn): Emit __builtin_trap ()
22240 if flag_sanitize_undefined_trap_on_error and
22241 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
22242 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
22243 instrument_bool_enum_load): Emit __builtin_trap () if
22244 flag_sanitize_undefined_trap_on_error and
22245 __builtin_handle_*_abort () if !flag_sanitize_recover.
22246 * doc/invoke.texi (-fsanitize-recover,
22247 -fsanitize-undefined-trap-on-error): Document.
22248
22249 2014-04-22 Christian Bruel <christian.bruel@st.com>
22250
22251 * config/sh/sh.md (mov<mode>): Replace movQIHI.
22252 Force immediates to SImode.
22253
22254 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
22255
22256 * config/nios2/nios2.md (UNSPEC_ROUND): New.
22257 (lroundsfsi2): New.
22258 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
22259 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
22260 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
22261 (nios2_fpu_insn): Add entry for round.
22262 (N2FPU_NO_ERRNO_P): Define.
22263 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
22264 flag_errno_math.
22265 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
22266
22267 2014-04-22 Richard Henderson <rth@redhat.com>
22268
22269 * config/aarch64/aarch64 (addti3, subti3): New expanders.
22270 (add<GPI>3_compare0): Remove leading * from name.
22271 (add<GPI>3_carryin): Likewise.
22272 (sub<GPI>3_compare0): Likewise.
22273 (sub<GPI>3_carryin): Likewise.
22274 (<su_optab>mulditi3): New expander.
22275 (multi3): New expander.
22276 (madd<GPI>): Remove leading * from name.
22277
22278 2014-04-22 Martin Jambor <mjambor@suse.cz>
22279
22280 * cgraphclones.c (cgraph_function_versioning): Copy
22281 ipa_transforms_to_apply instead of asserting it is empty.
22282
22283 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
22284
22285 PR target/60868
22286 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
22287 on count_exp to get mode.
22288
22289 2014-04-22 Andrew Pinski <apinski@cavium.com>
22290
22291 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22292 Handle TLS for ILP32.
22293 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
22294 (tlsie_small_<mode>): this and handle PTR.
22295 (tlsie_small_sidi): New pattern.
22296 (tlsle_small): Change to an expand to handle ILP32.
22297 (tlsle_small_<mode>): New pattern.
22298 (tlsdesc_small): Rename to ...
22299 (tlsdesc_small_<mode>): this and handle PTR.
22300
22301 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22302
22303 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
22304
22305 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22306
22307 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22308 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
22309 (aarch64_types_signed_poly_qualifiers): Likewise.
22310 (aarch64_types_unsigned_signed_qualifiers): Likewise.
22311 (aarch64_types_poly_signed_qualifiers): Likewise.
22312 (TYPES_REINTERP_SS): Type macro added.
22313 (TYPES_REINTERP_SU): Likewise.
22314 (TYPES_REINTERP_SP): Likewise.
22315 (TYPES_REINTERP_US): Likewise.
22316 (TYPES_REINTERP_PS): Likewise.
22317 (aarch64_fold_builtin): New expression folding added.
22318 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
22319 Declarations removed.
22320 (REINTERP_SS): Declarations added.
22321 (REINTERP_US): Likewise.
22322 (REINTERP_PS): Likewise.
22323 (REINTERP_SU): Likewise.
22324 (REINTERP_SP): Likewise.
22325 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
22326 (vreinterpretq_p8_f64): Likewise.
22327 (vreinterpret_p16_f64): Likewise.
22328 (vreinterpretq_p16_f64): Likewise.
22329 (vreinterpret_f32_f64): Likewise.
22330 (vreinterpretq_f32_f64): Likewise.
22331 (vreinterpret_f64_f32): Likewise.
22332 (vreinterpret_f64_p8): Likewise.
22333 (vreinterpret_f64_p16): Likewise.
22334 (vreinterpret_f64_s8): Likewise.
22335 (vreinterpret_f64_s16): Likewise.
22336 (vreinterpret_f64_s32): Likewise.
22337 (vreinterpret_f64_s64): Likewise.
22338 (vreinterpret_f64_u8): Likewise.
22339 (vreinterpret_f64_u16): Likewise.
22340 (vreinterpret_f64_u32): Likewise.
22341 (vreinterpret_f64_u64): Likewise.
22342 (vreinterpretq_f64_f32): Likewise.
22343 (vreinterpretq_f64_p8): Likewise.
22344 (vreinterpretq_f64_p16): Likewise.
22345 (vreinterpretq_f64_s8): Likewise.
22346 (vreinterpretq_f64_s16): Likewise.
22347 (vreinterpretq_f64_s32): Likewise.
22348 (vreinterpretq_f64_s64): Likewise.
22349 (vreinterpretq_f64_u8): Likewise.
22350 (vreinterpretq_f64_u16): Likewise.
22351 (vreinterpretq_f64_u32): Likewise.
22352 (vreinterpretq_f64_u64): Likewise.
22353 (vreinterpret_s64_f64): Likewise.
22354 (vreinterpretq_s64_f64): Likewise.
22355 (vreinterpret_u64_f64): Likewise.
22356 (vreinterpretq_u64_f64): Likewise.
22357 (vreinterpret_s8_f64): Likewise.
22358 (vreinterpretq_s8_f64): Likewise.
22359 (vreinterpret_s16_f64): Likewise.
22360 (vreinterpretq_s16_f64): Likewise.
22361 (vreinterpret_s32_f64): Likewise.
22362 (vreinterpretq_s32_f64): Likewise.
22363 (vreinterpret_u8_f64): Likewise.
22364 (vreinterpretq_u8_f64): Likewise.
22365 (vreinterpret_u16_f64): Likewise.
22366 (vreinterpretq_u16_f64): Likewise.
22367 (vreinterpret_u32_f64): Likewise.
22368 (vreinterpretq_u32_f64): Likewise.
22369
22370 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22371
22372 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
22373 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
22374 (vreinterpret_p8_s8): Likewise.
22375 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
22376 (vreinterpret_p8_s16): Likewise.
22377 (vreinterpret_p8_s32): Likewise.
22378 (vreinterpret_p8_s64): Likewise.
22379 (vreinterpret_p8_f32): Likewise.
22380 (vreinterpret_p8_u8): Likewise.
22381 (vreinterpret_p8_u16): Likewise.
22382 (vreinterpret_p8_u32): Likewise.
22383 (vreinterpret_p8_u64): Likewise.
22384 (vreinterpret_p8_p16): Likewise.
22385 (vreinterpretq_p8_s8): Likewise.
22386 (vreinterpretq_p8_s16): Likewise.
22387 (vreinterpretq_p8_s32): Likewise.
22388 (vreinterpretq_p8_s64): Likewise.
22389 (vreinterpretq_p8_f32): Likewise.
22390 (vreinterpretq_p8_u8): Likewise.
22391 (vreinterpretq_p8_u16): Likewise.
22392 (vreinterpretq_p8_u32): Likewise.
22393 (vreinterpretq_p8_u64): Likewise.
22394 (vreinterpretq_p8_p16): Likewise.
22395 (vreinterpret_p16_s8): Likewise.
22396 (vreinterpret_p16_s16): Likewise.
22397 (vreinterpret_p16_s32): Likewise.
22398 (vreinterpret_p16_s64): Likewise.
22399 (vreinterpret_p16_f32): Likewise.
22400 (vreinterpret_p16_u8): Likewise.
22401 (vreinterpret_p16_u16): Likewise.
22402 (vreinterpret_p16_u32): Likewise.
22403 (vreinterpret_p16_u64): Likewise.
22404 (vreinterpret_p16_p8): Likewise.
22405 (vreinterpretq_p16_s8): Likewise.
22406 (vreinterpretq_p16_s16): Likewise.
22407 (vreinterpretq_p16_s32): Likewise.
22408 (vreinterpretq_p16_s64): Likewise.
22409 (vreinterpretq_p16_f32): Likewise.
22410 (vreinterpretq_p16_u8): Likewise.
22411 (vreinterpretq_p16_u16): Likewise.
22412 (vreinterpretq_p16_u32): Likewise.
22413 (vreinterpretq_p16_u64): Likewise.
22414 (vreinterpretq_p16_p8): Likewise.
22415 (vreinterpret_f32_s8): Likewise.
22416 (vreinterpret_f32_s16): Likewise.
22417 (vreinterpret_f32_s32): Likewise.
22418 (vreinterpret_f32_s64): Likewise.
22419 (vreinterpret_f32_u8): Likewise.
22420 (vreinterpret_f32_u16): Likewise.
22421 (vreinterpret_f32_u32): Likewise.
22422 (vreinterpret_f32_u64): Likewise.
22423 (vreinterpret_f32_p8): Likewise.
22424 (vreinterpret_f32_p16): Likewise.
22425 (vreinterpretq_f32_s8): Likewise.
22426 (vreinterpretq_f32_s16): Likewise.
22427 (vreinterpretq_f32_s32): Likewise.
22428 (vreinterpretq_f32_s64): Likewise.
22429 (vreinterpretq_f32_u8): Likewise.
22430 (vreinterpretq_f32_u16): Likewise.
22431 (vreinterpretq_f32_u32): Likewise.
22432 (vreinterpretq_f32_u64): Likewise.
22433 (vreinterpretq_f32_p8): Likewise.
22434 (vreinterpretq_f32_p16): Likewise.
22435 (vreinterpret_s64_s8): Likewise.
22436 (vreinterpret_s64_s16): Likewise.
22437 (vreinterpret_s64_s32): Likewise.
22438 (vreinterpret_s64_f32): Likewise.
22439 (vreinterpret_s64_u8): Likewise.
22440 (vreinterpret_s64_u16): Likewise.
22441 (vreinterpret_s64_u32): Likewise.
22442 (vreinterpret_s64_u64): Likewise.
22443 (vreinterpret_s64_p8): Likewise.
22444 (vreinterpret_s64_p16): Likewise.
22445 (vreinterpretq_s64_s8): Likewise.
22446 (vreinterpretq_s64_s16): Likewise.
22447 (vreinterpretq_s64_s32): Likewise.
22448 (vreinterpretq_s64_f32): Likewise.
22449 (vreinterpretq_s64_u8): Likewise.
22450 (vreinterpretq_s64_u16): Likewise.
22451 (vreinterpretq_s64_u32): Likewise.
22452 (vreinterpretq_s64_u64): Likewise.
22453 (vreinterpretq_s64_p8): Likewise.
22454 (vreinterpretq_s64_p16): Likewise.
22455 (vreinterpret_u64_s8): Likewise.
22456 (vreinterpret_u64_s16): Likewise.
22457 (vreinterpret_u64_s32): Likewise.
22458 (vreinterpret_u64_s64): Likewise.
22459 (vreinterpret_u64_f32): Likewise.
22460 (vreinterpret_u64_u8): Likewise.
22461 (vreinterpret_u64_u16): Likewise.
22462 (vreinterpret_u64_u32): Likewise.
22463 (vreinterpret_u64_p8): Likewise.
22464 (vreinterpret_u64_p16): Likewise.
22465 (vreinterpretq_u64_s8): Likewise.
22466 (vreinterpretq_u64_s16): Likewise.
22467 (vreinterpretq_u64_s32): Likewise.
22468 (vreinterpretq_u64_s64): Likewise.
22469 (vreinterpretq_u64_f32): Likewise.
22470 (vreinterpretq_u64_u8): Likewise.
22471 (vreinterpretq_u64_u16): Likewise.
22472 (vreinterpretq_u64_u32): Likewise.
22473 (vreinterpretq_u64_p8): Likewise.
22474 (vreinterpretq_u64_p16): Likewise.
22475 (vreinterpret_s8_s16): Likewise.
22476 (vreinterpret_s8_s32): Likewise.
22477 (vreinterpret_s8_s64): Likewise.
22478 (vreinterpret_s8_f32): Likewise.
22479 (vreinterpret_s8_u8): Likewise.
22480 (vreinterpret_s8_u16): Likewise.
22481 (vreinterpret_s8_u32): Likewise.
22482 (vreinterpret_s8_u64): Likewise.
22483 (vreinterpret_s8_p8): Likewise.
22484 (vreinterpret_s8_p16): Likewise.
22485 (vreinterpretq_s8_s16): Likewise.
22486 (vreinterpretq_s8_s32): Likewise.
22487 (vreinterpretq_s8_s64): Likewise.
22488 (vreinterpretq_s8_f32): Likewise.
22489 (vreinterpretq_s8_u8): Likewise.
22490 (vreinterpretq_s8_u16): Likewise.
22491 (vreinterpretq_s8_u32): Likewise.
22492 (vreinterpretq_s8_u64): Likewise.
22493 (vreinterpretq_s8_p8): Likewise.
22494 (vreinterpretq_s8_p16): Likewise.
22495 (vreinterpret_s16_s8): Likewise.
22496 (vreinterpret_s16_s32): Likewise.
22497 (vreinterpret_s16_s64): Likewise.
22498 (vreinterpret_s16_f32): Likewise.
22499 (vreinterpret_s16_u8): Likewise.
22500 (vreinterpret_s16_u16): Likewise.
22501 (vreinterpret_s16_u32): Likewise.
22502 (vreinterpret_s16_u64): Likewise.
22503 (vreinterpret_s16_p8): Likewise.
22504 (vreinterpret_s16_p16): Likewise.
22505 (vreinterpretq_s16_s8): Likewise.
22506 (vreinterpretq_s16_s32): Likewise.
22507 (vreinterpretq_s16_s64): Likewise.
22508 (vreinterpretq_s16_f32): Likewise.
22509 (vreinterpretq_s16_u8): Likewise.
22510 (vreinterpretq_s16_u16): Likewise.
22511 (vreinterpretq_s16_u32): Likewise.
22512 (vreinterpretq_s16_u64): Likewise.
22513 (vreinterpretq_s16_p8): Likewise.
22514 (vreinterpretq_s16_p16): Likewise.
22515 (vreinterpret_s32_s8): Likewise.
22516 (vreinterpret_s32_s16): Likewise.
22517 (vreinterpret_s32_s64): Likewise.
22518 (vreinterpret_s32_f32): Likewise.
22519 (vreinterpret_s32_u8): Likewise.
22520 (vreinterpret_s32_u16): Likewise.
22521 (vreinterpret_s32_u32): Likewise.
22522 (vreinterpret_s32_u64): Likewise.
22523 (vreinterpret_s32_p8): Likewise.
22524 (vreinterpret_s32_p16): Likewise.
22525 (vreinterpretq_s32_s8): Likewise.
22526 (vreinterpretq_s32_s16): Likewise.
22527 (vreinterpretq_s32_s64): Likewise.
22528 (vreinterpretq_s32_f32): Likewise.
22529 (vreinterpretq_s32_u8): Likewise.
22530 (vreinterpretq_s32_u16): Likewise.
22531 (vreinterpretq_s32_u32): Likewise.
22532 (vreinterpretq_s32_u64): Likewise.
22533 (vreinterpretq_s32_p8): Likewise.
22534 (vreinterpretq_s32_p16): Likewise.
22535 (vreinterpret_u8_s8): Likewise.
22536 (vreinterpret_u8_s16): Likewise.
22537 (vreinterpret_u8_s32): Likewise.
22538 (vreinterpret_u8_s64): Likewise.
22539 (vreinterpret_u8_f32): Likewise.
22540 (vreinterpret_u8_u16): Likewise.
22541 (vreinterpret_u8_u32): Likewise.
22542 (vreinterpret_u8_u64): Likewise.
22543 (vreinterpret_u8_p8): Likewise.
22544 (vreinterpret_u8_p16): Likewise.
22545 (vreinterpretq_u8_s8): Likewise.
22546 (vreinterpretq_u8_s16): Likewise.
22547 (vreinterpretq_u8_s32): Likewise.
22548 (vreinterpretq_u8_s64): Likewise.
22549 (vreinterpretq_u8_f32): Likewise.
22550 (vreinterpretq_u8_u16): Likewise.
22551 (vreinterpretq_u8_u32): Likewise.
22552 (vreinterpretq_u8_u64): Likewise.
22553 (vreinterpretq_u8_p8): Likewise.
22554 (vreinterpretq_u8_p16): Likewise.
22555 (vreinterpret_u16_s8): Likewise.
22556 (vreinterpret_u16_s16): Likewise.
22557 (vreinterpret_u16_s32): Likewise.
22558 (vreinterpret_u16_s64): Likewise.
22559 (vreinterpret_u16_f32): Likewise.
22560 (vreinterpret_u16_u8): Likewise.
22561 (vreinterpret_u16_u32): Likewise.
22562 (vreinterpret_u16_u64): Likewise.
22563 (vreinterpret_u16_p8): Likewise.
22564 (vreinterpret_u16_p16): Likewise.
22565 (vreinterpretq_u16_s8): Likewise.
22566 (vreinterpretq_u16_s16): Likewise.
22567 (vreinterpretq_u16_s32): Likewise.
22568 (vreinterpretq_u16_s64): Likewise.
22569 (vreinterpretq_u16_f32): Likewise.
22570 (vreinterpretq_u16_u8): Likewise.
22571 (vreinterpretq_u16_u32): Likewise.
22572 (vreinterpretq_u16_u64): Likewise.
22573 (vreinterpretq_u16_p8): Likewise.
22574 (vreinterpretq_u16_p16): Likewise.
22575 (vreinterpret_u32_s8): Likewise.
22576 (vreinterpret_u32_s16): Likewise.
22577 (vreinterpret_u32_s32): Likewise.
22578 (vreinterpret_u32_s64): Likewise.
22579 (vreinterpret_u32_f32): Likewise.
22580 (vreinterpret_u32_u8): Likewise.
22581 (vreinterpret_u32_u16): Likewise.
22582 (vreinterpret_u32_u64): Likewise.
22583 (vreinterpret_u32_p8): Likewise.
22584 (vreinterpret_u32_p16): Likewise.
22585 (vreinterpretq_u32_s8): Likewise.
22586 (vreinterpretq_u32_s16): Likewise.
22587 (vreinterpretq_u32_s32): Likewise.
22588 (vreinterpretq_u32_s64): Likewise.
22589 (vreinterpretq_u32_f32): Likewise.
22590 (vreinterpretq_u32_u8): Likewise.
22591 (vreinterpretq_u32_u16): Likewise.
22592 (vreinterpretq_u32_u64): Likewise.
22593 (vreinterpretq_u32_p8): Likewise.
22594 (vreinterpretq_u32_p16): Likewise.
22595
22596 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22597
22598 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
22599 Pattern extended.
22600 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
22601 (sqabs): Likewise.
22602 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22603 (vqnegd_s64): Likewise.
22604 (vqabs_s64): Likewise.
22605 (vqabsd_s64): Likewise.
22606
22607 2014-04-22 Richard Henderson <rth@redhat.com>
22608
22609 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22610 computation to the top of the loop.
22611
22612 2014-04-22 Renlin <renlin.li@arm.com>
22613 Jiong Wang <jiong.wang@arm.com>
22614
22615 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22616 * config/aarch64/aarch64.c (aarch64_layout_frame)
22617 (aarch64_initial_elimination_offset): Likewise.
22618
22619 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
22620
22621 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22622 Fix indentation.
22623
22624 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
22625
22626 * machmode.h (bitwise_mode_for_mode): Declare.
22627 * stor-layout.h (bitwise_type_for_mode): Likewise.
22628 * stor-layout.c (bitwise_mode_for_mode): New function.
22629 (bitwise_type_for_mode): Likewise.
22630 * builtins.c (fold_builtin_memory_op): Use it instead of
22631 int_mode_for_mode and build_nonstandard_integer_type.
22632
22633 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22634
22635 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22636 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22637 (*-*-solaris2*): Simplify.
22638 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22639 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22640 *-*-solaris2.9* handling.
22641
22642 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22643 as bug.
22644 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22645 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22646 handling, simplify.
22647 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22648 * configure: Regenerate.
22649
22650 * config/i386/sol2-9.h: Remove.
22651
22652 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22653 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22654 Remove Solaris 9 references.
22655
22656 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
22657
22658 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22659 (floatuns<GPI:mode><GPF:mode>2): Remove.
22660 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22661 and floatuns conversions.
22662 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22663 and floatuns conversions.
22664 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22665 (w1,w2): New mode attributes for inequal width conversions.
22666
22667 2014-04-22 Renlin Li <Renlin.Li@arm.com>
22668
22669 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22670 the output asm format.
22671
22672 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
22673
22674 * config/aarch64/aarch64-simd.md
22675 (aarch64_cm<optab>di): Always split.
22676 (*aarch64_cm<optab>di): New.
22677 (aarch64_cmtstdi): Always split.
22678 (*aarch64_cmtstdi): New.
22679
22680 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22681
22682 PR tree-optimization/60823
22683 * omp-low.c (ipa_simd_modify_function_body): Go through
22684 all SSA_NAMEs and for those refering to vector arguments
22685 which are going to be replaced adjust SSA_NAME_VAR and,
22686 if it is a default definition, change it into a non-default
22687 definition assigned at the beginning of function from new_decl.
22688 (ipa_simd_modify_stmt_ops): Rewritten.
22689 * tree-dfa.c (set_ssa_default_def): When removing default def,
22690 check for NULL loc instead of NULL *loc.
22691
22692 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22693
22694 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22695 restrictions on core registers for DImode values in Thumb2.
22696
22697 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22698
22699 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22700 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22701
22702 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22703
22704 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22705 (*iordi_notzesidi_di): Likewise.
22706 (*iordi_notsesidi_di): Likewise.
22707
22708 2014-04-22 Ian Bolton <ian.bolton@arm.com>
22709
22710 * config/arm/arm-protos.h (tune_params): New struct members.
22711 * config/arm/arm.c: Initialise tune_params per processor.
22712 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22713 for speed, based on new tune_params.
22714
22715 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
22716
22717 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22718 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22719 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22720 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22721 * config/aarch64/arm_neon.h (vrnd_f64): Added.
22722 (vrnda_f64): Likewise.
22723 (vrndi_f64): Likewise.
22724 (vrndm_f64): Likewise.
22725 (vrndn_f64): Likewise.
22726 (vrndp_f64): Likewise.
22727 (vrndx_f64): Likewise.
22728
22729 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22730
22731 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22732 GET_MODE_SIZE argument is enum machine_mode.
22733
22734 2014-04-22 Jakub Jelinek <jakub@redhat.com>
22735
22736 PR target/60910
22737 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22738 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22739
22740 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
22741
22742 PR middle-end/60281
22743 * asan.c (asan_emit_stack_protection): Force the base to align to
22744 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
22745 appropriate bits if STRICT_ALIGNMENT.
22746 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22747 when asan is on.
22748 (expand_used_vars): Leave a space in the stack frame for alignment
22749 if STRICT_ALIGNMENT.
22750
22751 2014-04-21 David Malcolm <dmalcolm@redhat.com>
22752
22753 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22754 than a gimple.
22755 (gimple_store_p): Likewise.
22756 (gimple_assign_load_p): Likewise.
22757 (gimple_assign_cast_p): Likewise.
22758 (gimple_clobber_p): Likewise.
22759
22760 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22761 rather than a gimple.
22762 (gimple_assign_cast_p): Likewise.
22763
22764 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22765
22766 PR target/60735
22767 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22768 If mode is DDmode and TARGET_E500_DOUBLE allow move.
22769
22770 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22771 more debug information for E500 if -mdebug=reg.
22772
22773 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
22774
22775 PR target/60909
22776 * config/i386/i386.c (ix86_expand_builtin)
22777 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22778 register for target RTX.
22779 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22780
22781 2014-04-18 Cong Hou <congh@google.com>
22782
22783 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22784 the widen-mult pattern by handling two operands with different sizes,
22785 and operands whose size is smaller than half of the result type.
22786
22787 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22788
22789 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22790 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22791 (do_estimate_edge_time): Compute it.
22792 * ipa-inline.c (want_inline_small_function_p): Bypass
22793 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22794
22795 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
22796
22797 * ipa-inline.c (spec_rem): New static variable.
22798 (dump_overall_stats): New function.
22799 (dump_inline_stats): New function.
22800
22801 2014-04-18 Richard Henderson <rth@redhat.com>
22802
22803 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22804 to GET_MODE_SIZE, not a reg_class_t.
22805
22806 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22807
22808 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22809 (vsx_xxmrglw_<mode>): Likewise.
22810
22811 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
22812
22813 PR target/60876
22814 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22815 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22816 (rs6000_init_hard_regno_mode_ok): Likewise.
22817
22818 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
22819
22820 * ipa-inline.c (inline_small_functions): Account only non-cold
22821 functions.
22822 * doc/invoke.texi (inline-unit-growth): Update documentation.
22823
22824 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
22825
22826 * config/rs6000/rs6000.md (addti3, subti3): New.
22827
22828 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
22829
22830 PR target/60863
22831 * config/i386/i386.c (ix86_expand_clear): Remove outdated
22832 comment. Check optimize_insn_for_size_p instead of
22833 optimize_insn_for_speed_p.
22834
22835 2014-04-17 Martin Jambor <mjambor@suse.cz>
22836
22837 * gimple-iterator.c (gsi_start_edge): New function.
22838 * gimple-iterator.h (gsi_start_edge): Declare.
22839 * tree-sra.c (single_non_eh_succ): New function.
22840 (disqualify_ops_if_throwing_stmt): Renamed to
22841 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
22842 having one non-EH successor BB.
22843 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22844 generate loads into replacements.
22845 (sra_modify_assign): Likewise and and also use the simple path for
22846 such statements.
22847 (sra_modify_function_body): Commit statements on edges.
22848
22849 2014-04-17 Richard Biener <rguenther@suse.de>
22850
22851 PR middle-end/60849
22852 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22853 comparison results and add clarifying comment.
22854
22855 2014-04-17 Jakub Jelinek <jakub@redhat.com>
22856
22857 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22858 (blank_mode): Initialize it.
22859 (emit_mode_size_inline, emit_mode_nunits_inline,
22860 emit_mode_inner_inline): New functions.
22861 (emit_insn_modes_h): Call them and surround their output with
22862 #if GCC_VERSION >= 4001 ... #endif.
22863 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22864 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22865 mode_* arrays if the argument is __builtin_constant_p.
22866 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22867 is enum machine_mode.
22868
22869 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22870
22871 * passes.c (opt_pass::execute): Adjust.
22872 (pass_manager::execute_pass_mode_switching): Likewise.
22873 (early_local_passes::execute): Likewise.
22874 (execute_one_pass): Pass cfun to the pass's execute method.
22875 * tree-pass.h (opt_pass::execute): Add function * argument.
22876 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22877 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22878 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22879 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22880 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22881 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22882 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22883 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22884 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22885 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22886 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22887 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22888 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22889 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22890 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22891 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22892 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22893 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22894 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22895 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22896 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22897 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22898 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22899 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22900 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22901 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22902 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22903 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22904 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22905 Adjust.
22906
22907 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22908
22909 * passes.c (opt_pass::gate): Take function * argument.
22910 (gate_all_early_local_passes): Merge into
22911 (early_local_passes::gate): this.
22912 (gate_all_early_optimizations): Merge into
22913 (all_early_optimizations::gate): this.
22914 (gate_all_optimizations): Mege into
22915 (all_optimizations::gate): this.
22916 (gate_all_optimizations_g): Merge into
22917 (all_optimizations_g::gate): this.
22918 (gate_rest_of_compilation): Mege into
22919 (rest_of_compilation::gate): this.
22920 (gate_postreload): Merge into
22921 (postreload::gate): this.
22922 (dump_one_pass): Pass cfun to the pass's gate method.
22923 (execute_ipa_summary_passes): Likewise.
22924 (execute_one_pass): Likewise.
22925 (ipa_write_summaries_2): Likewise.
22926 (ipa_write_optimization_summaries_1): Likewise.
22927 (ipa_read_summaries_1): Likewise.
22928 (ipa_read_optimization_summaries_1): Likewise.
22929 (execute_ipa_stmt_fixups): Likewise.
22930 * tree-pass.h (opt_pass::gate): Add function * argument.
22931 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22932 combine-stack-adj.c, combine.c, compare-elim.c,
22933 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22934 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22935 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22936 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
22937 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22938 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22939 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22940 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22941 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22942 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22943 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22944 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22945 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22946 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22947 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22948 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22949 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22950 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22951 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22952 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22953 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22954 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22955 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22956 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
22957 var-tracking.c, vtable-verify.c, web.c: Adjust.
22958
22959 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22960
22961 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
22962 * configure: Regenerate.
22963
22964 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
22965
22966 * passes.c (dump_one_pass): don't check pass->has_gate.
22967 (execute_ipa_summary_passes): Likewise.
22968 (execute_one_pass): Likewise.
22969 (ipa_write_summaries_2): Likewise.
22970 (ipa_write_optimization_summaries_1): Likewise.
22971 (ipa_read_optimization_summaries_1): Likewise.
22972 (execute_ipa_stmt_fixups): Likewise.
22973 * tree-pass.h (pass_data::has_gate): Remove.
22974 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22975 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22976 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22977 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22978 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22979 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22980 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22981 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22982 gimple-low.c, gimple-ssa-isolate-paths.c,
22983 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22984 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
22985 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22986 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
22987 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
22988 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
22989 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
22990 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
22991 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
22992 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22993 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22994 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22995 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22996 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22997 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22998 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22999 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
23000 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
23001 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
23002 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
23003 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
23004 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
23005 Adjust.
23006
23007 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23008
23009 * pass_manager.h (pass_manager::register_dump_files_1): Remove
23010 declaration.
23011 * passes.c (pass_manager::register_dump_files_1): Merge into
23012 (pass_manager::register_dump_files): this, and remove its handling of
23013 properties since the pass always has the properties anyway.
23014 (pass_manager::pass_manager): Adjust.
23015
23016 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
23017
23018 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
23019 * passes.c (pass_manager::register_dump_files_1): Remove dead code
23020 dealing with properties.
23021 (pass_manager::register_dump_files): Adjust.
23022
23023 2014-03-20 Mark Wielaard <mjw@redhat.com>
23024
23025 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
23026 then represent the bound as normal constant value.
23027
23028 2014-04-17 Jakub Jelinek <jakub@redhat.com>
23029
23030 PR target/60847
23031 Forward port from 4.8 branch
23032 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
23033
23034 * config/i386/bmiintrin.h (_blsi_u32): New.
23035 (_blsi_u64): Ditto.
23036 (_blsr_u32): Ditto.
23037 (_blsr_u64): Ditto.
23038 (_blsmsk_u32): Ditto.
23039 (_blsmsk_u64): Ditto.
23040 (_tzcnt_u32): Ditto.
23041 (_tzcnt_u64): Ditto.
23042
23043 2014-04-17 Kito Cheng <kito@0xlab.org>
23044
23045 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
23046
23047 2014-04-17 Richard Biener <rguenther@suse.de>
23048
23049 PR middle-end/60849
23050 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
23051 boolean results for comparisons.
23052
23053 2014-04-17 Richard Biener <rguenther@suse.de>
23054
23055 PR tree-optimization/60836
23056 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
23057 initial PHI args to be gimple values.
23058
23059 2014-04-17 Richard Biener <rguenther@suse.de>
23060
23061 PR tree-optimization/60841
23062 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
23063 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
23064 of stmts to SLP build.
23065 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
23066 (vect_analyze_slp): Likewise.
23067 (vect_analyze_slp_instance): Likewise.
23068 (vect_build_slp_tree): Limit overall SLP tree growth.
23069 * tree-vectorizer.h (vect_analyze_data_refs,
23070 vect_analyze_slp): Adjust prototypes.
23071
23072 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23073
23074 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
23075 Silvermont.
23076
23077 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23078
23079 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
23080 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
23081 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
23082 for TARGET_SLOW_PSHUFB
23083
23084 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
23085
23086 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
23087 * config/i386/i386.c (intel_cost): Ditto.
23088
23089 2014-04-17 Joey Ye <joey.ye@arm.com>
23090
23091 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
23092
23093 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23094
23095 * opts.c (common_handle_option): Disable -fipa-reference coorectly
23096 with -fuse-profile.
23097
23098 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23099
23100 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
23101 (type_all_derivations_known_p): New predicate.
23102 (type_all_ctors_visible_p): New predicate.
23103 (type_possibly_instantiated_p): New predicate.
23104 (get_odr_type): Compute all_derivations_known.
23105 (dump_odr_type): Dump the flag.
23106 (maybe_record_type): Cleanup.
23107 (record_target_from_binfo): Add bases_to_consider array;
23108 record bases for types w/o instances and skip CXX destructor.
23109 (possible_polymorphic_call_targets_1): Add bases_to_consider
23110 and consider_construction parameters; check if type may have instance.
23111 (get_polymorphic_call_info): Set maybe_in_construction to true
23112 when we know nothing.
23113 (record_targets_from_bases): Skip CXX destructors; they are
23114 never called for types in construction.
23115 (possible_polymorphic_call_targets): Do not record target when
23116 type may not have instance.
23117
23118 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
23119
23120 PR ipa/60854
23121 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
23122 external aliases alive, too.
23123
23124 2014-04-16 Andrew Pinski <apinski@cavium.com>
23125
23126 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
23127 definition.
23128
23129 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23130
23131 * final.c (compute_alignments): Do not apply loop alignment to a block
23132 falling through to the exit.
23133
23134 2014-04-16 Catherine Moore <clm@codesourcery.com>
23135
23136 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
23137 Adjust constraints for microMIPS store patterns.
23138
23139 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23140
23141 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
23142
23143 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
23144
23145 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
23146 (append_use): Run at -O0.
23147 (append_vdef): Likewise.
23148 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
23149 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
23150
23151 2014-04-16 Jakub Jelinek <jakub@redhat.com>
23152
23153 PR tree-optimization/60844
23154 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
23155 (propagate_op_to_single_use, remove_visited_stmt_chain,
23156 linearize_expr, repropagate_negates, reassociate_bb): Use it
23157 instead of gsi_remove.
23158
23159 2014-04-16 Martin Jambor <mjambor@suse.cz>
23160
23161 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
23162 ipa_transforms_to_apply.
23163 (cgraph_function_versioning): Assert that old_node has empty
23164 ipa_transforms_to_apply.
23165 * trans-mem.c (ipa_tm_create_version): Likewise.
23166 * tree-inline.c (tree_function_versioning): Do not duplicate
23167 ipa_transforms_to_apply.
23168
23169 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23170
23171 PR target/60817
23172 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
23173 x86_64-*-* cases.
23174 Pass necessary as flags on 64-bit Solaris/x86.
23175 Use lowercase relocs for x86_64-*-*.
23176 * configure: Regenerate.
23177
23178 2014-04-15 Jan Hubicka <jh@suse.cz>
23179
23180 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
23181 (maybe_record_node, likely_target_p): Use it.
23182
23183 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23184
23185 PR target/60839
23186 Revert following patch
23187
23188 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23189
23190 PR target/60735
23191 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23192 software floating point or no floating point registers, do not
23193 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23194 in GPRs that occurs after we tested for GPRs that would never be
23195 true.
23196
23197 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23198 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23199 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23200 specifically allow DDmode, since that does not use the SPE SIMD
23201 instructions.
23202
23203 2014-03-21 Mark Wielaard <mjw@redhat.com>
23204
23205 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
23206 as unsigned or int depending on type and value used.
23207
23208 2014-04-15 Richard Biener <rguenther@suse.de>
23209
23210 PR rtl-optimization/56965
23211 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
23212 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
23213 ... here.
23214 * alias.c (true_dependence_1): Do not call
23215 nonoverlapping_component_refs_p.
23216 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
23217 nonoverlapping_component_refs_p.
23218 (indirect_refs_may_alias_p): Likewise.
23219
23220 2014-04-15 Teresa Johnson <tejohnson@google.com>
23221
23222 * cfg.c (dump_bb_info): Fix flags check.
23223 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
23224
23225 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23226
23227 PR rtl-optimization/60663
23228 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
23229 avoid 0 cost.
23230
23231 2014-04-15 Richard Biener <rguenther@suse.de>
23232
23233 * lto-streamer.h (LTO_major_version): Bump to 4.
23234
23235 2014-04-15 Richard Biener <rguenther@suse.de>
23236
23237 * common.opt (lto_partition_model): New enum.
23238 (flto-partition=): Merge separate options with a single with argument,
23239 add -flto-partition=one support.
23240 * flag-types.h (enum lto_partition_model): Declare.
23241 * opts.c (finish_options): Remove duplicate -flto-partition=
23242 option check.
23243 * lto-wrapper.c (run_gcc): Adjust.
23244
23245 2014-04-15 Richard Biener <rguenther@suse.de>
23246
23247 * alias.c (ncr_compar): New function.
23248 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
23249
23250 2014-04-15 Richard Biener <rguenther@suse.de>
23251
23252 * alias.c (record_component_aliases): Do not walk BINFOs.
23253
23254 2014-04-15 Richard Biener <rguenther@suse.de>
23255
23256 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23257 Add struct function argument and adjust.
23258 (find_func_aliases_for_call): Likewise.
23259 (find_func_aliases): Likewise.
23260 (find_func_clobbers): Likewise.
23261 (intra_create_variable_infos): Likewise.
23262 (compute_points_to_sets): Likewise.
23263 (ipa_pta_execute): Adjust. Do not push/pop cfun.
23264
23265 2014-04-15 Richard Biener <rguenther@suse.de>
23266
23267 * tree.c (iterative_hash_expr): Use enum tree_code_class
23268 to store TREE_CODE_CLASS.
23269 (tree_block): Likewise.
23270 (tree_set_block): Likewise.
23271 * tree.h (fold_build_pointer_plus_loc): Use
23272 convert_to_ptrofftype_loc.
23273
23274 2014-04-15 Jakub Jelinek <jakub@redhat.com>
23275
23276 PR plugins/59335
23277 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
23278 added in 4.9.
23279
23280 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
23281
23282 * cfgloop.h (struct loop): Move force_vectorize down.
23283 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
23284 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
23285 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
23286 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
23287 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
23288 * tree-core.h (enum annot_expr_kind): Add new kind values.
23289 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
23290 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
23291 kinds.
23292 * tree.def (ANNOTATE_EXPR): Tweak comment.
23293
23294 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23295
23296 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
23297 cxa_pure_virtual).
23298
23299 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
23300
23301 * tree.h (TYPE_IDENTIFIER): Declare.
23302 * tree.c (subrange_type_for_debug_p): Use it.
23303 * godump.c (go_format_type): Likewise.
23304 * dwarf2out.c (is_cxx_auto, modified_type_die,
23305 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
23306 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
23307
23308 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23309
23310 PR lto/60820
23311 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
23312
23313 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
23314
23315 * config/i386/i386.c (examine_argument): Return bool. Return true if
23316 parameter should be passed in memory.
23317 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
23318 (construct_container): Update calls to examine_argument.
23319 (function_arg_advance_64): Ditto.
23320 (return_in_memory_32): Merge with ix86_return_in_memory.
23321 (return_in_memory_64): Ditto.
23322 (return_in_memory_ms_64): Ditto.
23323
23324 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
23325
23326 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
23327 * coverage.c (coverage_compute_profile_id): Handle externally visible
23328 symbols.
23329
23330 2014-04-14 Martin Jambor <mjambor@suse.cz>
23331
23332 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
23333 DECL_DISREGARD_INLINE_LIMITS functions.
23334
23335 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23336
23337 PR target/60827
23338 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
23339
23340 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
23341
23342 PR target/60827
23343 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
23344 optimize_insn_for_speed_p instead of
23345 optimize_function_for_speed_p.
23346
23347 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
23348
23349 * doc/invoke.texi (free): Document AArch64.
23350
23351 2014-04-14 Richard Biener <rguenther@suse.de>
23352
23353 PR tree-optimization/60042
23354 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
23355 (insert_into_preds_of_block): Do not prevent PHI insertion
23356 for REFERENCE exprs here ...
23357 (eliminate_dom_walker::before_dom_children): ... but prevent
23358 their use here under similar conditions when applied to the
23359 IL after PRE optimizations.
23360
23361 2014-04-14 Richard Biener <rguenther@suse.de>
23362
23363 * passes.def: Move early points-to after early SRA.
23364
23365 2014-04-14 Richard Biener <rguenther@suse.de>
23366
23367 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
23368 check for which sign-changes we allow when forwarding
23369 a converted value into a switch.
23370
23371 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23372
23373 * stor-layout.c (place_field): Finalize non-constant offset for the
23374 field, if any.
23375
23376 2014-04-14 Richard Biener <rguenther@suse.de>
23377
23378 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
23379 as argument.
23380 (expand_switch_using_bit_tests_p): Likewise.
23381 (process_switch): Compute and pass on speed_p based on the
23382 switch stmt.
23383 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
23384 optimize_bb_for_speed_p.
23385
23386 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
23387
23388 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
23389 * function.h (struct function): Rename has_force_vect_loops into
23390 has_force_vectorize_loops.
23391 * lto-streamer-in.c (input_cfg): Adjust for renaming.
23392 (input_struct_function_base): Likewise.
23393 * lto-streamer-out.c (output_cfg): Likewise.
23394 (output_struct_function_base): Likewise.
23395 * omp-low.c (expand_omp_simd): Likewise.
23396 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23397 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
23398 (version_loop_for_if_conversion): Likewise.
23399 (tree_if_conversion): Likewise.
23400 (main_tree_if_conversion): Likewise.
23401 (gate_tree_if_conversion): Likewise.
23402 * tree-inline.c (copy_loops): Likewise.
23403 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
23404 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
23405 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
23406 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
23407 * tree-vectorizer.c (vectorize_loops): Likewise.
23408 * tree-vectorizer.h (unlimited_cost_model): Likewise.
23409
23410 2014-04-14 Richard Biener <rguenther@suse.de>
23411
23412 PR lto/60720
23413 * lto-streamer-out.c (wrap_refs): New function.
23414 (lto_output): Wrap symbol references in global initializes in
23415 type-preserving MEM_REFs.
23416
23417 2014-04-14 Christian Bruel <christian.bruel@st.com>
23418
23419 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
23420
23421 2014-04-14 Christian Bruel <christian.bruel@st.com>
23422
23423 * config/sh/sh.md (setmemqi): New expand pattern.
23424 * config/sh/sh.h (CLEAR_RATIO): Define.
23425 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
23426 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
23427
23428 2014-04-14 Richard Biener <rguenther@suse.de>
23429
23430 PR middle-end/55022
23431 * fold-const.c (negate_expr_p): Don't negate directional rounding
23432 division.
23433 (fold_negate_expr): Likewise.
23434
23435 2014-04-14 Richard Biener <rguenther@suse.de>
23436
23437 PR tree-optimization/59817
23438 PR tree-optimization/60453
23439 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
23440 recursion to catch all CHRECs in the scalar evolution and restrict
23441 the predicate for the remains appropriately.
23442
23443 2014-04-12 Catherine Moore <clm@codesourcery.com>
23444
23445 * config/mips/constraints.md: Add new register constraint "kb".
23446 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
23447 (*movhi_internal): Likewise.
23448 (*movqi_internal): Likewise.
23449 * config/mips/mips.h (M16_STORE_REGS): New register class.
23450 (REG_CLASS_NAMES): Add M16_STORE_REGS.
23451 (REG_CLASS_CONTENTS): Likewise.
23452 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
23453
23454 2014-04-11 Tobias Burnus <burnus@net-b.de>
23455
23456 PR c/60194
23457 * doc/invoke.texi (-Wformat-signedness): Document it.
23458 (Wformat=2): Mention that this enables -Wformat-signedness.
23459
23460 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23461
23462 * common/config/epiphany/epiphany-common.c
23463 (epiphany_option_optimization_table): Enable section anchors by
23464 default at -O1 or higher.
23465 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
23466 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
23467 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
23468 carries no extra cost.
23469 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
23470 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
23471 * config/epiphany/predicates.md (memclob_operand): New predicate.
23472 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
23473 Use memclob_operand predicate and X constraint for operand 3.
23474
23475 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23476
23477 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
23478 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
23479 its operands.
23480
23481 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
23482
23483 PR rtl-optimization/60651
23484 * mode-switching.c (optimize_mode_switching): Make sure to emit
23485 sets of a lower numbered entity before sets of a higher numbered
23486 entity to a mode of the same or lower priority.
23487 When creating a seginfo for a basic block that starts with a code
23488 label, move the insertion point past the code label.
23489 (new_seginfo): Document and enforce requirement that
23490 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
23491 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
23492 * doc/tm.texi: Regenerate.
23493
23494 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
23495
23496 PR target/60811
23497 * config/arc/arc.c (arc_save_restore): Fix assert typo.
23498
23499 2013-04-11 Jakub Jelinek <jakub@redhat.com>
23500
23501 * BASE-VER: Set to 4.10.0.
23502
23503 2014-04-11 Tobias Burnus <burnus@net-b.de>
23504
23505 PR other/59055
23506 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
23507 * doc/gcc.texi (Service): Update description in the @menu
23508 * doc/invoke.texi (Option Summary): Remove misplaced and
23509 duplicated @menu.
23510
23511 2014-04-11 Steve Ellcey <sellcey@mips.com>
23512 Jakub Jelinek <jakub@redhat.com>
23513
23514 PR middle-end/60556
23515 * expr.c (convert_move): Use emit_store_flag_force instead of
23516 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
23517 argument to it.
23518
23519 2014-04-11 Richard Biener <rguenther@suse.de>
23520
23521 PR middle-end/60797
23522 * varasm.c (assemble_alias): Avoid endless error reporting
23523 recursion by setting TREE_ASM_WRITTEN.
23524
23525 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23526
23527 * config/s390/s390.md: Add a splitter for NOT rtx.
23528
23529 2014-04-11 Jakub Jelinek <jakub@redhat.com>
23530
23531 PR rtl-optimization/60663
23532 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
23533
23534 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
23535 Jakub Jelinek <jakub@redhat.com>
23536
23537 PR lto/60567
23538 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
23539 flag from decl_node to node.
23540
23541 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23542
23543 PR debug/60655
23544 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
23545 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
23546 ameliorating the cases where it can be.
23547
23548 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
23549
23550 Revert
23551 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23552
23553 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23554 (loadsync_<mode>): Change mode.
23555 (load_quadpti, store_quadpti): New.
23556 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23557 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23558 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
23559
23560 2014-04-09 Cong Hou <congh@google.com>
23561
23562 PR testsuite/60773
23563 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
23564 documentation.
23565
23566 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23567
23568 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
23569 instead of vnor to exploit possible fusion opportunity in the
23570 future.
23571 (altivec_expand_vec_perm_const_le): Likewise.
23572
23573 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
23574
23575 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23576 (loadsync_<mode>): Change mode.
23577 (load_quadpti, store_quadpti): New.
23578 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23579 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23580
23581 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
23582
23583 PR target/60763
23584 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
23585 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
23586 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
23587
23588 2014-04-08 Richard Biener <rguenther@suse.de>
23589
23590 PR middle-end/60706
23591 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
23592 a 64bit widest int print double-int similar to on HWI64 hosts.
23593
23594 2014-04-08 Richard Biener <rguenther@suse.de>
23595
23596 PR tree-optimization/60785
23597 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
23598 default defs properly.
23599
23600 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
23601
23602 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23603 (Weffc++): Likewise.
23604
23605 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
23606
23607 * ipa-devirt.c (maybe_record_node): When node is not recorded,
23608 set completep to false rather than true.
23609
23610 2014-04-07 Douglas B Rupp <rupp@adacore.com>
23611
23612 PR target/60504
23613 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23614 ARM_TARGET2_DWARF_FORMAT.
23615
23616 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
23617
23618 PR target/60609
23619 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23620 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23621 ADDR_DIFF_VEC.
23622
23623 2014-04-07 Richard Biener <rguenther@suse.de>
23624
23625 PR tree-optimization/60766
23626 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23627 (may_eliminate_iv): Convert cand_value_at result to desired type.
23628
23629 2014-04-07 Jason Merrill <jason@redhat.com>
23630
23631 PR c++/60731
23632 * common.opt (-fno-gnu-unique): Add.
23633 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23634
23635 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23636
23637 * haifa-sched.c: Fix outdated function reference and minor
23638 grammar errors in introductory comment.
23639
23640 2014-04-07 Richard Biener <rguenther@suse.de>
23641
23642 PR middle-end/60750
23643 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23644 for noreturn calls.
23645 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23646
23647 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
23648
23649 PR debug/55794
23650 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23651 size accounting for thunks.
23652 (pa_asm_output_mi_thunk): Use final_start_function() and
23653 final_end_function() to output function start and end directives.
23654
23655 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
23656
23657 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23658 device specific ISA/ feature information. Remove short_sp and
23659 errata_skip ds. Add avr_device_specific_features enum to have device
23660 specific info.
23661 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23662 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23663 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23664 updated device specific info.
23665 * config/avr/avr-mcus.def: Merge device specific details to
23666 dev_attribute field.
23667 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23668 errata_skip.
23669 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23670 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23671 assembler if RMW isa supported by current device.
23672 * config/avr/genmultilib.awk: Update as device info structure changed.
23673 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23674
23675 2014-04-04 Cong Hou <congh@google.com>
23676
23677 PR tree-optimization/60656
23678 * tree-vect-stmts.c (supportable_widening_operation):
23679 Fix a bug that elements in a vector with vect_used_by_reduction
23680 property are incorrectly reordered when the operation on it is not
23681 consistant with the one in reduction operation.
23682
23683 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
23684
23685 PR rtl-optimization/60155
23686 * gcse.c (record_set_data): New function.
23687 (single_set_gcse): New function.
23688 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23689 (hoist_code): Likewise.
23690 (get_pressure_class_and_nregs): Likewise.
23691
23692 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
23693
23694 * explow.c (probe_stack_range): Emit a final optimization blockage.
23695
23696 2014-04-04 Anthony Green <green@moxielogic.com>
23697
23698 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23699 typos.
23700
23701 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
23702
23703 PR ipa/59626
23704 * lto-cgraph.c (input_overwrite_node): Check that partitioning
23705 flags are set only during streaming.
23706 * ipa.c (process_references, walk_polymorphic_call_targets,
23707 symtab_remove_unreachable_nodes): Drop bodies of always inline
23708 after early inlining.
23709 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23710
23711 2014-04-04 Jakub Jelinek <jakub@redhat.com>
23712 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23713
23714 PR debug/60655
23715 * dwarf2out.c (const_ok_for_output_1): Reject expressions
23716 containing a NOT.
23717
23718 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23719
23720 PR bootstrap/60743
23721 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23722 duration.
23723 (cortex_a53_fdivd): Likewise.
23724
23725 2014-04-04 Martin Jambor <mjambor@suse.cz>
23726
23727 PR ipa/60640
23728 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23729 Adjust all callers.
23730 * cgraph.c (clone_of_p): Also return true if thunks match.
23731 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23732 cgraph_function_or_thunk_node and an obsolete comment.
23733 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23734 file.
23735 (build_function_decl_skip_args): Likewise.
23736 (set_new_clone_decl_and_node_flags): New function.
23737 (duplicate_thunk_for_node): Likewise.
23738 (redirect_edge_duplicating_thunks): Likewise.
23739 (cgraph_clone_node): New parameter args_to_skip, pass it to
23740 redirect_edge_duplicating_thunks which is called instead of
23741 cgraph_redirect_edge_callee.
23742 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23743 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23744
23745 2014-04-04 Jeff Law <law@redhat.com>
23746
23747 PR target/60657
23748 * config/arm/predicates.md (const_int_I_operand): New predicate.
23749 (const_int_M_operand): Similarly.
23750 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23751 const_int_operand.
23752 (insv_t2, extv_reg, extzv_t2): Likewise.
23753 (load_multiple_with_writeback): Similarly for const_int_I_operand.
23754 (pop_multiple_with_writeback_and_return): Likewise.
23755 (vfp_pop_multiple_with_writeback): Likewise
23756
23757 2014-04-04 Richard Biener <rguenther@suse.de>
23758
23759 PR ipa/60746
23760 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23761 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23762 non-GIMPLE_LABELs.
23763 * gimplify.h (gimple_add_tmp_var_fn): Declare.
23764 * gimplify.c (gimple_add_tmp_var_fn): New function.
23765 * gimple-expr.h (create_tmp_reg_fn): Declare.
23766 * gimple-expr.c (create_tmp_reg_fn): New function.
23767 * gimple-low.c (record_vars_into): Don't change cfun.
23768 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23769 code generation without cfun.
23770
23771 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
23772
23773 PR bootstrap/60719
23774 * Makefile.in (install-driver): Fix shell scripting.
23775
23776 2014-04-03 Cong Hou <congh@google.com>
23777
23778 PR tree-optimization/60505
23779 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23780 threshold of number of iterations below which no vectorization
23781 will be done.
23782 * tree-vect-loop.c (new_loop_vec_info):
23783 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23784 * tree-vect-loop.c (vect_analyze_loop_operations):
23785 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23786 * tree-vect-loop.c (vect_transform_loop):
23787 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23788 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23789 of iterations of the loop and see if we should build the epilogue.
23790
23791 2014-04-03 Richard Biener <rguenther@suse.de>
23792
23793 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23794 (streamer_tree_cache_create): Adjust.
23795 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23796 to allow optional nodes array.
23797 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23798 (streamer_tree_cache_append): Likewise.
23799 (streamer_tree_cache_create): Create nodes array optionally
23800 as specified by parameter.
23801 * lto-streamer-out.c (create_output_block): Avoid maintaining
23802 the node array in the writer cache.
23803 (DFS_write_tree): Remove assertion.
23804 (produce_asm_for_decls): Free the out decl state hash table early.
23805 * lto-streamer-in.c (lto_data_in_create): Adjust for
23806 streamer_tree_cache_create prototype change.
23807
23808 2014-04-03 Richard Biener <rguenther@suse.de>
23809
23810 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23811 set TREE_CHAIN to NULL_TREE.
23812
23813 2014-04-03 Richard Biener <rguenther@suse.de>
23814
23815 PR tree-optimization/60740
23816 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23817 over all GIMPLE_COND operands.
23818
23819 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
23820
23821 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23822 (Weffc++): Remove Scott's numbering, merge lists and reference
23823 Wnon-virtual-dtor.
23824
23825 2014-04-03 Nick Clifton <nickc@redhat.com>
23826
23827 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23828 properly.
23829
23830 2014-04-03 Martin Jambor <mjambor@suse.cz>
23831
23832 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23833 mention gcc_unreachable before failing.
23834 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23835 removed symbols.
23836
23837 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
23838
23839 PR ipa/60659
23840 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23841 inconsistent code and instead mark the context inconsistent.
23842 (possible_polymorphic_call_targets): For inconsistent contexts
23843 return empty complete list.
23844
23845 2014-04-02 Anthony Green <green@moxielogic.com>
23846
23847 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23848 (extendqisi2, extendhisi2): Define.
23849 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23850 (WCHAR_TYPE): Change to unsigned int.
23851
23852 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23853
23854 PR tree-optimization/60733
23855 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23856 insertion point for PHI candidates to be the end of the feeding
23857 block for the PHI argument.
23858
23859 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
23860
23861 PR rtl-optimization/60650
23862 * lra-constraints.c (process_alt_operands): Decrease reject for
23863 earlyclobber matching.
23864
23865 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23866
23867 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23868
23869 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23870
23871 * config/spu/spu.c (pad_bb): Do not crash when the last
23872 insn is CODE_FOR_blockage.
23873
23874 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23875
23876 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23877 lies outside the target mode.
23878
23879 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23880
23881 PR target/60735
23882 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23883 software floating point or no floating point registers, do not
23884 allow any type in the FPRs. Eliminate a test for SPE SIMD types
23885 in GPRs that occurs after we tested for GPRs that would never be
23886 true.
23887
23888 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23889 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23890 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
23891 specifically allow DDmode, since that does not use the SPE SIMD
23892 instructions.
23893
23894 2014-04-02 Richard Biener <rguenther@suse.de>
23895
23896 PR middle-end/60729
23897 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23898 MODE_INTs. Properly use negv_optab.
23899 (expand_abs): Likewise.
23900
23901 2014-04-02 Richard Biener <rguenther@suse.de>
23902
23903 PR bootstrap/60719
23904 * Makefile.in (install-driver): Guard extra installs with special
23905 names properly.
23906
23907 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23908
23909 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23910 Document vec_vgbbd.
23911
23912 2014-04-01 Richard Henderson <rth@redhat.com>
23913
23914 PR target/60704
23915 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23916 alternative enabled before register allocation.
23917
23918 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
23919
23920 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23921 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23922 typo.
23923 (nios2_large_got_address): Remove unneeded 'sym' parameter.
23924 (nios2_got_address): Update nios2_large_got_address call site.
23925 (nios2_delegitimize_address): New function.
23926 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23927 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23928 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23929
23930 2014-04-01 Martin Husemann <martin@duskware.de>
23931
23932 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23933 for -mabi=32.
23934
23935 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
23936
23937 PR rtl-optimization/60604
23938 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23939 check from register_operand.
23940 (register_operand): Redefine in terms of general_operand.
23941 (nonmemory_operand): Use register_operand for the non-constant cases.
23942
23943 2014-04-01 Richard Biener <rguenther@suse.de>
23944
23945 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23946
23947 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
23948
23949 * doc/invoke.texi (mapp-regs): Clarify.
23950
23951 2014-03-31 Ulrich Drepper <drepper@gmail.com>
23952
23953 * config/i386/avx512fintrin.h (__v32hi): Define type.
23954 (__v64qi): Likewise.
23955 (_mm512_set1_epi8): Define.
23956 (_mm512_set1_epi16): Define.
23957 (_mm512_set4_epi32): Define.
23958 (_mm512_set4_epi64): Define.
23959 (_mm512_set4_pd): Define.
23960 (_mm512_set4_ps): Define.
23961 (_mm512_setr4_epi64): Define.
23962 (_mm512_setr4_epi32): Define.
23963 (_mm512_setr4_pd): Define.
23964 (_mm512_setr4_ps): Define.
23965 (_mm512_setzero_epi32): Define.
23966
23967 2014-03-31 Martin Jambor <mjambor@suse.cz>
23968
23969 PR middle-end/60647
23970 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
23971 callsite_arguments_match_p. Updated all callers. Also check types of
23972 corresponding formal parameters and actual arguments.
23973 (not_all_callers_have_enough_arguments_p) Renamed to
23974 some_callers_have_mismatched_arguments_p.
23975
23976 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
23977
23978 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
23979
23980 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
23981
23982 PR target/60034
23983 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
23984 section anchor.
23985
23986 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
23987
23988 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
23989 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
23990 Split out
23991 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
23992 Use FMAMODE_NOVF512 mode iterator.
23993 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
23994 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
23995 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
23996 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
23997 Split out
23998 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
23999 Use VF_128_256 mode iterator.
24000 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
24001 Ditto.
24002
24003 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24004
24005 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
24006 static chain if needed.
24007
24008 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24009
24010 PR target/60697
24011 * lra-constraints.c (index_part_to_reg): New.
24012 (process_address): Use it.
24013
24014 2014-03-27 Jeff Law <law@redhat.com>
24015 Jakub Jelinek <jakub@redhat.com>
24016
24017 PR target/60648
24018 * expr.c (do_tablejump): Use simplify_gen_binary rather than
24019 gen_rtx_{PLUS,MULT} to build up the address expression.
24020
24021 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
24022 creating non-canonical RTL.
24023
24024 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24025
24026 PR ipa/60243
24027 * ipa-inline.c (want_inline_small_function_p): Short circuit large
24028 functions; reorganize to make cheap checks first.
24029 (inline_small_functions): Do not estimate growth when dumping;
24030 it is expensive.
24031 * ipa-inline.h (inline_summary): Add min_size.
24032 (growth_likely_positive): New function.
24033 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
24034 (set_cond_stmt_execution_predicate): Cleanup.
24035 (estimate_edge_size_and_time): Compute min_size.
24036 (estimate_calls_size_and_time): Likewise.
24037 (estimate_node_size_and_time): Likewise.
24038 (inline_update_overall_summary): Update min_size.
24039 (do_estimate_edge_time): Likewise.
24040 (do_estimate_edge_size): Update.
24041 (do_estimate_edge_hints): Update.
24042 (growth_likely_positive): New function.
24043
24044 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24045
24046 PR target/60693
24047 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
24048 also if addr has VOIDmode.
24049
24050 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24051
24052 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
24053 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
24054 Declare extern.
24055 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
24056 instructions as well as AdvancedSIMD loads.
24057
24058 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24059
24060 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
24061 Use crypto_aese type.
24062 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
24063 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
24064 crypto_aese, crypto_aesmc. Move to types.md.
24065 * config/arm/types.md (crypto_aes): Split into crypto_aese,
24066 crypto_aesmc.
24067 * config/arm/iterators.md (crypto_type): Likewise.
24068
24069 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
24070
24071 * cgraph.c: Include expr.h and tree-dfa.h.
24072 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
24073 remove LHS.
24074
24075 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
24076
24077 PR target/60675
24078 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
24079 regs from checking multi-reg pseudos.
24080
24081 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24082
24083 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
24084
24085 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24086
24087 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
24088 if it would clobber the stack pointer, even temporarily.
24089
24090 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
24091
24092 * mode-switching.c: Make small adjustments to the top comment.
24093
24094 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
24095
24096 * config/rs6000/constraints.md (wD constraint): New constraint to
24097 match the constant integer to get the top DImode/DFmode out of a
24098 vector in a VSX register.
24099
24100 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
24101 match the constant integer to get the top DImode/DFmode out of a
24102 vector in a VSX register.
24103
24104 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
24105 for ISA 2.07.
24106
24107 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24108 vbpermq builtins.
24109
24110 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
24111 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
24112
24113 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
24114 Optimize vec_extract of 64-bit values, where the value being
24115 extracted is in the top word, where we can use scalar
24116 instructions. Add direct move and store support. Combine the big
24117 endian/little endian vector select load support into a single insn.
24118 (vsx_extract_<mode>_internal1): Likewise.
24119 (vsx_extract_<mode>_internal2): Likewise.
24120 (vsx_extract_<mode>_load): Likewise.
24121 (vsx_extract_<mode>_store): Likewise.
24122 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
24123 combined into vsx_extract_<mode>_load.
24124 (vsx_extract_<mode>_one_le): Likewise.
24125
24126 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
24127 define the top 64-bit vector element.
24128
24129 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
24130 constraint.
24131
24132 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24133 Document vec_vbpermq builtin.
24134
24135 PR target/60672
24136 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
24137 enable use of xxsldwi and xxpermdi builtin functions.
24138 (vec_xxpermdi): Likewise.
24139
24140 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24141 Document use of vec_xxsldwi and vec_xxpermdi builtins.
24142
24143 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
24144
24145 PR rtl-optimization/60650
24146 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
24147 first_p. Use it.
24148 (find_spills_for): New.
24149 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
24150 Spill all pseudos on the second iteration.
24151
24152 2014-03-27 Marek Polacek <polacek@redhat.com>
24153
24154 PR c/50347
24155 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
24156 types.
24157
24158 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24159
24160 * config/s390/s390.c (s390_can_use_return_insn): Check for
24161 call-saved FPRs on 31 bit.
24162
24163 2014-03-27 Jakub Jelinek <jakub@redhat.com>
24164
24165 PR middle-end/60682
24166 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
24167 if they need regimplification, just drop them instead of
24168 calling gimple_regimplify_operands on them.
24169
24170 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
24171
24172 PR target/60580
24173 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
24174 (aarch64_frame_pointer_required): Adjust logic.
24175 (aarch64_can_eliminate): Adjust logic.
24176 (aarch64_override_options_after_change): Adjust logic.
24177
24178 2014-03-27 Dehao Chen <dehao@google.com>
24179
24180 * ipa-inline.c (early_inliner): Update node's inline info.
24181
24182 2014-03-26 Dehao Chen <dehao@google.com>
24183
24184 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
24185 compiler inserted conditional jumps for NAN float check.
24186
24187 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24188
24189 * ubsan.h (ubsan_create_data): Change second argument's type
24190 to const location_t *.
24191 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
24192 _("<unknown>").
24193 (ubsan_create_data): Change second argument to const location_t *PLOC.
24194 Create Loc field whenever PLOC is non-NULL.
24195 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
24196 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
24197 callers.
24198
24199 PR other/59545
24200 * real.c (real_to_integer2): Change type of low to UHWI.
24201
24202 2014-03-26 Tobias Burnus <burnus@net-b.de>
24203
24204 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
24205 (CILK_SELF_SPECS): New define.
24206 (driver_self_specs): Use it.
24207
24208 2014-03-26 Richard Biener <rguenther@suse.de>
24209
24210 * tree-pretty-print.c (percent_K_format): Implement special
24211 case for LTO and its stripped down BLOCK tree.
24212
24213 2014-03-26 Jakub Jelinek <jakub@redhat.com>
24214
24215 PR sanitizer/60636
24216 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
24217
24218 * tree-vrp.c (simplify_internal_call_using_ranges): If only
24219 one range is range_int_cst_p, but not both, at least optimize
24220 addition/subtraction of 0 and multiplication by 0 or 1.
24221 * gimple-fold.c (gimple_fold_call): Fold
24222 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
24223 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
24224 INTEGER_CSTs, try to fold at least x * 0 and y - y.
24225
24226 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
24227
24228 PR rtl-optimization/60452
24229 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
24230 <case REG>: Return 1 for invalid offsets from the frame pointer.
24231
24232 2014-03-26 Marek Polacek <polacek@redhat.com>
24233
24234 PR c/37428
24235 * doc/extend.texi (C Extensions): Mention variable-length arrays in
24236 a structure/union.
24237
24238 2014-03-26 Marek Polacek <polacek@redhat.com>
24239
24240 PR c/39525
24241 * doc/extend.texi (Designated Inits): Describe what happens to omitted
24242 field members.
24243
24244 2014-03-26 Marek Polacek <polacek@redhat.com>
24245
24246 PR other/59545
24247 * ira-color.c (update_conflict_hard_regno_costs): Perform the
24248 multiplication in unsigned type.
24249
24250 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24251
24252 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
24253
24254 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
24255
24256 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
24257
24258 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24259
24260 PR ipa/60315
24261 * cif-code.def (UNREACHABLE) New code.
24262 * ipa-inline.c (inline_small_functions): Skip edges to
24263 __builtlin_unreachable.
24264 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
24265 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
24266 predicate to __bulitin_unreachable.
24267 (set_cond_stmt_execution_predicate): Fix issue when
24268 invert_tree_comparison returns ERROR_MARK.
24269 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
24270 propagate to inline clones.
24271 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
24272 to unreachable.
24273 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
24274 * cgraphclones.c (cgraph_clone_node): If call destination is already
24275 ureachable, do not redirect it back.
24276 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
24277 unreachable.
24278
24279 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
24280
24281 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
24282 Do not modify inline clones.
24283
24284 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24285
24286 * config/i386/i386.md (general_sext_operand): New mode attr.
24287 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
24288 don't generate (sign_extend (const_int)).
24289 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
24290 operands[2]. Use We constraint instead of <i> and
24291 <general_sext_operand> predicate instead of <general_operand>.
24292 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
24293 * config/i386/constraints.md (We): New constraint.
24294 * config/i386/predicates.md (x86_64_sext_operand,
24295 sext_operand): New predicates.
24296
24297 2014-03-25 Martin Jambor <mjambor@suse.cz>
24298
24299 PR ipa/60600
24300 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
24301 inconsistent devirtualizations to __builtin_unreachable.
24302
24303 2014-03-25 Marek Polacek <polacek@redhat.com>
24304
24305 PR c/35449
24306 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
24307
24308 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
24309
24310 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
24311 order of elements for big-endian.
24312
24313 2014-03-25 Richard Biener <rguenther@suse.de>
24314
24315 PR middle-end/60635
24316 * gimplify-me.c (gimple_regimplify_operands): Update the
24317 re-gimplifed stmt.
24318
24319 2014-03-25 Martin Jambor <mjambor@suse.cz>
24320
24321 PR ipa/59176
24322 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
24323 (lto_output_varpool_node): Likewise.
24324 (input_overwrite_node): Likewise.
24325 (input_varpool_node): Likewise.
24326
24327 2014-03-25 Richard Biener <rguenther@suse.de>
24328
24329 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
24330 (run_gcc): Likewise.
24331
24332 2014-03-25 Jakub Jelinek <jakub@redhat.com>
24333
24334 * combine.c (simplify_compare_const): Add MODE argument.
24335 Handle mode_width 0 as very large mode_width.
24336 (try_combine, simplify_comparison): Adjust callers.
24337
24338 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
24339 type to avoid signed integer overflow.
24340 * explow.c (plus_constant): Likewise.
24341
24342 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
24343
24344 * doc/generic.texi: Correct typos.
24345
24346 2014-03-24 Tobias Burnus <burnus@net-b.de>
24347
24348 * doc/invoke.texi (-flto): Expand section about
24349 using static libraries with LTO.
24350
24351 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24352
24353 PR rtl-optimization/60501
24354 * optabs.def (addptr3_optab): New optab.
24355 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
24356 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
24357 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
24358
24359 * lra.c (emit_add3_insn): Use the addptr pattern if available.
24360
24361 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
24362
24363 2014-03-24 Ulrich Drepper <drepper@gmail.com>
24364
24365 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
24366 _mm512_set1_pd.
24367
24368 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
24369 (_mm256_undefined_ps): Define.
24370 (_mm256_undefined_pd): Define.
24371 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
24372 (_mm_undefined_pd): Define.
24373 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
24374 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
24375 (_mm512_undefined_ps): Define.
24376 (_mm512_undefined_pd): Define.
24377 Use _mm*_undefined_*.
24378 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
24379
24380 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
24381
24382 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
24383 (lshr_simd): DI mode added.
24384 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
24385 (aarch64_ushr_simddi): Likewise.
24386 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
24387 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
24388 (vshrd_n_u64): Likewise.
24389
24390 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24391
24392 * Makefile.in (s-macro_list): Depend on cc1.
24393
24394 2014-03-23 Teresa Johnson <tejohnson@google.com>
24395
24396 * ipa-utils.c (ipa_print_order): Use specified dump file.
24397
24398 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
24399
24400 PR rtl-optimization/60601
24401 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
24402
24403 * gcc.c (eval_spec_function): Initialize save_growing_value.
24404
24405 2014-03-22 Jakub Jelinek <jakub@redhat.com>
24406
24407 PR sanitizer/60613
24408 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
24409 code == MINUS_EXPR, never swap op0 with op1.
24410
24411 * toplev.c (init_local_tick): Avoid signed integer multiplication
24412 overflow.
24413 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
24414 shift by first operand's bitsize.
24415
24416 2014-03-21 Jakub Jelinek <jakub@redhat.com>
24417
24418 PR target/60610
24419 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
24420 redefine to 1 or 0.
24421 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
24422 TARGET_ISA_64BIT_P(x).
24423
24424 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24425
24426 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
24427 pattern for vector nor instead of subtract from splat(-1).
24428 (altivec_expand_vec_perm_const_le): Likewise.
24429
24430 2014-03-21 Richard Henderson <rth@twiddle.net>
24431
24432 PR target/60598
24433 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
24434 related insns after epilogue_completed.
24435
24436 2014-03-21 Martin Jambor <mjambor@suse.cz>
24437
24438 PR ipa/59176
24439 * cgraph.h (symtab_node): New flag body_removed.
24440 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
24441 when removing bodies.
24442 * symtab.c (dump_symtab_base): Dump body_removed flag.
24443 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
24444 had their bodies removed.
24445
24446 2014-03-21 Martin Jambor <mjambor@suse.cz>
24447
24448 PR ipa/60419
24449 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
24450 in the border.
24451
24452 2014-03-21 Richard Biener <rguenther@suse.de>
24453
24454 PR tree-optimization/60577
24455 * tree-core.h (struct tree_base): Document nothrow_flag use
24456 in DECL_NONALIASED.
24457 * tree.h (DECL_NONALIASED): New.
24458 (may_be_aliased): Adjust.
24459 * coverage.c (build_var): Set DECL_NONALIASED.
24460
24461 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24462
24463 * expr.c (expand_expr_real_1): Remove outdated comment.
24464
24465 2014-03-20 Jakub Jelinek <jakub@redhat.com>
24466
24467 PR middle-end/60597
24468 * ira.c (adjust_cleared_regs): Call copy_rtx on
24469 *reg_equiv[REGNO (loc)].src_p before passing it to
24470 simplify_replace_fn_rtx.
24471
24472 PR target/60568
24473 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
24474 into CONST, put pic register as first operand of PLUS. Use
24475 gen_const_mem for both 32-bit and 64-bit PIC got loads.
24476
24477 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24478
24479 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
24480
24481 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24482
24483 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
24484 around for store forwarding issue in the FPU on the UT699.
24485 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
24486 loads and operations if -mfix-ut699 is specified.
24487 (divtf3_hq): Tweak attribute.
24488 (sqrttf2_hq): Likewise.
24489
24490 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
24491
24492 * calls.c (store_one_arg): Remove incorrect const qualification on the
24493 type of the temporary.
24494 * cfgexpand.c (expand_return): Likewise.
24495 * expr.c (expand_constructor): Likewise.
24496 (expand_expr_real_1): Likewise.
24497
24498 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24499
24500 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
24501 of parts.
24502
24503 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24504
24505 PR target/60039
24506 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
24507
24508 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
24509
24510 * config/arm/aarch-common-protos.h
24511 (alu_cost_table): Fix spelling of "extend".
24512 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
24513
24514 2014-03-19 Richard Biener <rguenther@suse.de>
24515
24516 PR middle-end/60553
24517 * tree-core.h (tree_type_common): Re-order pointer members
24518 to reduce recursion depth during GC walks.
24519
24520 2014-03-19 Marek Polacek <polacek@redhat.com>
24521
24522 PR sanitizer/60569
24523 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
24524 before accessing it.
24525
24526 2014-03-19 Richard Biener <rguenther@suse.de>
24527
24528 PR lto/59543
24529 * lto-streamer-in.c (input_function): In WPA stage do not drop
24530 debug stmts.
24531
24532 2014-03-19 Jakub Jelinek <jakub@redhat.com>
24533
24534 PR tree-optimization/60559
24535 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
24536 with build_zero_cst assignment.
24537
24538 2014-03-18 Kai Tietz <ktietz@redhat.com>
24539
24540 PR rtl-optimization/56356
24541 * sdbout.c (sdbout_parms): Verify that parms'
24542 incoming argument is valid.
24543 (sdbout_reg_parms): Likewise.
24544
24545 2014-03-18 Richard Henderson <rth@redhat.com>
24546
24547 PR target/60562
24548 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
24549 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
24550 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
24551
24552 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
24553
24554 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
24555 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
24556 Italicize plugin event names in description. Explain that
24557 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
24558 Remind that no GCC functions should be called after PLUGIN_FINISH.
24559 Explain what pragmas with expansion are.
24560
24561 2014-03-18 Martin Liska <mliska@suse.cz>
24562
24563 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
24564 gimple call statement is update.
24565 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
24566 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
24567
24568 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24569
24570 PR sanitizer/60557
24571 * ubsan.c (ubsan_instrument_unreachable): Call
24572 initialize_sanitizer_builtins.
24573 (ubsan_pass): Likewise.
24574
24575 PR sanitizer/60535
24576 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
24577 varpool_finalize_decl instead of rest_of_decl_compilation.
24578
24579 2014-03-18 Richard Biener <rguenther@suse.de>
24580
24581 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
24582 by using bitmap_and_compl instead of bitmap_and_compl_into.
24583 (df_rd_transfer_function): Likewise.
24584
24585 2014-03-18 Richard Biener <rguenther@suse.de>
24586
24587 * doc/lto.texi (fresolution): Fix typo.
24588
24589 2014-03-18 Richard Biener <rguenther@suse.de>
24590
24591 * doc/invoke.texi (flto): Update for changes in 4.9.
24592
24593 2014-03-18 Richard Biener <rguenther@suse.de>
24594
24595 * doc/loop.texi: Remove section on the removed lambda framework.
24596 Update loop docs with recent changes in preserving loop structure.
24597
24598 2014-03-18 Richard Biener <rguenther@suse.de>
24599
24600 * doc/lto.texi (-fresolution): Document.
24601
24602 2014-03-18 Richard Biener <rguenther@suse.de>
24603
24604 * doc/contrib.texi: Adjust my name.
24605
24606 2014-03-18 Jakub Jelinek <jakub@redhat.com>
24607
24608 PR ipa/58721
24609 * internal-fn.c: Include diagnostic-core.h.
24610 (expand_BUILTIN_EXPECT): New function.
24611 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24612 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24613 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24614 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24615 IFN_BUILTIN_EXPECT.
24616 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24617 Revert 3 argument __builtin_expect code.
24618 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24619 * gimple-fold.c (gimple_fold_call): Likewise.
24620 * tree.h (fold_builtin_expect): New prototype.
24621 * builtins.c (build_builtin_expect_predicate): Add predictor
24622 argument, if non-NULL, create 3 argument __builtin_expect.
24623 (fold_builtin_expect): No longer static. Add ARG2 argument,
24624 pass it through to build_builtin_expect_predicate.
24625 (fold_builtin_2): Adjust caller.
24626 (fold_builtin_3): Handle BUILT_IN_EXPECT.
24627 * internal-fn.def (BUILTIN_EXPECT): New.
24628
24629 2014-03-18 Tobias Burnus <burnus@net-b.de>
24630
24631 PR ipa/58721
24632 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24633 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24634 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24635
24636 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
24637
24638 PR ipa/58721
24639 * predict.c (combine_predictions_for_bb): Fix up formatting.
24640 (expr_expected_value_1, expr_expected_value): Add predictor argument,
24641 fill what it points to if non-NULL.
24642 (tree_predict_by_opcode): Adjust caller, use the predictor.
24643 * predict.def (PRED_COMPARE_AND_SWAP): Add.
24644
24645 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
24646
24647 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24648 proper constant for the store mode.
24649
24650 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
24651
24652 * symtab.c (change_decl_assembler_name): Fix transparent alias
24653 chain construction.
24654
24655 2014-03-16 Renlin Li <Renlin.Li@arm.com>
24656
24657 * config/aarch64/aarch64.c: Correct the comments about the
24658 aarch64 stack layout.
24659
24660 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
24661
24662 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24663 check for GF_OMP_FOR_KIND_FOR.
24664
24665 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
24666
24667 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24668 ymm and zmm register names.
24669
24670 2014-03-17 Jakub Jelinek <jakub@redhat.com>
24671
24672 PR target/60516
24673 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24674 note creation for the 2010-08-31 changes.
24675
24676 2014-03-17 Marek Polacek <polacek@redhat.com>
24677
24678 PR middle-end/60534
24679 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24680 as -fno-tree-loop-vectorize.
24681 (expand_omp_simd): Likewise.
24682
24683 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
24684
24685 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24686 (eligible_for_call_delay): New prototype.
24687 * config/sparc/sparc.c (tls_call_delay): Rename into...
24688 (eligible_for_call_delay): ...this. Return false if the instruction
24689 cannot be put in the delay slot of a branch.
24690 (eligible_for_restore_insn): Simplify.
24691 (eligible_for_return_delay): Return false if the instruction cannot be
24692 put in the delay slot of a branch and simplify.
24693 (eligible_for_sibcall_delay): Return false if the instruction cannot be
24694 put in the delay slot of a branch.
24695 * config/sparc/sparc.md (fix_ut699): New attribute.
24696 (tls_call_delay): Delete.
24697 (in_call_delay): Reimplement.
24698 (eligible_for_sibcall_delay): Rename into...
24699 (in_sibcall_delay): ...this.
24700 (eligible_for_return_delay): Rename into...
24701 (in_return_delay): ...this.
24702 (in_branch_delay): Reimplement.
24703 (in_uncond_branch_delay): Delete.
24704 (in_annul_branch_delay): Delete.
24705
24706 2014-03-14 Richard Henderson <rth@redhat.com>
24707
24708 PR target/60525
24709 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24710 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24711 (*floathi<X87MODEF>2_i387_with_temp): Remove.
24712 (floathi splitters): Remove.
24713 (float<SWI48x>xf2): New pattern.
24714 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
24715 code that tried to handle DImode for 32-bit, but which was excluded
24716 by the pattern's condition. Drop allocation of stack temporary.
24717 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24718 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24719 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24720 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24721 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24722 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24723 (*float<SWI48><MODEF>2_sse_interunit): Remove.
24724 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24725 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24726 (*float<SWI48x><X87MODEF>2_i387): Remove.
24727 (all float _with_temp splitters): Remove.
24728 (*float<SWI48x><MODEF>2_i387): New pattern.
24729 (*float<SWI48><MODEF>2_sse): New pattern.
24730 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24731 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24732
24733 2014-03-14 Jakub Jelinek <jakub@redhat.com>
24734 Marek Polacek <polacek@redhat.com>
24735
24736 PR middle-end/60484
24737 * common.opt (dump_base_name_prefixed): New Variable.
24738 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24739 if x_dump_base_name_prefixed is already set, set it at the end.
24740
24741 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
24742
24743 PR rtl-optimization/60508
24744 * lra-constraints.c (get_reload_reg): Add new parameter
24745 in_subreg_p.
24746 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24747 Pass the new parameter values.
24748
24749 2014-03-14 Richard Biener <rguenther@suse.de>
24750
24751 * common.opt: Revert unintented changes from r205065.
24752 * opts.c: Likewise.
24753
24754 2014-03-14 Richard Biener <rguenther@suse.de>
24755
24756 PR middle-end/60518
24757 * cfghooks.c (split_block): Properly adjust all loops the
24758 block was a latch of.
24759
24760 2014-03-14 Martin Jambor <mjambor@suse.cz>
24761
24762 PR lto/60461
24763 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24764 and simplify it.
24765
24766 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
24767
24768 PR target/59396
24769 * config/avr/avr.c (avr_set_current_function): Pass function name
24770 through default_strip_name_encoding before sanity checking instead
24771 of skipping the first char of the assembler name.
24772
24773 2014-03-13 Richard Henderson <rth@redhat.com>
24774
24775 PR debug/60438
24776 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24777 (ix86_force_to_memory, ix86_free_from_memory): Remove.
24778 * config/i386/i386-protos.h: Likewise.
24779 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24780 in the expander instead of a splitter.
24781 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24782 any possibility of requiring a memory.
24783 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24784 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24785 (fp branch splitters): Update for ix86_split_fp_branch.
24786 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24787 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24788 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24789 (*fop_<MODEF>_2_i387): Remove f/r alternative.
24790 (*fop_<MODEF>_3_i387): Likewise.
24791 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24792 (splitters for the fop_* register patterns): Remove.
24793 (fscalexf4_i387): Rename from *fscalexf4_i387.
24794 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24795
24796 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24797
24798 PR tree-optimization/59779
24799 * tree-dfa.c (get_ref_base_and_extent): Use double_int
24800 type for bitsize and maxsize instead of HOST_WIDE_INT.
24801
24802 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
24803
24804 PR rtl-optimization/57320
24805 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24806 the CFG after thread_prologue_and_epilogue_insns.
24807
24808 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
24809
24810 PR rtl-optimization/57189
24811 * lra-constraints.c (process_alt_operands): Disfavor spilling
24812 vector pseudos.
24813
24814 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
24815
24816 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24817
24818 2014-03-13 Jakub Jelinek <jakub@redhat.com>
24819
24820 PR tree-optimization/59025
24821 PR middle-end/60418
24822 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24823 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24824
24825 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
24826
24827 PR target/60486
24828 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24829 calls of avr_out_plus_1.
24830
24831 2014-03-13 Bin Cheng <bin.cheng@arm.com>
24832
24833 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24834 BB's single pred and update the father loop's latch info later.
24835
24836 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24837
24838 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24839 (VEC_M): Likewise.
24840 (VEC_N): Likewise.
24841 (VEC_R): Likewise.
24842 (VEC_base): Likewise.
24843 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24844 registers, we need to swap double words in little endian mode.
24845
24846 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24847 to be a container mode for 128-bit integer operations added in ISA
24848 2.07. Unlike TImode and PTImode, the preferred register set is
24849 the Altivec/VMX registers for the 128-bit operations.
24850
24851 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24852 declarations.
24853 (rs6000_split_128bit_ok_p): Likewise.
24854
24855 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24856 macros for creating ISA 2.07 normal and overloaded builtin
24857 functions with 3 arguments.
24858 (BU_P8V_OVERLOAD_3): Likewise.
24859 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24860 for use as overloaded functions.
24861 (VPERM_1TI_UNS): Likewise.
24862 (VSEL_1TI): Likewise.
24863 (VSEL_1TI_UNS): Likewise.
24864 (ST_INTERNAL_1ti): Likewise.
24865 (LD_INTERNAL_1ti): Likewise.
24866 (XXSEL_1TI): Likewise.
24867 (XXSEL_1TI_UNS): Likewise.
24868 (VPERM_1TI): Likewise.
24869 (VPERM_1TI_UNS): Likewise.
24870 (XXPERMDI_1TI): Likewise.
24871 (SET_1TI): Likewise.
24872 (LXVD2X_V1TI): Likewise.
24873 (STXVD2X_V1TI): Likewise.
24874 (VEC_INIT_V1TI): Likewise.
24875 (VEC_SET_V1TI): Likewise.
24876 (VEC_EXT_V1TI): Likewise.
24877 (EQV_V1TI): Likewise.
24878 (NAND_V1TI): Likewise.
24879 (ORC_V1TI): Likewise.
24880 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24881 added in ISA 2.07. Add both normal 'altivec' builtins, and the
24882 overloaded builtin.
24883 (VADDUQM): Likewise.
24884 (VSUBCUQ): Likewise.
24885 (VADDEUQM): Likewise.
24886 (VADDECUQ): Likewise.
24887 (VSUBEUQM): Likewise.
24888 (VSUBECUQ): Likewise.
24889
24890 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24891 __int128_t and __uint128_t types.
24892 (__uint128_type): Likewise.
24893 (altivec_categorize_keyword): Add support for vector __int128_t,
24894 vector __uint128_t, vector __int128, and vector unsigned __int128
24895 as a container type for TImode operations that need to be done in
24896 VSX/Altivec registers.
24897 (rs6000_macro_to_expand): Likewise.
24898 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24899 to support 128-bit integer instructions vaddcuq, vadduqm,
24900 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24901 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24902
24903 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24904 for V1TImode, and set up preferences to use VSX/Altivec registers.
24905 Setup VSX reload handlers.
24906 (rs6000_debug_reg_global): Likewise.
24907 (rs6000_init_hard_regno_mode_ok): Likewise.
24908 (rs6000_preferred_simd_mode): Likewise.
24909 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24910 (easy_altivec_constant): Likewise.
24911 (output_vec_const_move): Likewise.
24912 (rs6000_expand_vector_set): Convert V1TImode set and extract to
24913 simple move.
24914 (rs6000_expand_vector_extract): Likewise.
24915 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24916 addressing.
24917 (rs6000_const_vec): Add support for V1TImode.
24918 (rs6000_emit_le_vsx_load): Swap double words when loading or
24919 storing TImode/V1TImode.
24920 (rs6000_emit_le_vsx_store): Likewise.
24921 (rs6000_emit_le_vsx_move): Likewise.
24922 (rs6000_emit_move): Add support for V1TImode.
24923 (altivec_expand_ld_builtin): Likewise.
24924 (altivec_expand_st_builtin): Likewise.
24925 (altivec_expand_vec_init_builtin): Likewise.
24926 (altivec_expand_builtin): Likewise.
24927 (rs6000_init_builtins): Add support for V1TImode type. Add
24928 support for ISA 2.07 128-bit integer builtins. Define type names
24929 for the VSX/Altivec vector types.
24930 (altivec_init_builtins): Add support for overloaded vector
24931 functions with V1TImode type.
24932 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24933 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24934 external function.
24935 (rs6000_split_128bit_ok_p): Likewise.
24936 (rs6000_handle_altivec_attribute): Create V1TImode from vector
24937 __int128_t and vector __uint128_t.
24938
24939 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24940 and mode attributes.
24941 (VSX_M): Likewise.
24942 (VSX_M2): Likewise.
24943 (VSm): Likewise.
24944 (VSs): Likewise.
24945 (VSr): Likewise.
24946 (VSv): Likewise.
24947 (VS_scalar): Likewise.
24948 (VS_double): Likewise.
24949 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24950
24951 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24952 we support the ISA 2.07 128-bit integer arithmetic instructions.
24953 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24954 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24955 and TImode types for use with the builtin functions.
24956 (V1TI_type_node): Likewise.
24957 (unsigned_V1TI_type_node): Likewise.
24958 (intTI_type_internal_node): Likewise.
24959 (uintTI_type_internal_node): Likewise.
24960
24961 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
24962 128-bit builtin functions.
24963 (UNSPEC_VADDEUQM): Likewise.
24964 (UNSPEC_VADDECUQ): Likewise.
24965 (UNSPEC_VSUBCUQ): Likewise.
24966 (UNSPEC_VSUBEUQM): Likewise.
24967 (UNSPEC_VSUBECUQ): Likewise.
24968 (VM): Add V1TImode to vector mode iterators.
24969 (VM2): Likewise.
24970 (VI_unit): Likewise.
24971 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
24972 (altivec_vaddcuq): Likewise.
24973 (altivec_vsubuqm): Likewise.
24974 (altivec_vsubcuq): Likewise.
24975 (altivec_vaddeuqm): Likewise.
24976 (altivec_vaddecuq): Likewise.
24977 (altivec_vsubeuqm): Likewise.
24978 (altivec_vsubecuq): Likewise.
24979
24980 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
24981 mode iterators.
24982 (BOOL_128): Likewise.
24983 (BOOL_REGS_OUTPUT): Likewise.
24984 (BOOL_REGS_OP1): Likewise.
24985 (BOOL_REGS_OP2): Likewise.
24986 (BOOL_REGS_UNARY): Likewise.
24987 (BOOL_REGS_AND_CR0): Likewise.
24988
24989 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
24990 128-bit integer builtin support.
24991 (vec_vadduqm): Likewise.
24992 (vec_vaddecuq): Likewise.
24993 (vec_vaddeuqm): Likewise.
24994 (vec_vsubecuq): Likewise.
24995 (vec_vsubeuqm): Likewise.
24996 (vec_vsubcuq): Likewise.
24997 (vec_vsubuqm): Likewise.
24998
24999 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25000 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
25001 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
25002 128-bit integer add/subtract to ISA 2.07.
25003
25004 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
25005
25006 * config/arc/arc.c (arc_predicate_delay_insns):
25007 Fix third argument passed to conditionalize_nonjump.
25008
25009 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
25010
25011 * config/aarch64/aarch64-builtins.c
25012 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
25013 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
25014 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
25015 instead of __builtin_lfloor.
25016 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
25017
25018 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25019
25020 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
25021 (tree_ssa_ifcombine_bb_1): New function.
25022 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
25023 is an empty forwarder block to then_bb or vice versa and then_bb
25024 and else_bb are effectively swapped.
25025
25026 2014-03-12 Christian Bruel <christian.bruel@st.com>
25027
25028 PR target/60264
25029 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
25030 REG_CFA_DEF_CFA note.
25031 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
25032 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
25033
25034 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
25035
25036 PR tree-optimization/60454
25037 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
25038
25039 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25040
25041 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
25042 Do not define target_cpu_default2 to generic.
25043 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
25044 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
25045 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
25046
25047 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25048 Marc Glisse <marc.glisse@inria.fr>
25049
25050 PR tree-optimization/60502
25051 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
25052 instead of build_low_bits_mask.
25053
25054 2014-03-12 Jakub Jelinek <jakub@redhat.com>
25055
25056 PR middle-end/60482
25057 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
25058 if there are multiple uses, but op doesn't live on E edge.
25059 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
25060 clobber stmts before __builtin_unreachable.
25061
25062 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
25063
25064 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
25065 hard_frame_pointer_rtx.
25066 * cse.c (cse_insn): Remove volatile check.
25067 * cselib.c (cselib_process_insn): Likewise.
25068 * dse.c (scan_insn): Likewise.
25069
25070 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25071
25072 * config/arc/arc.c (conditionalize_nonjump): New function,
25073 broken out of ...
25074 (arc_ifcvt): ... this.
25075 (arc_predicate_delay_insns): Use it.
25076
25077 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
25078
25079 * config/arc/predicates.md (extend_operand): During/after reload,
25080 allow const_int_operand.
25081 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
25082 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
25083 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
25084 to "i".
25085 (umulsi3_highpart_i): Likewise.
25086
25087 2014-03-11 Richard Biener <rguenther@suse.de>
25088
25089 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
25090 Add asserts to guard possible wrong-code bugs.
25091
25092 2014-03-11 Richard Biener <rguenther@suse.de>
25093
25094 PR tree-optimization/60429
25095 PR tree-optimization/60485
25096 * tree-ssa-structalias.c (set_union_with_increment): Properly
25097 take into account all fields that overlap the shifted vars.
25098 (do_sd_constraint): Likewise.
25099 (do_ds_constraint): Likewise.
25100 (get_constraint_for_ptr_offset): Likewise.
25101
25102 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
25103
25104 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
25105 (nios2_compute_frame_layout):
25106 Add calculation of cfun->machine->fp_save_offset.
25107 (nios2_expand_prologue): Correct setting of frame pointer register
25108 in prologue.
25109 (nios2_expand_epilogue): Update recovery of stack pointer from
25110 frame pointer accordingly.
25111 (nios2_initial_elimination_offset): Update calculation of offset
25112 for eliminating to HARD_FRAME_POINTER_REGNUM.
25113
25114 2014-03-10 Jakub Jelinek <jakub@redhat.com>
25115
25116 PR ipa/60457
25117 * ipa.c (symtab_remove_unreachable_nodes): Don't call
25118 cgraph_get_create_node on VAR_DECLs.
25119
25120 2014-03-10 Richard Biener <rguenther@suse.de>
25121
25122 PR middle-end/60474
25123 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
25124
25125 2014-03-08 Douglas B Rupp <rupp@gnat.com>
25126
25127 * config/vms/vms.opt (vms_float_format): New variable.
25128
25129 2014-03-08 Tobias Burnus <burnus@net-b.de>
25130
25131 * doc/invoke.texi (-fcilkplus): Update implementation status.
25132
25133 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
25134 Richard Biener <rguenther@suse.de>
25135
25136 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
25137 consistently accross all TUs.
25138 (run_gcc): Enable -fshort-double automatically at link at link-time
25139 and disallow override.
25140
25141 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
25142
25143 PR target/58271
25144 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
25145 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
25146 if they can't be used.
25147
25148 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25149
25150 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
25151 for Solaris 11/x86 ld.
25152 * configure: Regenerate.
25153
25154 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25155
25156 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
25157 (LIB_TLS_SPEC): Save as ld_tls_libs.
25158 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
25159 (HAVE_AS_IX86_TLSLDM): New test.
25160 * configure, config.in: Regenerate.
25161 * config/i386/i386.c (legitimize_tls_address): Fall back to
25162 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
25163 cannot support TLS_MODEL_LOCAL_DYNAMIC.
25164 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
25165 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
25166
25167 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
25168
25169 * common.opt (fira-loop-pressure): Mark as optimization.
25170
25171 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
25172
25173 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
25174 an OpenMP mappable type.
25175
25176 2014-03-06 Matthias Klose <doko@ubuntu.com>
25177
25178 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
25179 MULTILIB_OSDIRNAMES is not defined.
25180
25181 2014-03-06 Jakub Jelinek <jakub@redhat.com>
25182 Meador Inge <meadori@codesourcery.com>
25183
25184 PR target/58595
25185 * config/arm/arm.c (arm_tls_symbol_p): Remove.
25186 (arm_legitimize_address): Call legitimize_tls_address for any
25187 arm_tls_referenced_p expression, handle constant addend. Call it
25188 before testing for !TARGET_ARM.
25189 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
25190
25191 2014-03-06 Richard Biener <rguenther@suse.de>
25192
25193 PR middle-end/60445
25194 PR lto/60424
25195 PR lto/60427
25196 Revert
25197 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25198
25199 * tree-streamer.c (record_common_node): Assert we don't record
25200 nodes with type double.
25201 (preload_common_node): Skip type double, complex double and double
25202 pointer since it is now frontend dependent due to fshort-double option.
25203
25204 2014-03-06 Richard Biener <rguenther@suse.de>
25205
25206 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
25207 or -fno-lto is specified and the linker has full plugin support.
25208 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
25209 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
25210 * lto-wrapper.c (merge_and_complain): Merge compile-time
25211 optimization levels.
25212 (run_gcc): And pass it through to the link options.
25213
25214 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
25215
25216 PR debug/60381
25217 Revert:
25218 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25219 PR debug/59992
25220 * cselib.c (remove_useless_values): Skip to avoid quadratic
25221 behavior if the condition moved from...
25222 (cselib_process_insn): ... here holds.
25223
25224 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25225
25226 PR plugins/59335
25227 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
25228 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
25229
25230 PR plugins/59335
25231 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
25232 (TM_H): Add x86-tune.def.
25233
25234 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25235
25236 * config/aarch64/aarch64.c (generic_tunings):
25237 Use cortexa57_extra_costs.
25238
25239 2014-03-05 Jakub Jelinek <jakub@redhat.com>
25240
25241 PR lto/60404
25242 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
25243 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
25244 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
25245 cost for in_lto_p.
25246
25247 2014-03-04 Heiher <r@hev.cc>
25248
25249 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
25250 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
25251
25252 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
25253
25254 * config/i386/predicates.md (const2356_operand): Change to ...
25255 (const2367_operand): ... this.
25256 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
25257 const2367_operand.
25258 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25259 (*avx512pf_scatterpf<mode>sf): Ditto.
25260 (avx512pf_scatterpf<mode>df): Ditto.
25261 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25262 (*avx512pf_scatterpf<mode>df): Ditto.
25263 * config/i386/i386.c (ix86_expand_builtin): Update
25264 incorrect hint operand error message.
25265
25266 2014-03-04 Richard Biener <rguenther@suse.de>
25267
25268 * lto-section-in.c (lto_get_section_data): Fix const cast.
25269
25270 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
25271
25272 * tree-streamer.c (record_common_node): Assert we don't record
25273 nodes with type double.
25274 (preload_common_node): Skip type double, complex double and double
25275 pointer since it is now frontend dependent due to fshort-double option.
25276
25277 2014-03-04 Richard Biener <rguenther@suse.de>
25278
25279 PR lto/60405
25280 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
25281 (lto_input_toplevel_asms): Likewise.
25282 * lto-section-in.c (lto_get_section_data): Instead do it here
25283 for every section.
25284
25285 2014-03-04 Richard Biener <rguenther@suse.de>
25286
25287 PR tree-optimization/60382
25288 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
25289 dead PHIs a reduction.
25290
25291 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
25292
25293 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
25294 hint value.
25295 (_mm_prefetch): Move out of GCC target("sse") pragma.
25296 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
25297 GCC target("prfchw") pragma.
25298 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
25299 for locality <= 2.
25300 * config/i386/i386.c (ix86_option_override_internal): Enable
25301 -mprfchw with -mprefetchwt1.
25302
25303 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25304
25305 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
25306 Mark as varying.
25307
25308 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
25309
25310 * opts.h (CL_PCH_IGNORE): Define.
25311 * targhooks.c (option_affects_pch_p):
25312 Return false for options that have CL_PCH_IGNORE set.
25313 * opt-functions.awk: Process PchIgnore.
25314 * doc/options.texi: Document PchIgnore.
25315
25316 * config/arc/arc.opt (misize): Add PchIgnore property.
25317
25318 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25319
25320 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
25321 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
25322 constraint on constants to permit them being loaded into
25323 GENERAL_REGS or BASE_REGS.
25324
25325 2014-03-03 Nick Clifton <nickc@redhat.com>
25326
25327 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
25328 anti-cacnonical alternatives.
25329 (negandhi3_real): New pattern.
25330 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
25331
25332 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25333
25334 * config/avr/avr-mcus.def: Remove atxmega16x1.
25335 * config/avr/avr-tables.opt: Regenerate.
25336 * config/avr/t-multilib: Regenerate.
25337 * doc/avr-mmcu.texi: Regenerate.
25338
25339 2014-03-03 Tobias Grosser <tobias@grosser.es>
25340 Mircea Namolaru <mircea.namolaru@inria.fr>
25341
25342 PR tree-optimization/58028
25343 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
25344 scalar dimensions.
25345
25346 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25347
25348 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
25349 not handled by recognizers.
25350
25351 2014-03-03 Jakub Jelinek <jakub@redhat.com>
25352
25353 PR middle-end/60175
25354 * function.c (expand_function_end): Don't emit
25355 clobber_return_register sequence if clobber_after is a BARRIER.
25356 * cfgexpand.c (construct_exit_block): Append instructions before
25357 return_label to prev_bb.
25358
25359 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25360
25361 * config/rs6000/constraints.md: Document reserved use of "wc".
25362
25363 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25364
25365 PR ipa/60150
25366 * ipa.c (function_and_variable_visibility): When dissolving comdat
25367 group, also set all symbols to local.
25368
25369 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
25370
25371 PR ipa/60306
25372
25373 Revert:
25374 2013-12-14 Jan Hubicka <jh@suse.cz>
25375 PR middle-end/58477
25376 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
25377
25378 2014-03-02 Jon Beniston <jon@beniston.com>
25379
25380 PR bootstrap/48230
25381 PR bootstrap/50927
25382 PR bootstrap/52466
25383 PR target/46898
25384 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
25385 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
25386 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
25387 (simple_return, *simple_return): New patterns
25388 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
25389 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
25390
25391 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
25392
25393 * dwarf2out.c (gen_subprogram_die): Tidy.
25394
25395 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
25396
25397 PR target/60071
25398 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
25399 (*mov_t_msb_neg_negc): ... this new insn.
25400
25401 2014-02-28 Jason Merrill <jason@redhat.com>
25402
25403 PR c++/58678
25404 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
25405 function.
25406
25407 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
25408
25409 PR c++/60314
25410 * dwarf2out.c (decltype_auto_die): New static.
25411 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
25412 (gen_type_die_with_usage): Handle 'decltype(auto)'.
25413 (is_cxx_auto): Likewise.
25414
25415 2014-02-28 Ian Bolton <ian.bolton@arm.com>
25416
25417 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
25418 we are not using general regs only.
25419
25420 2014-02-28 Richard Biener <rguenther@suse.de>
25421
25422 PR target/60280
25423 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
25424 previous fix and only allow to remove trivial pre-headers
25425 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
25426 (remove_forwarder_block): Properly update the latch of a loop.
25427
25428 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25429
25430 PR debug/59992
25431 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
25432 (cselib_preserved_hash_table): New.
25433 (preserve_constants_and_equivs): Move preserved vals to it.
25434 (cselib_find_slot): Look it up first.
25435 (cselib_init): Initialize it.
25436 (cselib_finish): Release it.
25437 (dump_cselib_table): Dump it.
25438
25439 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25440
25441 PR debug/59992
25442 * cselib.c (remove_useless_values): Skip to avoid quadratic
25443 behavior if the condition moved from...
25444 (cselib_process_insn): ... here holds.
25445
25446 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
25447
25448 PR debug/57232
25449 * var-tracking.c (vt_initialize): Apply the same condition to
25450 preserve the CFA base value.
25451
25452 2014-02-28 Joey Ye <joey.ye@arm.com>
25453
25454 PR target/PR60169
25455 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
25456 if reload in progress or completed.
25457
25458 2014-02-28 Tobias Burnus <burnus@net-b.de>
25459
25460 PR middle-end/60147
25461 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
25462 NAMELIST_DECL.
25463
25464 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
25465
25466 * doc/tm.texi.in (Condition Code Status): Update documention for
25467 relative locations of cc0-setter and cc0-user.
25468
25469 2014-02-27 Jeff Law <law@redhat.com>
25470
25471 PR rtl-optimization/52714
25472 * combine.c (try_combine): When splitting an unrecognized PARALLEL
25473 into two independent simple sets, if I3 is a jump, ensure the
25474 pattern we place into I3 is a (set (pc) ...).
25475
25476 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
25477 Jeff Law <law@redhat.com>
25478
25479 PR rtl-optimization/49847
25480 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
25481 are in different blocks.
25482 * doc/tm.texi (Condition Code Status): Update documention for
25483 relative locations of cc0-setter and cc0-user.
25484
25485 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
25486
25487 PR target/59222
25488 * lra.c (lra_emit_add): Check SUBREG too.
25489
25490 2014-02-27 Andreas Schwab <schwab@suse.de>
25491
25492 * config/m68k/m68k.c (m68k_option_override): Disable
25493 -flive-range-shrinkage for classic m68k.
25494 (m68k_override_options_after_change): Likewise.
25495
25496 2014-02-27 Marek Polacek <polacek@redhat.com>
25497
25498 PR middle-end/59223
25499 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
25500 -Wmaybe-uninitialized.
25501
25502 2014-02-27 Alan Modra <amodra@gmail.com>
25503
25504 PR target/57936
25505 * reload1.c (emit_input_reload_insns): When reload_override_in,
25506 set old to rl->in_reg when rl->in_reg is a subreg.
25507
25508 2014-02-26 Richard Biener <rguenther@suse.de>
25509
25510 PR bootstrap/60343
25511 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
25512
25513 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25514
25515 * common/config/i386/predicates.md (const1256_operand): Remove.
25516 (const2356_operand): New.
25517 (const_1_to_2_operand): Remove.
25518 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25519 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25520 (*avx512pf_gatherpf<mode>sf): Ditto.
25521 (avx512pf_gatherpf<mode>df): Ditto.
25522 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25523 (*avx512pf_gatherpf<mode>df): Ditto.
25524 (avx512pf_scatterpf<mode>sf): Ditto.
25525 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25526 (*avx512pf_scatterpf<mode>sf): Ditto.
25527 (avx512pf_scatterpf<mode>df): Ditto.
25528 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25529 (*avx512pf_scatterpf<mode>df): Ditto.
25530 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
25531
25532 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
25533
25534 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
25535 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
25536 (_mm512_mask_testn_epi64_mask): Move to ...
25537 * config/i386/avx512cdintrin.h: Here.
25538 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
25539 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
25540 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
25541 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
25542 TARGET_AVX512F from TARGET_AVX512CD.
25543
25544 2014-02-26 Richard Biener <rguenther@suse.de>
25545
25546 PR ipa/60327
25547 * ipa.c (walk_polymorphic_call_targets): Properly guard
25548 call to inline_update_overall_summary.
25549
25550 2014-02-26 Bin Cheng <bin.cheng@arm.com>
25551
25552 PR target/60280
25553 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
25554 and latches only if requested. Fix latch if it is removed.
25555 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
25556 LOOPS_HAVE_PREHEADERS.
25557
25558 2014-02-25 Andrew Pinski <apinski@cavium.com>
25559
25560 * builtins.c (expand_builtin_thread_pointer): Create a new target
25561 when the target is NULL.
25562
25563 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
25564
25565 PR rtl-optimization/60317
25566 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25567 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25568 * lra-assigns.c: Include params.h.
25569 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
25570 other reload pseudos considerations.
25571
25572 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25573
25574 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
25575 to use canonical form for nor<mode>3.
25576
25577 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25578
25579 PR target/55426
25580 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
25581 conversions.
25582
25583 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
25584
25585 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
25586 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
25587 (ix86_handle_option): Handle OPT_mprefetchwt1.
25588 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
25589 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25590 PREFETCHWT1 CPUID.
25591 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25592 OPTION_MASK_ISA_PREFETCHWT1.
25593 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
25594 (PTA_PREFETCHWT1): New.
25595 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
25596 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
25597 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
25598 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
25599 (*prefetch_avx512pf_<mode>_: Change into ...
25600 (*prefetch_prefetchwt1_<mode>: This.
25601 * config/i386/i386.opt (mprefetchwt1): New.
25602 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25603 (_mm_prefetch): Handle intent to write.
25604 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25605
25606 2014-02-25 Richard Biener <rguenther@suse.de>
25607
25608 PR middle-end/60291
25609 * emit-rtl.c (mem_attrs_htab): Remove.
25610 (mem_attrs_htab_hash): Likewise.
25611 (mem_attrs_htab_eq): Likewise.
25612 (set_mem_attrs): Always allocate new mem-attrs when something changed.
25613 (init_emit_once): Do not allocate mem_attrs_htab.
25614
25615 2014-02-25 Richard Biener <rguenther@suse.de>
25616
25617 PR lto/60319
25618 * lto-opts.c (lto_write_options): Output non-explicit conservative
25619 -fwrapv, -fno-trapv and -fno-strict-overflow.
25620 * lto-wrapper.c (merge_and_complain): Handle merging those options.
25621 (run_gcc): And pass them through.
25622
25623 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25624
25625 * sel-sched.c (calculate_new_fences): New parameter ptime.
25626 Calculate it as a maximum over all fence cycles.
25627 (sel_sched_region_2): Adjust the call to calculate_new_fences.
25628 Print the final schedule timing when sched_verbose.
25629
25630 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
25631
25632 PR rtl-optimization/60292
25633 * sel-sched.c (fill_vec_av_set): Do not reset target availability
25634 bit fot the fence instruction.
25635
25636 2014-02-24 Alangi Derick <alangiderick@gmail.com>
25637
25638 * calls.h: Fix typo in comment.
25639
25640 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
25641
25642 * config/pa/pa.c (pa_output_move_double): Don't valididate when
25643 adjusting offsetable addresses.
25644
25645 2014-02-24 Guozhi Wei <carrot@google.com>
25646
25647 * sparseset.h (sparseset_pop): Fix the wrong index.
25648
25649 2014-02-24 Walter Lee <walt@tilera.com>
25650
25651 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25652 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25653 triplet.
25654 * common/config/tilegx/tilegx-common.c
25655 (TARGET_DEFAULT_TARGET_FLAGS): Define.
25656 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25657 (LINK_SPEC): Ditto.
25658 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25659 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25660 (tilegx_gimplify_va_arg_expr): Handle big endian.
25661 (tilegx_expand_unaligned_load): Ditto.
25662 (tilegx_expand_unaligned_store): Ditto.
25663 (TARGET_RETURN_IN_MSB): New.
25664 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25665 (TARGET_ENDIAN_DEFAULT): New.
25666 (TARGET_BIG_ENDIAN): Handle big endian.
25667 (BYTES_BIG_ENDIAN): Ditto.
25668 (WORDS_BIG_ENDIAN): Ditto.
25669 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25670 (ENDIAN_SPEC): New.
25671 (EXTRA_SPECS): New.
25672 * config/tilegx/tilegx.md (extv): Handle big endian.
25673 (extzv): Ditto.
25674 (insn_st<n>): Ditto.
25675 (insn_st<n>_add<bitsuffix>): Ditto.
25676 (insn_stnt<n>): Ditto.
25677 (insn_stnt<n>_add<bitsuffix>):Ditto.
25678 (vec_interleave_highv8qi): Handle big endian.
25679 (vec_interleave_highv8qi_be): New.
25680 (vec_interleave_highv8qi_le): New.
25681 (insn_v1int_h): Handle big endian.
25682 (vec_interleave_lowv8qi): Handle big endian.
25683 (vec_interleave_lowv8qi_be): New.
25684 (vec_interleave_lowv8qi_le): New.
25685 (insn_v1int_l): Handle big endian.
25686 (vec_interleave_highv4hi): Handle big endian.
25687 (vec_interleave_highv4hi_be): New.
25688 (vec_interleave_highv4hi_le): New.
25689 (insn_v2int_h): Handle big endian.
25690 (vec_interleave_lowv4hi): Handle big endian.
25691 (vec_interleave_lowv4hi_be): New.
25692 (vec_interleave_lowv4hi_le): New.
25693 (insn_v2int_l): Handle big endian.
25694 (vec_interleave_highv2si): Handle big endian.
25695 (vec_interleave_highv2si_be): New.
25696 (vec_interleave_highv2si_le): New.
25697 (insn_v4int_h): Handle big endian.
25698 (vec_interleave_lowv2si): Handle big endian.
25699 (vec_interleave_lowv2si_be): New.
25700 (vec_interleave_lowv2si_le): New.
25701 (insn_v4int_l): Handle big endian.
25702 * config/tilegx/tilegx.opt (mbig-endian): New option.
25703 (mlittle-endian): New option.
25704 * doc/install.texi: Document tilegxbe-linux.
25705 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25706
25707 2014-02-24 Martin Jambor <mjambor@suse.cz>
25708
25709 PR ipa/60266
25710 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25711 there are no parameter descriptors.
25712
25713 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
25714
25715 PR rtl-optimization/60268
25716 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25717 initialization to ...
25718 (sched_rgn_init): ... here.
25719 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25720
25721 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25722
25723 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25724 names.
25725
25726 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
25727
25728 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25729 definition.
25730
25731 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25732
25733 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25734 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25735
25736 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
25737
25738 * config/microblaze/predicates.md: Add cmp_op predicate.
25739 * config/microblaze/microblaze.md: Add branch_compare instruction
25740 which uses cmp_op predicate and emits cmp insn before branch.
25741 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25742 to microblaze_expand_conditional_branch and consolidate logic.
25743 (microblaze_expand_conditional_branch): emit branch_compare
25744 insn instead of handling cmp op separate from branch insn.
25745
25746 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25747
25748 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25749 to permit subregs.
25750
25751 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25752
25753 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25754 define_insn with define_expand and new define_insn
25755 *altivec_lve<VI_char>x_internal.
25756 (altivec_stve<VI_char>x): Replace define_insn with define_expand
25757 and new define_insn *altivec_stve<VI_char>x_internal.
25758 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25759 prototype.
25760 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25761 lve*x built-ins.
25762 (altivec_expand_stvex_be): New function.
25763
25764 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
25765
25766 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25767 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25768 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25769 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25770
25771 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
25772
25773 PR target/60298
25774 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25775 instead of emit_move_insn.
25776
25777 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25778
25779 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25780 vspltw with vsldoi.
25781 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25782 gen_altivec_vsumsws.
25783
25784 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25785
25786 * config/rs6000/altivec.md (altivec_lvxl): Rename as
25787 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25788 (altivec_lvxl_<mode>): New define_expand incorporating
25789 -maltivec=be semantics where needed.
25790 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25791 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25792 semantics where needed.
25793 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25794 (altivec_stvx_<mode>): New define_expand incorporating
25795 -maltivec=be semantics where needed.
25796 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25797 VM2 iterator instead of V4SI.
25798 (altivec_stvxl_<mode>): New define_expand incorporating
25799 -maltivec=be semantics where needed.
25800 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25801 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25802 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25803 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25804 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25805 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25806 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25807 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25808 ALTIVEC_BUILTIN_STVXL.
25809 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25810 (altivec_expand_stvx_be): Likewise.
25811 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25812 (altivec_expand_lvx_be): Likewise.
25813 (altivec_expand_stvx_be): Likewise.
25814 (altivec_expand_builtin): Add cases for
25815 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25816 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25817 (altivec_init_builtins): Add definitions for
25818 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25819 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25820
25821 2014-02-21 Catherine Moore <clm@codesourcery.com>
25822
25823 * doc/invoke.texi (mvirt, mno-virt): Document.
25824 * config/mips/mips.opt (mvirt): New option.
25825 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25826
25827 2014-02-21 Richard Biener <rguenther@suse.de>
25828
25829 PR tree-optimization/60276
25830 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25831 (STMT_VINFO_MIN_NEG_DIST): New macro.
25832 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25833 STMT_VINFO_MIN_NEG_DIST.
25834 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25835 made for negative dependence distances still hold.
25836
25837 2014-02-21 Richard Biener <rguenther@suse.de>
25838
25839 PR middle-end/60291
25840 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25841 DECL_INITIAL for globals not in the current function context.
25842
25843 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25844
25845 PR tree-optimization/56490
25846 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25847 * tree-ssa-uninit.c: Include params.h.
25848 (compute_control_dep_chain): Add num_calls argument, return false
25849 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25850 num_calls to recursive call.
25851 (find_predicates): Change dep_chain into normal array,
25852 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25853 variable and adjust compute_control_dep_chain caller.
25854 (find_def_preds): Likewise.
25855
25856 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
25857
25858 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25859 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25860
25861 2014-02-21 Nick Clifton <nickc@redhat.com>
25862
25863 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25864 (pushhi1): Likewise.
25865 (popqi1): Add mode to pre_dec.
25866 (pophi1): Likewise.
25867
25868 2014-02-21 Jakub Jelinek <jakub@redhat.com>
25869
25870 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25871 mode for mask of V8SFmode permutation.
25872
25873 2014-02-20 Richard Henderson <rth@redhat.com>
25874
25875 PR c++/60272
25876 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25877 a new pseudo for OLDVAL.
25878
25879 2014-02-20 Jakub Jelinek <jakub@redhat.com>
25880
25881 PR target/57896
25882 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25883 gen_reg_rtx if d->testing_p.
25884 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25885 if d->testing_p and we will certainly return true.
25886 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
25887 if d->testing_p.
25888
25889 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
25890
25891 * emit-rtl.c (gen_reg_rtx): Assert that
25892 crtl->emit.regno_pointer_align_length is non-zero.
25893
25894 2014-02-20 Richard Henderson <rth@redhat.com>
25895
25896 PR c++/60272
25897 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25898 on failure the store back into EXPECT.
25899
25900 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
25901 Sandra Loosemore <sandra@codesourcery.com>
25902
25903 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25904 * config/nios2/nios2.c (nios2_function_profiler): Add
25905 -fPIC (flag_pic == 2) support.
25906 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25907 (nios2_large_offset_p): New function.
25908 (nios2_unspec_reloc_p): Move up position, update to use
25909 nios2_large_offset_p.
25910 (nios2_unspec_address): Remove function.
25911 (nios2_unspec_offset): New function.
25912 (nios2_large_got_address): New function.
25913 (nios2_got_address): Add large offset support.
25914 (nios2_legitimize_tls_address): Update usage of removed and new
25915 functions.
25916 (nios2_symbol_binds_local_p): New function.
25917 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25918 (nios2_legitimize_address): Update to use nios2_large_offset_p.
25919 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25920 (nios2_print_operand): Merge H/L processing, add hiadj/lo
25921 processing for (const (unspec ...)).
25922 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25923
25924 2014-02-20 Richard Biener <rguenther@suse.de>
25925
25926 * tree-cfg.c (replace_uses_by): Mark altered BBs before
25927 doing the substitution.
25928 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25929
25930 2014-02-20 Martin Jambor <mjambor@suse.cz>
25931
25932 PR ipa/55260
25933 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25934 info when checking whether lattices are bottom.
25935
25936 2014-02-20 Richard Biener <rguenther@suse.de>
25937
25938 PR middle-end/60221
25939 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25940 regions at -O0.
25941
25942 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
25943
25944 PR ipa/58555
25945 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25946 parameter specifying the scaling.
25947 (inline_call): Update.
25948 (want_inline_recursively): Guard division by zero.
25949 (recursive_inlining): Update.
25950 * ipa-inline.h (clone_inlined_nodes): Update.
25951
25952 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25953
25954 PR target/60204
25955 * config/i386/i386.c (classify_argument): Pass structures of size
25956 64 bytes or less in register.
25957
25958 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
25959 Kirill Yukhin <kirill.yukhin@intel.com>
25960
25961 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
25962 (_mm_rcp28_round_ss): Ditto.
25963 (_mm_rsqrt28_round_sd): Ditto.
25964 (_mm_rsqrt28_round_ss): Ditto.
25965 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
25966 (_mm_rcp14_round_ss): Ditto.
25967 (_mm_rsqrt14_round_sd): Ditto.
25968 (_mm_rsqrt14_round_ss): Ditto.
25969 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
25970 the first input operand, get rid of match_dup.
25971 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
25972 attribute to sse.
25973 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25974 Ditto.
25975 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
25976 operand as the first input operand, set type attribute.
25977 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25978 Set type attribute.
25979 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
25980 operand as the first input operand, set type attribute.
25981
25982 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25983
25984 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
25985 bit of zero.
25986
25987 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
25988
25989 PR target/60207
25990 * config/i386/i386.c (construct_container): Remove TFmode check
25991 for X86_64_INTEGER_CLASS.
25992
25993 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
25994
25995 PR target/59794
25996 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
25997 only when -Wpsabi is enabled.
25998
25999 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
26000
26001 PR target/59799
26002 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
26003 passing arrays in registers are the same as for structs, so remove the
26004 special case for them.
26005
26006 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
26007
26008 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
26009 destination type, extract only the valid bits if the source type is not
26010 integral and has a different mode.
26011
26012 2014-02-19 Richard Biener <rguenther@suse.de>
26013
26014 PR ipa/60243
26015 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
26016 for all calls.
26017
26018 2014-02-19 Richard Biener <rguenther@suse.de>
26019
26020 PR ipa/60243
26021 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
26022 (ipa_modify_call_arguments): Emit an argument load explicitely and
26023 preserve virtual SSA form there and for the replacement call.
26024 Do not update SSA form nor free dominance info.
26025
26026 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26027
26028 * ipa.c (function_and_variable_visibility): Also clear WEAK
26029 flag when disolving COMDAT_GROUP.
26030
26031 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26032
26033 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
26034 * ipa-prop.c (ipa_set_jf_known_type): Return early when
26035 not devirtualizing.
26036 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
26037 do more sanity checks.
26038 (detect_type_change): Return true when giving up early.
26039 (compute_complex_assign_jump_func): Fix type parameter of
26040 ipa_set_ancestor_jf.
26041 (compute_complex_ancestor_jump_func): Likewise.
26042 (update_jump_functions_after_inlining): Fix updating of
26043 ancestor function.
26044 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
26045
26046 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
26047
26048 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
26049 inline clones when edge disappears.
26050
26051 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26052
26053 PR target/60203
26054 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
26055 Split 64-bit moves into 2 patterns. Do not allow the use of
26056 direct move for TDmode in little endian, since the decimal value
26057 has little endian bytes within a word, but the 64-bit pieces are
26058 ordered in a big endian fashion, and normal subreg's of TDmode are
26059 not allowed.
26060 (mov<mode>_64bit_dm): Likewise.
26061 (movtd_64bit_nodm): Likewise.
26062
26063 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26064
26065 PR tree-optimization/60174
26066 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
26067 statement of an SSA_NAME that occurs in an abnormal PHI node.
26068
26069 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26070
26071 PR sanitizer/60142
26072 * final.c (SEEN_BB): Remove.
26073 (SEEN_NOTE, SEEN_EMITTED): Renumber.
26074 (final_scan_insn): Don't force_source_line on second
26075 NOTE_INSN_BASIC_BLOCK.
26076
26077 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
26078
26079 PR target/60205
26080 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
26081 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
26082 (type_natural_mode): Warn ABI change when %zmm register is not
26083 available for AVX512F vector value passing.
26084
26085 2014-02-18 Kai Tietz <ktietz@redhat.com>
26086
26087 PR target/60193
26088 * config/i386/i386.c (ix86_expand_prologue): Use value in
26089 rax register as displacement when restoring %r10 or %rax.
26090 Fix wrong offset when restoring both registers.
26091
26092 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
26093
26094 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
26095 assertion with conditional return.
26096
26097 2014-02-18 Jakub Jelinek <jakub@redhat.com>
26098 Uros Bizjak <ubizjak@gmail.com>
26099
26100 PR driver/60233
26101 * config/i386/driver-i386.c (host_detect_local_cpu): If
26102 YMM state is not saved by the OS, also clear has_f16c. Move
26103 CPUID 0x80000001 handling before YMM state saving checking.
26104
26105 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
26106
26107 PR rtl-optimization/58960
26108 * haifa-sched.c (alloc_global_sched_pressure_data): New,
26109 factored out from ...
26110 (sched_init): ... here.
26111 (free_global_sched_pressure_data): New, factored out from ...
26112 (sched_finish): ... here.
26113 * sched-int.h (free_global_sched_pressure_data): Declare.
26114 * sched-rgn.c (nr_regions_initial): New static global.
26115 (haifa_find_rgns): Initialize it.
26116 (schedule_region): Disable sched-pressure for the newly
26117 generated regions.
26118
26119 2014-02-17 Richard Biener <rguenther@suse.de>
26120
26121 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
26122 release SSA defs of pattern stmts.
26123
26124 2014-02-17 Richard Biener <rguenther@suse.de>
26125
26126 * tree-inline.c (expand_call_inline): Release the virtual
26127 operand defined by the call we are about to inline.
26128
26129 2014-02-17 Richard Biener <rguenther@suse.de>
26130
26131 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
26132
26133 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
26134 Ilya Tocar <ilya.tocar@intel.com>
26135
26136 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
26137 arguments order in builtin.
26138 (_mm512_permutexvar_epi64): Ditto.
26139 (_mm512_mask_permutexvar_epi64): Ditto
26140 (_mm512_maskz_permutexvar_epi32): Ditto
26141 (_mm512_permutexvar_epi32): Ditto
26142 (_mm512_mask_permutexvar_epi32): Ditto
26143
26144 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26145
26146 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
26147 (p8_vmrgow): Likewise.
26148
26149 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26150
26151 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
26152 endian targets.
26153
26154 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26155
26156 PR target/60203
26157 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
26158 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
26159 into 64-bit and 32-bit moves. On 64-bit moves, add support for
26160 using direct move instructions on ISA 2.07. Also adjust
26161 instruction length for 64-bit.
26162 (mov<mode>_64bit, TFmode/TDmode): Likewise.
26163 (mov<mode>_32bit, TFmode/TDmode): Likewise.
26164
26165 2014-02-15 Alan Modra <amodra@gmail.com>
26166
26167 PR target/58675
26168 PR target/57935
26169 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
26170 find_replacement on parts of insn rtl that might be reloaded.
26171
26172 2014-02-15 Richard Biener <rguenther@suse.de>
26173
26174 PR tree-optimization/60183
26175 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
26176 (tree_ssa_phiprop): Calculate and free post-dominators.
26177
26178 2014-02-14 Jeff Law <law@redhat.com>
26179
26180 PR rtl-optimization/60131
26181 * ree.c (get_extended_src_reg): New function.
26182 (combine_reaching_defs): Use it rather than assuming location of REG.
26183 (find_and_remove_re): Verify first operand of extension is
26184 a REG before adding the insns to the copy list.
26185
26186 2014-02-14 Roland McGrath <mcgrathr@google.com>
26187
26188 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
26189 * configure: Regenerated.
26190 * config.in: Regenerated.
26191 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
26192 instead of ASM_SHORT.
26193
26194 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
26195 Richard Earnshaw <rearnsha@arm.com>
26196
26197 PR rtl-optimization/59535
26198 * lra-constraints.c (process_alt_operands): Encourage alternative
26199 when unassigned pseudo class is superset of the alternative class.
26200 (inherit_reload_reg): Don't inherit when optimizing for code size.
26201 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
26202 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
26203 modes not less than 4 for Thumb1.
26204
26205 2014-02-14 Kyle McMartin <kyle@redhat.com>
26206
26207 PR pch/60010
26208 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
26209
26210 2014-02-14 Richard Biener <rguenther@suse.de>
26211
26212 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
26213 (get_frame_arg): Drop the assert with langhook types_compatible_p.
26214 Do not strip INDIRECT_REFs.
26215
26216 2014-02-14 Richard Biener <rguenther@suse.de>
26217
26218 PR lto/60179
26219 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
26220 DECL_FUNCTION_SPECIFIC_TARGET.
26221 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
26222 * tree-streamer-out.c (pack_ts_target_option): Remove.
26223 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
26224 (write_ts_function_decl_tree_pointers): Do not stream
26225 DECL_FUNCTION_SPECIFIC_TARGET.
26226 * tree-streamer-in.c (unpack_ts_target_option): Remove.
26227 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
26228 (lto_input_ts_function_decl_tree_pointers): Do not stream
26229 DECL_FUNCTION_SPECIFIC_TARGET.
26230
26231 2014-02-14 Jakub Jelinek <jakub@redhat.com>
26232
26233 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
26234 (get_initial_def_for_induction, vectorizable_induction): Ignore
26235 debug stmts when looking for exit_phi.
26236 (vectorizable_live_operation): Fix up condition.
26237
26238 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26239
26240 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
26241 nreverse() because it changes the content of original tree list.
26242
26243 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26244
26245 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
26246 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
26247
26248 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
26249
26250 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
26251 GNU coding standards.
26252
26253 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26254
26255 PR debug/60152
26256 * dwarf2out.c (gen_subprogram_die): Don't call
26257 add_calling_convention_attribute if subr_die is old_die.
26258
26259 2014-02-13 Sharad Singhai <singhai@google.com>
26260
26261 * doc/optinfo.texi: Fix order of nodes.
26262
26263 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
26264
26265 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
26266 operands[2], not operands[3].
26267
26268 2014-02-13 Richard Biener <rguenther@suse.de>
26269
26270 PR bootstrap/59878
26271 * doc/install.texi (ISL): Update recommended version to 0.12.2,
26272 mention the possibility of an in-tree build.
26273 (CLooG): Update recommended version to 0.18.1, mention the
26274 possibility of an in-tree build and clarify that the ISL
26275 bundled with CLooG does not work.
26276
26277 2014-02-13 Jakub Jelinek <jakub@redhat.com>
26278
26279 PR target/43546
26280 * expr.c (compress_float_constant): If x is a hard register,
26281 extend into a pseudo and then move to x.
26282
26283 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
26284
26285 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
26286 caused by bad second argument to warning_at() with -mhotpatch and
26287 nested functions (e.g. with gfortran).
26288
26289 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
26290
26291 * opts.c (option_name): Remove "enabled by default" rider.
26292
26293 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
26294
26295 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
26296
26297 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
26298 Uros Bizjak <ubizjak@gmail.com>
26299
26300 PR target/60151
26301 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
26302 * configure: Regenerated.
26303
26304 2014-02-12 Richard Biener <rguenther@suse.de>
26305
26306 * vec.c (vec_prefix::calculate_allocation): Move as
26307 inline variant to vec.h.
26308 (vec_prefix::calculate_allocation_1): New out-of-line version.
26309 * vec.h (vec_prefix::calculate_allocation_1): Declare.
26310 (vec_prefix::m_has_auto_buf): Rename to ...
26311 (vec_prefix::m_using_auto_storage): ... this.
26312 (vec_prefix::calculate_allocation): Inline the easy cases
26313 and dispatch to calculate_allocation_1 which doesn't need the
26314 prefix address.
26315 (va_heap::reserve): Use gcc_checking_assert.
26316 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
26317 m_using_auto_storage.
26318 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
26319 member and adjust.
26320 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
26321 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
26322 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
26323
26324 2014-02-12 Richard Biener <rguenther@suse.de>
26325
26326 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
26327 when we found a dependence.
26328
26329 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
26330
26331 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
26332 common code...
26333 (maybe_fold_stmt): ... into this new function.
26334 * omp-low.c (lower_omp): Update comment.
26335
26336 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
26337 last use.
26338
26339 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
26340 dereference.
26341
26342 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
26343
26344 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
26345 identifiers in comments.
26346 (cortexa53_extra_costs): Likewise.
26347 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
26348 (cortexa7_extra_costs): Likewise.
26349 (cortexa12_extra_costs): Likewise.
26350 (cortexa15_extra_costs): Likewise.
26351 (v7m_extra_costs): Likewise.
26352
26353 2014-02-12 Richard Biener <rguenther@suse.de>
26354
26355 PR middle-end/60092
26356 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
26357 of posix_memalign being successful.
26358 (lower_stmt): Restrict lowering of posix_memalign to when
26359 -ftree-bit-ccp is enabled.
26360
26361 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26362
26363 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
26364 arg_loc.
26365 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26366
26367 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
26368
26369 PR rtl-optimization/60116
26370 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
26371 other_insn once the combination has been validated.
26372
26373 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
26374
26375 PR lto/59468
26376 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
26377 and wrapper.
26378 * ipa-devirt.c: Include demangle.h
26379 (odr_violation_reported): New static variable.
26380 (add_type_duplicate): Update odr_violations.
26381 (maybe_record_node): Add completep parameter; update it.
26382 (record_target_from_binfo): Add COMPLETEP parameter;
26383 update it as needed.
26384 (possible_polymorphic_call_targets_1): Likewise.
26385 (struct polymorphic_call_target_d): Add nonconstruction_targets;
26386 rename FINAL to COMPLETE.
26387 (record_targets_from_bases): Sanity check we found the binfo;
26388 fix COMPLETEP updating.
26389 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
26390 parameter, fix computing of COMPLETEP.
26391 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
26392 at LTO time do demangling.
26393 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
26394 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
26395 parameter.
26396 (gimple_get_virt_method_for_binfo): Likewise.
26397 * gimple-fold.h (gimple_get_virt_method_for_binfo,
26398 gimple_get_virt_method_for_vtable): Update prototypes.
26399
26400 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
26401
26402 PR target/49008
26403 * genautomata.c (add_presence_absence): Fix typo with
26404 {final_}presence_list.
26405
26406 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26407
26408 PR target/60137
26409 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
26410 for VSX/Altivec vectors that land in GPR registers.
26411
26412 2014-02-11 Richard Henderson <rth@redhat.com>
26413 Jakub Jelinek <jakub@redhat.com>
26414
26415 PR debug/59776
26416 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
26417 around drhs if type conversion to lacc->type is not useless.
26418
26419 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26420
26421 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
26422 tuning struct.
26423 (cortex-a57.cortex-a53): Likewise.
26424 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
26425
26426 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26427
26428 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
26429 arm_restrict_it.
26430
26431 2014-02-11 Renlin Li <Renlin.Li@arm.com>
26432
26433 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
26434 add_options_for_arm_vfp3.
26435
26436 2014-02-11 Jeff Law <law@redhat.com>
26437
26438 PR middle-end/54041
26439 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
26440 object with an undesirable mode.
26441
26442 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26443
26444 PR libgomp/60107
26445 * config/i386/sol2-9.h: New file.
26446 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
26447 *-*-solaris2.9*): Use it.
26448
26449 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26450
26451 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
26452 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
26453
26454 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
26455
26456 * config/microblaze/microblaze.c: Extend mcpu version format
26457
26458 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
26459
26460 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
26461
26462 2014-02-10 Richard Henderson <rth@redhat.com>
26463
26464 PR target/59927
26465 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
26466 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
26467 ms-abi vs -mno-accumulate-outgoing-args.
26468 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
26469 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
26470 respect to ms-abi.
26471
26472 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
26473
26474 PR middle-end/60080
26475 * cfgexpand.c (expand_asm_operands): Attach source location to
26476 ASM_INPUT rtx objects.
26477 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
26478
26479 2014-02-10 Nick Clifton <nickc@redhat.com>
26480
26481 * config/mn10300/mn10300.c (popcount): New function.
26482 (mn10300_expand_prologue): Include saved registers in stack usage
26483 count.
26484
26485 2014-02-10 Jeff Law <law@redhat.com>
26486
26487 PR middle-end/52306
26488 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
26489 when changing the SET_DEST of a prior insn to avoid an input reload.
26490
26491 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26492
26493 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
26494 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
26495 -mcall-openbsd, or -mcall-linux.
26496 (CC1_ENDIAN_BIG_SPEC): Remove.
26497 (CC1_ENDIAN_LITTLE_SPEC): Remove.
26498 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26499 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
26500 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
26501 and %cc1_endian_default.
26502 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26503
26504 2014-02-10 Richard Biener <rguenther@suse.de>
26505
26506 PR tree-optimization/60115
26507 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
26508 MEM_REF handling. Properly verify that the accesses are not
26509 out of the objects bound.
26510
26511 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26512
26513 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
26514 coretex to cortex.
26515
26516 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
26517
26518 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
26519 proper constants and fix formatting.
26520 (possible_polymorphic_call_targets): Fix formatting.
26521
26522 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
26523 Ilya Tocar <ilya.tocar@intel.com>
26524
26525 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
26526 (_mm512_loadu_epi32): Renamed into...
26527 (_mm512_loadu_si512): This.
26528 (_mm512_storeu_epi32): Renamed into...
26529 (_mm512_storeu_si512): This.
26530 (_mm512_maskz_ceil_ps): Removed.
26531 (_mm512_maskz_ceil_pd): Ditto.
26532 (_mm512_maskz_floor_ps): Ditto.
26533 (_mm512_maskz_floor_pd): Ditto.
26534 (_mm512_floor_round_ps): Ditto.
26535 (_mm512_floor_round_pd): Ditto.
26536 (_mm512_ceil_round_ps): Ditto.
26537 (_mm512_ceil_round_pd): Ditto.
26538 (_mm512_mask_floor_round_ps): Ditto.
26539 (_mm512_mask_floor_round_pd): Ditto.
26540 (_mm512_mask_ceil_round_ps): Ditto.
26541 (_mm512_mask_ceil_round_pd): Ditto.
26542 (_mm512_maskz_floor_round_ps): Ditto.
26543 (_mm512_maskz_floor_round_pd): Ditto.
26544 (_mm512_maskz_ceil_round_ps): Ditto.
26545 (_mm512_maskz_ceil_round_pd): Ditto.
26546 (_mm512_expand_pd): Ditto.
26547 (_mm512_expand_ps): Ditto.
26548 * config/i386/i386.c (ix86_builtins): Remove
26549 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
26550 (bdesc_args): Ditto.
26551 * config/i386/predicates.md (const1256_operand): New.
26552 (const_1_to_2_operand): Ditto.
26553 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26554 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26555 (*avx512pf_gatherpf<mode>sf): Ditto.
26556 (avx512pf_gatherpf<mode>df): Ditto.
26557 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26558 (*avx512pf_gatherpf<mode>df): Ditto.
26559 (avx512pf_scatterpf<mode>sf): Ditto.
26560 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26561 (*avx512pf_scatterpf<mode>sf): Ditto.
26562 (avx512pf_scatterpf<mode>df): Ditto.
26563 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26564 (*avx512pf_scatterpf<mode>df): Ditto.
26565 (avx512f_expand<mode>): Removed.
26566 (<shift_insn><mode>3<mask_name>): Change predicate type.
26567
26568 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26569
26570 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
26571 not at the end of datarefs vector use ordered_remove to avoid
26572 reordering datarefs vector.
26573
26574 PR c/59984
26575 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
26576 mark local addressable non-static vars as GOVD_PRIVATE
26577 instead of GOVD_LOCAL.
26578 * omp-low.c (lower_omp_for): Move gimple_bind_vars
26579 and BLOCK_VARS of gimple_bind_block to new_stmt rather
26580 than copying them.
26581
26582 PR middle-end/60092
26583 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
26584 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
26585 assume_aligned or alloc_align attributes.
26586 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
26587 arguments. Handle also assume_aligned and alloc_align attributes.
26588 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
26589 calls to functions with assume_aligned or alloc_align attributes.
26590 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
26591
26592 2014-02-08 Terry Guo <terry.guo@arm.com>
26593
26594 * doc/invoke.texi: Document ARM -march=armv7e-m.
26595
26596 2014-02-08 Jakub Jelinek <jakub@redhat.com>
26597
26598 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
26599 flag on __cilkrts_rethrow builtin.
26600
26601 PR ipa/60026
26602 * ipa-cp.c (determine_versionability): Fail at -O0
26603 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26604 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26605
26606 Revert:
26607 2014-02-04 Jakub Jelinek <jakub@redhat.com>
26608
26609 PR ipa/60026
26610 * tree-inline.c (copy_forbidden): Fail for
26611 __attribute__((optimize (0))) functions.
26612
26613 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26614
26615 * varpool.c: Include pointer-set.h.
26616 (varpool_remove_unreferenced_decls): Variables in other partitions
26617 will not be output; be however careful to not lose information
26618 about partitioning.
26619
26620 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
26621
26622 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26623 lookup in the vtable constructor.
26624
26625 2014-02-07 Jeff Law <law@redhat.com>
26626
26627 PR target/40977
26628 * config/m68k/m68k.md (ashldi_extsi): Turn into a
26629 define_insn_and_split.
26630
26631 * ipa-inline.c (inline_small_functions): Fix typos.
26632
26633 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26634
26635 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26636 (s390_can_use_return_insn): Declare.
26637 * config/s390/s390.h (EPILOGUE_USES): Define.
26638 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26639 instructions.
26640 (s390_chunkify_start): Handle return JUMP_LABELs.
26641 (s390_early_mach): Emit a main_pool instruction on the entry edge.
26642 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26643 (s390_can_use_return_insn): New functions.
26644 (s390_fix_long_loop_prediction): Handle conditional returns.
26645 (TARGET_SET_UP_BY_PROLOGUE): Define.
26646 * config/s390/s390.md (ANY_RETURN): New code iterator.
26647 (*creturn, *csimple_return, return, simple_return): New patterns.
26648
26649 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26650
26651 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26652 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
26653 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
26654 REG_CFA_RESTORE list when deciding not to restore a register.
26655
26656 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26657
26658 * config/s390/s390.c: Include tree-pass.h and context.h.
26659 (s390_early_mach): New function, split out from...
26660 (s390_emit_prologue): ...here.
26661 (pass_data_s390_early_mach): New pass structure.
26662 (pass_s390_early_mach): New class.
26663 (s390_option_override): Create and register early_mach pass.
26664 Move to end of file.
26665
26666 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26667
26668 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26669 to match for the exit block.
26670
26671 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26672
26673 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26674 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26675 Reject misaligned operands.
26676
26677 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26678
26679 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26680
26681 2014-02-07 Richard Biener <rguenther@suse.de>
26682
26683 PR middle-end/60092
26684 * gimple-low.c (lower_builtin_posix_memalign): New function.
26685 (lower_stmt): Call it to lower posix_memalign in a way
26686 to make alignment info accessible.
26687
26688 2014-02-07 Jakub Jelinek <jakub@redhat.com>
26689
26690 PR c++/60082
26691 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26692 __builtin_setjmp_receiver.
26693
26694 2014-02-07 Richard Biener <rguenther@suse.de>
26695
26696 PR middle-end/60092
26697 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26698 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26699 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26700 Handle BUILT_IN_POSIX_MEMALIGN.
26701 (find_func_clobbers): Likewise.
26702 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26703 (call_may_clobber_ref_p_1): Likewise.
26704
26705 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26706
26707 PR ipa/59918
26708 * ipa-devirt.c (record_target_from_binfo): Remove overactive
26709 sanity check.
26710
26711 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26712
26713 PR ipa/59469
26714 * lto-cgraph.c (lto_output_node): Use
26715 symtab_get_symbol_partitioning_class.
26716 (lto_output_varpool_node): likewise.
26717 (symtab_get_symbol_partitioning_class): Move here from
26718 lto/lto-partition.c
26719 * cgraph.h (symbol_partitioning_class): Likewise.
26720 (symtab_get_symbol_partitioning_class): Declare.
26721
26722 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26723
26724 * ggc.h (ggc_internal_cleared_alloc): New macro.
26725 * vec.h (vec_safe_copy): Handle memory stats.
26726 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26727 * target-globals.c (save_target_globals): Likewise.
26728
26729 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
26730
26731 PR target/60077
26732 * expr.c (emit_move_resolve_push): Export; be bit more selective
26733 on when to clear alias set.
26734 * expr.h (emit_move_resolve_push): Declare.
26735 * function.h (struct function): Add tail_call_marked.
26736 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26737 * config/i386/i386-protos.h (ix86_expand_push): Remove.
26738 * config/i386/i386.md (TImode move expander): De not call
26739 ix86_expand_push.
26740 (FP push expanders): Preserve memory attributes.
26741 * config/i386/sse.md (push<mode>1): Remove.
26742 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26743 (ix86_expand_push): Remove.
26744 * config/i386/mmx.md (push<mode>1): Remove.
26745
26746 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26747
26748 PR rtl-optimization/60030
26749 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26750 lopart with paradoxical subreg before shifting it up by hprec.
26751
26752 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26753
26754 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26755 Remove extra newline at end of file.
26756 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26757 (arm_issue_rate): Handle cortexa57.
26758 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26759 (cortex-a57.cortex-a53): Likewise.
26760
26761 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26762
26763 PR target/59575
26764 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26765 don't record in REG_FRAME_RELATED_EXPR registers not set in that
26766 bitmask.
26767 (arm_expand_prologue): Adjust all callers.
26768 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26769 info, registers also at the lowest numbered registers side. Use
26770 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26771 XEXP.
26772
26773 PR debug/59992
26774 * var-tracking.c (adjust_mems): Before adding a SET to
26775 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26776
26777 2014-02-06 Alan Modra <amodra@gmail.com>
26778
26779 PR target/60032
26780 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26781 change SDmode to DDmode when lra_in_progress.
26782
26783 2014-02-06 Jakub Jelinek <jakub@redhat.com>
26784
26785 PR middle-end/59150
26786 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26787 free_data_ref on the dr first, and before goto again also set dr
26788 to the next dr. For simd_lane_access, free old datarefs[i] before
26789 overwriting it. For get_vectype_for_scalar_type failure, don't
26790 free_data_ref if simd_lane_access.
26791
26792 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26793
26794 PR target/60062
26795 * tree.h (opts_for_fn): New inline function.
26796 (opt_for_fn): Define.
26797 * config/i386/i386.c (ix86_function_regparm): Use
26798 opt_for_fn (decl, optimize) instead of optimize.
26799
26800 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
26801
26802 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26803 for SYMBOL_REF in large memory model.
26804
26805 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26806
26807 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26808 and crypto support.
26809 (cortex-a57): Likewise.
26810 (cortex-a57.cortex-a53): Likewise.
26811
26812 2014-02-06 Yury Gribov <y.gribov@samsung.com>
26813 Kugan Vivekanandarajah <kuganv@linaro.org>
26814
26815 * config/arm/arm.c (arm_vector_alignment_reachable): Check
26816 unaligned_access.
26817 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26818
26819 2014-02-06 Richard Biener <rguenther@suse.de>
26820
26821 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26822 set_loop_copy and initialize_original_copy_tables.
26823
26824 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
26825
26826 * config/aarch64/aarch64-simd.md
26827 (aarch64_ashr_simddi): Change QI to SI.
26828
26829 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26830 Jakub Jelinek <jakub@redhat.com>
26831
26832 PR middle-end/60013
26833 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26834 of the dataflow.
26835
26836 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26837
26838 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26839 CODE_FOR_altivec_vpku[hw]um to
26840 CODE_FOR_altivec_vpku[hw]um_direct.
26841 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26842 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26843 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26844 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26845
26846 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26847
26848 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26849 generation for -maltivec=be.
26850 (altivec_vsumsws): Simplify redundant test.
26851
26852 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26853
26854 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26855 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26856 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26857 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26858 gen_altivec_vpkuwum.
26859 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26860 BYTES_BIG_ENDIAN.
26861 (altivec_vpks<VI_char>ss): Likewise.
26862 (altivec_vpks<VI_char>us): Likewise.
26863 (altivec_vpku<VI_char>us): Likewise.
26864 (altivec_vpku<VI_char>um): Likewise.
26865 (altivec_vpku<VI_char>um_direct): New (copy of
26866 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26867 internal use).
26868 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26869 target is little endian and -maltivec=be is not specified.
26870 (*altivec_vupkhs<VU_char>_direct): New (copy of
26871 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26872 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26873 target is little endian and -maltivec=be is not specified.
26874 (*altivec_vupkls<VU_char>_direct): New (copy of
26875 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26876 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26877 little endian and -maltivec=be is not specified.
26878 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26879 little endian and -maltivec=be is not specified.
26880
26881 2014-02-05 Richard Henderson <rth@redhat.com>
26882
26883 PR debug/52727
26884 * combine-stack-adj.c: Revert r206943.
26885 * sched-int.h (struct deps_desc): Add last_args_size.
26886 * sched-deps.c (init_deps): Initialize it.
26887 (sched_analyze_insn): Add OUTPUT dependencies between insns that
26888 contain REG_ARGS_SIZE notes.
26889
26890 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
26891
26892 * lto-cgraph.c (asm_nodes_output): Make global.
26893 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26894 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26895 (driver_handle_option): Handle OPT_fwpa.
26896
26897 2014-02-05 Jakub Jelinek <jakub@redhat.com>
26898
26899 PR ipa/59947
26900 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26901 a comment typo and formatting issue. If odr_hash hasn't been
26902 created, return vNULL and set *completep to false.
26903
26904 PR middle-end/57499
26905 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26906 bb with no successors.
26907
26908 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
26909
26910 PR target/59718
26911 * doc/invoke.texi (-march): Clarify documentation for ARM.
26912 (-mtune): Likewise.
26913 (-mcpu): Likewise.
26914
26915 2014-02-05 Richard Biener <rguenther@suse.de>
26916
26917 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26918 when not vectorizing because of too many alias checks.
26919 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26920 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26921
26922 2014-02-05 Nick Clifton <nickc@redhat.com>
26923
26924 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26925 accept extended registers in any mode when compiling for the MN10300.
26926
26927 2014-02-05 Yury Gribov <y.gribov@samsung.com>
26928
26929 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26930 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26931 sanitization attributes.
26932 (can_inline_edge_p): Likewise.
26933 (sanitize_attrs_match_for_inline_p): New function.
26934
26935 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26936
26937 * ipa-prop.c (detect_type_change): Shor circuit testing of
26938 type changes on THIS pointer.
26939
26940 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
26941
26942 PR target/59777
26943 * config/pa/pa.c (legitimize_tls_address): Return original address
26944 if not passed a SYMBOL_REF rtx.
26945 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26946 addresses.
26947 (pa_emit_move_sequence): Simplify TLS source operands.
26948 (pa_legitimate_constant_p): Reject all TLS constants.
26949 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26950 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26951
26952 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26953
26954 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26955 groups when we know they are controlled by LTO.
26956 * varasm.c (default_binds_local_p_1): If object is in other partition,
26957 it will be resolved locally.
26958
26959 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26960
26961 * config/host-linux.c (linux_gt_pch_use_address): Don't
26962 use SSIZE_MAX because it is not always defined.
26963
26964 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
26965
26966 PR bootstrap/59913
26967 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
26968 threshold for pseudo splitting.
26969 (update_ebb_live_info): Process call argument hard registers and
26970 hard registers from insn definition too.
26971 (max_small_class_regs_num): New constant.
26972 (inherit_in_ebb): Update live hard regs through EBBs. Update
26973 reloads_num only for small register classes. Don't split for
26974 outputs of jumps.
26975
26976 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
26977
26978 PR ipa/60058
26979 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
26980 is non-null.
26981
26982 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
26983
26984 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
26985 visibility is safe.
26986
26987 2014-02-04 Marek Polacek <polacek@redhat.com>
26988
26989 * gdbinit.in (pel): Define.
26990
26991 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
26992
26993 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
26994 behavior.
26995
26996 2014-02-04 Richard Biener <rguenther@suse.de>
26997
26998 PR lto/59723
26999 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
27000 in function context local.
27001 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
27002 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
27003 similar to LTO_imported_decl_ref.
27004
27005 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27006
27007 PR tree-optimization/60002
27008 * cgraphclones.c (build_function_decl_skip_args): Clear
27009 DECL_LANG_SPECIFIC.
27010
27011 PR tree-optimization/60023
27012 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
27013 false to gsi_replace.
27014 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
27015 has been in some EH region and vec_stmt could throw, add
27016 vec_stmt into the same EH region.
27017 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
27018 has no lhs, ignore it.
27019 * internal-fn.c (expand_MASK_LOAD): Likewise.
27020
27021 PR ipa/60026
27022 * tree-inline.c (copy_forbidden): Fail for
27023 __attribute__((optimize (0))) functions.
27024
27025 PR other/58712
27026 * omp-low.c (simd_clone_struct_copy): If from->inbranch
27027 is set, copy one less argument.
27028 (expand_simd_clones): Don't subtract clone_info->inbranch
27029 from simd_clone_struct_alloc argument.
27030
27031 PR rtl-optimization/57915
27032 * recog.c (simplify_while_replacing): If all unary/binary/relational
27033 operation arguments are constant, attempt to simplify those.
27034
27035 PR middle-end/59261
27036 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
27037 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
27038
27039 2014-02-04 Richard Biener <rguenther@suse.de>
27040
27041 PR tree-optimization/60012
27042 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
27043 TBAA disambiguation to all DDRs.
27044
27045 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27046
27047 PR target/59788
27048 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
27049 (LINK_SPEC): Use it for -shared, -shared-libgcc.
27050
27051 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27052
27053 PR ipa/59882
27054 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
27055
27056 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27057
27058 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
27059 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
27060
27061 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27062
27063 PR ipa/59831
27064 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
27065 to figure out targets of polymorphic calls with known decl.
27066 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27067 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
27068 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
27069 (get_polymorphic_call_info): ... here.
27070 (get_polymorphic_call_info_from_invariant): New function.
27071
27072 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27073
27074 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
27075 lookup via vtable pointer; check for type consistency
27076 and turn inconsitent facts into UNREACHABLE.
27077 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27078 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
27079 type inconsistent querries; return UNREACHABLE instead.
27080
27081 2014-02-03 Richard Henderson <rth@twiddle.net>
27082
27083 PR tree-opt/59924
27084 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
27085 already processed this node.
27086 (normalize_one_pred_1): Pass along mark_set.
27087 (normalize_one_pred): Create and destroy a pointer_set_t.
27088 (normalize_one_pred_chain): Likewise.
27089
27090 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
27091
27092 PR gcov-profile/58602
27093 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
27094
27095 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
27096
27097 PR ipa/59831
27098 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
27099 -fno-devirtualize; try to devirtualize by the knowledge of
27100 virtual table pointer given by aggregate propagation.
27101 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
27102 (ipa_print_node_jump_functions): Dump also offset that
27103 is relevant for polymorphic calls.
27104 (determine_known_aggregate_parts): Add arg_type parameter; use it
27105 instead of determining the type from pointer type.
27106 (ipa_compute_jump_functions_for_edge): Update call of
27107 determine_known_aggregate_parts.
27108 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
27109 (gimple_get_virt_method_for_binfo): ... here; simplify using
27110 vtable_pointer_value_to_vtable.
27111 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
27112 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
27113 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
27114 (vtable_pointer_value_to_vtable): Break out from ...; handle also
27115 POINTER_PLUS_EXPR.
27116 (vtable_pointer_value_to_binfo): ... here.
27117 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
27118
27119 2014-02-03 Teresa Johnson <tejohnson@google.com>
27120
27121 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
27122 redef of outer loop index variable.
27123
27124 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
27125
27126 PR c++/53017
27127 PR c++/59211
27128 * doc/extend.texi (Function Attributes): Typo.
27129
27130 2014-02-03 Cong Hou <congh@google.com>
27131
27132 PR tree-optimization/60000
27133 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
27134 if the vectorized statement is a store. A store statement can only
27135 appear at the end of pattern statements.
27136
27137 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27138
27139 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
27140 (ix86_option_override_internal): Default long double to 64-bit for
27141 32-bit Bionic and to 128-bit for 64-bit Bionic.
27142
27143 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
27144 TARGET_LONG_DOUBLE_128 is true.
27145 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
27146
27147 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
27148 (mlong-double-64): Negate -mlong-double-128.
27149 (mlong-double-128): New option.
27150
27151 * config/i386/i386-c.c (ix86_target_macros): Define
27152 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
27153
27154 * doc/invoke.texi: Document -mlong-double-128.
27155
27156 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
27157
27158 PR rtl-optimization/60024
27159 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
27160
27161 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
27162
27163 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
27164
27165 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27166
27167 PR rtl-optimization/57662
27168 * sel-sched.c (code_motion_path_driver): Do not mark already not
27169 existing blocks in the visiting bitmap.
27170
27171 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
27172
27173 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
27174 on the insn being emitted.
27175
27176 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
27177 Will Deacon <will.deacon@arm.com>
27178
27179 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
27180
27181 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27182
27183 * config/arm/arm-tables.opt: Regenerate.
27184
27185 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27186
27187 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
27188 for vector types other than V16QImode.
27189 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
27190 define_expand, and call altivec_expand_vec_perm_le when producing
27191 code with little endian element order.
27192 (*altivec_vperm_<mode>_internal): New insn having previous
27193 behavior of altivec_vperm_<mode>.
27194 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
27195 altivec_expand_vec_perm_le when producing code with little endian
27196 element order.
27197 (*altivec_vperm_<mode>_uns_internal): New insn having previous
27198 behavior of altivec_vperm_<mode>_uns.
27199
27200 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27201
27202 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
27203 (altivec_vsumsws): Add handling for -maltivec=be with a little
27204 endian target.
27205 (altivec_vsumsws_direct): New.
27206 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
27207 gen_altivec_vsumsws.
27208
27209 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27210
27211 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
27212 vtable_pointer_value_to_binfo): New functions.
27213 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
27214 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
27215
27216 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
27217
27218 * config/nios2/nios2.md (load_got_register): Initialize GOT
27219 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
27220 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
27221
27222 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
27223
27224 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
27225 preserverd by passthrough, do not propagate the type.
27226
27227 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27228
27229 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
27230 (mips_atomic_assign_expand_fenv): New function.
27231 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27232
27233 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27234
27235 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
27236 (__builtin_mips_set_fcsr): Likewise.
27237 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
27238 MIPS_USI_FTYPE_VOID.
27239 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
27240 (mips16_expand_set_fcsr): Likewise.
27241 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
27242 (mips16_set_fcsr_stub): Likewise.
27243 (mips16_get_fcsr_one_only_stub): New class.
27244 (mips16_set_fcsr_one_only_stub): Likewise.
27245 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
27246 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
27247 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
27248 (hard_float): New availability predicate.
27249 (mips_builtins): Add get_fcsr and set_fcsr.
27250 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
27251 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
27252 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
27253 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
27254 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
27255 patterns.
27256
27257 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27258
27259 * config/mips/mips.c (mips_one_only_stub): New class.
27260 (mips_need_mips16_rdhwr_p): Replace with...
27261 (mips16_rdhwr_stub): ...this new variable.
27262 (mips16_stub_call_address): New function.
27263 (mips16_rdhwr_one_only_stub): New class.
27264 (mips_expand_thread_pointer): Use mips16_stub_call_address.
27265 (mips_output_mips16_rdhwr): Delete.
27266 (mips_finish_stub): New function.
27267 (mips_code_end): Use it to handle rdhwr stubs.
27268
27269 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
27270
27271 PR target/60017
27272 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
27273 when calculating size of integer atomic types.
27274
27275 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
27276
27277 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
27278
27279 2014-02-01 Jakub Jelinek <jakub@redhat.com>
27280
27281 PR tree-optimization/60003
27282 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
27283 * profile.c (branch_prob): Use gimple_call_builtin_p
27284 to check for BUILT_IN_SETJMP_RECEIVER.
27285 * tree-inline.c (copy_bb): Call notice_special_calls.
27286
27287 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
27288
27289 PR bootstrap/59985
27290 * lra-constraints.c (process_alt_operands): Update reload_sum only
27291 on the first pass.
27292
27293 2014-01-31 Richard Henderson <rth@redhat.com>
27294
27295 PR middle-end/60004
27296 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
27297 until after else_eh is processed.
27298
27299 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27300
27301 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
27302 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
27303 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
27304 in smmintrin.h, remove them.
27305 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
27306 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
27307 * config/i386/i386.md (ROUND_SAE): Fix value.
27308 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
27309 (const48_operand): New.
27310 * config/i386/subst.md (round), (round_expand): Use
27311 const_4_or_8_to_11_operand.
27312 (round_saeonly), (round_saeonly_expand): Use const48_operand.
27313
27314 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
27315
27316 * config/i386/constraints.md (Yk): Swap meaning with k.
27317 * config/i386/i386.md (movhi_internal): Change Yk to k.
27318 (movqi_internal): Ditto.
27319 (*k<logic><mode>): Ditto.
27320 (*andhi_1): Ditto.
27321 (*andqi_1): Ditto.
27322 (kandn<mode>): Ditto.
27323 (*<code>hi_1): Ditto.
27324 (*<code>qi_1): Ditto.
27325 (kxnor<mode>): Ditto.
27326 (kortestzhi): Ditto.
27327 (kortestchi): Ditto.
27328 (kunpckhi): Ditto.
27329 (*one_cmplhi2_1): Ditto.
27330 (*one_cmplqi2_1): Ditto.
27331 * config/i386/sse.md (): Change k to Yk.
27332 (avx512f_load<mode>_mask): Ditto.
27333 (avx512f_blendm<mode>): Ditto.
27334 (avx512f_store<mode>_mask): Ditto.
27335 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
27336 (avx512f_storedqu<mode>_mask): Ditto.
27337 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
27338 Ditto.
27339 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
27340 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
27341 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
27342 (avx512f_maskcmp<mode>3): Ditto.
27343 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
27344 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
27345 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
27346 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
27347 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
27348 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
27349 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
27350 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
27351 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
27352 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
27353 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
27354 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
27355 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
27356 (vec_extract_lo_<mode>_maskm): Ditto.
27357 (vec_extract_hi_<mode>_maskm): Ditto.
27358 (avx512f_vternlog<mode>_mask): Ditto.
27359 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
27360 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
27361 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
27362 (avx512f_<code>v8div16qi2_mask): Ditto.
27363 (avx512f_<code>v8div16qi2_mask_store): Ditto.
27364 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
27365 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
27366 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
27367 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
27368 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27369 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27370 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27371 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27372 (avx512cd_maskb_vec_dupv8di): Ditto.
27373 (avx512cd_maskw_vec_dupv16si): Ditto.
27374 (avx512f_vpermi2var<mode>3_maskz): Ditto.
27375 (avx512f_vpermi2var<mode>3_mask): Ditto.
27376 (avx512f_vpermi2var<mode>3_mask): Ditto.
27377 (avx512f_vpermt2var<mode>3_maskz): Ditto.
27378 (*avx512f_gathersi<mode>): Ditto.
27379 (*avx512f_gathersi<mode>_2): Ditto.
27380 (*avx512f_gatherdi<mode>): Ditto.
27381 (*avx512f_gatherdi<mode>_2): Ditto.
27382 (*avx512f_scattersi<mode>): Ditto.
27383 (*avx512f_scatterdi<mode>): Ditto.
27384 (avx512f_compress<mode>_mask): Ditto.
27385 (avx512f_compressstore<mode>_mask): Ditto.
27386 (avx512f_expand<mode>_mask): Ditto.
27387 * config/i386/subst.md (mask): Change k to Yk.
27388 (mask_scalar_merge): Ditto.
27389 (sd): Ditto.
27390
27391 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
27392
27393 * doc/extend.texi (Vector Extensions): Document ?: in C++.
27394
27395 2014-01-31 Richard Biener <rguenther@suse.de>
27396
27397 PR middle-end/59990
27398 * builtins.c (fold_builtin_memory_op): Make sure to not
27399 use a floating-point mode or a boolean or enumeral type for
27400 the copy operation.
27401
27402 2014-01-30 DJ Delorie <dj@redhat.com>
27403
27404 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
27405 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
27406 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
27407 whenever main() has an epilogue.
27408
27409 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27410
27411 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
27412 unused variable "field".
27413 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
27414 (vsx_mergeh_<mode>): Likewise.
27415 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
27416 (altivec_vmrghh): Likewise.
27417 (altivec_vmrghw): Likewise.
27418 (altivec_vmrglb): Likewise.
27419 (altivec_vmrglh): Likewise.
27420 (altivec_vmrglw): Likewise.
27421 (altivec_vspltb): Add missing uses.
27422 (altivec_vsplth): Likewise.
27423 (altivec_vspltw): Likewise.
27424 (altivec_vspltsf): Likewise.
27425
27426 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27427
27428 PR target/59923
27429 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
27430 frame related instructions.
27431
27432 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
27433
27434 PR rtl-optimization/59959
27435 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
27436 any reload of register whose subreg is invalid.
27437
27438 2014-01-30 Jakub Jelinek <jakub@redhat.com>
27439
27440 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
27441 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
27442 Add missing return type - void.
27443
27444 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27445
27446 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
27447 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
27448 remove element index adjustment for endian (now handled in vsx.md
27449 and altivec.md).
27450 (altivec_expand_vec_perm_const): Use
27451 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
27452 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
27453 (vsx_xxspltw_<mode>): Adjust element index for little endian.
27454 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
27455 define_expand and a new define_insn *altivec_vspltb_internal;
27456 adjust for -maltivec=be on a little endian target.
27457 (altivec_vspltb_direct): New.
27458 (altivec_vsplth): Divide into a define_expand and a new
27459 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
27460 little endian target.
27461 (altivec_vsplth_direct): New.
27462 (altivec_vspltw): Divide into a define_expand and a new
27463 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
27464 little endian target.
27465 (altivec_vspltw_direct): New.
27466 (altivec_vspltsf): Divide into a define_expand and a new
27467 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
27468 a little endian target.
27469
27470 2014-01-30 Richard Biener <rguenther@suse.de>
27471
27472 PR tree-optimization/59993
27473 * tree-ssa-forwprop.c (associate_pointerplus): Check we
27474 can propagate form the earlier stmt and avoid the transform
27475 when the intermediate result is needed.
27476
27477 2014-01-30 Alangi Derick <alangiderick@gmail.com>
27478
27479 * README.Portability: Fix typo.
27480
27481 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
27482
27483 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
27484 comparison_operator with ordered_comparison_operator.
27485
27486 2014-01-30 Nick Clifton <nickc@redhat.com>
27487
27488 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
27489 Rename to mn10300_store_multiple_regs.
27490 * config/mn10300/mn10300.c: Likewise.
27491 * config/mn10300/mn10300.md (store_movm): Fix typo: call
27492 store_multiple_regs.
27493 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
27494 Call mn10300_store_multiple_regs.
27495
27496 2014-01-30 Nick Clifton <nickc@redhat.com>
27497 DJ Delorie <dj@redhat.com>
27498
27499 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
27500 %fp 2 to keep registers after it properly word-aligned.
27501 (rl78_alloc_physical_registers_umul): Handle the case where both
27502 input operands are the same.
27503
27504 2014-01-30 Richard Biener <rguenther@suse.de>
27505
27506 PR tree-optimization/59903
27507 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
27508 check properly.
27509
27510 2014-01-30 Jason Merrill <jason@redhat.com>
27511
27512 PR c++/59633
27513 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
27514
27515 PR c++/59645
27516 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
27517
27518 2014-01-30 Richard Biener <rguenther@suse.de>
27519
27520 PR tree-optimization/59951
27521 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
27522
27523 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
27524
27525 PR target/59784
27526 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
27527 SFmode to DFmode case.
27528
27529 2014-01-29 DJ Delorie <dj@redhat.com>
27530
27531 * config/msp430/msp430.opt (-minrt): New.
27532 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
27533 if -minrt given.
27534 (ENDFILE_SPEC): Likewise.
27535
27536 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
27537
27538 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
27539 (estimate_function_body_sizes): Use it.
27540
27541 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
27542
27543 PR c++/58561
27544 * dwarf2out.c (is_cxx_auto): New.
27545 (is_base_type): Use it.
27546 (gen_type_die_with_usage): Likewise.
27547
27548 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27549
27550 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
27551 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
27552 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
27553 -maltivec=be with LE targets.
27554 (vsx_mergeh_<mode>): Likewise.
27555 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
27556 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
27557 (altivec_vmrghb): Replace with define_expand and new
27558 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
27559 (altivec_vmrghb_direct): New define_insn.
27560 (altivec_vmrghh): Replace with define_expand and new
27561 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
27562 (altivec_vmrghh_direct): New define_insn.
27563 (altivec_vmrghw): Replace with define_expand and new
27564 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
27565 (altivec_vmrghw_direct): New define_insn.
27566 (*altivec_vmrghsf): Adjust for endianness.
27567 (altivec_vmrglb): Replace with define_expand and new
27568 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
27569 (altivec_vmrglb_direct): New define_insn.
27570 (altivec_vmrglh): Replace with define_expand and new
27571 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
27572 (altivec_vmrglh_direct): New define_insn.
27573 (altivec_vmrglw): Replace with define_expand and new
27574 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
27575 (altivec_vmrglw_direct): New define_insn.
27576 (*altivec_vmrglsf): Adjust for endianness.
27577 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27578 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27579 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27580 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27581 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27582 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27583 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27584 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27585
27586 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
27587
27588 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
27589 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
27590 whitespace.
27591
27592 2014-01-29 Richard Biener <rguenther@suse.de>
27593
27594 PR tree-optimization/58742
27595 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
27596 associate_pointerplus_align.
27597 (associate_pointerplus_diff): New function.
27598 (associate_pointerplus): Likewise. Call associate_pointerplus_align
27599 and associate_pointerplus_diff.
27600
27601 2014-01-29 Richard Biener <rguenther@suse.de>
27602
27603 * lto-streamer.h (LTO_major_version): Bump to 3.
27604 (LTO_minor_version): Reset to 0.
27605
27606 2014-01-29 Renlin Li <Renlin.Li@arm.com>
27607
27608 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27609 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27610 (arm_file_start): Generate correct asm header for armv7ve.
27611 * config/arm/bpabi.h: Add multilib support for armv7ve.
27612 * config/arm/driver-arm.c: Change the architectures of cortex-a7
27613 and cortex-a15 to armv7ve.
27614 * config/arm/t-aprofile: Add multilib support for armv7ve.
27615 * doc/invoke.texi: Document -march=armv7ve.
27616
27617 2014-01-29 Richard Biener <rguenther@suse.de>
27618
27619 PR tree-optimization/58742
27620 * tree-ssa-forwprop.c (associate_plusminus): Return true
27621 if we changed sth, defer EH cleanup to ...
27622 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
27623 (simplify_mult): New function.
27624
27625 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27626
27627 PR middle-end/59917
27628 PR tree-optimization/59920
27629 * tree.c (build_common_builtin_nodes): Remove
27630 __builtin_setjmp_dispatcher initialization.
27631 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27632 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27633 instead of gsi_after_labels + manually skipping debug stmts.
27634 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27635 ignore bbs with IFN_ABNORMAL_DISPATCHER.
27636 * tree-inline.c (copy_edges_for_bb): Remove
27637 can_make_abnormal_goto argument, instead add abnormal_goto_dest
27638 argument. Ignore computed_goto_p stmts. Don't call
27639 make_abnormal_goto_edges. If a call might need abnormal edges
27640 for non-local gotos, see if it already has an edge to
27641 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27642 with true argument, don't do anything then, otherwise add
27643 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27644 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27645 caller.
27646 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27647 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27648 (lower_stmt): Don't set data->calls_builtin_setjmp.
27649 (lower_builtin_setjmp): Adjust comment.
27650 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27651 * tree-cfg.c (found_computed_goto): Remove.
27652 (factor_computed_gotos): Remove.
27653 (make_goto_expr_edges): Return bool, true for computed gotos.
27654 Don't call make_abnormal_goto_edges.
27655 (build_gimple_cfg): Don't set found_computed_goto, don't call
27656 factor_computed_gotos.
27657 (computed_goto_p): No longer static.
27658 (make_blocks): Don't set found_computed_goto.
27659 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27660 (make_edges): If make_goto_expr_edges returns true, push bb
27661 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27662 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27663 vector. Record mapping between bbs and OpenMP regions if there
27664 are any, adjust make_gimple_omp_edges caller. Call
27665 handle_abnormal_edges.
27666 (make_abnormal_goto_edges): Remove.
27667 * tree-cfg.h (make_abnormal_goto_edges): Remove.
27668 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27669 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27670 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27671 * internal-fn.def (ABNORMAL_DISPATCHER): New.
27672 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27673 filling *region also set *region_idx to (*region)->entry->index.
27674
27675 PR other/58712
27676 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27677 For REGs set ORIGINAL_REGNO.
27678
27679 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
27680
27681 * doc/md.texi: Mention that a target shouldn't implement
27682 vec_widen_(s|u)mul_even/odd pair if it is less efficient
27683 than hi/lo pair.
27684
27685 2014-01-29 Jakub Jelinek <jakub@redhat.com>
27686
27687 PR tree-optimization/59594
27688 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27689 a copy of the datarefs vector rather than the vector itself.
27690
27691 2014-01-28 Jason Merrill <jason@redhat.com>
27692
27693 PR c++/53756
27694 * dwarf2out.c (auto_die): New static.
27695 (gen_type_die_with_usage): Handle C++1y 'auto'.
27696 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27697 on definition.
27698
27699 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
27700
27701 PR target/59672
27702 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27703 (SPEC_X32): Likewise.
27704 (SPEC_64): Likewise.
27705 * config/i386/i386.c (ix86_option_override_internal): Turn off
27706 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27707 for TARGET_16BIT.
27708 (x86_file_start): Output .code16gcc for TARGET_16BIT.
27709 * config/i386/i386.h (TARGET_16BIT): New macro.
27710 (TARGET_16BIT_P): Likewise.
27711 * config/i386/i386.opt: Add m16.
27712 * doc/invoke.texi: Document -m16.
27713
27714 2014-01-28 Jakub Jelinek <jakub@redhat.com>
27715
27716 PR preprocessor/59935
27717 * input.c (location_get_source_line): Bail out on when line number
27718 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27719
27720 2014-01-28 Richard Biener <rguenther@suse.de>
27721
27722 PR tree-optimization/58742
27723 * tree-ssa-forwprop.c (associate_plusminus): Handle
27724 pointer subtraction of the form (T)(P + A) - (T)P.
27725
27726 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27727
27728 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27729 at const_int_cost.
27730
27731 2014-01-28 Richard Biener <rguenther@suse.de>
27732
27733 Revert
27734 2014-01-28 Richard Biener <rguenther@suse.de>
27735
27736 PR rtl-optimization/45364
27737 PR rtl-optimization/59890
27738 * var-tracking.c (local_get_addr_clear_given_value): Handle
27739 already cleared slot.
27740 (val_reset): Handle not allocated local_get_addr_cache.
27741 (vt_find_locations): Use post-order on the inverted CFG.
27742
27743 2014-01-28 Richard Biener <rguenther@suse.de>
27744
27745 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27746
27747 2014-01-28 Richard Biener <rguenther@suse.de>
27748
27749 PR rtl-optimization/45364
27750 PR rtl-optimization/59890
27751 * var-tracking.c (local_get_addr_clear_given_value): Handle
27752 already cleared slot.
27753 (val_reset): Handle not allocated local_get_addr_cache.
27754 (vt_find_locations): Use post-order on the inverted CFG.
27755
27756 2014-01-28 Alan Modra <amodra@gmail.com>
27757
27758 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27759 * configure.ac <recursive call for build != host>: Define
27760 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27761 and LD_FOR_BUILD too.
27762 * configure: Regenerate.
27763
27764 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
27765
27766 * config/i386/i386.c (get_builtin_code_for_version): Separate
27767 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27768 Broadwell from Haswell.
27769
27770 2014-01-27 Steve Ellcey <sellcey@mips.com>
27771
27772 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27773 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27774 * config/mips/mips.c (mips_option_override): Change setting
27775 of TARGET_DSP.
27776 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27777 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27778 Change from Mask to Var.
27779
27780 2014-01-27 Jeff Law <law@redhat.com>
27781
27782 * ipa-inline.c (inline_small_functions): Fix typo.
27783
27784 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
27785
27786 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27787 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27788 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27789 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27790 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27791 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27792 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27793 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27794 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27795 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27796 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27797 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27798 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27799 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27800 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27801 (_mm512_storeu_epi64): Ditto.
27802 (_mm512_cmpge_epi32_mask): Ditto.
27803 (_mm512_cmpge_epu32_mask): Ditto.
27804 (_mm512_cmpge_epi64_mask): Ditto.
27805 (_mm512_cmpge_epu64_mask): Ditto.
27806 (_mm512_cmple_epi32_mask): Ditto.
27807 (_mm512_cmple_epu32_mask): Ditto.
27808 (_mm512_cmple_epi64_mask): Ditto.
27809 (_mm512_cmple_epu64_mask): Ditto.
27810 (_mm512_cmplt_epi32_mask): Ditto.
27811 (_mm512_cmplt_epu32_mask): Ditto.
27812 (_mm512_cmplt_epi64_mask): Ditto.
27813 (_mm512_cmplt_epu64_mask): Ditto.
27814 (_mm512_cmpneq_epi32_mask): Ditto.
27815 (_mm512_cmpneq_epu32_mask): Ditto.
27816 (_mm512_cmpneq_epi64_mask): Ditto.
27817 (_mm512_cmpneq_epu64_mask): Ditto.
27818 (_mm512_expand_pd): Ditto.
27819 (_mm512_expand_ps): Ditto.
27820 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27821 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27822 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27823 * config/i386/i386.c (ix86_builtins): Add
27824 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27825 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27826 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27827 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27828 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27829 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27830 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27831 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27832 IX86_BUILTIN_PMOVUSQW512_MEM.
27833 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27834 __builtin_ia32_pmovsqd512mem_mask,
27835 __builtin_ia32_pmovqd512mem_mask,
27836 __builtin_ia32_pmovusqw512mem_mask,
27837 __builtin_ia32_pmovsqw512mem_mask,
27838 __builtin_ia32_pmovqw512mem_mask,
27839 __builtin_ia32_pmovusdw512mem_mask,
27840 __builtin_ia32_pmovsdw512mem_mask,
27841 __builtin_ia32_pmovdw512mem_mask,
27842 __builtin_ia32_pmovqb512mem_mask,
27843 __builtin_ia32_pmovusqb512mem_mask,
27844 __builtin_ia32_pmovsqb512mem_mask,
27845 __builtin_ia32_pmovusdb512mem_mask,
27846 __builtin_ia32_pmovsdb512mem_mask,
27847 __builtin_ia32_pmovdb512mem_mask.
27848 (bdesc_args): Add __builtin_ia32_expanddf512,
27849 __builtin_ia32_expandsf512.
27850 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27851 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27852 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27853 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27854 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27855 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27856 (avx512f_<code>v8div16qi2_mask_store): This.
27857 (avx512f_expand<mode>): New.
27858
27859 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
27860
27861 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27862 New.
27863 (_mm512_mask_prefetch_i64gather_pd): Ditto.
27864 (_mm512_prefetch_i32scatter_pd): Ditto.
27865 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27866 (_mm512_prefetch_i64scatter_pd): Ditto.
27867 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27868 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27869 (_mm512_mask_prefetch_i64gather_ps): Ditto.
27870 (_mm512_prefetch_i32scatter_ps): Ditto.
27871 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27872 (_mm512_prefetch_i64scatter_ps): Ditto.
27873 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27874 * config/i386/i386-builtin-types.def: Define
27875 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27876 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27877 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27878 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27879 IX86_BUILTIN_SCATTERPFQPD.
27880 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27881 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27882 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27883 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27884 __builtin_ia32_scatterpfqps.
27885 (ix86_expand_builtin): Expand new built-ins.
27886 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27887 fix memory access data type.
27888 (*avx512pf_gatherpf<mode>_mask): Ditto.
27889 (*avx512pf_gatherpf<mode>): Ditto.
27890 (avx512pf_scatterpf<mode>): Ditto.
27891 (*avx512pf_scatterpf<mode>_mask): Ditto.
27892 (*avx512pf_scatterpf<mode>): Ditto.
27893 (GATHER_SCATTER_SF_MEM_MODE): New.
27894 (avx512pf_gatherpf<mode>df): Ditto.
27895 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27896 (*avx512pf_scatterpf<mode>df): Ditto.
27897
27898 2014-01-27 Jakub Jelinek <jakub@redhat.com>
27899
27900 PR bootstrap/59934
27901 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27902 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27903 reached.
27904
27905 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27906
27907 * common/config/arm/arm-common.c
27908 (arm_rewrite_mcpu): Handle multiple names.
27909 * config/arm/arm.h
27910 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27911
27912 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
27913
27914 * gimple-builder.h (create_gimple_tmp): Delete.
27915
27916 2014-01-27 Christian Bruel <christian.bruel@st.com>
27917
27918 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27919 words comparisons.
27920
27921 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
27922
27923 * config/pa/pa.md (call): Generate indirect long calls to non-local
27924 functions when outputing 32-bit code.
27925 (call_value): Likewise except for special call to buggy powf function.
27926
27927 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27928 portable runtime and PIC indirect calls.
27929 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27930 and PIC call sequences. Use ldo instead of blr to set return register
27931 in PIC call sequence.
27932
27933 2014-01-25 Walter Lee <walt@tilera.com>
27934
27935 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27936 avoid clobbering a live register.
27937
27938 2014-01-25 Walter Lee <walt@tilera.com>
27939
27940 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27941 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27942 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27943 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27944
27945 2014-01-25 Walter Lee <walt@tilera.com>
27946
27947 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27948 arguments on even registers.
27949 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27950 STACK_BOUNDARY.
27951 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27952 (BIGGEST_ALIGNMENT): Ditto.
27953 (BIGGEST_FIELD_ALIGNMENT): Ditto.
27954
27955 2014-01-25 Walter Lee <walt@tilera.com>
27956
27957 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
27958 insns before bundling.
27959 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
27960
27961 2014-01-25 Walter Lee <walt@tilera.com>
27962
27963 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
27964 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
27965 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
27966
27967 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
27968
27969 * config/mips/constraints.md (kl): Delete.
27970 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
27971 define expands, using...
27972 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
27973 instructions for MIPS16.
27974 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
27975 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
27976
27977 2014-01-25 Walter Lee <walt@tilera.com>
27978
27979 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
27980 (clzdi2): Ditto.
27981 (ffsdi2): Ditto.
27982
27983 2014-01-25 Walter Lee <walt@tilera.com>
27984
27985 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
27986 (TARGET_EXPAND_TO_RTL_HOOK): Define.
27987
27988 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
27989
27990 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
27991 Handle XOR.
27992
27993 2014-01-25 Jakub Jelinek <jakub@redhat.com>
27994
27995 * print-rtl.c (in_call_function_usage): New var.
27996 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
27997 EXPR_LIST mode as mode and not as reg note name.
27998
27999 PR middle-end/59561
28000 * cfgloopmanip.c (copy_loop_info): If
28001 loop->warned_aggressive_loop_optimizations, make sure
28002 the flag is set in target loop too.
28003
28004 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
28005
28006 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
28007 flag_cilkplus.
28008 * builtins.def: Likewise.
28009 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
28010 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
28011 * ira.c (ira_setup_eliminable_regset): Likewise.
28012 * omp-low.c (gate_expand_omp): Likewise.
28013 (execute_lower_omp): Likewise.
28014 (diagnose_sb_0): Likewise.
28015 (gate_diagnose_omp_blocks): Likewise.
28016 (simd_clone_clauses_extract): Likewise.
28017 (gate): Likewise.
28018
28019 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28020
28021 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
28022 correction for little endian...
28023 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
28024 here.
28025
28026 2014-01-24 Jeff Law <law@redhat.com>
28027
28028 PR tree-optimization/59919
28029 * tree-vrp.c (find_assert_locations_1): Do not register asserts
28030 for non-returning calls.
28031
28032 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
28033
28034 * common/config/aarch64/aarch64-common.c
28035 (aarch64_rewrite_mcpu): Handle multiple names.
28036 * config/aarch64/aarch64.h
28037 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
28038
28039 2014-01-24 Dodji Seketeli <dodji@redhat.com>
28040
28041 * input.c (add_file_to_cache_tab): Handle the case where fopen
28042 returns NULL.
28043
28044 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
28045
28046 PR target/59929
28047 * config/i386/i386.md (pushsf splitter): Get stack adjustment
28048 from push operand if code of push isn't PRE_DEC.
28049
28050 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28051
28052 PR target/59909
28053 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
28054 -mquad-memory-atomic. Update -mquad-memory documentation to say
28055 it is only used for non-atomic loads/stores.
28056
28057 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
28058 -mquad-memory or -mquad-memory-atomic switches.
28059
28060 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
28061 -mquad-memory-atomic to ISA 2.07 support.
28062
28063 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
28064 to separate support of normal quad word memory operations (ldq, stq)
28065 from the atomic quad word memory operations.
28066
28067 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
28068 support to separate non-atomic quad word operations from atomic
28069 quad word operations. Disable non-atomic quad word operations in
28070 little endian mode so that we don't have to swap words after the
28071 load and before the store.
28072 (quad_load_store_p): Add comment about atomic quad word support.
28073 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
28074 options printed with -mdebug=reg.
28075
28076 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
28077 -mquad-memory-atomic as the test for whether we have quad word
28078 atomic instructions.
28079 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
28080 or -mp8-vector are used, allow byte/half-word atomic operations.
28081
28082 * config/rs6000/sync.md (load_lockedti): Insure that the address
28083 is a proper indexed or indirect address for the lqarx instruction.
28084 On little endian systems, swap the hi/lo registers after the lqarx
28085 instruction.
28086 (load_lockedpti): Use indexed_or_indirect_operand predicate to
28087 insure the address is valid for the lqarx instruction.
28088 (store_conditionalti): Insure that the address is a proper indexed
28089 or indirect address for the stqcrx. instruction. On little endian
28090 systems, swap the hi/lo registers before doing the stqcrx.
28091 instruction.
28092 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
28093 insure the address is valid for the stqcrx. instruction.
28094
28095 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
28096 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
28097 type of quad memory support is available.
28098
28099 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
28100
28101 PR regression/59915
28102 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
28103 there is a danger of looping.
28104
28105 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
28106
28107 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
28108 force flag_ira_loop_pressure if set via command line.
28109
28110 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28111
28112 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
28113 (ashr_simd): New builtin handling DI mode.
28114 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
28115 (aarch64_sshr_simddi): New match pattern.
28116 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
28117 (vshrd_n_s64): Likewise.
28118 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
28119
28120 2014-01-23 Nick Clifton <nickc@redhat.com>
28121
28122 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
28123 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
28124 favour of mcu specific scripts.
28125 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
28126 430x multilibs.
28127
28128 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28129 Alex Velenko <Alex.Velenko@arm.com>
28130
28131 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
28132 (vaddv_s16): Likewise.
28133 (vaddv_s32): Likewise.
28134 (vaddv_u8): Likewise.
28135 (vaddv_u16): Likewise.
28136 (vaddv_u32): Likewise.
28137 (vaddvq_s8): Likewise.
28138 (vaddvq_s16): Likewise.
28139 (vaddvq_s32): Likewise.
28140 (vaddvq_s64): Likewise.
28141 (vaddvq_u8): Likewise.
28142 (vaddvq_u16): Likewise.
28143 (vaddvq_u32): Likewise.
28144 (vaddvq_u64): Likewise.
28145 (vaddv_f32): Likewise.
28146 (vaddvq_f32): Likewise.
28147 (vaddvq_f64): Likewise.
28148 (vmaxv_f32): Likewise.
28149 (vmaxv_s8): Likewise.
28150 (vmaxv_s16): Likewise.
28151 (vmaxv_s32): Likewise.
28152 (vmaxv_u8): Likewise.
28153 (vmaxv_u16): Likewise.
28154 (vmaxv_u32): Likewise.
28155 (vmaxvq_f32): Likewise.
28156 (vmaxvq_f64): Likewise.
28157 (vmaxvq_s8): Likewise.
28158 (vmaxvq_s16): Likewise.
28159 (vmaxvq_s32): Likewise.
28160 (vmaxvq_u8): Likewise.
28161 (vmaxvq_u16): Likewise.
28162 (vmaxvq_u32): Likewise.
28163 (vmaxnmv_f32): Likewise.
28164 (vmaxnmvq_f32): Likewise.
28165 (vmaxnmvq_f64): Likewise.
28166 (vminv_f32): Likewise.
28167 (vminv_s8): Likewise.
28168 (vminv_s16): Likewise.
28169 (vminv_s32): Likewise.
28170 (vminv_u8): Likewise.
28171 (vminv_u16): Likewise.
28172 (vminv_u32): Likewise.
28173 (vminvq_f32): Likewise.
28174 (vminvq_f64): Likewise.
28175 (vminvq_s8): Likewise.
28176 (vminvq_s16): Likewise.
28177 (vminvq_s32): Likewise.
28178 (vminvq_u8): Likewise.
28179 (vminvq_u16): Likewise.
28180 (vminvq_u32): Likewise.
28181 (vminnmv_f32): Likewise.
28182 (vminnmvq_f32): Likewise.
28183 (vminnmvq_f64): Likewise.
28184
28185 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
28186
28187 * config/aarch64/aarch64-simd.md
28188 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
28189 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
28190 (*aarch64_mul3_elt<mode>): Likewise.
28191 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
28192 (*aarch64_mul3_elt_to_64v2df): Likewise.
28193 (*aarch64_mla_elt<mode>): Likewise.
28194 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28195 (*aarch64_mls_elt<mode>): Likewise.
28196 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28197 (*aarch64_fma4_elt<mode>): Likewise.
28198 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28199 (*aarch64_fma4_elt_to_64v2df): Likewise.
28200 (*aarch64_fnma4_elt<mode>): Likewise.
28201 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28202 (*aarch64_fnma4_elt_to_64v2df): Likewise.
28203 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
28204 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
28205 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28206 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
28207 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28208 (aarch64_sqdmull_lane<mode>_internal): Likewise.
28209 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28210
28211 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
28212
28213 * config/aarch64/aarch64-simd.md
28214 (aarch64_be_checked_get_lane<mode>): New define_expand.
28215 * config/aarch64/aarch64-simd-builtins.def
28216 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
28217 New builtin definition.
28218 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
28219 Use new safe be builtin.
28220
28221 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
28222
28223 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
28224 New define_insn.
28225 (aarch64_be_st1<mode>): Likewise.
28226 (aarch_ld1<VALL:mode>): Define_expand modified.
28227 (aarch_st1<VALL:mode>): Likewise.
28228 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
28229 (UNSPEC_ST1): Likewise.
28230
28231 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
28232
28233 * config/microblaze/microblaze.md: Add trap insn and attribute
28234
28235 2014-01-23 Dodji Seketeli <dodji@redhat.com>
28236
28237 PR preprocessor/58580
28238 * input.h (location_get_source_line): Take an additional line_size
28239 parameter.
28240 (void diagnostics_file_cache_fini): Declare new function.
28241 * input.c (struct fcache): New type.
28242 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
28243 New static constants.
28244 (diagnostic_file_cache_init, total_lines_num)
28245 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
28246 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
28247 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
28248 (get_next_line, read_next_line, goto_next_line, read_line_num):
28249 New static function definitions.
28250 (diagnostic_file_cache_fini): New function.
28251 (location_get_source_line): Take an additional output line_len
28252 parameter. Re-write using lookup_or_add_file_to_cache_tab and
28253 read_line_num.
28254 * diagnostic.c (diagnostic_finish): Call
28255 diagnostic_file_cache_fini.
28256 (adjust_line): Take an additional input parameter for the length
28257 of the line, rather than calculating it with strlen.
28258 (diagnostic_show_locus): Adjust the use of
28259 location_get_source_line and adjust_line with respect to their new
28260 signature. While displaying a line now, do not stop at the first
28261 null byte. Rather, display the zero byte as a space and keep
28262 going until we reach the size of the line.
28263 * Makefile.in: Add vec.o to OBJS-libcommon
28264
28265 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28266 Ilya Tocar <ilya.tocar@intel.com>
28267
28268 * config/i386/avx512fintrin.h (_mm512_kmov): New.
28269 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
28270 (__builtin_ia32_kmov16): Ditto.
28271 * config/i386/i386.md (UNSPEC_KMOV): New.
28272 (kmovw): Ditto.
28273
28274 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
28275
28276 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
28277 (_mm512_storeu_si512): Ditto.
28278
28279 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
28280
28281 PR target/52125
28282 * rtl.h (get_referenced_operands): Declare.
28283 * recog.c (get_referenced_operands): New function.
28284 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
28285 operands have been referenced when recording LO_SUM references.
28286
28287 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
28288
28289 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
28290
28291 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28292
28293 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
28294 Enable for generic and recent AMD targets.
28295
28296 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
28297
28298 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
28299 ARG_SIZE note when adjustment was eliminated.
28300
28301 2014-01-22 Jeff Law <law@redhat.com>
28302
28303 PR tree-optimization/59597
28304 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
28305 in file. Accept new argument REGISTERING and use it to modify
28306 dump output appropriately.
28307 (register_jump_thread): Corresponding changes.
28308 (mark_threaded_blocks): Reinstate code to cancel unprofitable
28309 thread paths involving joiner blocks. Add code to dump cancelled
28310 jump threading paths.
28311
28312 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
28313
28314 PR rtl-optimization/59477
28315 * lra-constraints.c (inherit_in_ebb): Process call for living hard
28316 regs. Update reloads_num and potential_reload_hard_regs for all insns.
28317
28318 2014-01-22 Tom Tromey <tromey@redhat.com>
28319
28320 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
28321 PARAMS.
28322 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
28323
28324 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28325
28326 PR rtl-optimization/59896
28327 * lra-constraints.c (process_alt_operands): Check unused note for
28328 matched operands of insn with no output reloads.
28329
28330 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
28331
28332 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
28333 (mips_move_from_gpr_cost): Likewise.
28334
28335 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
28336
28337 PR rtl-optimization/59858
28338 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
28339 ira_class_hard_regs_num.
28340 (process_alt_operands): Increase reject for dying matched operand.
28341
28342 2014-01-21 Jakub Jelinek <jakub@redhat.com>
28343
28344 PR target/59003
28345 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
28346 smaller than size, perform several stores or loads and stores
28347 at dst + count - size to store or copy all of size bytes, rather
28348 than just last modesize bytes.
28349
28350 2014-01-20 DJ Delorie <dj@redhat.com>
28351
28352 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
28353 that CLOBBERs are REGs before propogating their values.
28354
28355 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
28356
28357 PR middle-end/59789
28358 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
28359 (cgraph_inline_failed_type): New function.
28360 * cgraph.h (DEFCIFCODE): Add type.
28361 (cgraph_inline_failed_type_t): New enum.
28362 (cgraph_inline_failed_type): New prototype.
28363 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
28364 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28365 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
28366 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
28367 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
28368 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
28369 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
28370 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
28371 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
28372 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
28373 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
28374 OPTIMIZATION_MISMATCH.
28375 * tree-inline.c (expand_call_inline): Emit errors during
28376 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
28377
28378 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28379
28380 PR target/59685
28381 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
28382 mode attribute in insn output.
28383
28384 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
28385
28386 * output.h (output_constant): Delete.
28387 * varasm.c (output_constant): Make private.
28388
28389 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
28390
28391 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
28392
28393 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28394
28395 PR middle-end/59860
28396 * tree.h (fold_builtin_strcat): New prototype.
28397 * builtins.c (fold_builtin_strcat): No longer static. Add len
28398 argument, if non-NULL, don't call c_strlen. Optimize
28399 directly into __builtin_memcpy instead of __builtin_strcpy.
28400 (fold_builtin_2): Adjust fold_builtin_strcat caller.
28401 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
28402
28403 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
28404
28405 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28406 for SImode_address_operand operands, having only a REG argument.
28407
28408 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
28409
28410 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
28411 loader name using mbig-endian.
28412 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
28413
28414 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28415
28416 * doc/invoke.texi (-march): Clarify documentation for AArch64.
28417 (-mtune): Likewise.
28418 (-mcpu): Likewise.
28419
28420 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
28421
28422 * config/aarch64/aarch64-protos.h
28423 (aarch64_cannot_change_mode_class_ptr): Declare.
28424 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
28425 aarch64_cannot_change_mode_class_ptr): New.
28426 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
28427 backend hook aarch64_cannot_change_mode_class.
28428
28429 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
28430
28431 * common/config/aarch64/aarch64-common.c
28432 (aarch64_handle_option): Don't handle any option order logic here.
28433 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
28434 selected_cpu, warn on architecture version mismatch.
28435 (aarch64_override_options): Fix parsing order for option strings.
28436
28437 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28438 Iain Sandoe <iain@codesourcery.com>
28439
28440 PR bootstrap/59496
28441 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
28442 warning. Amend comment to reflect current functionality.
28443
28444 2014-01-20 Richard Biener <rguenther@suse.de>
28445
28446 PR middle-end/59860
28447 * builtins.c (fold_builtin_strcat): Remove case better handled
28448 by tree-ssa-strlen.c.
28449
28450 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
28451
28452 * config/aarch64/aarch64.opt
28453 (mcpu, march, mtune): Make case-insensitive.
28454
28455 2014-01-20 Jakub Jelinek <jakub@redhat.com>
28456
28457 PR target/59880
28458 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28459 if operands[1] is a REG or ZERO_EXTEND of a REG.
28460
28461 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
28462
28463 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
28464
28465 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
28466
28467 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
28468 long non-pic millicode calls.
28469
28470 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28471
28472 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
28473
28474 2014-01-19 Kito Cheng <kito@0xlab.org>
28475
28476 * builtins.c (expand_movstr): Check movstr expand done or fail.
28477
28478 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28479 H.J. Lu <hongjiu.lu@intel.com>
28480
28481 PR target/59379
28482 * config/i386/i386.md (*lea<mode>): Zero-extend return register
28483 to DImode for zero-extended addresses.
28484
28485 2014-01-19 Jakub Jelinek <jakub@redhat.com>
28486
28487 PR rtl-optimization/57763
28488 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
28489 on the new indirect jump_insn and increment LABEL_NUSES (label).
28490
28491 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
28492
28493 PR bootstrap/59580
28494 PR bootstrap/59583
28495 * config.gcc (x86_archs): New variable.
28496 (x86_64_archs): Likewise.
28497 (x86_cpus): Likewise.
28498 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
28499 --with-arch/--with-cpu= options.
28500 Support --with-arch=/--with-cpu={nehalem,westmere,
28501 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
28502
28503 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28504
28505 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
28506 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
28507
28508 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
28509
28510 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
28511
28512 2014-01-18 Jakub Jelinek <jakub@redhat.com>
28513
28514 PR target/58944
28515 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
28516 clear cpp_get_options (parse_in)->warn_unused_macros for
28517 ix86_target_macros_internal with cpp_define.
28518
28519 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
28520
28521 * jump.c (delete_related_insns): Keep (use (insn))s.
28522 * reorg.c (redundant_insn): Check for barriers too.
28523
28524 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28525
28526 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
28527
28528 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
28529
28530 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
28531 call to $$dyncall when TARGET_LONG_CALLS is true.
28532
28533 2014-01-17 Jeff Law <law@redhat.com>
28534
28535 * ree.c (combine_set_extension): Temporarily disable test for
28536 changing number of hard registers.
28537
28538 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28539
28540 PR middle-end/58125
28541 * ipa-inline-analysis.c (inline_free_summary):
28542 Do not free summary of aliases.
28543
28544 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28545
28546 PR middle-end/59706
28547 * gimplify.c (gimplify_expr): Use create_tmp_var
28548 instead of create_tmp_var_raw. If cond doesn't have
28549 integral type, don't add the IFN_ANNOTATE builtin at all.
28550
28551 2014-01-17 Martin Jambor <mjambor@suse.cz>
28552
28553 PR ipa/59736
28554 * ipa-cp.c (prev_edge_clone): New variable.
28555 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
28556 Also resize prev_edge_clone vector.
28557 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
28558 (ipcp_edge_removal_hook): New function.
28559 (ipcp_driver): Register ipcp_edge_removal_hook.
28560
28561 2014-01-17 Andrew Pinski <apinski@cavium.com>
28562 Steve Ellcey <sellcey@mips.com>
28563
28564 PR target/59462
28565 * config/mips/mips.c (mips_print_operand): Check operand mode instead
28566 of operator mode.
28567
28568 2014-01-17 Jeff Law <law@redhat.com>
28569
28570 PR middle-end/57904
28571 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
28572 so that pass_ccp runs first.
28573
28574 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28575
28576 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
28577 (ix86_adjust_cost): Use !TARGET_XXX.
28578 (do_reorder_for_imul): Likewise.
28579 (swap_top_of_ready_list): Likewise.
28580 (ix86_sched_reorder): Likewise.
28581
28582 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
28583
28584 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28585 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
28586 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
28587 (intel_memset): New. Duplicate slm_memset.
28588 (intel_cost): New. Duplicate slm_cost.
28589 (m_INTEL): New macro.
28590 (processor_target_table): Add "intel".
28591 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
28592 with PROCESSOR_INTEL for "intel".
28593 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
28594 PROCESSOR_SILVERMONT.
28595 (ix86_issue_rate): Likewise.
28596 (ix86_adjust_cost): Likewise.
28597 (ia32_multipass_dfa_lookahead): Likewise.
28598 (swap_top_of_ready_list): Likewise.
28599 (ix86_sched_reorder): Likewise.
28600 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
28601 instead of TARGET_OPT_AGU.
28602 * config/i386/i386.h (TARGET_INTEL): New.
28603 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28604 (processor_type): Add PROCESSOR_INTEL.
28605 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28606 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28607
28608 2014-01-17 Marek Polacek <polacek@redhat.com>
28609
28610 PR c/58346
28611 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28612 size is zero.
28613
28614 2014-01-17 Richard Biener <rguenther@suse.de>
28615
28616 PR tree-optimization/46590
28617 * opts.c (default_options_table): Add entries for
28618 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28619 all enabled at -O1 but not for -Og.
28620 * common.opt (fbranch-count-reg): Remove Init(1).
28621 (fmove-loop-invariants): Likewise.
28622 (ftree-pta): Likewise.
28623
28624 2014-01-17 Jakub Jelinek <jakub@redhat.com>
28625
28626 * config/i386/i386.c (ix86_data_alignment): For compatibility with
28627 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28628 decls to at least the GCC 4.8 used alignments.
28629
28630 PR fortran/59440
28631 * tree-nested.c (convert_nonlocal_reference_stmt,
28632 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28633 of GIMPLE_BIND stmts, adjust associated decls.
28634
28635 2014-01-17 Richard Biener <rguenther@suse.de>
28636
28637 PR tree-optimization/46590
28638 * vec.h (vec<>::bseach): New member function implementing
28639 binary search according to C89 bsearch.
28640 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28641 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28642 bitmap pointer again. Make accesses_in_loop a flat array.
28643 (mem_ref_obstack): New global.
28644 (outermost_indep_loop): Adjust for mem_ref->stored changes.
28645 (mark_ref_stored): Likewise.
28646 (ref_indep_loop_p_2): Likewise.
28647 (set_ref_stored_in_loop): New helper function.
28648 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28649 (memref_free): Adjust.
28650 (record_mem_ref_loc): Simplify.
28651 (gather_mem_refs_stmt): Adjust.
28652 (sort_locs_in_loop_postorder_cmp): New function.
28653 (analyze_memory_references): Sort accesses_in_loop after
28654 loop postorder number.
28655 (find_ref_loc_in_loop_cmp): New function.
28656 (for_all_locs_in_loop): Find relevant cluster of locs in
28657 accesses_in_loop and iterate without recursion.
28658 (execute_sm): Avoid uninit warning.
28659 (struct ref_always_accessed): Simplify.
28660 (ref_always_accessed::operator ()): Likewise.
28661 (ref_always_accessed_p): Likewise.
28662 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28663 loop postorder numbers here.
28664 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28665 numbers.
28666
28667 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
28668
28669 PR c++/57945
28670 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28671 on decls for which assemble_alias has been called.
28672
28673 2014-01-17 Nick Clifton <nickc@redhat.com>
28674
28675 * config/msp430/msp430.opt: (mcpu): New option.
28676 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28677 (msp430_option_override): Parse target_cpu. If the MCU name
28678 matches a generic string, clear target_mcu.
28679 (msp430_attr): Allow numeric interrupt values up to 63.
28680 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28681 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28682 option.
28683 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28684 Add mcpu matches.
28685 * config/msp430/msp430.md (popm): Use %J rather than %I.
28686 (addsi3): Use msp430_nonimmediate_operand for operand 2.
28687 (addhi_cy_i): Use immediate_operand for operand 2.
28688 * doc/invoke.texi: Document -mcpu option.
28689
28690 2014-01-17 Richard Biener <rguenther@suse.de>
28691
28692 PR rtl-optimization/38518
28693 * df.h (df_analyze_loop): Declare.
28694 * df-core.c: Include cfgloop.h.
28695 (df_analyze_1): Split out main part of df_analyze.
28696 (df_analyze): Adjust.
28697 (loop_inverted_post_order_compute): New function.
28698 (loop_post_order_compute): Likewise.
28699 (df_analyze_loop): New function avoiding whole-function
28700 postorder computes.
28701 * loop-invariant.c (find_defs): Use df_analyze_loop.
28702 (find_invariants): Adjust.
28703 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28704
28705 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
28706
28707 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28708 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28709
28710 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
28711
28712 * ipa-ref.c (ipa_remove_stmt_references): Fix references
28713 traversal when removing references.
28714
28715 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
28716
28717 PR ipa/59775
28718 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28719
28720 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
28721
28722 PR middle-end/56791
28723 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28724 pushing a reload for an autoinc when we had previously reloaded an
28725 inner part of the address.
28726
28727 2014-01-16 Jakub Jelinek <jakub@redhat.com>
28728
28729 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28730 field.
28731 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28732 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28733 when not giving up or versioning for alias only because of
28734 loop->safelen.
28735 (vect_analyze_data_ref_dependences): Set to true.
28736 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28737 is a GIMPLE_PHI.
28738 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28739 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28740 to the condition.
28741
28742 PR middle-end/58344
28743 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28744
28745 PR target/59839
28746 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28747 operand 0 predicate for gathers, use a new pseudo as subtarget.
28748
28749 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28750
28751 PR middle-end/59609
28752 * lra-constraints.c (process_alt_operands): Add printing debug info.
28753 Check absence of input/output reloads for matched operands too.
28754
28755 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
28756
28757 PR rtl-optimization/59835
28758 * ira.c (ira_init_register_move_cost): Increase cost for
28759 impossible modes.
28760
28761 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
28762
28763 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28764
28765 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
28766
28767 PR target/59780
28768 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28769 non-register objects. Use gen_(high/low)part more consistently.
28770 Fix assertions.
28771
28772 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
28773
28774 PR target/59844
28775 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28776 endian support, remove tests for WORDS_BIG_ENDIAN.
28777 (p8_mfvsrd_3_<mode>): Likewise.
28778 (reload_gpr_from_vsx<mode>): Likewise.
28779 (reload_gpr_from_vsxsf): Likewise.
28780 (p8_mfvsrd_4_disf): Likewise.
28781
28782 2014-01-16 Richard Biener <rguenther@suse.de>
28783
28784 PR rtl-optimization/46590
28785 * lcm.c (compute_antinout_edge): Use postorder iteration.
28786 (compute_laterin): Use inverted postorder iteration.
28787
28788 2014-01-16 Nick Clifton <nickc@redhat.com>
28789
28790 PR middle-end/28865
28791 * varasm.c (output_constant): Return the number of bytes actually
28792 emitted.
28793 (output_constructor_array_range): Update the field size with the
28794 number of bytes emitted by output_constant.
28795 (output_constructor_regular_field): Likewise. Also do not
28796 complain if the total number of bytes emitted is now greater
28797 than the expected fieldpos.
28798 * output.h (output_constant): Update prototype and descriptive comment.
28799
28800 2014-01-16 Marek Polacek <polacek@redhat.com>
28801
28802 PR middle-end/59827
28803 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28804 it is error_mark_node.
28805
28806 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
28807
28808 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28809 VALID_AVX256_REG_OR_OI_MODE.
28810
28811 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
28812
28813 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28814 current procedure should be profiled.
28815
28816 2014-01-15 Andrew Pinski <apinski@cavium.com>
28817
28818 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28819 of moving from/to the STACK_REG register class.
28820
28821 2014-01-15 Richard Henderson <rth@redhat.com>
28822
28823 PR debug/54694
28824 * reginfo.c (global_regs_decl): Globalize.
28825 * rtl.h (global_regs_decl): Declare.
28826 * ira.c (do_reload): Diagnose frame_pointer_needed and it
28827 reserved via global_regs.
28828
28829 2014-01-15 Teresa Johnson <tejohnson@google.com>
28830
28831 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28832
28833 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
28834
28835 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28836 and vmulosh rather than call gen_vec_widen_smult_*.
28837 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28838 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28839 (vec_widen_smult_even_v16qi): Likewise.
28840 (vec_widen_umult_even_v8hi): Likewise.
28841 (vec_widen_smult_even_v8hi): Likewise.
28842 (vec_widen_umult_odd_v16qi): Likewise.
28843 (vec_widen_smult_odd_v16qi): Likewise.
28844 (vec_widen_umult_odd_v8hi): Likewise.
28845 (vec_widen_smult_odd_v8hi): Likewise.
28846 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28847 vmuloub rather than call gen_vec_widen_umult_*.
28848 (vec_widen_umult_lo_v16qi): Likewise.
28849 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28850 vmulosb rather than call gen_vec_widen_smult_*.
28851 (vec_widen_smult_lo_v16qi): Likewise.
28852 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28853 rather than call gen_vec_widen_umult_*.
28854 (vec_widen_umult_lo_v8hi): Likewise.
28855 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28856 rather than call gen_vec_widen_smult_*.
28857 (vec_widen_smult_lo_v8hi): Likewise.
28858
28859 2014-01-15 Jeff Law <law@redhat.com>
28860
28861 PR tree-optimization/59747
28862 * ree.c (find_and_remove_re): Properly handle case where a second
28863 eliminated extension requires widening a copy created for elimination
28864 of a prior extension.
28865 (combine_set_extension): Ensure that the number of hard regs needed
28866 for a destination register does not change when we widen it.
28867
28868 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
28869
28870 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28871 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28872 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28873 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28874 (avr-*-rtems*): Likewise.
28875 (bfin*-rtems*): Likewise.
28876 (moxie-*-rtems*): Likewise.
28877 (h8300-*-rtems*): Likewise.
28878 (i[34567]86-*-rtems*): Likewise.
28879 (lm32-*-rtems*): Likewise.
28880 (m32r-*-rtems*): Likewise.
28881 (m68k-*-rtems*): Likewise.
28882 (microblaze*-*-rtems*): Likewise.
28883 (mips*-*-rtems*): Likewise.
28884 (powerpc-*-rtems*): Likewise.
28885 (sh-*-rtems*): Likewise.
28886 (sparc-*-rtems*): Likewise.
28887 (sparc64-*-rtems*): Likewise.
28888 (v850-*-rtems*): Likewise.
28889 (m32c-*-rtems*): Likewise.
28890
28891 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
28892
28893 PR rtl-optimization/59511
28894 * ira.c (ira_init_register_move_cost): Use memory costs for some
28895 cases of register move cost calculations.
28896 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28897 instead of BB frequency.
28898 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28899 * lra-assigns.c (find_hard_regno_for): Ditto.
28900
28901 2014-01-15 Richard Biener <rguenther@suse.de>
28902
28903 PR tree-optimization/59822
28904 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28905 (vectorizable_load): Use it to hoist defs of uses of invariant
28906 loads out of the loop.
28907
28908 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
28909 Kugan Vivekanandarajah <kuganv@linaro.org>
28910
28911 PR target/59695
28912 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28913 truncation.
28914
28915 2014-01-15 Richard Biener <rguenther@suse.de>
28916
28917 PR rtl-optimization/59802
28918 * lcm.c (compute_available): Use inverted postorder to seed
28919 the initial worklist.
28920
28921 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28922
28923 PR target/59803
28924 * config/s390/s390.c (s390_preferred_reload_class): Don't return
28925 ADDR_REGS for invalid symrefs in non-PIC code.
28926
28927 2014-01-15 Jakub Jelinek <jakub@redhat.com>
28928
28929 PR other/58712
28930 * builtins.c (determine_block_size): Initialize *probable_max_size
28931 even if len_rtx is CONST_INT.
28932
28933 2014-01-14 Andrew Pinski <apinski@cavium.com>
28934
28935 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28936 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28937 (cortexa53_tunings): Likewise.
28938 (aarch64_sched_issue_rate): New function.
28939 (TARGET_SCHED_ISSUE_RATE): Define.
28940
28941 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28942
28943 * ira-costs.c (find_costs_and_classes): Add missed
28944 ira_init_register_move_cost_if_necessary.
28945
28946 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
28947
28948 PR target/59787
28949 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28950
28951 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
28952
28953 PR target/59794
28954 * config/i386/i386.c (type_natural_mode): Add a bool parameter
28955 to indicate if type is used for function return value. Warn ABI
28956 change if the vector mode isn't available for function return value.
28957 (ix86_function_arg_advance): Pass false to type_natural_mode.
28958 (ix86_function_arg): Likewise.
28959 (ix86_gimplify_va_arg): Likewise.
28960 (function_arg_32): Don't warn ABI change.
28961 (ix86_function_value): Pass true to type_natural_mode.
28962 (ix86_return_in_memory): Likewise.
28963 (ix86_struct_value_rtx): Removed.
28964 (TARGET_STRUCT_VALUE_RTX): Likewise.
28965
28966 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28967
28968 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
28969 converting a conditional jump into a conditional return.
28970
28971 2014-01-14 Richard Biener <rguenther@suse.de>
28972
28973 PR tree-optimization/58921
28974 PR tree-optimization/59006
28975 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
28976 hoisting invariant stmts.
28977 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
28978 invariant loads on the preheader edge if possible.
28979
28980 2014-01-14 Joey Ye <joey.ye@arm.com>
28981
28982 * doc/plugin.texi (Building GCC plugins): Update to C++.
28983
28984 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
28985
28986 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
28987 (_mm_rcp28_round_ss): Ditto.
28988 (_mm_rsqrt28_round_sd): Ditto.
28989 (_mm_rsqrt28_round_ss): Ditto.
28990 (_mm_rcp28_sd): Ditto.
28991 (_mm_rcp28_ss): Ditto.
28992 (_mm_rsqrt28_sd): Ditto.
28993 (_mm_rsqrt28_ss): Ditto.
28994 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
28995 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
28996 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
28997 (IX86_BUILTIN_RCP28SD): Ditto.
28998 (IX86_BUILTIN_RCP28SS): Ditto.
28999 (IX86_BUILTIN_RSQRT28SD): Ditto.
29000 (IX86_BUILTIN_RSQRT28SS): Ditto.
29001 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
29002 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
29003 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
29004 (ix86_expand_special_args_builtin): Expand new FTYPE.
29005 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
29006 (srcp14<mode>): Make insn unary.
29007 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
29008 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
29009 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
29010 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
29011 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
29012 Fix rounding: make it SAE only.
29013 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
29014 Ditto.
29015 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
29016 Ditto.
29017 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
29018 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
29019 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
29020 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
29021 (round_saeonly_mask_scalar_operand4): Ditto.
29022 (round_saeonly_mask_scalar_op3): Ditto.
29023 (round_saeonly_mask_scalar_op4): Ditto.
29024
29025 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29026
29027 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
29028 Implement -maltivec=be for vec_insert and vec_extract.
29029
29030 2014-01-10 DJ Delorie <dj@redhat.com>
29031
29032 * config/msp430/msp430.md (call_internal): Don't allow memory
29033 references with SP as the base register.
29034 (call_value_internal): Likewise.
29035 * config/msp430/constraints.md (Yc): New. For memory references
29036 that don't use SP as a base register.
29037
29038 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
29039 "an integer without a # prefix"
29040 * config/msp430/msp430.md (epilogue_helper): Use it.
29041
29042 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29043
29044 PR target/59617
29045 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
29046 AVX512F gather builtins.
29047 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
29048 on gather decls with INTEGER_TYPE masktype.
29049 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
29050 directly into the builtin rather than hoisting it before loop.
29051
29052 PR tree-optimization/59387
29053 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
29054 (scev_const_prop): If folded_casts and type has undefined overflow,
29055 use force_gimple_operand instead of force_gimple_operand_gsi and
29056 for each added stmt if it is assign with
29057 arith_code_with_undefined_signed_overflow, call
29058 rewrite_to_defined_overflow.
29059 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
29060 gimple-fold.h instead.
29061 (arith_code_with_undefined_signed_overflow,
29062 rewrite_to_defined_overflow): Moved to ...
29063 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
29064 rewrite_to_defined_overflow): ... here. No longer static.
29065 Include gimplify-me.h.
29066 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
29067 rewrite_to_defined_overflow): New prototypes.
29068
29069 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29070
29071 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
29072
29073 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
29074
29075 * builtins.c (get_object_alignment_2): Minor tweak.
29076 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
29077
29078 2014-01-13 Christian Bruel <christian.bruel@st.com>
29079
29080 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
29081 optimized non constant lengths.
29082
29083 2014-01-13 Jakub Jelinek <jakub@redhat.com>
29084
29085 PR libgomp/59194
29086 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
29087 load as __atomic_load_N if possible.
29088
29089 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29090
29091 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
29092 target parameter.
29093 (rs6000_expand_builtin): Adjust call.
29094
29095 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
29096
29097 PR target/58115
29098 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
29099 * config/rs6000/rs6000.c: Include target-globals.h.
29100 (rs6000_set_current_function): Instead of doing target_reinit
29101 unconditionally, use save_target_globals_default_opts and
29102 restore_target_globals.
29103
29104 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
29105 FPSCR.
29106 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
29107 (rs6000_expand_builtin): Handle mffs and mtfsf.
29108 (rs6000_init_builtins): Define mffs and mtfsf.
29109 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
29110 (rs6000_mffs): New pattern.
29111 (rs6000_mtfsf): New pattern.
29112
29113 2014-01-11 Bin Cheng <bin.cheng@arm.com>
29114
29115 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
29116 Start narrowing with START. Apply candidate-use pair
29117 and check overall cost in narrowing.
29118 (iv_ca_prune): Pass new argument.
29119
29120 2014-01-10 Jeff Law <law@redhat.com>
29121
29122 PR middle-end/59743
29123 * ree.c (combine_reaching_defs): Ensure the defining statement
29124 occurs before the extension when optimizing extensions with
29125 different source and destination hard registers.
29126
29127 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29128
29129 PR ipa/58585
29130 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
29131 vtables into the type inheritance graph.
29132
29133 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29134
29135 PR rtl-optimization/59754
29136 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
29137 modes in the REGNO != REGNO case.
29138
29139 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29140
29141 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
29142
29143 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29144
29145 PR tree-optimization/59745
29146 * tree-predcom.c (tree_predictive_commoning_loop): Call
29147 free_affine_expand_cache if giving up because components is NULL.
29148
29149 * target-globals.c (save_target_globals): Allocate < 4KB structs using
29150 GC in payload of target_globals struct instead of allocating them on
29151 the heap and the larger structs separately using GC.
29152 * target-globals.h (struct target_globals): Make regs, hard_regs,
29153 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
29154 of GTY((skip)) and change type to void *.
29155 (reset_target_globals): Cast loads from those fields to corresponding
29156 types.
29157
29158 2014-01-10 Steve Ellcey <sellcey@mips.com>
29159
29160 PR plugins/59335
29161 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
29162 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
29163 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
29164
29165 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
29166
29167 PR target/59744
29168 * aarch64-modes.def (CC_Zmode): New flags mode.
29169 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
29170 represents an equality.
29171 (aarch64_get_condition_code): Handle CC_Zmode.
29172 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
29173
29174 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29175
29176 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
29177 extraction in good case.
29178
29179 2014-01-10 Richard Biener <rguenther@suse.de>
29180
29181 PR tree-optimization/59374
29182 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
29183 checking after SLP discovery. Mark stmts not participating
29184 in any SLP instance properly.
29185
29186 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29187
29188 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
29189 when handling a SET rtx.
29190
29191 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29192
29193 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
29194 (cortex-a57): Likewise.
29195 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
29196
29197 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29198
29199 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
29200 non-iwmmxt builtins.
29201
29202 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
29203
29204 PR ipa/58252
29205 PR ipa/59226
29206 * ipa-devirt.c record_target_from_binfo): Take as argument
29207 stack of binfos and lookup matching one for virtual inheritance.
29208 (possible_polymorphic_call_targets_1): Update.
29209
29210 2014-01-10 Huacai Chen <chenhc@lemote.com>
29211
29212 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
29213 kernel strings for Loongson-2E/2F/3A.
29214
29215 2014-01-10 Jakub Jelinek <jakub@redhat.com>
29216
29217 PR middle-end/59670
29218 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
29219 is_gimple_call before calling gimple_call_internal_p.
29220
29221 2014-01-09 Steve Ellcey <sellcey@mips.com>
29222
29223 * Makefile.in (TREE_FLOW_H): Remove.
29224 (TREE_SSA_H): Add file names from tree-flow.h.
29225 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
29226 * tree.h: Remove tree-flow.h reference.
29227 * hash-table.h: Remove tree-flow.h reference.
29228 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
29229 reference with tree-ssa-loop.h.
29230
29231 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29232
29233 * doc/invoke.texi: Add -maltivec={be,le} options, and document
29234 default element-order behavior for -maltivec.
29235 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
29236 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
29237 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
29238 when targeting big endian, at least for now.
29239 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
29240
29241 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29242
29243 PR middle-end/47735
29244 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
29245 var satisfies use_register_for_decl, just take into account type
29246 alignment, rather than decl alignment.
29247
29248 PR tree-optimization/59622
29249 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
29250 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
29251 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
29252 Don't devirtualize for inplace at all. For targets.length () == 1,
29253 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
29254
29255 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29256
29257 * config/i386/i386.md (cpu): Remove the unused btver1.
29258
29259 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
29260
29261 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
29262
29263 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29264
29265 PR target/58115
29266 * tree-core.h (struct target_globals): New forward declaration.
29267 (struct tree_target_option): Add globals field.
29268 * tree.h (TREE_TARGET_GLOBALS): Define.
29269 (prepare_target_option_nodes_for_pch): New prototype.
29270 * target-globals.h (struct target_globals): Define even if
29271 !SWITCHABLE_TARGET.
29272 * tree.c (prepare_target_option_node_for_pch,
29273 prepare_target_option_nodes_for_pch): New functions.
29274 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
29275 * config/i386/i386.c: Include target-globals.h.
29276 (ix86_set_current_function): Instead of doing target_reinit
29277 unconditionally, use save_target_globals_default_opts and
29278 restore_target_globals.
29279
29280 2014-01-09 Richard Biener <rguenther@suse.de>
29281
29282 PR tree-optimization/59715
29283 * tree-cfg.h (split_critical_edges): Declare.
29284 * tree-cfg.c (split_critical_edges): Export.
29285 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
29286
29287 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
29288
29289 * cfgexpand.c (expand_stack_vars): Optionally disable
29290 asan stack protection.
29291 (expand_used_vars): Likewise.
29292 (partition_stack_vars): Likewise.
29293 * asan.c (asan_emit_stack_protection): Optionally disable
29294 after return stack usage.
29295 (instrument_derefs): Optionally disable memory access instrumentation.
29296 (instrument_builtin_call): Likewise.
29297 (instrument_strlen_call): Likewise.
29298 (asan_protect_global): Optionally disable global variables protection.
29299 * doc/invoke.texi: Added doc for new options.
29300 * params.def: Added new options.
29301 * params.h: Likewise.
29302
29303 2014-01-09 Jakub Jelinek <jakub@redhat.com>
29304
29305 PR rtl-optimization/59724
29306 * ifcvt.c (cond_exec_process_if_block): Don't call
29307 flow_find_head_matching_sequence with 0 longest_match.
29308 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
29309 non-active insns if !stop_after.
29310 (try_head_merge_bb): Revert 2014-01-07 changes.
29311
29312 2014-01-08 Jeff Law <law@redhat.com>
29313
29314 * ree.c (get_sub_rtx): New function, extracted from...
29315 (merge_def_and_ext): Here.
29316 (combine_reaching_defs): Use get_sub_rtx.
29317
29318 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
29319
29320 * cgraph.h (varpool_variable_node): Do not choke on null node.
29321
29322 2014-01-08 Catherine Moore <clm@codesourcery.com>
29323
29324 * config/mips/mips.md (simple_return): Attempt to use JRC
29325 for microMIPS.
29326 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
29327
29328 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29329
29330 PR rtl-optimization/59137
29331 * reorg.c (steal_delay_list_from_target): Call update_block for
29332 elided insns.
29333 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
29334
29335 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29336
29337 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
29338 two duplicate entries.
29339
29340 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
29341
29342 Revert:
29343 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
29344
29345 * config/mips/mips.c (mips_truncated_op_cost): New function.
29346 (mips_rtx_costs): Adjust test for BADDU.
29347 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
29348
29349 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
29350
29351 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
29352 (*baddu_si): ...this new pattern.
29353
29354 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29355
29356 PR ipa/59722
29357 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
29358
29359 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
29360
29361 PR middle-end/57748
29362 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
29363 inner_reference_p.
29364 (expand_expr, expand_normal): Adjust.
29365 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
29366 inner_reference_p. Use inner_reference_p to expand inner references.
29367 (store_expr): Adjust.
29368 * cfgexpand.c (expand_call_stmt): Adjust.
29369
29370 2014-01-08 Rong Xu <xur@google.com>
29371
29372 * gcov-io.c (gcov_var): Move from gcov-io.h.
29373 (gcov_position): Ditto.
29374 (gcov_is_error): Ditto.
29375 (gcov_rewrite): Ditto.
29376 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
29377 only part to libgcc/libgcov.h.
29378
29379 2014-01-08 Marek Polacek <polacek@redhat.com>
29380
29381 PR middle-end/59669
29382 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
29383
29384 2014-01-08 Marek Polacek <polacek@redhat.com>
29385
29386 PR sanitizer/59667
29387 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
29388
29389 2014-01-08 Jakub Jelinek <jakub@redhat.com>
29390
29391 PR rtl-optimization/59649
29392 * stor-layout.c (get_mode_bounds): For BImode return
29393 0 and STORE_FLAG_VALUE.
29394
29395 2014-01-08 Richard Biener <rguenther@suse.de>
29396
29397 PR middle-end/59630
29398 * gimple.h (is_gimple_builtin_call): Remove.
29399 (gimple_builtin_call_types_compatible_p): New.
29400 (gimple_call_builtin_p): New overload.
29401 * gimple.c (is_gimple_builtin_call): Remove.
29402 (validate_call): Rename to ...
29403 (gimple_builtin_call_types_compatible_p): ... this and export. Also
29404 check return types.
29405 (validate_type): New static function.
29406 (gimple_call_builtin_p): New overload and adjust.
29407 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
29408 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
29409 (gimple_fold_stmt_to_constant_1): Likewise.
29410 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
29411
29412 2014-01-08 Richard Biener <rguenther@suse.de>
29413
29414 PR middle-end/59471
29415 * gimplify.c (gimplify_expr): Gimplify register-register type
29416 VIEW_CONVERT_EXPRs to separate stmts.
29417
29418 2014-01-07 Jeff Law <law@redhat.com>
29419
29420 PR middle-end/53623
29421 * ree.c (combine_set_extension): Handle case where source
29422 and destination registers in an extension insn are different.
29423 (combine_reaching_defs): Allow source and destination registers
29424 in extension to be different under limited circumstances.
29425 (add_removable_extension): Remove restriction that the
29426 source and destination registers in the extension are the same.
29427 (find_and_remove_re): Emit a copy from the extension's
29428 destination to its source after the defining insn if
29429 the source and destination registers are different.
29430
29431 PR middle-end/59285
29432 * ifcvt.c (merge_if_block): If we are merging a block with more than
29433 one successor with a block with no successors, remove any BARRIER
29434 after the second block.
29435
29436 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
29437
29438 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
29439
29440 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
29441
29442 PR target/59652
29443 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
29444 for 14-bit register offsets when INT14_OK_STRICT is false.
29445
29446 2014-01-07 Roland Stigge <stigge@antcom.de>
29447 Michael Meissner <meissner@linux.vnet.ibm.com>
29448
29449 PR 57386/target
29450 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
29451 Only check TFmode for SPE constants. Don't check TImode or TDmode.
29452
29453 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
29454
29455 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
29456 -mcpu.
29457
29458 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
29459
29460 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
29461 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
29462 rtx is const0_rtx or not.
29463
29464 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
29465
29466 PR target/58115
29467 * target-globals.c (save_target_globals): Remove this_fn_optab
29468 handling.
29469 * toplev.c: Include optabs.h.
29470 (target_reinit): Temporarily restore the global options if another
29471 set of options are in force.
29472
29473 2014-01-07 Jakub Jelinek <jakub@redhat.com>
29474
29475 PR rtl-optimization/58668
29476 * cfgcleanup.c (flow_find_cross_jump): Don't count
29477 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
29478 to determine what is counted.
29479 (flow_find_head_matching_sequence): Use active_insn_p to determine
29480 what is counted.
29481 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
29482 counting change.
29483 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
29484 determine what is counted.
29485
29486 PR tree-optimization/59643
29487 * tree-predcom.c (split_data_refs_to_components): If one dr is
29488 read and one write, determine_offset fails and the write isn't
29489 in the bad component, just put the read into the bad component.
29490
29491 2014-01-07 Mike Stump <mikestump@comcast.net>
29492 Jakub Jelinek <jakub@redhat.com>
29493
29494 PR pch/59436
29495 * tree-core.h (struct tree_optimization_option): Change optabs
29496 type from unsigned char * to void *.
29497 * optabs.c (init_tree_optimization_optabs): Adjust
29498 TREE_OPTIMIZATION_OPTABS initialization.
29499
29500 2014-01-06 Jakub Jelinek <jakub@redhat.com>
29501
29502 PR target/59644
29503 * config/i386/i386.h (struct machine_function): Add
29504 no_drap_save_restore field.
29505 * config/i386/i386.c (ix86_save_reg): Use
29506 !cfun->machine->no_drap_save_restore instead of
29507 crtl->stack_realign_needed.
29508 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
29509 this function clears frame_pointer_needed. Set
29510 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
29511 and DRAP reg is needed.
29512
29513 2014-01-06 Marek Polacek <polacek@redhat.com>
29514
29515 PR c/57773
29516 * doc/implement-c.texi: Mention that other integer types are
29517 permitted as bit-field types in strictly conforming mode.
29518
29519 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
29520
29521 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
29522 is newly allocated.
29523
29524 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
29525
29526 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
29527
29528 2014-01-06 Martin Jambor <mjambor@suse.cz>
29529
29530 PR ipa/59008
29531 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
29532 to int.
29533 * ipa-prop.c (ipa_print_node_params): Fix indentation.
29534
29535 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
29536
29537 PR debug/59350
29538 PR debug/59510
29539 * var-tracking.c (add_stores): Preserve the value of the source even if
29540 we don't record the store.
29541
29542 2014-01-06 Terry Guo <terry.guo@arm.com>
29543
29544 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
29545
29546 2014-01-05 Iain Sandoe <iain@codesourcery.com>
29547
29548 PR bootstrap/59541
29549 * config/darwin.c (darwin_function_section): Adjust return values to
29550 correspond to optimisation changes made in r206070.
29551
29552 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
29553
29554 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
29555 from prefetch_block tune setting.
29556 (nocona_cost): Correct size of prefetch block to 64.
29557
29558 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
29559
29560 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
29561 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
29562 used to save the static chain register in the computation of the offset
29563 from which the FP registers need to be restored.
29564
29565 2014-01-04 Jakub Jelinek <jakub@redhat.com>
29566
29567 PR tree-optimization/59519
29568 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
29569 ICE if get_current_def (current_new_name) is already non-NULL, as long
29570 as it is a phi result of some other phi in *new_exit_bb that has
29571 the same argument.
29572
29573 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
29574 or vmovdqu* for misaligned_operand.
29575 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29576 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
29577 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
29578 aligned_mem for AVX512F masked aligned load and store builtins and for
29579 non-temporal moves.
29580
29581 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
29582
29583 PR tree-optimization/59651
29584 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29585 Address range for negative step should be added by TYPE_SIZE_UNIT.
29586
29587 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
29588
29589 * config/m68k/m68k.c (handle_move_double): Handle pushes with
29590 overlapping registers also for registers other than the stack pointer.
29591
29592 2014-01-03 Marek Polacek <polacek@redhat.com>
29593
29594 PR other/59661
29595 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
29596 __builtin_FILE.
29597
29598 2014-01-03 Jakub Jelinek <jakub@redhat.com>
29599
29600 PR target/59625
29601 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29602 asm goto as jump.
29603
29604 * config/i386/i386.md (MODE_SIZE): New mode attribute.
29605 (push splitter): Use <P:MODE_SIZE> instead of
29606 GET_MODE_SIZE (<P:MODE>mode).
29607 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29608 (mov -1, reg peephole2): Likewise.
29609 * config/i386/sse.md (*mov<mode>_internal,
29610 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29611 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29612 *<code><mode>3, *andnot<mode>3<mask_name>,
29613 <mask_codefor><code><mode>3<mask_name>): Likewise.
29614 * config/i386/subst.md (mask_mode512bit_condition,
29615 sd_mask_mode512bit_condition): Likewise.
29616
29617 2014-01-02 Xinliang David Li <davidxl@google.com>
29618
29619 PR tree-optimization/59303
29620 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29621 (dump_predicates): Better output format.
29622 (pred_equal_p): New function.
29623 (is_neq_relop_p): Ditto.
29624 (is_neq_zero_form_p): Ditto.
29625 (pred_expr_equal_p): Ditto.
29626 (pred_neg_p): Ditto.
29627 (simplify_pred): Ditto.
29628 (simplify_preds_2): Ditto.
29629 (simplify_preds_3): Ditto.
29630 (simplify_preds_4): Ditto.
29631 (simplify_preds): Ditto.
29632 (push_pred): Ditto.
29633 (push_to_worklist): Ditto.
29634 (get_pred_info_from_cmp): Ditto.
29635 (is_degenerated_phi): Ditto.
29636 (normalize_one_pred_1): Ditto.
29637 (normalize_one_pred): Ditto.
29638 (normalize_one_pred_chain): Ditto.
29639 (normalize_preds): Ditto.
29640 (normalize_cond_1): Remove function.
29641 (normalize_cond): Ditto.
29642 (is_gcond_subset_of): Ditto.
29643 (is_subset_of_any): Ditto.
29644 (is_or_set_subset_of): Ditto.
29645 (is_and_set_subset_of): Ditto.
29646 (is_norm_cond_subset_of): Ditto.
29647 (pred_chain_length_cmp): Ditto.
29648 (convert_control_dep_chain_into_preds): Type change.
29649 (find_predicates): Ditto.
29650 (find_def_preds): Ditto.
29651 (destroy_predicates_vecs): Ditto.
29652 (find_matching_predicates_in_rest_chains): Ditto.
29653 (use_pred_not_overlap_with_undef_path_pred): Ditto.
29654 (is_pred_expr_subset): Ditto.
29655 (is_pred_chain_subset_of): Ditto.
29656 (is_included_in): Ditto.
29657 (is_superset_of): Ditto.
29658
29659 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29660
29661 Update copyright years.
29662
29663 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29664
29665 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29666 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29667 config/arc/arc.md, config/arc/arc.opt,
29668 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29669 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29670 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29671 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29672 config/linux-protos.h, config/linux.c, config/winnt-c.c,
29673 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29674 vtable-verify.c, vtable-verify.h: Use the standard form for the
29675 copyright notice.
29676
29677 2014-01-02 Tobias Burnus <burnus@net-b.de>
29678
29679 * gcc.c (process_command): Update copyright notice dates.
29680 * gcov-dump.c: Ditto.
29681 * gcov.c: Ditto.
29682 * doc/cpp.texi: Bump @copying's copyright year.
29683 * doc/cppinternals.texi: Ditto.
29684 * doc/gcc.texi: Ditto.
29685 * doc/gccint.texi: Ditto.
29686 * doc/gcov.texi: Ditto.
29687 * doc/install.texi: Ditto.
29688 * doc/invoke.texi: Ditto.
29689
29690 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29691
29692 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29693
29694 2014-01-01 Jakub Jelinek <jakub@redhat.com>
29695
29696 * config/i386/sse.md (*mov<mode>_internal): Guard
29697 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29698
29699 PR rtl-optimization/59647
29700 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29701 new_rtx into UNSIGNED_FLOAT rtxes.
29702 \f
29703 Copyright (C) 2014 Free Software Foundation, Inc.
29704
29705 Copying and distribution of this file, with or without modification,
29706 are permitted in any medium without royalty provided the copyright
29707 notice and this notice are preserved.